A list,

1 heart sound: the sound produced when the heart contractions and diastolic, can be heard by ear or stethoscope in the chest wall, can also be recorded with electronic instruments (heart sound map). Can be divided into the first heart sound (S1) second heart sound (S2). (Can be heard under normal circumstances). Third heart sound (S3 is usually heard only in children and adolescents), and fourth heart sound (S4 is rarely heard normally). The sound produced from the heart is transmitted to the surface of the chest wall through tissue mediation, of which bone conduction is the best. Heart sound is the reflection of the mechanical movement of the heart and cardiovascular system, which contains the physiological and pathological information of each part of the heart itself and the interaction between them. The recognition and classification of heart sound signal is of great significance to the diagnosis of cardiovascular diseases, and its accuracy and reliability determine the effect of diagnosis and treatment of heart disease patients. Early heart sound recognition and classification is completed by doctors according to auscultation results, obviously this process has a certain degree of subjectivity and reliability is not high. With the development of signal processing and analysis technology, the study of heart sound has gradually changed from qualitative analysis to quantitative analysis. Many biomedical engineering researchers at home and abroad have applied the traditional pattern recognition method and neural network method to the recognition and classification of heart sounds, hoping to realize the automatic interpretation and diagnosis of heart sounds, so as to provide practical auxiliary diagnostic information to clinicians. In addition, the recognition and classification of heart sounds is helpful to understand the mechanism of heart sounds. The research of heart sound signal mainly uses microelectronic technology, detection technology, modern digital signal processing technology and biomedical engineering technology to study and reveal the relationship between heart sound and heart disease. No matter how big the unit of record, human body weight, heart rate, blood pressure and other physiological parameters, are time-varying, known as heart rate or blood pressure variability. Heart sounds is in the cardiac cycle, due to myocardial systolic and diastolic, valve opening and closing, the impact factors such as ventricular wall and large artery blood flow caused by mechanical vibration, through the surrounding tissue to the chest wall, the ear close to the chest wall or put the stethoscope on the chest wall parts, hear the sound Usually it is easy to hear the first and second heart sound and sometimes heard in some cases the 3rd or the 4th heart sounds. First heart sound: S1, occurs at the beginning of systole, with a low pitch and a longer duration (about 0.15 seconds). Causes include contraction of ventricular muscles, sudden closure of the atrioventricular valve and subsequent ejection of blood into the aorta. The best auscultation site of the first heart sound is in the fifth intercostal space of the midclavicle or at the right margin of the sternum. Second heart sound: S2, which occurs at the beginning of diastolic period, has a higher frequency and shorter duration (about 0.08 seconds) compared with 0.020.04s after QRS wave starts on ecg. This is caused by the closing of the semilunar valve, the clashing of valves against each other and the vibration caused by the deceleration of blood in the aorta and the rapid drop in indoor pressure. The best auscultation sites for second heart sounds are the aortic valve region on the right and the pulmonary valve region on the left of the second intercostal space. Student: Relative to the T terminal. The 3rd heart sound and the 4th heart sound: the 3rd heart sound S3 happens after the 2nd heart sound 0.1 ~ 0.2 seconds, frequency is low, its generation and blood flow into ventricle quickly make ventricle and valve produce vibration concerned, can hear only in children normally, because more easily conduction to body surface. Equivalent to T wave behind the second heart sound 0.12~0.20s. The fourth heart sound S4 is caused by atrial contraction, also known as atrial sound, which is equivalent to 0.15~0.18s after P wave on electrocardiogram, with low amplitude.

The heart murmur interferes with the normal heart sound to some extent, but it has practical application value and clinical significance for the analysis of heart sound signal. According to the relationship between the occurrence time of murmurs and S1 and S2 heart sounds, it can be divided into early, middle and late murmurs. The intensity of noise is generally classified by its amplitude compared with S1. Greater than S1, strong. Less than S1, greater than 1/3S1, middle. Lower than 1/3 of S1 is low, and only slight vibration is a very low amplitude murmur. Because the heart sound signal belongs to the weak biological signal of human body under the background of strong noise, because the heart sound signal is the unstable natural signal issued by the complex living body. The change of heart sound and the appearance of murmurs are often the early symptoms of heart organic pathological changes, the physical structure of heart interior changes will directly affect and change the heart sound signal.

Electrocardiogram (ECG), which is widely used at present, is the best method to detect cardiac variability and conductivity, but it cannot be used to detect cardiac variability of congenital heart valve damage. Cardiac mechanical activity disorders caused by cardiac conduction tissue lesions will not be first reflected in the ecg, but can be first reflected in the heart sound signal. It takes more than 70 percent of coronary artery disease to cause changes in ecg signals, and actually 25 percent to change heart sound signals.

Abnormal heart sounds include S2, S2 abnormalities and additional sounds (or extra sounds) in systole and diastole. ① Abnormal first heart sound. Refers to an increase, decrease, or division of S1. The loudness of S1 is best estimated by auscultation. Echocardiogram is of limited judgement. The clinical conditions of S1 enhanced, weakened or varied were shown in Table 1. S1 division refers to the distance between M1 and T1 >0.04 SEC, which can be seen in normal children, young people and thin people, but has no significant significance. The distance between M1 and T1 in abnormal division of S1 can be more than 0.06 seconds, which can be seen in delayed electrostimulation (e.g., right bundle branch block, etc.) and delayed mechanical activity (e.g., atrial septal defect, severe mitral stenosis, etc.). On auscultation S1 division was clearest in the mitral and tricuspid areas of sitting and exhalation. ② Abnormal second heart sound. Including S2 increasing, weakening or splitting. Enhancement of S2 can be divided into enhancement of P2 and enhancement of A2. Enhancement of P2 is seen in increased pulmonary blood flow (e.g., septal defect) and increased pulmonary vascular resistance. Increased pulmonary venous pressure (e.g., mitral stenosis). P2 hyperactivity is usually heard in the pulmonary valve region. A2 enhancement is seen in increased systemic circulation resistance or increased blood flow, conduction to pulmonary valve and apical region, in hypertension, etc. S2 weakening is divided into P2 weakening and A2 weakening. Reduced P2 can be seen in pulmonary hypertension, pulmonary blood flow, or pulmonary valve stenosis. Reduced A2 is seen in low systemic circulation resistance, reduced blood flow, hypotension, and aortic stenosis or severe insufficiency. S2 splitting can be biological. Right ventricular ejection ends a little later than left ventricle, and P2 appears delayed on inspiratory, at which point S2 splitting can be heard. On exhalation, A2 and P2 approached or overlapped, and division disappeared. This is seen in adolescents, is evident in the pulmonary valve region auscultation and may disappear in sitting position. S2 abnormal mitosis includes wide mitosis, fixed mitosis, inverse mitosis and reduced mitosis. Wide division refers to S2 division that does not disappear during exhalation and is seen in prolonged right ventricular ejection time or shortened left ventricular ejection time. S2 fixed mitosis refers to no significant change or change <0.02 SEC in a2-P2 interval during respiration, which is seen in atrial septal defects with large shunt volume. S2 reverse fission means that A2 comes after P2, a2-P2 division is not obvious on inhalation, and P2 appears earlier and the division widens on exhalation. This is seen in delayed aortic valve closure. Narrowing of S2 division is often due to the early appearance of P2 in severe pulmonary hypertension.

3 heart sound signal analysis method: the traditional spectral analysis method through fast Fourier transform time domain, frequency domain correlation. But FFT time – frequency domain separation, and the frequency characteristics of the signal time – invariant, or stable statistical characteristics as the premise. The traditional steady-state analysis method reflects the static spectral characteristics of the signal, and the biological and physiological signals, including human heart sound signal, show non-stationary time-varying characteristics due to the influence of the environment. Therefore, classical spectral analysis is difficult to accurately reflect the dynamic changes of heart sound signal. On the basis of traditional heart sound analysis, many methods are proposed: 1. 3. Other time-frequency analysis methods

Ii. Source code

function varargout = kaishi(varargin)

gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @kaishi_OpeningFcn, ...
                   'gui_OutputFcn',  @kaishi_OutputFcn, ...
                   'gui_LayoutFcn', [],...'gui_Callback'[]);if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

 
    gui_mainfcn(gui_State, varargin{:});
end

% End initialization code - DO NOT EDIT


% --- Executes just before kaishi is made visible.
function kaishi_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   command line arguments to kaishi (see VARARGIN)

% Choose default command line output for kaishi
%handles.output = hObject;

ha=axes('units'.'normalized'.'position'[0 0 1 1]);
 
colormap gray
set(ha,'handlevisibility'.'off'.'visible'.'off');
% Update handles structure
global  xd;
handles.output = xd;
guidata(hObject, handles);


% UIWAIT makes kaishi wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = kaishi_OutputFcn(hObject, eventdata, handles) 
% varargout  cell array for returning output args (see VARARGOUT);
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure
varargout{1} = handles.output;


% --- Executes on button press in xhxz.
function xhxz_Callback(hObject, eventdata, handles)
% hObject    handle to xhxz (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
global m;
global xd;
global a;
global n;
n=25000;
[filename, pathname,index] = uigetfile('*.txt'.'Please select signal');
m=index;
if isequal(filename,0)
    f = errordlg('No valid signal selected'.'attention! '.'modal');
else
f1=importdata(filename);
 
plot(xd);
title('Selected ECG signal');
end


% --- Executes on button press in exit_1.
function exit_1_Callback(hObject, eventdata, handles)
% hObject    handle to exit_1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
 close(gcf);



% --- Executes during object creation, after setting all properties.
function figure1_CreateFcn(hObject, eventdata, handles)
% hObject    handle to figure1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called


% --- Executes on button press in FD.
function FD_Callback(hObject, eventdata, handles)
% hObject    handle to FD (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

%xd=a(13000:5:25000);
%plot(xd);



% --- Executes on button press in SX.
function SX_Callback(hObject, eventdata, handles)
% hObject    handle to SX (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --- Executes on button press in pushbutton5.
function pushbutton5_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton5 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
global m;
 
    XZLB;
else
     f0 = errordlg('No valid signal selected'.'attention! '.'modal');
end
    



function edit1_Callback(hObject, eventdata, handles)
% hObject    handle to edit1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit1 as text
%        str2double(get(hObject,'String')) returns contents of edit1 as a double


% --- Executes during object creation, after setting all properties.
function edit1_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0.'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor'.'white');
end


% --- Executes on button press in pushbutton6.
function pushbutton6_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton6 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)



% --- Executes on button press in pushbutton7.
function pushbutton7_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton7 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
 close(gcf);
    JGXS;


% --- Executes on button press in FD1.
function FD1_Callback(hObject, eventdata, handles)
% hObject    handle to FD1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
global xd;
global a;
global n;
global c;
 
if n>15000
   n=n- 2000.;
else
    n=n;
end
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @XBQZCS_OpeningFcn, ...
                   'gui_OutputFcn',  @XBQZCS_OutputFcn, ...
                   'gui_LayoutFcn', [],...'gui_Callback'[]);if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT


% --- Executes just before XBQZCS is made visible.
function XBQZCS_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   command line arguments to XBQZCS (see VARARGIN)

% Choose default command line output for XBQZCS
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);
ha=axes('units'.'normalized'.'position'[0 0 1 1]);
uistack(ha,'down')
II=imread('aa6.jpg'); The parameter inside % can be your own image, the name and format of the image will be ok.colormap gray
set(ha,'handlevisibility'.'off'.'visible'.'off');

% UIWAIT makes XBQZCS wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = XBQZCS_OutputFcn(hObject, eventdata, handles) 
% varargout  cell array for returning output args (see VARARGOUT);
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure
varargout{1} = handles.output;


% --- Executes on button press in goon_2.
function goon_2_Callback(hObject, eventdata, handles)
% hObject    handle to goon_2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
 close(gcf);
    JGXS;



% --- Executes on button press in exit_5.
function exit_5_Callback(hObject, eventdata, handles)
% hObject    handle to exit_5 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
 close(gcf);
    XZLB;


% --- Executes when selected object is changed in uipanel3.
function uipanel3_SelectionChangeFcn(hObject, eventdata, handles)
% hObject    handle to the selected object in uipanel3 
% eventdata  structure with the following fields (see UIBUTTONGROUP)
%	EventName: string 'SelectionChanged' (read only)
%	OldValue: handle of the previously selected object or empty if none was selected
%	NewValue: handle of the currently selected object
% handles    structure with handles and user data (see GUIDATA)
global xd;
global Y1;
tString=get(hObject,'tag');
switch tString
    case 'sym_4'
      Y1=wden(xd,'heursure'.'s'.'one'.3.'sym4'); % to perform the corresponding operationcase 'sym_6'
      Y1=wden(xd,'heursure'.'s'.'one'.3.'sym6'); % to perform the corresponding operationcase 'sym_8'
       Y1=wden(xd,'heursure'.'s'.'one'.3.'sym8'); % to perform the corresponding operationcase 'sym_10'
      Y1=wden(xd,'heursure'.'s'.'one'.3.'sym10'); % performs the corresponding operation endCopy the code

3. Operation results







Fourth, note

Version: 2014 a