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

% % % % % % % % % % signal wavelet decomposition % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % based on the Haar wavelet ecg = % % % % % % % fopen ('100.dat'.'r');
N=1201;
data=fread(ecg,N,'int16');
data=data/10000;
save ECGdata data;
fclose(ecg);
x=0:0.004:4.8;
figure(1);
subplot(321);
plot(x,data);
axis([0 4.8 4 - 4]);
title('Raw ELECTROcardiogram');
x=data;
wname='Haar';
level=5;
[c,l]=wavedec(x,level,wname);
a5=wrcoef('a',c,l,'Haar'.5);
a4=wrcoef('a',c,l,'Haar'.4);
a3=wrcoef('a',c,l,'Haar'.3);
a2=wrcoef('a',c,l,'Haar'.2);
a1=wrcoef('a',c,l,'Haar'.1);
subplot(322); plot(a5); title('a5'); axis([0 1201 2 - 2]);
subplot(323); plot(a4); title('a4'); axis([0 1201 2 - 2]);
subplot(324); plot(a3); title('a3'); axis([0 1201 2 - 2]);
subplot(325); plot(a2); title('a2'); axis([0 1201 2 - 2]);
subplot(326); plot(a1); title('a1'); axis([0 1201 2 - 2]); %%%%%%%%%%%% based on DB6 wavelet %%%%% ECG =fopen('100.dat'.'r');
N=1201;
data=fread(ecg,N,'int16');
data=data/10;
fclose(ecg);
x=0:0.004:4.8;
figure(2);
subplot(321);
plot(x,data);
axis([0 4.8 - 4000. 4000]);
title('Raw ELECTROcardiogram');
x=data;
wname='db6';
level=5;
[c,l]=wavedec(x,level,wname);
a5=wrcoef('a',c,l,'db6'.5);
a4=wrcoef('a',c,l,'db6'.4);
a3=wrcoef('a',c,l,'db6'.3);
a2=wrcoef('a',c,l,'db6'.2);
a1=wrcoef('a',c,l,'db6'.1);
subplot(322); plot(a5); title('a5'); axis([0 1201 - 2000. 2000]);
subplot(323); plot(a4); title('a4'); axis([0 1201 - 2000. 2000]);
subplot(324); plot(a3); title('a3'); axis([0 1201 - 2000. 2000]);
subplot(325); plot(a2); title('a2'); axis([0 1201 - 2000. 2000]);
subplot(326); plot(a1); title('a1'); axis([0 1201 - 2000. 2000]); % % % % % % % % % % % % % % % % % sym3 wavelet based % % % % % % % % % % % % % % % % % % % % % % % ecg = fopen ('100.dat'.'r');
N=1201;
data=fread(ecg,N,'int16');
data=data/10;
save ECGdata data;
fclose(ecg);
x=0:0.004:4.8;
figure(3);
subplot(321);
plot(x,data);
axis([0 4.8 - 4000. 4000]);
title('Raw ELECTROcardiogram');
x=data;
wname='sym3';
level=5;
[c,l]=wavedec(x,level,wname);
a5=wrcoef('a',c,l,'sym3'.5);
a4=wrcoef('a',c,l,'sym3'.4);
a3=wrcoef('a',c,l,'sym3'.3);
a2=wrcoef('a',c,l,'sym3'.2);
a1=wrcoef('a',c,l,'sym3'.1);
subplot(322); plot(a5); title('a5'); axis([0 1201 - 2000. 2000]);
subplot(323); plot(a4); title('a4'); axis([0 1201 - 2000. 2000]);
subplot(324); plot(a3); title('a3'); axis([0 1201 - 2000. 2000]);
subplot(325); plot(a2); title('a2'); axis([0 1201 - 2000. 2000]);
subplot(326); plot(a1); title('a1'); axis([0 1201 - 2000. 2000]); % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % ecg signal noise reduction % % % % % % % % % % % % % % % % Birge - Massart strategy threshold de-noising based on wavelet transform of ecg signal noise ecg = fopen ('100.dat'.'r');
N=1201;
data=fread(ecg,N,'int16');
data=data/10000;
fclose(ecg);
x=data;
wavename='db5';
level=4;
[c,l]=wavedec(x,level,wavename);
alpha=1.5;
sorh='h'; [thr,nkeep]=wdcbm(c,l,alpha); % Use hard threshold to denoise signal [XC, CXC, LXC, Perf0, perFL2]= wdencMP ('lvd',c,l,wavename,level,thr,sorh);
t1=0:0.004:(length(x)- 1) *0.004;
figure(4);
subplot(211);
plot(t1,x);
title('Raw ECG signals collected from a human body.');
subplot(212);
plot(t1,xc);
title(Birge-massart ECG signal after threshold noise reduction (wname= DB5 level=4)); % % % % % % % % % % % % % % % % % % % the optimal prediction of soft threshold noise reduction based on wavelet transform of ecg signal compression ecg = fopen ('100.dat'.'r');
N=1201;
data=fread(ecg,N,'int16');
data=data/10000;
fclose(ecg);
x=data;
wavename='db3';
level=4;
[xd,cxd,lxd]=wden(x,'heursure'.'s'.'mln',level,wavename);
t=0:0.004:4.8;
figure(5);
subplot(311);
plot(t,x);
title('Raw ECG signals collected from a human body.');
Copy the code

3. Operation results













Fourth, note

Version: 2014 a