Next Article in Journal
Distributed Learning Based Joint Communication and Computation Strategy of IoT Devices in Smart Cities
Next Article in Special Issue
Analyzing Sensor-Based Individual and Population Behavior Patterns via Inverse Reinforcement Learning
Previous Article in Journal
Anti-p53 Autoantibody Detection in Automatic Glass Capillary Immunoassay Platform for Screening of Oral Cavity Squamous Cell Carcinoma
Previous Article in Special Issue
A Secure Occupational Therapy Framework for Monitoring Cancer Patients’ Quality of Life
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Robust and Real-Time Capable Envelope-Based Algorithm for Heart Sound Classification: Validation under Different Physiological Conditions

Institute for Electronics Engineering, Friedrich-Alexander-Universität Erlangen-Nürnberg (FAU), 91058 Erlangen, Germany
*
Authors to whom correspondence should be addressed.
These authors contributed equally to this work.
Sensors 2020, 20(4), 972; https://doi.org/10.3390/s20040972
Submission received: 20 December 2019 / Revised: 28 January 2020 / Accepted: 7 February 2020 / Published: 11 February 2020

Abstract

:
This paper proposes a robust and real-time capable algorithm for classification of the first and second heart sounds. The classification algorithm is based on the evaluation of the envelope curve of the phonocardiogram. For the evaluation, in contrast to other studies, measurements on 12 probands were conducted in different physiological conditions. Moreover, for each measurement the auscultation point, posture and physical stress were varied. The proposed envelope-based algorithm is tested with two different methods for envelope curve extraction: the Hilbert transform and the short-time Fourier transform. The performance of the classification of the first heart sounds is evaluated by using a reference electrocardiogram. Overall, by using the Hilbert transform, the algorithm has a better performance regarding the F1-score and computational effort. The proposed algorithm achieves for the S1 classification an F1-score up to 95.7% and in average 90.5%. The algorithm is robust against the age, BMI, posture, heart rate and auscultation point (except measurements on the back) of the subjects.

1. Introduction

Cardiovascular diseases are the leading cause of death worldwide [1,2]. According to [3], this trend will continue and deteriorate in the future. Apart from the personal consequences, the healthcare costs are a huge burden for society [3].
One approach to tackle this problem is the daily monitoring of vital parameters, e.g., from the electrocardiogram (ECG) and phonocardiogram (PCG) (Supplementary Materials) by use of wearable sensors [4], since abnormal properties can indicate cardiac diseases. For the latter type of signals, automatic heart sound detection and classification algorithms are under research. The most successful approaches are the envelope-based, probabilistic-based and the feature-based methods [5].
Feature-based methods, as e.g., proposed by [6,7,8,9,10], extract features such as the Shannon entropy, discrete wavelet transform (DWT), continuous wavelet transform (CWT) or mel-frequency cepstral coefficients (MFCC) out of the PCG signal. With the use of classifiers (for example support vector machine (SVM), twin support vector machine (TWSVM) or deep neural networks (DNN)), it can be determined, if the features correspond to a heart sound [5]. However, feature-based methods have the disadvantages of high computational effort and strong dependency on datasets for training [5]. As the PCG strongly varies between the subjects as well as with the posture, heart rate and auscultation point, this would require separate data sets for each of these conditions.
Probabilistic-based methods classify heart sounds by different features, e.g., time-frequency energy or average distance between two peaks. The hidden-Markov model (HMM) is a well-established probabilistic-based model for the classification of heart sounds [11]. In [12,13] the HMM, which Schmidt et al. proposed for the heart sound classification, was improved to the hidden-semi-Markov model (HSMM) and tested with a huge amount of test persons. Renna et al. used convolutional neural networks (CNN) together with an underlying HMM in order to outperform the state of the art on heart sound classification [14]. However, the probabilistic-based methods also have a strong dependency on datasets for training and the computational effort is similar to that of the feature-based methods.
Envelope-based approaches, in contrast, are characterized by low computational costs and promise applicability under various situations in the daily life of the subjects without a dedicated training for these conditions. This robustness is of particular importance, as some pathological behaviour can only be observed during physical effort [15]. Nevertheless, the influence of the posture, auscultation point, physical stress and breathing on heart sound classification has not been addressed so far, to the best of the authors’ knowledge.
Typical methods used for the extraction of the envelope curve are the normalized average Shannon energy [16,17] or Hilbert transform (respectively short-time modified Hilbert transform (STMHT)) [18]. For the classification of the heart sounds, the peaks in the envelope curve are detected. The distances between two consecutive peaks are segmented in systoles and diastoles. Therefore, the first heart sound must be located at the beginning of the systole, whereas the second heart sound at the beginning of the diastole. The heart sound classification of the envelope-based algorithms use the assumption that the systole is shorter than the diastole [5,19]. However, at increased heart rates, the systole and diastole period are roughly equal in time, which can lead to errors in the detection of heart sounds [19,20]. Moreover, additional peaks e.g., noise, split heart sounds, third and forth heart sounds are problematic for envelope-based approaches [5,21].
In this paper, an enhanced envelope-based algorithm for automatic real-time detection and classification of the first and second heart sound is presented. The proposed algorithm distinguishes between increased (>80 bps) and normal heart rates, and in this way deals with the aforementioned problem that for increased heart rates, the length of the systole and diastole are almost equal. Furthermore, a real-time capable algorithm is needed for daily monitoring of heart sounds. In the literature, the autocorrelation (ACF) is well-established for heart rate estimation out of PCG signals [11,13,20,22]. In 2019, Dia et al. proposed a method for extracting the heart rate from noisy PCG signals by using the non-negative matrix factorization (NMF) [23]. They applied the NMF on the spectrogram of a PCG in order to estimate the heart rate. In the proposed paper an approach is made to keep the overall computational effort as low as possible. This is accomplished by using the ACF for heart rate estimation and an envelope-based classification algorithm.
For evaluating the proposed algorithm, measurements of the ECG and PCG were conducted on twelve male subjects with different age and body-mass index (BMI). The posture, the auscultation point and the physical stress were varied in order to evaluate the robustness of the presented algorithm in daily routine activities of a subject. Finally, the algorithm for heart sound classification was tested and evaluated with two different methods for envelope curve extraction, namely the Hilbert transform (HT) and short-time Fourier transform (STFT) and their corresponding results were compared.
This paper is organized as follows. Section 2 explains the fundamentals of the heart cycle and the applied signal processing methods of the algorithm. In Section 3, the developed algorithm for heart sound classification is introduced. The algorithm is tested with two different approaches for envelope curve extraction, namely the HT and the STFT. The proposed parameters for evaluating and optimization the performance of the algorithm are presented in Section 4. The process of the data acquisition, the study population and the used hardware setup is introduced in Section 5. The results for the classification process for the two different approaches are evaluated, compared and discussed in Section 6. Finally, in Section 7 the findings are concluded.

2. Fundamentals

2.1. Heart Cycle and Heart Sounds

The heart cycle consists of the systole and diastole, which correspond to the contraction and relaxation of the heart, respectively. The beginning of the systole is marked by the beginning of the first heart sound S1, the diastole starts with the second heart sound S2. Compared to the ECG, the beginning of S1 is synchronous to the peak of the R-wave (Figure 1). Within the diastole, the third S3 and fourth S4 heart sound occur. However, the third and fourth heart sound are only heard occasionally during an auscultation [24]. Since S4 has less diagnostic value, it is neglected in Figure 1 [25]. The frequency spectrum of heart sounds is approximately 20–200 Hz [21,26]. The ratio of the systole and the diastole is 1:2 in the resting heart rate and decreases with higher heart rates. The optimal auscultation point is called Erb’s point. At this point the heart sounds have the highest amplitudes and, therefore, the best results for auscultation can be achieved. [27]

2.2. Methods for Envelope Curve Extraction

The PCG is a periodical signal, however it has a non-linear and non-stationary characteristic. In consequence, the frequency changes over time. For the detection of the heart sounds, the PCG is transformed to a simpler signal to investigate the intrinsic characteristic.

2.2.1. Hilbert Transform (HT)

The envelope curve of the PCG can be extracted with the HT. This method is appropriate for narrowband signals like heart sounds and can be computed with low computational costs [28]. The HT of a real-valued and time-continuous signal x ( t ) is defined as [29,30]
H x ( t ) = 1 π x ( τ ) t τ d τ .
The related envelope curve E H ( x ( t ) ) of x ( t ) is computed with
E H ( x ( t ) ) = x ( t ) 2 + H x ( t ) 2 .

2.2.2. Short-Time Fourier Transform (STFT)

The Fourier transform (FT) extracts the spectral components of a signal. However, if the signal is non-stationary, it is not possible to reconstruct the signal in the time domain, since the coherence of time and frequency is lost. Thus, the STFT is introduced, which solves this problem by computing the FT only within a limited time window of length b. This includes the assumption that the signal is stationary during this time window [31]. The window is shifted along the time axis, with an overlap between the windows, which is denoted as k and given in percent. To restrict the full signal x ( t ) to the window interval, x ( t ) is multiplied by a window function w ( τ ) . The STFT is computed as proposed in [32]
S ( t , ω ) = x ( τ ) w ( τ t ) e j ω τ d τ .
Rabiner et al. figured out that a Hamming window fits best for non-stationary audio signals (like PCGs) [33]. The choice of the window length and the overlap are essential, since the time- and frequency resolution depend on it. A short window is related to a high time and low frequency resolution, whereas a long window results in a low time and a high frequency resolution. Therefore, k and b are optimized for the heart sound classification.
For detecting the heart sounds, the envelope curve is extracted by computing the power-spectral- density P, which is also called the spectrogram. It is derived out of the Fourier coefficients [31]:
P ( S ( t , ω ) ) = | S ( t , ω ) | 2
For extracting the envelope curve, the maximum of P is determined for each time-step.

3. Algorithm for Heart Sound Classification

The classification algorithm was implemented in MATLABmathsizesmall R2019a. The scheme of the algorithm for the detection and classification of heart sounds is illustrated in Figure 2. The algorithm sequence started with the data preprocessing, which includes filtering the raw-data and synchronizing the PCG and ECG signal. An initial segment of the PCG signals (60 s) of 8s length, which was used for synchronization (see. Section 3.1.2), was discarded. The remaining PCG signals were divided into five intervals of equal duration and further analysed separately. In the next step, the envelope curve was extracted from the filtered PCG signal for both, the HT and STFT. For both envelope curves, the algorithm was applied separately. The peaks of the envelope curve were detected and the heart rate was estimated by using the autocorrelation function (ACF). In this way, the proposed algorithm distinguished between increased (>80 bps) and normal heart rates and classified the heart sounds, using two different approaches. The single steps of the algorithm are explained in the following.

3.1. Data Preprocessing

3.1.1. Filtering of the Raw-Data

For eliminating the noise, which is caused by respiration, human speech, lung sounds or movement of the stethoscope, the PCG was filtered. The applied filter was a Butterworth bandpass, consisting of a low-pass and a high-pass filter, with a passband from f lower to f upper and filter orders N LP and N HP , respectively. Those parameters were used for the optimization of the algorithm (see Section 6.1). In Figure 3 a comparison between the raw data and the filtered PCG is illustrated.

3.1.2. Synchronization of the PCG and ECG Signal

As the R-peaks in the ECG are simultaneous with the first heart sounds S1 (see Figure 1), the R-peaks were used to evaluate the correct detection and classification of S1. For that purpose, the PCG and ECG were synchronised by use of artefacts induced by knocking three times on the electrodes of the ECG. Therefore, the first 8 s of the PCG signals were excluded.

3.2. Envelope Curves

The basis of the algorithm was the envelope curve of the PCG, which was extracted by two different methods, namely the HT and the STFT (Figure 4). The first subplot shows a filtered PCG signal and the corresponding envelope curve, derived by the HT, is shown in the second subplot. In the third subplot, the spectral power in dB/Hz is plotted over time and frequency. The heart sounds have a high power density, so for detecting S1 and S2 the maximum value of the power spectral density is computed for every time step. These values are shown in the fourth subplot of Figure 4. The resulting curve was similar to the envelope curve derived by the HT.

3.3. Peak Detection

The detection of the peaks in the envelope curve was realized by computing the gradient. The conditions for a local maximum are a changing sign of the gradient from positive to negative. All peaks with an amplitude, which was larger than the defined threshold were considered for the heart sound classification:
x env ( t ) > mean [ x env ( t ) ] · n
where x env ( t ) is the envelope curve and n is an arbitrary parameter, which is optimized (see Section 6.1).
Furthermore, it was essential to restrict two maxima within the length of a heart sound. Therefore, a time window of 150 ms, which approximately corresponded to the maximal length of a heart sound [5,34], was applied. The global maximum within the window was assigned as the detected maximum and, therefore, as a potential heart sound. In consequence, the algorithm was able to deal with split heart sounds.

3.4. Extracting the Heart Rate

As shown in Figure 5 the heart cycle, as well as the length of the systole, can be computed by using the ACF, which is a robust and well-established tool for the heart rate estimation. Thus, the local maxima of the ACF have to be extracted. The PCG is a quasi periodic signal and has finite length, therefore, the local maxima of the ACF are periodic with decaying amplitudes, since the signal is shifted and in consequence the overlapping of the signals gets smaller.
The first major maximum occurs when the original signal and the shifted signal fully overlap. At the first minor maximum, the second heart sounds of the origin signal and the first heart sounds of the shifted signal are overlapping, whereas the second minor maximum appears, when the first heart sounds of the original signal and the second heart sounds of the shifted signal interfere. The second major maximum appears, when the shifted signal again fully overlaps with the original signal. Thus, the average heart cycle corresponds to the distance between the first two major maxima. The distance between the first major maximum and the first minor maximum is extracted and corresponds to the average length of the systole (SYS). The second major maximum is extracted by a global maximum search within an interval of 1.5 s after the first major maximum. This corresponds to a heart rate of 40 bps, which is chosen as lower boundary of the heart rate for the proposed algorithm. In [35,36] an alternative approach for estimating the systolic length is presented. It is stated that the length of a systole decreases linear with the heart rate (HR). Therefore, the extracted HR of the ACF can be used to estimate the length of a systole in ms according to the empirical formulas
SYS = 1.14 HR + 371.55 ms if HR > 80 bps 6.58 HR + 766.44 ms otherwise .
The two methods for the estimation of the systolic length were both tested for the heart sound classification. The results of the comparison are presented in Section 6.2. The average HR was the reciprocal value of the average heart cycle. The average diastole length (DIA) in ms is computed with
DIA = 60 × 1000 HR SYS .
The length of a systole is defined as the distance between the beginning of S1 and the beginning of S2 (see Section 2). However, for the algorithm, the length of a systole is determined by the distance between the major peaks of S1 and S2. Heart sounds can be split especially during inhalation [37,38,39] (like first S1 in Figure 10, or first S2 in Figure 4). In the peak detection process, the global maximum within the maximal width of a heart sound [34] was detected, which could be located anywhere in that interval. Therefore, the distance between the first and the second heart sound could differ from the actual length of the corresponding systole. Therefore, a tolerance of 175 ms was applied on the length of a systole, which also took into account that the heart cycle can vary from one cycle to another. Thus, the tolerance of a systolic length was composed of the approx. maximal duration of a heart sound (150 ms) [34] and the standard deviation of 25 ms for a systolic length [35]. Hence, the minimal and maximal systolic length are given by
SYS min = SYS 175 ms
SYS max = SYS + 175 ms .
The maximal and minimal length of a diastole are computed with
DIA max = 60 × 1000 HR SYS min
DIA min = 60 × 1000 HR SYS max .

3.5. Peak Classification

For the peak classification, two different approaches were developed for two different heart rate domains. At normal heart rates, the amplitude of S1 is not necessarily higher than that of S2 [40]. The amplitude of S1 increases approximately linear with the heart rate [41]. Thus, at increased heart rates, the amplitude of S1 is higher than that of S2 [42]. Therefore, at increased heart rates, the first and second heart sound can be distinguished based on their different amplitudes. Hence, at increased heart rates, noise and artefacts are negligible compared to the amplitudes of S1 and S2.

3.5.1. Simple Heart Sound Classification for Increased Heart Rates (>80 bps)

The peaks are classified into S1 and S2 by the condition
Δ x i < SYS max y i > y i + 1 ,
where Δ x i is the i-th distance between two detected peaks and y i is the amplitude of the i-th peak. Therefore, the peak i is classified as S1 and i + 1 as S2, respectively (Figure 6a). If one S2 is not detected, the following condition will classify the peak as S1 (Figure 6b):
Δ x i > SYS max

3.5.2. Complex Heart Sound Classification for Normal Heart Rates (<80 bps)

For normal heart rates, the simple algorithm has to be extended by additional steps. It is necessary that peaks (e. g. caused by S3, S4 or artefacts), which would lead to wrong heart cycles, have to be neglected. Those extra peaks lead to invalid diastoles and have to be removed before the classification of the peaks. Therefore, the following condition is used:
SYS min < Δ x i 1 < SYS max Δ x i < DIA min SYS min < Δ x i + 2 < SYS max
If this condition is fulfilled, the right peak of Δ x i is neglected (Figure 7a). For the special case that no S2 is detected in Δ x i + 2 and the condition
DIA min < Δ x i 2 < DIA max SYS min < Δ x i 1 < SYS max Δ x i < DIA min
is true, the peak is removed as shown in Figure 7b.
The peaks, which are removed by applying the aforementioned condition, lead to an invalid diastole length. However, if one extra-peak occurs shortly before S1, it can not be removed, since the corresponding length of the diastole is valid. Therefore, in the next step the remaining peaks between two valid systoles are removed with
SYS min < Δ x i 1 < SYS max DIA min < Δ x i < DIA max SYS min < Δ x i + 2 < SYS max
(see Figure 8a). In the case that one S2 is missing and the following condition
SYS min < Δ x i 1 < SYS max DIA min < Δ x i < DIA max SYS min < Δ x i + 3 < SYS max
is true, the right peak of the Δ x i is removed (Figure 8b). In the case that two consecutive S2 are missing and the following condition
Δ x i > SYS max Δ x i + 1 > SYS max
is true, the corresponding peaks are classified as S1. Due to the higher deviation of the diastolic length (heart rate variability), the algorithm performance is more stable by considering the systolic length for the aforementioned condition.
The remaining distances Δ x are correct systoles, diastoles and heart cycles, therefore, with the information of the derived heart rate, systolic and diastolic length, the corresponding peaks can be classified into S1 and S2.

4. Statistical Evaluation and Optimization

For the first heart sounds, the peaks of the R-wave out of the ECG are used as a reference, whereas the classification of the second heart sounds is not evaluated with the ECG. Therefore, the performance of the classification algorithm is statistically evaluated in terms of the sensitivity, specificity, accuracy, precision and the F1-score only for S1. These parameters are defined as
Sensitivity = Recall = t p t p + f n
Specificity = t n f p + t n
Accuracy = t p + t n t p + t n + f p + f n
Precision = t p t p + f p
F 1 -score = 2 × Recall × Precision Precision + Recall .
For evaluating the proposed algorithm, a tolerance window T W , which was applied around the peak of the R-wave, was introduced. The window was necessary, since the synchronization of the PCG and ECG was only an approximation and the maximum of a heart sound did not always occur at the beginning of the corresponding heart sound. Taking the maximal duration of a heart sound in consideration, a tolerance window of 150 ms was appropriate [34,43]. If a peak, which was classified as S1, lay within the window, the heart sound was correct. f p is the number of wrongly classified S1 peaks, which were outside of T W and f n are correct heart sounds, which were not detected by the algorithm. t p is the number of correctly classified S1 peaks and t n is the number of correctly as false classified S1 peaks.
All performance parameters were computed for all measurements for both, the HT and the STFT. The classification of the heart sounds was optimized to achieve the highest F1-score. In case of a high heart rate, the threshold n for peak detection was optimized separately. The results of the optimization process can be found in Section 6.1.

5. Data Acquisition

5.1. Measurement Devices and PC Setup

For recording the PCG, the electronic stethoscope 3MTM Littmann® model 3200 was used. The recorded data was sampled with 4 kHz. Chen et al. proposed that sampling rates above 5 kHz are not sufficient for heart sound recording, since for higher sampling rates, irrelevant sound components can be included [7]. The integrated microphone of the stethoscope amplifies frequencies between 20–200 Hz, since heart sounds are within this frequency range (see Section 2.1).
The classification of the first heart sounds was validated by an ECG. For this purpose a COR12 ECG device from Corscience was used, which has 12 channels and a sampling rate of 500 Hz. The classification algorithm was performed in MATLABmathsizesmall R2019a with a PC with an Intel® Xeon® E-2136 Processor at 3.3 GHz and 32 GB RAM. The computational time of the algorithm for the heart sound detection and classification was assessed for both, the HT and STFT.

5.2. Study Population and Protocol

For the study the PCG and ECG from 12 healthy male subjects, with no known heart diseases, were recorded. Their ages varied in a wide range between 24 and 68. An overview of the probands is given in Table 1. For every person, 10 different measurements were conducted. The duration of each measurement was 60 s. If nothing else was indicated, the measurement was conducted at Erb’s point while the test person was sitting. The different types of measurements are listed in Table 2. As the first measurement was conducted under optimal conditions it serves as reference. For the other measurements the posture, physical stress and auscultation position were varied.

6. Results and Discussion

6.1. Results of Optimization

The performance of the presented algorithm was optimized regarding the F1-score. The values of the optimized parameters are listed in Table 3. The threshold parameters nnormal and nhigh were greater for the HT, since through the averaging effect of the STFT, its resulting envelope curve was smoother. The cut-off frequencies of the HT and STFT for the low-pass filter were 40 Hz and 20 Hz, respectively, and the cut-off frequencies of the HT and STFT for the high-pass filter were 190 Hz and 120 Hz, respectively. The filter for both, the HT and STFT, were from the order of 10 for the low-pass filter and 4 for the high-pass, respectively.
The filter suppressed noise, which was caused by human voice, respiration or lung sounds. The fundamental frequency of human voice is approximately 120 Hz for male and 190 Hz for female, respectively [44]. Therefore, the applied filter eliminated the majority of human voices. However, no study about the influence of speaking during the measurements was made. The frequency range of lung sounds and respiration is approximately 60–1200 Hz [45,46]. Thus, lung sounds and breathing were partly suppressed by the filtering. However, artefacts from the lung could not be fully eliminated, since heart sounds occurred within that frequency range. The cut-off frequencies were the result of the optimization process, regarding the average F1-score.

6.2. Comparison of the Two Approaches for Systolic Length Estimation

As introduced in Section 3, two different methods were considered for the systolic length extraction: based on the ACF and based on the empirical formula 6. For each of these methods and for both, the HT- and STFT-based approach, F1-scores were calculated. The results for these combinations are shown in Figure 9. The proposed algorithm achieves a better performance by using the empirical formula for the systolic length estimation. Therefore, in the following the algorithm is evaluated by using the empirical approach.

6.3. Results of Heart Sound Classification

The respective average values of the performance parameters are listed in Table 4. Furthermore, the average performance parameters were calculated without the measurements 4, 8 and 9, since the reference ECG was noisy for the measurement 4 and the measurements at the back (8 and 9) had a noisy PCG. The evaluation results for the F1-score for the single probands and measurements are shown in Table 5 and Table 6. Measurement 1 was the reference for the other measurements. It showd the best results, since it was conducted under optimal circumstances at Erb’s point.

6.4. Influence of Different Measurement Conditions

6.4.1. Varying the Auscultation Point

The measurements 1, 7, 8 and 9 were conducted during a sitting position and in the resting state. Only the auscultation point was varied. As the results in Table 4, Table 5 and Table 6 suggest, the F1-score was best for Erb’s point (Measurement 1) as expected, whereas measurement 7 was performed at the sternum. The average F1-score was lower compared to the reference measurement 1 and varied largely between the single subjects. The reason for that performance is the lower amplitude of the heart sounds (see Section 2.1). Therefore, the signal-to-noise ratio suffered and noise could be misinterpreted as heart sounds.
The results for measurements 8 and 9, which were performed on the back of the subjects, provided poor results for heart sound classification. The reason for that is the weak acoustic signal, which is attenuated by the lunges and the backbone. In consequence, it is not advisable to place a wearable system for heart sound monitoring on the back, as suggested in [47]. Therefore, the average of the evaluation parameters was calculated without the measurements 8 and 9 as well.

6.4.2. Varying the Posture

The measurements 1, 3, 4, 5 and 6 were conducted with different postures of the probands. Measurement 3, 5 and 6, where the probands were lying on the back, lying on the right side and lying on the left side, showed similar values regarding the performance parameters. However, compared to measurement 1, the results were slightly worse.
The results for measurement 4 were poor, since during the measurement the subjects were lying on the stomach. This led in some cases to noise in the ECG, which was caused by movement of the electrodes. In consequence, the reference signal was distorted and the evaluation of the classification performance suffered. However, the PCG was not affected.

6.4.3. Varying the Physical Stress

Measurement 2 was conducted with deep breathing and measurement 10 after 5 minutes of sport, respectively. This reflects physical stress situations. The results of measurement 10 show that the classification of heart sounds worked well for increased heart rates. The average ratio of the amplitudes of S1 and S2 for increased heart rates was 1.8 for the STFT and 3.4 for the HT. Therefore, S1 could be distinguished easily from noise as well as from S2. Moreover, the results of measurement 2 showed that deep breathing hardly affected the classification algorithm.

6.4.4. Influence of BMI

The probands were arranged according to their BMI and, therefore, divided into two groups of equal size. Group “low BMI” consists of proband 1, 3, 4, 6, 8 and 10 and group “high BMI” of 2, 5, 7, 9, 11 and 12. The average F1-score without the measurements 4, 8 and 9 was computed for both the HT and STFT and compared for both groups (see Table 7). The results for the group “high BMI” showed that the average F1-score was approximately 4% worse than the group “low BMI”, regarding for both, the HT and STFT, since the heart sounds were more attenuated for higher BMIs. In consequence, the algorithm was quite robust towards a variation of the BMI, for envelope extraction for both the HT and STFT.

6.5. Comparison of HT and STFT

Overall, the average F1-score by using the HT for extracting the envelope curve was approx. 5% better than those with the STFT. Due to the fact that the STFT was computed within a time window, the time resolution was limited, since an appropriate frequency resolution was needed. In consequence, the number of samples was reduced and, therefore, the accuracy of the derived length of the systoles was smaller, resulting in incorrectly removed S1. This effect was even increased in case of split S1.
Furthermore, the classification for S2 showed that the HT performed better. This is because the STFT was computed within a time interval, which led to an averaging of the amplitudes. Therefore, in some cases the maximal power spectral density was reduced, which was used as the envelope curve for the classification. An exemplary issue is shown in Figure 10. The fourth and fifth S2 were not detected by using the STFT for envelope curve extraction.
Regarding the goal of a wearable sensor solution for daily health monitoring, the computational cost and time were essential. A comparison between the computational effort of the HT and STFT is given in Table 8. This means that a 60 s PCG signal was classified within approximately 140 ms for the HT and 480 ms for the STFT, respectively. In consequence, both methods can be regarded as real-time capable, but nevertheless, the algorithm based on the HT performed about 3 times faster than the STFT.
Wearable systems have limited computational capacity as well as power supply. Thus, it is essential to use a computational low complex algorithm for the real-time monitoring of daily life activities. Hence, the HT can be ranked as more appropriate for this purpose compared to the STFT approach.

6.6. Comparison with other Approaches

In the following, the performance parameters for the S1 classification of the proposed algorithm are compared to other algorithms for the heart sound classification (see Table 9). As aforementioned in Section 1, there are three well-established groups of algorithms for heart sound classification: the feature-based, probabilistic-based and envelope-based methods. Therefore, the performance of algorithms, which represent the state of the art, was compared to the presented algorithm ones. However, it has to be noted that the performance parameters could not be directly compared to each other, since the proposed data set differed from the others. Therefore, the reference measurement of the proposed data set was used, since it was conducted under optimal conditions like it is normally applied in the literature. Furthermore, no standards for measurements and evaluation of the algorithms exist, which led to non-uniform performance parameters. Since the performance of the presented algorithm is best by using the HT, it was used for the comparison.
The database size in the literature is in most cases very small compared to the proposed one ( 60 × 120 s). Only Springer et al. used a larger database than the proposed one [12]. Furthermore, in many approaches very short recordings are included in their database, for example ~1 s by Renna et al. [14], or in total 87 heart sounds by Chen et al. [7]. Moreover, many researchers use a database like PhysioNet and do not declare their study population or recording length [6,9,39]. Other researchers have conducted their measurements under optimal conditions (apart from [39]) and no variation of the posture, auscultation point, physical stress and breathing was considered within their studies. Furthermore, the proposed study population includes only healthy subjects, in [16,18,39] this was also the case.
The feature-based methods have the best performance parameters [6,9]. However, since feature- based methods have a strong dependency on their training datasets and a high computational effort, they are not the favourable methods for a low complex wearable sensor platform to monitor daily activities in real-time. This holds also true for probabilistic-based methods presented in [12,14]. However, in [39] a real-time capable probabilistic-based method was realized with a low-cost smartphone platform. The performance, however, is poorer as the state of the art suggests, including the proposed one.
Even the average performance for different physiological conditions (e.g., physical stress, posture, BMI, auscultation point, breathing) of the presented algorithm is quite good compared with the state of the art. In consequence, the developed algorithm is robust and appropriate for a wearable sensor platform.
The presented algorithm is not able to deal with more than one extra peak, nor is able to classify pathological sounds (e.g., murmur). Thus, the performance suffers, if more than one detected peak exists within a diastole. For the probabilistic-based methods even one extra peak can be problematic, since it can lead to wrong states in their sequence.

7. Conclusions

This paper presents an enveloped-based and real-time capable algorithm for the detection and classification of the heart sounds S1 and S2 in phonocardiograms (PCG). The peaks of the envelope curve were classified and the found S1 were compared to the reference ECG. The algorithm was tested using the Hilbert transform (HT) and short-time Fourier transform (STFT) as methods to extract the envelope curve out of the PCG. The results for the heart sound classification suggested that using the HT is more favourable, due to the better performance parameters and lower computational effort. The developed algorithm is robust against the variation of the posture, heart rate, BMI, age and auscultation point, except for the back, since the PCG signals are attenuated by the lungs and backbone. As expected, the auscultation at Erb’s point provides the best result followed by the sternum. The posture and physical effort hardly effect the performance of the proposed algorithm for heart sound classification. Furthermore, the algorithm is adapted in order to deal with additional peaks caused by noise and an equal length of the systole and the diastole by an increased heart rate, respectively. Thus, the proposed measurements reflect and predict daily situations of the probands.
In the future, the envelope curves of the HT and STFT will be combined in order to increase the accuracy of the classification, since both envelope curves contain different information. Moreover, the heart rate could be estimated with the non-negative matrix factorization (NMF) out of the spectrogram, as suggested by [23]. Therefore, the algorithm with the STFT approach could be improved. Furthermore, the presented algorithm will be combined with activity classification, as proposed in [4]. For this purpose, the computational effort of the proposed algorithm must be reduced by an optimization of the implemented code as well as a reduction of the sampling rate of the PCG.

Supplementary Materials

The following are available online at https://www.mdpi.com/1424-8220/20/4/972/s1.

Author Contributions

Experiments were proposed by J.K. Measurements were conducted by A.T. and S.Z. The algorithm was developed by A.T., S.Z. and J.K. The data were analysed and interpreted by A.T. and S.Z. All authors were involved in paper writing and reviewing. Supervisors were J.K. and G.F. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Acknowledgments

The authors would like to thank CORSCIENCE for providing the COR12 to the research project.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
ACFAutocorrelation function
BMIBody-mass index
CNNConvolutional neural network
CWTContinuous wavelet transform
DNNDeep neural network
DWTDiscrete wavelet transform
ECGElectrocardiogram
FTFourier transform
HMMHidden-Markov model
HSMMHidden-semi Markov model
HTHilbert transform
MDSMultidimensional scaling
MFCCMel-frequency cepstral coefficients
NMFNon-negative matrix factorization
PCGPhonocardiogram
Sii-th heart sound
STFTShort-time Fourier transform
STMHTShort-time modified Hilbert transform
SVMSupport vector machine
TWSVMTwin support vector machine

References

  1. Mc Namara, K.; Alzubaidi, H.; Jackson, J.K. Cardiovascular disease as a leading cause of death: How are pharmacists getting involved? Integr. Pharm. Res. Pract. 2019, 8, 1. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  2. Mensah, G.A.; Roth, G.A.; Fuster, V. The Global Burden of Cardiovascular Diseases and Risk Factors: 2020 and Beyond. J. Am. Coll. Cardiol. 2019, 74, 2529–2532. [Google Scholar] [CrossRef] [PubMed]
  3. Mozaffarian, D.; Benjamin, E.J.; Go, A.S.; Arnett, D.K.; Blaha, M.J.; Cushman, M.; Després, J.-P.; Fullerton, H.J.; Howard, V.J.; Huffman, M.D.; et al. Heart Disease and Stroke Statistics Update: A Report from the American Heart Association. Circulation 2015, 131, 434–441. [Google Scholar] [CrossRef]
  4. Kirchner, J.; Faghih-Naini, S.; Bisgin, P.; Fischer, G. Sensor Selection for Classification of Physical Activity in Long-Term Wearable Devices. IEEE Sens. 2018, 2018, 1–4. [Google Scholar]
  5. Dwivedi, A.K.; Imtiaz, S.A.; Rodriguez-Villegas, E. Algorithms for Automatic Analysis and Classification of Heart Sounds—A Systematic Review. IEEE Access 2019, 7, 8316–8345. [Google Scholar] [CrossRef]
  6. Li, J.; Ke, L.; Du, Q.; Ding, X.; Chen, X.; Wang, D. Heart Sound Signal Classification Algorithm: A Combination of Wavelet Scattering Transform and Twin Support Vector Machine. IEEE Access 2019, 7, 179339–179348. [Google Scholar] [CrossRef]
  7. Chen, T.E.; Yang, S.I.; Ho, L.T.; Tsai, K.H.; Chen, Y.H.; Chang, Y.F.; Lai, Y.H.; Wang, S.S.; Tsao, Y.; Wu, C.C. S1 and S2 Heart Sound Recognition Using Deep Neural Networks. IEEE Trans. Biomed. Eng. 2017, 64, 372–380. [Google Scholar]
  8. Shi, K.; Weigel, R.; Koelpin, A.; Schellenberger, S.; Weber, L.; Wiedemann, J.P.; Michler, F.; Steigleder, T.; Malessa, A.; Lurz, F.; et al. Segmentation of Radar-Recorded Heart Sound Signals Using Bidirectional LSTM Networks. In Proceedings of the 41st Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Berlin, Germany, 23–27 July 2019; pp. 6677–6680. [Google Scholar]
  9. Son, G.Y.; Kwon, S. Classification of Heart Sound Signal Using Multiple Features. Appl. Sci. 2018, 8, 2344. [Google Scholar] [CrossRef] [Green Version]
  10. Meintjes, A.; Lowe, A.; Legget, M. Fundamental Heart Sound Classification using the Continuous Wavelet Transform and Convolutional Neural Networks. In Proceedings of the 40th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Honolulu, HI, USA, 17–21 July 2018; pp. 409–412. [Google Scholar]
  11. Schmidt, S.E.; Holst-Hansen, C.; Graff, C.; Toft, E.; Struijk, J.J. Segmentation of heart sound recordings by a duration-dependent hidden Markov model. Physiol. Meas. 2010, 31, 513–529. [Google Scholar] [CrossRef] [Green Version]
  12. Springer, D.B.; Tarassenko, L.; Clifford, G.D. Logistic Regression-HSMM-Based Heart Sound Segmentation. IEEE Trans. Biomed. Eng. 2016, 63, 822–832. [Google Scholar] [CrossRef]
  13. Will, C.; Shi, K.; Schellenberger, S.; Steigleder, T.; Michler, F.; Fuchs, J.; Weigel, R.; Ostgathe, C.; Koelpin, A. Radar-Based Heart Sound Detection. Sci. Rep. 2018, 8, 11551. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  14. Renna, F.; Oliveira, J.; Coimbra, M.T. Deep Convolutional Neural Networks for Heart Sound Segmentation. IEEE J. Biomed. Health Inform. 2019, 23, 2435–2445. [Google Scholar] [CrossRef] [PubMed]
  15. Robert Koch Institut: Bericht Gesundheit in Deutschland. 2015. Available online: https://www.rki.de/DE/Content/Gesundheitsmonitoring/Gesundheitsberichterstattung/GesInDtld/GesInDtld_inhalt.html (accessed on 2 February 2020).
  16. Moukadem, A.; Dieterlen, A.; Hueber, N.; Brandt, C. A robust heart sounds segmentation module based on S-transform. Biomed. Signal Process. Control 2013, 8, 273–281. [Google Scholar] [CrossRef] [Green Version]
  17. Wang, X.; Li, Y.; Sun, C.; Liu, C. Detection of the First and Second Heart Sound Using Heart Sound Energy. In Proceedings of the 2nd International Conference on Biomedical Engineering and Informatics, Tianjin, China, 17–19 October 2009; pp. 1–4. [Google Scholar]
  18. Sun, S.; Jiang, Z.; Wang, H.; Fang, Y. Automatic moment segmentation and peak detection analysis of heart sound pattern via short-time modified Hilbert transform. Comput. Methods Programs Biomed. 2014, 114, 219–230. [Google Scholar] [CrossRef] [PubMed]
  19. El-Segaier, M.; Lilja, O.; Lukkarinen, S.; Sornmo, L.; Sepponen, R.; Pesonen, E. Computer-based detection and analysis of heart sound and murmur. Ann. Biomed. Eng. 2005, 33, 937–942. [Google Scholar] [CrossRef]
  20. Yuenyong, S.; Nishihara, A.; Kongprawechnon, W.; Tungpimolrut, K. A framework for automatic heart sound analysis without segmentation. Biomed. Eng. Online 2011, 10, 13. [Google Scholar] [CrossRef] [Green Version]
  21. Hamidah, A.; Saputra, R.; Mengko, T.L.R.; Mengko, R.; Anggoro, B. Effective heart sounds detection method based on signal’s characteristics. In Proceedings of the International Symposium on Intelligent Signal Processing and Communication Systems (ISPACS), Phuket, Thailand, 24–27 October 2016; pp. 1–4. [Google Scholar]
  22. Springer, D.B.; Brennan, T.; Hitzeroth, J.; Mayosi, B.M.; Tarassenko, L.; Clifford, G.D. Robust heart rate estimation from noisy phonocardiograms. Comput. Cardiol. 2014, 2014, 613–616. [Google Scholar]
  23. Dia, N.; Fontecave-Jallon, J.; Gumery, P.Y.; Rivet, B. Heart Rate Estimation from Phonocardiogram Signals Using Non-negative Matrix Factorization. In Proceedings of the 44th IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Brighton, UK, 12–17 May 2019; pp. 1293–1297. [Google Scholar]
  24. Springhouse. Nursing Know-How: Evaluating Heart & Breath Sounds; Lippincott Williams & Wilkins: Philadelphia, PA, USA, 2008. [Google Scholar]
  25. Flynn, J.A.; Choi, M.J.; Wooster, L.D. Oxford American Handbook of Clinical Medicine; Oxford University Press: Oxford, UK, 2013. [Google Scholar]
  26. Debbal, S.M. Model of Differentiation between Normal and Abnormal Heart Sounds in Using the Discrete Wavelet Transform. J. Med. Bioeng. 2014, 3, 5–11. [Google Scholar] [CrossRef]
  27. Franzone, P.C.; Pavarino, L.F.; Scacchi, S. Mathematical Cardiac Electrophysiology; Springer: Cham, Switzerland, 2014. [Google Scholar]
  28. Mondal, A.; Bhattacharyya, P.; Saha, G. An automated tool for localization of heart sound components S1, S2, S3 and S4 in pulmonary sounds using Hilbert transform and Heron’s formula. SpringerPlus 2013, 2, 512. [Google Scholar] [CrossRef] [Green Version]
  29. Shmaliy, Y. Continuous-Time Signals; Springer: Dordrecht, Netherlands, 2006. [Google Scholar]
  30. Ohm, J.R. Multimedia Communication Technology: Representation, Transmission and Identification of Multimedia Signals; Springer: Berlin, Gemany, 2004. [Google Scholar]
  31. Wang, C.C.; Kang, Y. Feature Extraction Techniques of Non-Stationary Signals for Fault Diagnosis in Machinery Systems. J. Signal Inform. Process. 2012, 3, 16–25. [Google Scholar] [CrossRef] [Green Version]
  32. Oppenheim, A.V.; Schafer, R.W. Discrete-Time Signal Processing; Always Learning, Pearson: Harlow, UK, 2014. [Google Scholar]
  33. Rabiner, L.R.; Schafer, R.W. Digital Processing of Speech Signals; Prentice-Hall Signal Processing Series; Prentice-Hall: Englewood Cliffs, NJ, USA, 1978. [Google Scholar]
  34. Luisada, A.; Mendoza, F.; Alimurung, M.M. The duration of normal heart sounds. Br. Heart J. 1949, 11, 41. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  35. Sharma, R.; Kumari, P.; Malhotra, A.S. Evaluation and correlation of systolic time intervals (STI) with autonomic functions in young adults. Int. J. Biol. Med. Res. 2012, 3, 2588–2592. [Google Scholar]
  36. Mertens, H.M.; Mannebach, H.; Trieb, G.; Gleichmann, U. Influence of heart rate on systolic time intervals: Effects of atrial pacing versus dynamic exercise. Clin. Cardiol. 1981, 4, 22–27. [Google Scholar] [CrossRef] [PubMed]
  37. Barma, S.; Chen, B.W.; Man, K.L.; Wang, J.F. Quantitative Measurement of Split of the Second Heart Sound (S2). IEEE/ACM Trans. Comput. Biol. Bioinform. 2015, 12, 851–860. [Google Scholar] [CrossRef] [PubMed]
  38. Kudriavtsev, V.; Polyshchuk, V.; Roy, D.L. Heart energy signature spectrogram for cardiovascular diagnosis. BioMed. Eng. Online 2007, 6, 16. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  39. Thiyagaraja, S.R.; Dantu, R.; Shrestha, P.L.; Chitnis, A.; Thompson, M.A.; Anumandla, P.T.; Sarma, T.; Dantu, S. A novel heart-mobile interface for detection and classification of heart sounds. Biomed. Signal Process. Control 2018, 45, 313–324. [Google Scholar] [CrossRef]
  40. Wu, W.Z.; Guo, X.M.; Xie, M.L.; Xiao, Z.F.; Yang, Y.; Xiao, S.Z. Research on first heart sound and second heart sound amplitude variability and reversal phenomenon-a new finding in athletic heart study. J. Med. Biol. Eng 2009, 29, 202–205. [Google Scholar]
  41. Bergman, S.A.; Blomqvist, C. Amplitude of the first heart sound at rest and during exercise in normal subjects and in patients with coronary heart disease. Am. Heart J. 1975, 90, 714–720. [Google Scholar] [CrossRef]
  42. Moukadem, A.; Schmidt, S.; Dieterlen, A. High Order Statistics and Time-Frequency Domain to Classify Heart Sounds for Subjects under Cardiac Stress Test. Comput. Math. Methods Med. 2015, 2015, 157825. [Google Scholar] [CrossRef]
  43. Association for the Advancement of Medical Instrumentation. ANSI/AAMI EC57: 2012—Testing and Reporting Performance Results of Cardiac Rhythm and ST Segment Measurement Algorithms. Am. Natl. Stand. 2012. Available online: https://webstore.ansi.org/standards/aami/ansiaamiec572012ec57 (accessed on 8 June 2019).
  44. Sorensen, D.; Horii, Y. Cigarette smoking and voice fundamental frequency. J. Commun. Disord. 1982, 15, 135–144. [Google Scholar] [CrossRef]
  45. Moussavi, Z. Fundamentals of Respiratory Sounds and Analysis. Synth. Lect. Biomed. Eng. 2006, 1, 1–68. [Google Scholar] [CrossRef] [Green Version]
  46. Gross, V.; Dittmar, A.; Penzel, T.; Schuttler, F.; von Wichert, P. The relationship between normal lung sounds, age, and gender. Am. J. Respir. Crit. Care Med. 2000, 162, 905–909. [Google Scholar] [CrossRef]
  47. Schwarzmeier, A.; Besser, J.; Weigel, R.; Fischer, G.; Kissinger, D. A compact back-plaster sensor node for dementia and Alzheimer patient care. In Proceedings of the IEEE Sensors Applications Symposium, Queenstown, New Zealand, 18–20 February 2014; pp. 75–78. [Google Scholar]
Figure 1. Wiggers diagram: the blue curve shows the ECG and the grey curve the related heart sounds (PCG). A heart cycle is defined as a sequence of a systole and a diastole [27].
Figure 1. Wiggers diagram: the blue curve shows the ECG and the grey curve the related heart sounds (PCG). A heart cycle is defined as a sequence of a systole and a diastole [27].
Sensors 20 00972 g001
Figure 2. Flowchart of the proposed algorithm for the detection and classification of heart sounds.
Figure 2. Flowchart of the proposed algorithm for the detection and classification of heart sounds.
Sensors 20 00972 g002
Figure 3. Comparison between the original phonocardiogram (PCG) in black and the bandpass filtered PCG in red.
Figure 3. Comparison between the original phonocardiogram (PCG) in black and the bandpass filtered PCG in red.
Sensors 20 00972 g003
Figure 4. Top: filtered PCG of a reference measurement; second: related envelope curve derived by the HT; third: spectrogram of the short-time Fourier transform (STFT); bottom: envelope curve derived by the STFT. Note: the first S2 is split.
Figure 4. Top: filtered PCG of a reference measurement; second: related envelope curve derived by the HT; third: spectrogram of the short-time Fourier transform (STFT); bottom: envelope curve derived by the STFT. Note: the first S2 is split.
Sensors 20 00972 g004
Figure 5. Procedure to determine the heart cycle and the systole length from the autocorrelation (ACF). On the left side the envelope of the PCG is shown. In the respective rows, it is shifted in time. For reasons of clarity and comprehensibility, dashed lines are not drawn for all heart sounds. On the right side, the corresponding ACF is shown.
Figure 5. Procedure to determine the heart cycle and the systole length from the autocorrelation (ACF). On the left side the envelope of the PCG is shown. In the respective rows, it is shifted in time. For reasons of clarity and comprehensibility, dashed lines are not drawn for all heart sounds. On the right side, the corresponding ACF is shown.
Sensors 20 00972 g005
Figure 6. Heart sound classification for increased heart rates: The S1 have always higher amplitudes than the S2. (a) No S2 is missing; (b) One S2 is missing (dashed lines).
Figure 6. Heart sound classification for increased heart rates: The S1 have always higher amplitudes than the S2. (a) No S2 is missing; (b) One S2 is missing (dashed lines).
Sensors 20 00972 g006
Figure 7. Heart sound classification for normal heart rates: (a) One extra sound (red) exists within the diastole and no S2 is missing; (b) One extra sound (red) exists within the diastole and one S2 is missing (dashed lines).
Figure 7. Heart sound classification for normal heart rates: (a) One extra sound (red) exists within the diastole and no S2 is missing; (b) One extra sound (red) exists within the diastole and one S2 is missing (dashed lines).
Sensors 20 00972 g007
Figure 8. Heart sound classification for normal heart rates: (a) One extra sound (red), which is near to an S1, exists within the diastole and no S2 is missing; (b) One extra sound (red), which is near to an S1, exists within the diastole and one S2 is missing (dashed lines).
Figure 8. Heart sound classification for normal heart rates: (a) One extra sound (red), which is near to an S1, exists within the diastole and no S2 is missing; (b) One extra sound (red), which is near to an S1, exists within the diastole and one S2 is missing (dashed lines).
Sensors 20 00972 g008
Figure 9. Comparison of the ACF-based and the empirical-based method for the systolic length estimation: the average F1-score is plotted over the ten conducted measurements.
Figure 9. Comparison of the ACF-based and the empirical-based method for the systolic length estimation: the average F1-score is plotted over the ten conducted measurements.
Sensors 20 00972 g009
Figure 10. Example of classified heart sounds, where the detection of S2 failed in some cases for the STFT (red). The reference ECG is shown in green.
Figure 10. Example of classified heart sounds, where the detection of S2 failed in some cases for the STFT (red). The reference ECG is shown in green.
Sensors 20 00972 g010
Table 1. Overview of the subjects.
Table 1. Overview of the subjects.
Proband No.Age in aWeight in kgBody Height in mBMI in kg/m 2
1 (reference)26781.8024.1
268921.7829.0
328821.8524.0
427791.8822.4
524751.7225.4
626681.7821.5
729821.8224.8
837751.8023.1
955871.7428.7
1038721.9119.7
1134801.7127.4
1228801.8324.2
Average35 24.9
Table 2. Study protocol.
Table 2. Study protocol.
Meas. No.ActionBreathingPostureAuscultation Point
1restnormalsittingErb’s point
2restdeepsittingErb’s point
3restnormallying on backErb’s point
4restnormallying on stomachErb’s point
5restnormallying on right sideErb’s point
6restnormallying on left sideErb’s point
7restnormalsittingsternum
8restnormalsittingcentre of the back
9restnormalsittingleft side of the back
10after 5 min of sportdeepsittingErb’s point
Table 3. Optimization results for of the heart sound classification.
Table 3. Optimization results for of the heart sound classification.
ParameterSTFTHT
Threshold parameter normal heart ratennormal11.9
Threshold parameter increased heart ratenhigh0.61.3
Lower cut-off frequency in Hz f lower 2040
Upper cut-off frequency in Hz f upper 120190
Filter order high-pass N HP 44
Filter order low-pass N LP 1010
Window-size STFT in Samplesb128-
Overlap ratio STFT in %k96.875-
Table 4. Average values of the evaluation parameters (in %) for the single measurements.
Table 4. Average values of the evaluation parameters (in %) for the single measurements.
ø Sensitivityø Specificityø Accuracyø Precisionø F1-Score
Measurement No.HTSTFTHTSTFTHTSTFTHTSTFTHTSTFT
1 (reference)95.192.599.299.098.597.996.595.395.793.8
288.885.598.898.497.196.293.791.591.088.3
387.080.098.797.396.794.592.584.989.582.3
462.559.895.594.885.083.978.474.967.364.2
588.983.098.497.896.995.492.088.790.384.9
690.987.399.098.397.696.694.691.092.789.0
776.565.296.794.493.389.482.468.979.266.2
817.618.681.881.671.671.516.316.916.516.5
918.615.981.285.071.173.917.919.017.215.2
1095.986.798.498.597.995.994.694.195.289.0
ø72.267.594.894.590.689.575.972.573.568.9
ø without 4, 8 and 989.082.998.597.796.995.192.387.890.584.8
Table 5. F1-score (in %) of the classified PCG by using the HT.
Table 5. F1-score (in %) of the classified PCG by using the HT.
Proband No.123456789101112
Meas. No. 194.6100.096.892.994.496.2100.098.396.982.895.8100.0
292.399.297.490.696.692.374.192.798.190.973.095.2
391.189.5100.074.286.387.595.491.777.794.694.092.4
450.078.095.469.170.120.880.024.896.193.541.288.5
587.394.091.394.884.996.499.186.591.497.581.679.3
695.288.396.095.180.095.695.984.296.699.294.391.8
785.170.097.082.897.381.776.689.749.686.479.654.9
815.214.010.415.212.713.530.515.928.619.615.37.69
99.7615.511.614.416.810.53.4225.219.041.420.518.8
10100.094.398.091.496.499.496.297.986.997.686.297.8
ø72.174.379.472.173.569.475.170.774.180.468.272.6
ø  without 4, 8 and 992.290.896.688.990.892.791.091.685.392.786.487.4
Table 6. F1-score (in %) of the classified PCG by using the STFT.
Table 6. F1-score (in %) of the classified PCG by using the STFT.
Proband No.123456789101112
Meas. No. 187.5100.095.289.187.492.1100.097.493.885.797.5100.0
295.196.193.992.590.493.360.492.796.382.875.990.2
391.194.8100.057.171.082.287.043.884.290.194.092.4
449.382.395.474.368.115.483.620.489.096.828.067.3
560.772.276.291.788.792.099.186.585.596.785.185.0
694.282.281.295.157.996.696.787.095.599.287.695.2
785.163.896.068.094.556.587.665.519.673.147.537.3
815.55.9715.817.615.911.420.021.932.923.79.627.59
911.317.73.3320.417.56.068.03.3932.224.523.414.0
1098.994.999.080.060.7100.095.197.986.895.963.695.7
ø68.971.075.668.665.264.673.861.771.676.361.268.5
ø  without 4, 8 and 987.586.391.681.878.787.589.481.580.289.178.785.1
Table 7. Comparison of the average F1-score (in %) of the two groups with low and high BMI.
Table 7. Comparison of the average F1-score (in %) of the two groups with low and high BMI.
Group:low BMIhigh BMI
HT92.588.6
STFT87.583.1
Table 8. Comparison of the computational effort for Hilbert transform (HT) and STFT.
Table 8. Comparison of the computational effort for Hilbert transform (HT) and STFT.
Computationalfor AllAverage for
TimeMeasurements60 s Measurement
HT16.8 s140 ms
STFT57.6 s480 ms
Table 9. Comparing the performance of the proposed algorithm with the state of the art heart sound classification algorithms. The performance parameters S, P, Acc and F1 correspond to the sensitivity, precision, accuracy and F1-score, respectively. The performance parameters are only related to S1, if not stated otherwise in the notes.
Table 9. Comparing the performance of the proposed algorithm with the state of the art heart sound classification algorithms. The performance parameters S, P, Acc and F1 correspond to the sensitivity, precision, accuracy and F1-score, respectively. The performance parameters are only related to S1, if not stated otherwise in the notes.
ReferenceYearDatabaseStudyPerformance in %Notes
(Methods) PopulationSPAccF1
Envelope-based:
2020 real-time capable
Proposed 120 meas.12 healthy95.196.598.595.7reference
Algo. (HT) à 60 ssubjects(89.0)(92.3)(96.9)(90.5)(average of meas. with
diff. physio. conditions)
[18]2014600 s total45 healthy98.5short records
(STMHT) subjects
[16]201480 records6 healthy9695meas. in acoustic
(S-Transform) à 6–12 ssubjects chamber, short records
Probabilistic-based:
[12]201610,172 s11297.0healthy and path.
(HSMM) totalsubjects subjects, large database
 [39]201815 healthy76.9real-time capable,
(DWT+CWT smartphone platform,
+HMM) subjects parameters for S1 and S2
 [14]20191–35 s13595.795.793.7healthy and path. subj.,
(CNN+HMM) recordssubjects parameters for S1 and S2
Feature-based:
 [7]201787691.1small study population,
(DNN heartsubjects short records,
+MFCC) sounds(test) parameters for S1 and S2
 [9]20181000 records98.297.999.7healthy and path. subj.,
(SVM+MFCC unspecif. study pop.,
+DWT) parameters for S1 and S2
[6]201940998.699.498.699.0healthy and path. subj.,
(MDS records unspecif. study pop.,
+TWSVM) (PhysioNet) parameters for S1 and S2

Share and Cite

MDPI and ACS Style

Thalmayer, A.; Zeising, S.; Fischer, G.; Kirchner, J. A Robust and Real-Time Capable Envelope-Based Algorithm for Heart Sound Classification: Validation under Different Physiological Conditions. Sensors 2020, 20, 972. https://doi.org/10.3390/s20040972

AMA Style

Thalmayer A, Zeising S, Fischer G, Kirchner J. A Robust and Real-Time Capable Envelope-Based Algorithm for Heart Sound Classification: Validation under Different Physiological Conditions. Sensors. 2020; 20(4):972. https://doi.org/10.3390/s20040972

Chicago/Turabian Style

Thalmayer, Angelika, Samuel Zeising, Georg Fischer, and Jens Kirchner. 2020. "A Robust and Real-Time Capable Envelope-Based Algorithm for Heart Sound Classification: Validation under Different Physiological Conditions" Sensors 20, no. 4: 972. https://doi.org/10.3390/s20040972

APA Style

Thalmayer, A., Zeising, S., Fischer, G., & Kirchner, J. (2020). A Robust and Real-Time Capable Envelope-Based Algorithm for Heart Sound Classification: Validation under Different Physiological Conditions. Sensors, 20(4), 972. https://doi.org/10.3390/s20040972

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop