Introduction

Background

As an efficient method, using heart sound (HS) analysis is often used to evaluate heart function; this approach has been widely used to diagnose heart disease and evaluate heart functions, such as congenital heart disease classification1, ventricular septal defect detection2, blood pressure estimation3 and congenital heart disease screening4, for children and adults. A normal HS is primarily composed of two basic sounds: the first sound (\({ S }_{1}\)) which is generated by the closing of aortic valves and the vibrations associated with tensing of the chordate trendiness and the ventricular walls, the second sound (\({ S }_{2}\)) is produced by the closure of the aortic and pulmonic valves at the beginning of is volumetric ventricular relaxation. However, HSs with unitary murmurs generally occur between \({ S }_{1}\) and \({ S }_{2}\) with different noise patterns5. Therefore, analyses of \({ S }_{1}\), \({ S 2}\), and the period between \({ S }_{1}\) and \({ S }_{2}\) play important roles in characterizing HS features with different types of information. Detailed information for \({ S }_{1}\), \({ S }_{2}\), and the sounds between \({ S }_{1}\) and \({ S }_{2}\) can be used to accurately classify HS. Additionally, to avoid analyzing the sounds between \({ S }_{1}\) and \({ S }_{2}\), which are generally segmented from HSs with low accuracy, \({ S }_{1}\) and part of the period between \({ S }_{1}\) and \({ S }_{2}\) are integrated to obtain \({ CS }_{1}\), and \({ S }_{2}\) and the part of the period between \(S _{1}\) and \(S _{2}\) are integrated to form \({ CS }_{2}\). Then, the features are efficiently extracted from \({ CS }_{1}\) and \({ CS _{2}}\). Finally, a classification method is established to diagnose heart diseases.

Need for research

  • \(\bullet\) \({\varvec{CS}}_{1}\) and \({\varvec{CS}}_{2}\) extraction The studies regarding HS segmentation can be summarized into two branches: one branch includes studies that segment each cardiac cycle into a sequence of four heart stages: \({ S }_{1}\longrightarrow\) Systole period \(\longrightarrow { S }_{2}\longrightarrow\) Diastole period6,7. As a result, the four fundamental stages to be segmented are different due to the nonstationary nature of an abnormal HSs signal and the effect of background noise. The other branch includes studies that segment a periodic HSs into a sequence of two heart stages, which are expressed as \(\mathop{{ CS }_{1}}\limits _{\begin{array}{c} {\overbrace{{{One part of Diastole}} \rightarrow {{ S }_{1}} \rightarrow {{One part of Systole}}}} \end{array}}\) \(\rightarrow\) \(\mathop{{ CS }_{2}}\limits _{\begin{array}{c} {\overbrace{{{The other of Diastole}} \rightarrow {{ S }_{2}} \rightarrow {{The other of Systole}}}} \end{array}}\) based on the STMHT algorithm; this approach was reported to be successfully applied in diagnosing heart diseases, such as in ventricular septal defect (VSD) diagnosis8 and several kinds of heart disease diagnosis9. Moreover, study9 noted that the use of frequency features was more efficient in distinguishing normal from abnormal sounds than was the use of time features. Therefore, an efficient frequency feature extraction method should be developed.

  • \(\bullet\) Feature extraction As an important component of efficient feature extraction, the frequency width of the envelope over a given threshold value (\(Thv\)) has been verified to be useful for detecting heart diseases8,9,10,11. However, for many types of HSs, it is difficult to extract frequency widths with an unsuitable \(Thv\) due to the existence of a non smooth envelope. To extract the frequency widths for a smooth envelope without setting different \(Thv\) values, the smooth envelope can be treated as a secondary envelope, as proposed in9, and used to automatically extract the frequency feature matrix based on the STMHT technique; this method was successfully applied to detect different types of heart diseases. However, for mitral stenosis and mitral regurgitation noises, the feature matrix was not easily extracted because the second frequency component was missing. Therefore, to improve the classification accuracy for diagnosing different types of heart disease and simplify the complexity of the diagnostic method, the smooth envelopes for \({ CS }_{1}\) and \({ CS }_{2}\) extraction in the frequency domain must be considered; additionally, more frequency widths corresponding to different \(Thv\) values should be used, and dimensionality reduction should be employed to reduce the number of features considered . Such a classification method could be applied in the efficient extraction of features for diagnosing heart diseases.

  • \(\bullet\) Classifier model Gaussian mixture models (GMMs) have been used in a wide variety of clustering applications12,13,14,15,16,17,18 due to their powerful mathematical characteristics. Confidence regions are used to diagnose the detection data x in GMMs, and the optimal confidence regions is determined based on Mahalanobis distance following the Chi-square (\(\chi ^{2}\)) distribution. Thus, classifier models with adjustable sizes corresponding to the confidence bounds of the Chi-square (\(\chi ^{2}\)) distribution, which can be adjusted by changing the desired confidence level (denoted as \(\beta\)), are proposed. The \(\chi ^{2}\) confidence bounds used as the classification criteria are employed to diagnose heart diseases.

Major contributions and organization

In summary, this study proposes an innovative and intelligent system. The major contributions in this study are (1) the STMHT-based \({ CS }_{1}\) and \({ CS }_{2}\) are automatically located and extracted; (2) a novel method for obtaining the secondary curves of \({ CS }_{1}\) and \({{ CS }_{2}}\) are extracted in the frequency domain; (3) frequency features are automatically extracted over the given threshold value; (4) the diagnostic features \(\gamma _{_1}\), \(\gamma _{_{2}}\) and \(\gamma _{_3}\) are determined based on PCA; and (5) the confidence region of the \(\chi ^{2}\) distribution, which are adjusted based on the desired \(\beta\), is determined and used as the classification criterion for diagnosing a given HS. The remainder of this paper is organized as follows. Section “Methodology” presents the approach for determining the diagnostic features \([\gamma _{_1}, \gamma _{_2}, \gamma _{_3}]\), and a definition of the confidence region-based diagnostic method for diagnosing heart diseases. In “Performance evaluation” section, the performance of the proposed method is compared with that of other efficient methods for diagnosing heart diseases. In “Conclusion” section, the conclusions are provided. Finally, the future study is pointed out in “Future study”.

Methodology

This study was approved by the ethics committee of Nanyang Institute of Technology (Approval Number:2016-06) and the informed consent was waived by the ethics committee of Nanyang Institute of Technology. The present study was also conducted in accordance with the tenets of the 1975 Declaration of Helsinki, as revised in 200819.

The flow chart of the proposed intelligent system, shown in Fig. 1, consists of three stages: the automatic location and extraction of \({ CS }_{1}\) and \({ CS }_{2}\); the automatic determination of frequency features \(\gamma _{1}\), \(\gamma _{2}\) and \(\gamma _{3}\); and the establishment of the Mahalanobis distance criterion-based diagnostic method. In stage 1, the STMHT-based curve (denoted as \({\mathrm{HS}}_{\mathrm{STMHT}}\)), which is extracted for the \({\mathrm{HS}}_{\mathrm{E}}\) envelope generated by the HS, is used to segment and extract \({ CS }_{1}\) and \({ CS }_{2}\) from the HS (Fig. 1A). In stage 2, the envelopes \({ CS 1}_{\mathrm{F_{E}}}\) and \({ CS 2}_{\mathrm{F_{E}}}\) for every period \({ CS }1\) and \({ CS }2\) are obtained via a novel method, and the frequency features are automatically extracted from \({ CS _{1}}_{\mathrm{F_{E}}}\) and \({ CS _{2}}_{\mathrm{F_{E}}}\) by setting different \(Thv\) lines. Finally, the first three principal components, \(\gamma _{1}\), \(\gamma _{2}\) and \(\gamma _{3}\), which express \(86.7\%\) of the \(\mathrm{FF}\) information, are determined and used as diagnostic features (Fig. 1B, C). In stage 3, the GMM-based mixed classification objective function \(f_{ et }(\mathbf{x})\) which combines component k with respect to the parameters \(\pi _{k}\), \(\mu _{k}\), and \(\Sigma _{k}\) and the features \({\mathbf{x}}=[\gamma _{_1}, \gamma _{_2}, \gamma _{_3}]\), is generated. Then, the \(\chi ^{2}\) distribution for component k is determined by calculating the Mahalanobis distance from x to the class mean \(\mu _{_k}\) of component k, and the adjustable confidence bound (denoted as \({\mathrm{MDC}}_{k}\) shown in Fig. 1E) is determined to diagnose heart diseases.

Figure 1
figure 1

Flow chart of the proposed methodology.

Stage 1: Automatic extraction of \(CS _{1}\) and \(CS _{2}\)

As shown in Fig. 2, five steps consisting of heart sound auscultation, heart sound preprocessing, heart sound envelope extraction, STMHT extraction, and \(CS _{1}\) and \(CS _{2}\) extraction, which is used to construct the procedure of the \(CS _{1}\) and \(CS _{2}\) extraction and is detailed in the following steps.

Figure 2
figure 2

Flow chart of the \(CS _1\) and \(CS _2\) extraction.

Step A: Heart sound auscultation

Auscultation is performed for the purposes of examination cardiovascular. As described in previous study8, the original heart sound, denoted as \(S_{\mathrm{T}}\) (colored in blue line as shown in Fig. 2), are collected by 3M-3200 electronic stethoscope with a \({F}_{s}=44.1 k\)Hz sample rate which is widely used by many doctors and produced by American 3M company20, and the tricuspid area is selected as the auscultation area due to the tricuspid area reported to supply more important information21. Meanwhile, you can hear the sounds when auscultating heart sounds, ensuring that we avoid as much environmental noise as possible during the auscultation procedure. Even so, the collected heart sounds still need to be preprocessing for canceling the invalid components.

Step B: WD-based heart sound preprocessing

HSs are reported to be primarily dispersed in the frequency range of 20\(\sim\)700 Hz2,8,9. Therefore, according to the sampling frequency (\({\mathrm{Fs}}=44.1\) kHz), WD-based HSs are filtered to obtain the efficient frequency components (\(21.5 \sim 689\) Hz). The Daubechies wavelet 10 (dB10) has been used to give the maximum signal-to-noise ratio and minimum root-mean-square error for HSs22. Therefore, dB10 is selected for use as the mother wavelet for preprocessing HSs. A filtered and normalized sound, colored by gray and denoted as \({ HS }_{\mathrm{T}}\), is shown in Fig. 2.

Step C: heart sound envelope \(({ HS }_{\mathrm{E}})\) extraction

The Viola integral-based envelope, denoted as \({ HS }_{\mathrm{E}}\), is extracted from the heart sound \({ HS }_{\mathrm{T}}\), as reported in studies8,9; this envelope can effective overcome amplitude variations and complex backgrounds and noise. This concept is described as follows. Consider a filtered sound \({ HS }_{\mathrm{T}}[m]\) for \(m=0,1,\ldots ,M-1\), where M denotes the number of HSs. In a \(W_{\mathrm{m}}\) neighborhood of time m, called the width \(W_{\mathrm{m}}\) time scale, the M-point envelope \({ HS }_{\mathrm{E}}[m]\) is obtained by Eq. (1):

$$\begin{aligned} {HS}_{\mathrm{E}}[m]=\frac{1}{2W_{\mathrm{m}}+1}\sum _{k=m-W_{\mathrm{m}}}^{m+W_{\mathrm{m}}}\left( { HS }_{\mathrm{T}}[k]-{\overline{HS}}_{\mathrm{T}}[m]\right) ^2, m=W_{\mathrm{m}}, W_{\mathrm{m}}+1,\ldots M-1-W_{\mathrm{m}}, \end{aligned}$$
(1)

where

$$\begin{aligned} \overline{ HS }_{\mathrm{T}}[m]=\frac{1}{2W_{\mathrm{m}}+1}\sum _{k=m-W_{\mathrm{m}}}^{m+W_{\mathrm{m}}}{ HS }_{\mathrm{T}}[k], \end{aligned}$$
(2)

\(W_{\mathrm{m}}=2205\) if the duration of \({ CS }_{1}\) or \({ CS }_{2}\) greater than 0.13 s. Finally, normalization is performed by setting the maximum amplitude of \({ HS }_{\mathrm{E}}\) to 1 (Fig. 2).

Step D: STMHT extraction for HS

Given an M-point HS, the STMHT for the HSs , \({ HS }_{\mathrm{STMHT}}\), is computed from Eq. (3)

$$\begin{aligned} {\mathrm{HS}}_{\mathrm{STMHT}}[n]= & \sum _{m=n-\frac{N-1}{2}}^{n+\frac{N-1}{2}}{{ HS }_{\mathrm{E}}[m]W_{N}[m-n]W_{\mathrm{E}}\left[m-(n-\frac{N-1}{2})\right]}, \end{aligned}$$
(3)
$$\begin{aligned} W_{\mathrm{E}}[i]= & {\left\{ \begin{array}{ll} \frac{cos(\frac{N-1-2i}{2N}\pi )-cos(\frac{N-1-2i}{2}\pi )}{Nsin(\frac{N-1-2i}{2N}\pi )}& \text {for}\quad i=0,1,\ldots ,N-1\\ 0 & \text {for} \quad i=\frac{N-1}{2}\\ \end{array}\right. }. \end{aligned}$$
(4)

where \(n=(N-1)/2,\ldots , M-1-(N-1)/2\), and \(W_{N}[l](l=-(N-1)/2,\ldots ,(N-1)/2)\) is a moving window of odd length N. According to studies2,8, the length N is set to 44101.

Step E: Automatic extraction of \({ CS }_{1}\) and \({ CS }_{2}\)

The characteristics of \({ HS }_{\mathrm{STMHT}}\) considered in studies2,8, as shown in Fig. 3A, C, are summarized as follows: \({\textcircled {1}}\) The negative-to-positive (N2P) points of \({ HS }_{\mathrm{STMHT}}\), denoted by \({{\blacktriangle }}\), correspond to the geometry center peaks of \(S _{1}\) and \(S _{2}\); \({\textcircled {2}}\) The geometry center between \({ S }_{1}\) and \({ S }_{2}\), denoted by \({{\blacktriangledown }}\) is determined by the positive-to-negative P2N points of \(HS _{\mathrm{STMHT}}\). Moreover, the interval from \(S _{2}\) to \(S _{1}\) is generally greater than that from \(S _{1}\) to \(S _{2}\) in one period of an HS23,24,25. Therefore, the N2P and P2N-based \(CS _{1}\) and \(CS _{2}\) features can be automatically segmented from one period of an HS and extracted by two procedures, as described as follows.

(1):

\({\mathrm{N2P}}\) and \({\mathrm{P2N}}\) location

The algorithm for detecting \(\mathrm{N2P}\) and \(\mathrm{P2N}\) is detailed as follows.

  • \({\textcircled {{1}}}\) First, the signum function of \({ HS }_{\mathrm{STMHT}}\), denoted as \(S_{{ HS }_{\mathrm{STMHT}}}\), is calculated by

    $$\begin{aligned} S_{{ HS }_{\mathrm{STMHT}}}={\left\{ \begin{array}{ll} -1 & \text {if}\quad { HS }_{\mathrm{STMHT}}<0,\\ 0 & \text {if} \quad { HS }_{\mathrm{STMHT}}=0,\\ +1 & \text {if} \quad { HS }_{\mathrm{STMHT}}>0. \end{array}\right. } \end{aligned}$$
    (5)
  • \({\textcircled {{2}}}\) Then, the variation in \(S_{{ HS }_{\mathrm{STMHT}}}\) (\({ DS }_{{ HS }_{\mathrm{STMHT}}}\)) is determined from Eq. (6)

    $$\begin{aligned} { DS }_{{ HS }_{\mathrm{STMHT}}}[i]=S_{{ HS }_{\mathrm{STMHT}}}[i+1]-S_{{ HS }_{\mathrm{STMHT}}}[i], i=1,2,\ldots ,n. \end{aligned}$$
    (6)
  • \({\textcircled {{3}}}\) Finally, N2P and P2N are determined by

    $$\begin{aligned} {\left\{ \begin{array}{ll} {\mathrm{N2P}}=i/{F_{\mathrm{S}}} & \text {if}\quad { DS }_{{ HS }_{\mathrm{STMHT}}}[i]=+2\\ {\mathrm{P2N}}=i/{F_{\mathrm{S}}} & \text {if}\quad { DS }_{{ HS }_{\mathrm{STMHT}}}[i]=-2 \end{array}\right. } \end{aligned}$$
    (7)
(2):

Automatic extraction of \({ CS }_{1}\) and \({ CS }_{2}\)

  • \({\textcircled {{1}}}\) Calculate the difference between two adjacent N2Ps, denoted as \(D_{\mathrm{N2P}}\), with Eq. (8)

    $$\begin{aligned} D_{_\mathrm{N2P}}[i]={\mathrm{N2P}}[i+1]-{\mathrm{N2P}}[i], i=1,2,\ldots ,n. \end{aligned}$$
    (8)
  • \({\textcircled {{2}}}\) Determine the points \({CS}_{\mathrm{12}}\) and \({CS}_{\mathrm{21}}\) that are used for segmentation from \({ CS }_{1}\) to \({ CS }_{2}\) and from \({ CS }_{2}\) to \({ CS }_{1}\), respectively, by using Eq. (9).

    $$\begin{aligned} {\left\{ \begin{array}{ll} { CS }_{21}[i]={\mathrm{P2N}}[i], {\mathrm{CS}}_{12}[i]={\mathrm{P2N}}[i+1], & \text {if}\quad D_{_\mathrm{N2P}}[i]< D_{_\mathrm{N2P}}[i+1]\\ { CS }_{21}[i]={\mathrm{P2N}}[i+1], {\mathrm{CS}}_{12}[i]={\mathrm{P2N}}[i+2], & \text {Otherwise} \end{array}\right. }. \end{aligned}$$
    (9)
  • \({\textcircled {{3}}}\) Extract \(CS _{1}\) (denoted as \({{ CS }_{1}}_{i}\)) and \(CS _{2}\) (denoted as \({{ CS }_{2}}_{i}\)) for the ith period of an HS as follows

    $$\begin{aligned} {\left\{ \begin{array}{ll} {{ CS }_{1}}_{i}={ HS }_{\mathrm{T}}[{ CS }_{21_{i}}:{ CS }_{12_{i}}]\\ {{ CS }_{2}}_{i}={ HS }_{\mathrm{T}}[{ CS }_{12_{i}}:{ CS }_{21_{i+1}}] \end{array}\right. } \end{aligned}$$
    (10)

The automatic extraction procedures for \({ CS }_{1}\) and \({ CS }_{2}\) are illustrated in Fig. 3. Figure 3(A, B) show a typical AR sound, and the typical NM sound is shown in Fig. 3(C, D).

Figure 3
figure 3

The automatic extraction procedures for \({ CS }_{1}\) and \({ CS }_{2}\). A-B show the procedure for an example of a typical AR from the database in26. C-D show the procedure for an example of a typical normal sound database27.

Figure 4
figure 4

Example of feature definition and automatic extraction.

Stage 2: Automatic feature generation

Feature definition

To extract the efficient frequency widths, as shown in Fig. 4, the smooth envelopes for \({{CS}}_{1}\) and \({{CS}}_{2}\) in the frequency domain are firstly generated, and then the frequency widths corresponding to different Thv values are extracted.

(1):

Secondary envelopes \({{ CS }_{1}}_{ F _{\mathrm{E}}}\) and \({{ CS }_{2}}_{ F _{\mathrm{E}}}\) generation: Given an M-point HS, the secondary envelope in the frequency-domain, denoted as \({ HS }_{\mathrm{F}}\), can be calculated from Eq. (11):

$$\begin{aligned} { HS }_{ F _{\mathrm{E}}}[k]=\frac{\sum _{l_{1}}(L_{1}+L_{2}+1-|l_{1}|){ HS }_{{\mathrm{F}}}[k+l_{1}]-\sum _{l_{2}}{ HS }_{{\mathrm{F}}}[k+l_{2}]}{(2L_{1}+1)(2L_{2}+1)}, \end{aligned}$$
(11)

where \(l_{1}\), \(l_{2}\) and \({ HS }_{\mathrm{F}}[k]\) are defined by Eq. (12):

$$\begin{aligned} {\left\{ \begin{array}{ll} l_{1}=-(L_{1}+L_{2}),-(L_{1}+L_{2})+1,\ldots , (L_{1}+L_{2})\\ l_{2}=-(L_{1}-L_{2}-1),-(L_{1}-L_{2}-1)+1,\ldots , (L_{1}-L_{2}-1)\\ { HS }_{\mathrm{F}}[k]=\left| \sum _{m=0}^{\mathrm{M-1}}{ HS _{T}}[m+1]e^{(-j\frac{2\pi kl}{{\mathrm{M}}})}\right| , \quad k=0,1,2,\ldots ,M-1 \end{array}\right. }, \end{aligned}$$
(12)

\(|\cdot |\) is the absolute value sign, \(2L_{1}+1\) is the first window width, and \(2L_{2}+1\) is the second window width. According to studies9,28, \(L_{1}\) and \(L_{2}\) are set to 9 and 17, respectively. Moreover, \(HS _{{ F }_{\mathrm{E}}}\) is also normalized by setting the maximum amplitude of \(HS _{{ F }_{\mathrm{E}}}\) to 1. The secondary envelopes for \({ CS }_{1}\) and \({ CS }_{2}\), denoted as \({{ CS }_{1}}_{ F _{\mathrm{E}}}\) and \({{ CS }_{2}}_{ F _{\mathrm{E}}}\) respectively, are illustrated by using the examples described in Fig. 3 which are first automatically generated based on Eq. (11), are shown in Fig. 4, where the plots in Fig. 4A.2 describe the results of \({{ CS }_{1}}_{ F _{\mathrm{E}}}\) corresponding to \({ CS }_{1}\) in Fig. 4A.1, the plots in Fig. 4B.2 describe the results of \({{ CS }_{1}}_{ F _{\mathrm{E}}}\) which corresponds to \({ CS }_{1}\) in Fig. 4B.1, the plots in Fig. 4A.3 describe the results of \({{ CS }_{2}}_{ F _{\mathrm{E}}}\) corresponding to \({ CS }_{2}\) in Fig. 4A.1, and the plots in Fig. 4B.3 describe the results of \({{ CS }_{1}}_{ F _{\mathrm{E}}}\) which corresponds to \({ CS }_{2}\) in Fig. 4B.1.

(2):

Definition and automatic extraction of frequency features: The frequency features are illustrated in Fig. 4(B, C), and their gravities are calculated by

$$\begin{aligned} {\left\{ \begin{array}{ll} {{ CS }_{1}}_{{\mathrm{G}}}=\frac{\sum _{k=0}^{M-1}{k\times { CS _{1}}_{ F _{\mathrm{E}}}[k]}}{\sum _{k=0}^{M-1}{{ CS _{1}}_{ F _{\mathrm{E}}}[k]}}\\ {{ CS }_{2}}_{{\mathrm{G}}}=\frac{\sum _{k=0}^{M-1}{k\times { CS _{2}}_{ F _{\mathrm{E}}}[k]}}{\sum _{k=0}^{M-1}{{ CS _{2}}_{ F _{\mathrm{E}}}[k]}}\\ \end{array}\right. }, \end{aligned}$$
(13)

The frequency widths over a given threshold value are defined and calculated by

$$\begin{aligned} {\left\{ \begin{array}{ll} { CS _{1}}_{\mathrm{FWi}}={R_{p}}_{i}-{L_{p}}_{i}\\ { CS _{2}}_{\mathrm{FWi}}={R_{p}}_{i}-{L_{p}}_{i} \end{array}\right. }, i=1,2,3. \end{aligned}$$
(14)

where \({L_{p}}_{i}\) and \({R_{p}}_{i}\) are the \(i^{th}\) left and right intersections, respectively, of \({{ CS }_{1}}_{{ F }_{\mathrm{E}}}\) and \({{ CS }_{2}}_{{ F }_{\mathrm{E}}}\) over the \(Thv\) lines (\({ Thv }\)=0.3, 0.5 and 0.8). Moreover, the frequency features are expressed based on Eq. (15) and described in Table 1.

$$\begin{aligned} \mathrm{FF}=[{ CS _{1}}_{\mathrm{FW1}},{ CS _{1}}_{\mathrm{FW2}},{ CS _{1}}_{\mathrm{FW3}},{ CS _{1}}_{\mathrm{G}}, { CS _{2}}_{\mathrm{FW1}},{ CS _{2}}_{\mathrm{FW2}},{ CS _{2}}_{\mathrm{FW3}},{ CS _{2}}_{\mathrm{G}}] \end{aligned}$$
(15)
Table 1 Description of the frequency domain feature matrix \(\mathrm{FF}\).

Experimental results for several typical types of heart disease

The features \(\mathrm{FF}\) of six typical and normal sounds are illustrated in Fig. 5. From Fig. 5, \({ CS }_{1}\) and \({ CS }_{2}\) are first automatically located and extracted, then, the envelopes for every \({ CS }_{1}\) and \({ CS }_{2}\) are extracted by Eq. (11). Finally, the features defined by Eq. (15) for \({ CS }_{1}\) and \({ CS }_{2}\) in the frequency domain are automatically extracted with Eqs. (13-14). The experimental sounds are 665-period AR sounds (3M database29, medical sound library30, heart auscultation sounds31, auscultation sound32, continuing medical implementation26, sounds Database of the University of Dundee27, and patients only with AR disease from the Nanyang First People’s Hospital), 381-period AS sounds (continuing medical implementation26, sounds database of the University of Dundee27, 3M database29, medical sound library30, auscultation sound32, and patients only with AS disease from the Nanyang first People’s Hospital, and heart auscultation sounds31), 315-period ASD sounds (Medical sound library30, heart auscultation sounds31, 3M database29, patients only with ASD disease from the Nanyang First People’s Hospital, and medical sound library30), 769-period MR sounds (3M database29, sounds database of the University of Dundee27, heart auscultation sounds31, medical sound library30, and auscultation sound32), 439-period MS sounds(3M database29, auscultation sound32, medical sound library30, and continuing medical implementation26), and 1056-period NM sounds(3M database29, Michigan database33, medical sound library30, ThinkLabs database34, and healthy undergraduates from Nanyang Institute of Technology, China)(whom I thank for the data used in this study)). Moreover, the boxplots for the features are plotted in Fig. 6, where Fig. 6A shows the features extracted from \({ CS }_{1}\) and Fig. 6B shows the features from \({ CS }_{2}\) for each type of heart disease. The scatter plots of features in Fig. 6 illustrate the discrimination ability of the model in distinguishing among different heart diseases and highlighting the following findings: \({\textcircled {{1}}}\) The MS and VSD sounds are easy to distinguish from the other sounds by using \({{ CS }_{1}}_{\mathrm{FW1}}\) (Fig. 6A), and by using the \({{ CS }_{2}}_{\mathrm{FW1}}\) (Fig. 6B), the VSD sound is easy to distinguish from the other sounds; \({\textcircled {2}}\) The MS sound is easy to distinguish from the other sounds based on \({{ CS }_{1}}_{\mathrm{FW2}}\) (Fig. 6A), and by using the \({{ CS }_{2}}_{\mathrm{FW2}}\) (Fig. 6B), the AR and VSD sounds are distinguished from other sounds; \({\textcircled {3}}\) The NM sound is easy to distinguish from other sounds using \({{ CS }_{1}}_{\mathrm{FW3}}\) (Fig. 6A). \({\textcircled {4}}\) The AR and VSD sounds are easy to distinguish from the other sounds using \({{ CS }_{2}}_{\mathrm{FW3}}\), as shown in Fig. 6B; \({\textcircled {5}}\) Fig. 6A indicates that \({{ CS }_{1}}_{\mathrm{G}}\) can be used to easily distinguish MR from other sounds and the AS and ASD sounds from other sounds; \({\textcircled {6}}\) Fig. 6B shows that the distribution of \({{ CS }_{2}}_{\mathrm{G}}\) from AS sounds is different from that for other sounds, except NM sounds. The analysis results discussed above indicate that different combinations of several features defined by Eq. (15) can be used to distinguish among various types of heart disease. Therefore, to simplify features and develop a diagnostic method that is simple and effective, dimension reduction is used to determine new features; this process is described in detail as follows.

figure a
Figure 5
figure 5

Examples of a typical normal sound and six types of typical heart disease sounds.

Figure 6
figure 6

Box plot representation of FF for each type of heart disease. A shows the box plots for features from \({ CS }_{1}\). In addition, B represents the features from \({ CS }_{2}\).

Diagnostic feature determination

To simplify the computation when using features to diagnose heart diseases, PCA, a linear dimensionality reduction technique for finding principal components and replacing high-dimension data in many studies, such as studies on heart arrhythmias classification35, heart disease classification2,36, emotion recognition37, respiratory rate extraction38 and electrocardiogram heart disease diagnosis39, is employed to generate a few efficient principal components to characterize HS features and diagnose heart diseases. The algorithm corresponding to the generation of new features via PCA for a given data set FF is described as Algorithm 1. The eigenvector \(\xi _{i}\) in Algorithm 1 , which corresponds to the eigenvalue \(\lambda _{i}\) and is calculated for the matrix Z in step 2, as shown in Table 3, is the actual weighted coefficient for the ith principal component \(\gamma _{i}\). Table 3 shows that the largest absolute coefficients in the first principal component \(\gamma _{1}\) are \({{ CS }_{1}}_{\mathrm{FW1}}\), \({{ CS }_{2}}_{\mathrm{FW2}}\) and \({{ CS }_{1}}_{\mathrm{FW2}}\); the second principal component \(\gamma _{2}\) is mainly weighted based on \({{ CS }_{1}}_{\mathrm{G}}\), \({{ CS }_{2}}_{\mathrm{FW2}}\), \({{ CS }_{1}}_{\mathrm{FW1}}\) and \({{ CS }_{2}}_{\mathrm{FW3}}\); and the third component \(\gamma _{3}\) is mainly weighted based on \({{ CS }_{1}}_{\mathrm{FW2}}\), \({{ CS }_{1}}_{\mathrm{FW3}}\) and \({{ CS }_{2}}_{\mathrm{FW3}}\) (Table 3). To determine the smallest number of principal components m should be considered, the Pareto chart is used; this chart provides a tool for visualizing the Pareto principle, which states that observing a small set of variables that influence a common outcome is more common than detecting many variables that influence the same outcome. This approach has been used to determine the percent variability explained by each principal component (Fig. 7A). Therefore, according to the smallest m value such that \(\eta _{_\Sigma }(m)> 80\%\)40, combined with the scatter plot for the first m principal components, the smallest m is determined. The Pareto chart of the PCA results in Fig. 7A shows the explained variance and accumulated variance for each principal component \(\gamma _{i}\), where \(i=1, 2, \ldots , 8\). According to Fig. 7A, \(67.58\%\) of the total variance is captured by the first two components, \(\gamma _{1}\) and \(\gamma _{2}\), and \(86.73\%\) of the total variance is captured by the first three components \(\gamma _{1}\), \(\gamma _{2}\) and \(\gamma _{3}\). Therefore, the following conclusions can be obtained.

  • \(\gamma _{1}\) and \(\gamma _{2}\) lead to a dimensionality reduction of \(75\%\) (from 8 to 2 variables) and only \(32.42\%\) information loss. The scatter diagram of \(\gamma _{1}\) and \(\gamma _{2}\) given in Fig. 7B indicates that although the distribution region corresponding to each type of heart disease is obviously different and the overlaps between MR and other diseases, AR and other diseases, and VSD and other diseases are small, the overlaps among MS, ASD, NM, and AS are relatively large; therefore, it is difficult to accurately distinguish among these four types of heart diseases.

  • However, the scatter diagram of \(\gamma _{1}\), \(\gamma _{2}\) and \(\gamma _{3}\), plotted in Fig. 7C, shows that there are different distribution regions for these types of heart diseases. In addition, \(\eta _{\Sigma }(3)=86.73\%\), as shown in Fig. 7A, based on feature number determination40. Thus, \(\gamma _{1}\), \(\gamma _{2}\) and \(\gamma _{3}\) lead to a dimensionality reduction of \(62.5\%\) (from 8 to 3 variables) with only \(13.27\%\) information loss. The scatter diagram of \(\gamma _{1}\), \(\gamma _{2}\) and \(\gamma _{3}\) in Fig. 7C is used to verify the different distribution regions corresponding to these types of heart diseases.

Therefore, m is set to 3, and the new 3-dimensional feature matrices consisting of \(\gamma _{1}\), \(\gamma _{2}\) and \(\gamma _{3}\) (see Fig. 7C) are used to diagnose heart diseases.

Table 2 Mean (\(\mu _{_\mathrm{FF}}\)) and standard deviation (\(\sigma _{_\mathrm{FF}}\)) of the features.
Figure 7
figure 7

PCA results. A shows the Pareto chart of the variance by contribution of each principal component, B plots the scatter diagram of the first two components \(\gamma _{1}\) and \(\gamma _{2}\), and C shows the first three components \(\gamma _{1}\), \(\gamma _{2}\) and \(\gamma _{3}\).

Table 3 Eigenvector \(\xi _{i}\) and eigenvalue \(\lambda _{i} (i = 1,\ldots ,8)\) for \(\Sigma\) in descending order of eigenvalues.
Figure 8
figure 8

Flow chart of the diagnostic determination and 3-dimensional surface classifier results.

Stage 3: classification based on the squared Mahalanobis distance criterion

Classifier determination

The squared Mahalanobis distance classification criterion-based diagnostic methodology, consisting of the five sequential steps as shown in the flow chart (Fig. 8A), is proposed to diagnose HSs and is described in the following 5 steps.

Step 1: GMM-based \(\mu _{_k}\) and \(\Sigma _{_k}\) generation

In the design step of GMM, the estimated target function, \({f_{{ et}}(\mathbf{x}) }\), is a mixture of d-dimensional normal Gaussian distributions \({p({{\mathbf {x}}}|\mu _{_{k}},\Sigma _{_{k}})}\) that reflect the training pattern of each component; it is assumed that components can be modeled by mixtures of normal Gaussian distributions by

$$\begin{aligned} f_{{ et}}({\mathbf{x}})=\sum _{k=1}^{K}{\pi _{_{k}}p({\mathbf{x}}|\mu _{_{k}},\Sigma _{_{k}}),} \end{aligned}$$
(19)

where

$$\begin{aligned} p({\mathbf{x}})=\frac{1}{\sqrt{(2\pi )^{d}\mid \Sigma _{_{k}}\mid }}\exp ^{\left( -\frac{1}{2}({\mathbf{x}}-\mu _{_{k}})^{\mathrm{T}}\Sigma _{_{k}}^{-1}({\mathbf{x}}-\mu _{_{k}})\right) } \end{aligned}$$
(20)

expresses the posterior probabilities corresponding to each component; K is the number of components; \(\pi _{_{k}}\) corresponds to the mixed weights, such that \(\sum _{k=1}^{K}{\pi _{_{k}}}=1\); and \(\mu _{_{k}}\) and \(\Sigma _{_{k}}\) are the mean value and covariance matrix of the \(k^{\mathrm{th}}\) component, respectively. Because the goal is to maximize the function \(f_{{ et}}({\mathbf{x }})\), the parameters (\(\pi _{_k}\), \(\mu _{_k}\), and \(\Sigma _{_k}\)) are determined based on the EM algorithm41 for a set of sample records. Based on the types of heart disease described in Sect. 2.2 and the scatter diagram plotted in Fig. 7C, the number of Gaussian mixture components is set to \(K=7\), and the fitgmdist function in MATLAB 2018b is used to return a GMM with \(K=7\) components fitted to the features \([\gamma _{_{1}}, \gamma _{_{2}}, \gamma _{_{3}}]\) established in Sect. 2.2 using the EM algorithm by assigning a posterior probability to each component density with respect to each observation. Furthermore, the regularization value is set as 0.01 to avoid ill-conditioned covariance estimates, and the number of optimization iterations is set to 1000 based on experience. The Gaussian mixture parameter estimates for \(\pi _{_{k}}, \mu _{_{k}}\) and \(\Sigma _{_{k}}\) are obtained and shown in Table 4. To characterize the 3-dimensional interspace corresponding to each 3-dimensional Gaussian component for diagnosing heart diseases, the 3-dimensional interspaces can be used as 3-dimensional classifiers to diagnose heart diseases with high classification accuracy; the overlapping interspace between two random components is made as small as possible, and the independent 3-dimensional interspace corresponding to each component is considered.

Table 4 The Gaussian mixture parameter estimates are achieved for the new features \([\gamma _{_{1}}, \gamma _{_{2}}, \gamma _{_{3}}]\) by setting the number of Gaussian mixture components as 7.

Step 2: \(\chi _{_3}^{2}\) determination for the \(k^{\mathrm{th}}\) component in 3-dimensional interspace

Since the squared Mahalanobis distances for each Gaussian component follow the Chi-square distribution (\(\chi _{3}^{2}\)) in 3-dimensional interspace, to determine the decision region for classifying the test data x via the components estimated in the above step, the squared Mahalanobis distance in 3-dimensional interspace for the \(k^{\mathrm{th}}\) component with mean \(\mu _{_{k}}\) and full covariance matrix \(\Sigma _{_{k}}\), \(d_{_3}^2({\mathbf{x}}| \mu _{_{k}}, \Sigma _{_{k}})\), is computed as follows:

$$\begin{aligned} d_{_3}^{2}({\mathbf{x}}| \mu _{_{k}}, \Sigma _{_{k}})=({\mathbf{x}}-\mu _{_{k}})^{\mathrm{T}}\Sigma _{_{k}}^{-1}({\mathbf{x}}-\mu _{_{k}}) . \end{aligned}$$
(21)

Therefore, \(\chi _{3}^{2}\), which is constructed based on component k and denoted as \(\chi _{3}^{2}(\mu _{_{k}}, \Sigma _{_{k}})\), is determined by

$$\begin{aligned} d_{3}^{2}({\mathbf{x}}| \mu _{_{k}}, \Sigma _{_{k}})\sim \chi _{3}^{2}(\mu _{_k},\Sigma _{_{k}}). \end{aligned}$$
(22)

Therefore, the squared Mahalanobis distance \(d_{3}^{2}({\mathbf{x}}| \mu _{_{k}}, \Sigma _{_{k}})\) specified based on the desired confidence level, denoted as \(\beta _{_k}\), can be used as the kth classifier criterion for determining whether feature x belongs to the kth class.

Figure 9
figure 9

The achieved accuracies corresponding to classifying the heart sounds described in Sect. 2.2 by setting \(\beta\) form 0.63 to 0.97 with a step of 0.02.

Step 3: The \(k^{\mathrm{th}}\) confidence level \((\beta _{_k})\) determination

Actually, the kth confidence region, as specified by the kth desired confidence level \(\beta _{_{k}}\), is surrounded by the kth ellipsoid, and this relation is expressed as

$$\begin{aligned} d_{3}^{2}({\mathbf{x}}| \mu _{_{k}}, \Sigma _{_{k}})\le {\mathrm{MDC}}_{_k}={{{\chi ^{2}}}_{3,\beta _{_{k}}}}, \end{aligned}$$
(23)

where \({{\chi }^{2}_{3, \beta _{_{k}}}}\) is the inverse of \(\chi _{3}^{2}\) for a given confidence level \(\beta _{_k}\), and \({\mathrm{MDC}}_{{k}}\) represents the classification criterion for component k and satisfies the following equation

$$\begin{aligned} \chi ^{2}\big (d_{\mathrm{3}}^{2}({\mathbf{x}}| \mu _{_{k}}, \Sigma _{_{k}})={\mathrm{MDC}}_{_k}\big |\mu _{_{k}},\Sigma _{_k}\big )=\beta _{_{k}} \end{aligned}$$
(24)

For the \(\chi _{3}^{2}\) distribution, although the confidence regions corresponding to the confidence levels of \(68.3\%\), \(95\%\), and \(97.5\%\) are widely used classification criteria in many studies2,42,43,44,45, the optional \(\beta _{_k}\) is identified by setting \(\beta _{k}\in [63:2:97]\%\) combined with the following rules: 1) each ellipsoid should be as large as possible; 2) each common region should be as small as possible; and 3) the classification accuracy defined in Eq. (26) should be as high as possible. The classification accuracies for classifying sound data summarized in Sect. 2.2 are plotted in Figs. 9, and 9 shows the following results: \({\textcircled {1}}\) For VSD sounds, high accuracy can be achieved by setting the desired confidence level \(\beta\) to each value within the interval of (\(0.71<\beta <0.89\)), as shown in Fig. 9(VSD); \({\textcircled {2}}\) For AR and MR sounds, by setting the desired confidence level \(\beta\) based on \(\beta \in [0.69,0.81]\), high classification accuracy could be achieved (Fig. 9(MR and AR) ); \({\textcircled {3}}\) For MS, AS and NM sounds, to achieve the accurate classification of HSs, the interval of the desired confidence level \(\beta\) should be set as [0.63, 0.65] (Fig. 9); \({\textcircled {4}}\) For ASD sounds, Fig. 9(ASD) shows that the highest classification accuracy is achieved by setting the desired confidence level to \(\beta \in [0.63, 0.69]\). Furthermore, the desired confidence level \(\beta\) can be adjusted to improve the classification accuracy and fit new datasets without reperforming the computations for the objective function, especially for VSD sounds and MR sounds (Fig. 9(VSD and MR)). In this study, according to the rules described above combined with the accuracy analysis results plotted in Fig. 9, the \(\beta _{k}(k=1, \ldots , 7)\) values are set as 0.87, 0.65, 0.67, 0.65, 0.67, 0.79 and 0.87, respectively.

Step 4: \({\mathrm{MDC}}_{_k}\) determination corresponding to \(\beta _{_k}\)

Based on the \(k^{\mathrm{th}}\) confidence level achieved for \(\beta _{_k}\) in the above step, by using the function ’chi2inv’ in MATLAB 2018b, the inverse of \(\chi ^{2}_{_{3,\beta {_{_k}}}}\), denoted as \({\mathrm{MDC}}_{_k}= {\chi ^{2}}_{{3,\beta _{_{k}}}}\), is determined. The analysis results for the \(k^{\mathrm{th}}\) confidence region in the 3-dimensional interspace, which is surrounded by the \(k^{\mathrm{th}}\) ellipsoid corresponding to the \(k^{\mathrm{th}}\) desired confidence level \(\beta _{_{k}}\) , are determined and shown in Fig. 8B. Furthermore, Fig. 8B shows that the common regions between two random ellipsoids are almost zero; thus, a faulty decision process is avoided because the input will not fall into two or more categories.

Step 5: \(\mathrm{MDC}_{_k}\)-based diagnostic result determination

Based on the ellipsoid surfaces region shown in Fig. 8B, the diagnosis method is described as follows.

  • \({\textcircled {{1}}}\) The 3-dimensional diagnostic features [\(\gamma _{1}\), \(\gamma _{2}\), \(\gamma _{3}\)] are first transformed from the features FF (denoted as \({\mathrm{FF}_{s}}\)) of the testing sample and calculated with the following equation

    $$\begin{aligned} \gamma _{i}=\frac{{\mathrm{FF}}_{s}-\mu _{_\mathrm{FF}}}{\sigma _{_\mathrm{FF}}}\times \xi _{i}, i=1,2,3 \end{aligned}$$
    (25)

    where \(\mu _{_\mathrm{FF}}\) and \(\sigma _{_\mathrm{FF}}\) are shown in Table 2.

  • \({\textcircled {{2}}}\) Then, according to the confidence region shown in Fig. 8B, the \(\mathrm{MDC}_{_k}\)-based diagnostic result for a test features \(\mathbf{x }=[\gamma _{_1}, \gamma _{_2}, \gamma _{_{3}}]\) is determined.

  • \({\textcircled {{3}}}\) \(\mathrm{MDC}_{_k}\)-based diagnostic results for a test feature \({\mathbf{x }}=[\gamma _{_1}, \gamma _{_2}, \gamma _{_{3}}]\) are determined by

    $$\begin{aligned} {\left\{ \begin{array}{ll} {\text {Class }}k, d_{3}^{2}(\mathbf{x}| \mu _{_{k}}, \Sigma _{_{k}})\le {\mathrm{MDC}}_{_{k}} \\ \text {Unknown class}, \quad \quad \text {otherwise} \end{array}\right. }, \end{aligned}$$
    (26)

    where class k corresponding to the type of heart disease is detailed in Table 4, and \({\mathrm{MDC}}_{_{k}}\) (1, 2, \(\ldots\), 7) is 5.6489, 3.2831, 3.4297, 3.2831, 3.4297, 4.5258 and 5.6489.

Performance evaluation criteria

To evaluate the performance of these ellipsoids in 3-dimensional space, the classification accuracy (\(CA\)), sensitivity (\(Se\)) and specificity (\(Sp\)) values are calculated by

$$\begin{aligned} {\left\{ \begin{array}{ll} { CA }(\%)&=\frac{{\mathrm{TP}}+{\mathrm{TN}}}{\mathrm{TP+FP+FN+TN}}\times 100 \\ { Se }(\%)&=\frac{\mathrm{TP}}{\mathrm{TP+FN}}\times 100\\ { Sp }(\%)&=\frac{\mathrm{TN}}{\mathrm{FP+TN}}\times 100 \end{array}\right. }, \end{aligned}$$
(27)

where \(\mathrm{TP}\), \(\mathrm{FP}\), \(\mathrm{TN}\) and \(\mathrm{FN}\) are the numbers of true positives, false positives, true negatives and false negatives, respectively.

Table 5 Experimental sounds used to evaluate the performance.

Performance evaluation

To evaluate the performance of the proposed methodology, the comparison between the proposed methodology and the state-of-the-art methods on the clinical sounds and online sounds data was conducted as follows.

  • \(\bullet\) Total sounds: The total sounds, consisting of sounds described in Sect. 2.2 and new sounds, were summarized in Table 5 to evaluate the performance of this proposed methodology.

  • \(\bullet\) State-of-the-art methods: To highlight the efficiency of the proposed methodology for diagnosing the seven typical heart diseases, the state-of-the-art methods, published in recent five years and described in Table 6, were comparatively analyzed.

  • \(\bullet\) Comparsion results: The comparison results were summarized in Table 7, where the parameters corresponding to the state-of-the-art methods were described in Table 8. The results in Table 7 support the following conclusions.

  • \(\bullet\) Although using the method \(\#1\) to diagnose AS yielded a higher \({ Sp }\) than that of the proposed method, the \({ CA }\) was lower than that of the proposed method, partially due to the high \({ Se }\) achieved by the proposed method.

  • \(\bullet\) Although using the method \(\#3\) to diagnose MS yielded a higher \({ Sp }\) than that of the proposed method, the \({ CA }\) was lower than that of the proposed method, partially due to the high \({ Se }\) achieved by the proposed method.

  • \(\bullet\) Although using the method \(\#5\) to diagnose NM yielded a higher \({ Sp }\) than that of the proposed method, the \({ CA }\) was lower than that of the proposed method, partially due to the high \({ Se }\) achieved by the proposed method.

  • \(\bullet\) For other sounds, the classification accuracies achieved in the proposed method were all greater than those of the other methods listed in Table 7 .

Overall, the efficiency of the proposed method in diagnosing MR, MS, ASD, NM, AS, AR and VSD diseases was evaluated by comparison with the other efficient methods listed in Table 7.

Table 6 Efficient methods successfully used in diagnosing normal sounds from other common heart diseases.
Table 7 Comparative analysis of eight different methods for the diagnosis of heart diseases summarized in Table 5.
Table 8 The highest accuracies corresponding to the parameters set in every state-of-the-art method.

Conclusion

A novel intelligent system was proposed for diagnosing heart diseases with high \(CA\). The innovation of this approach is primarily reflected in: 1) the automatic extraction of secondary envelope-based frequency features; 2) the automatic determination of PCA-based diagnostic features \(\gamma _{_1}\), \(\gamma _{_2}\) and \(\gamma _{_3}\); and 3) the determination of adjustable confidence regions corresponding to the \(\chi ^{2}\) distribution. The confidence regions are obtained by calculating the Mahalanobis distance, which is adjusted by the desired confidence level \(\beta\), and the results were used as the classification criteria for diagnosing heart diseases. The procedure for the implementation of the intelligent system involved three stages. Stage 1 described the location and extraction of STMHT-based \({ CS }_{1}\) and \({ CS }_{2}\). In stage 2, in the frequency domain, a novel method was first proposed to generate the envelopes \({ CS _{1}}_{\mathrm{F_{E}}}\) and \({ CS _{2}}_{\mathrm{F_{E}}}\); then, based on the \(Thv\) lines, \(\mathrm{FF}\) was automatically extracted. Finally, based on PCA, the first three principal components, \(\gamma _{1}\), \(\gamma _{2}\) and \(\gamma _{3}\), which expressed \(86.7\%\) of the \(\mathrm{FF}\) information, were determined and used as diagnostic features. In stage 3, the GMM-based objective function \(f_{ et }({\mathbf{x }})\) with respect to the features \({\mathbf{x}}=[\gamma _{1}, \gamma _{2}, \gamma _{3}]\) and the parameters [\(\pi _{k}\), \(\mu _{k}\), \(\Sigma _{k}\)], where \(k=1, 2, \ldots , K\), was generated. Then, the \(\chi ^{2}\) distribution for component k was determined by calculating the Mahalanobis distance from \({\mathbf{x }}\) to the class mean \(\mu _{_k}\) of component k, and the confidence region for component k was determined by adjusting the optimal confidence level \(\beta _{k}\) and used as the criterion (denoted as \({\mathrm{MDC}}_{k}\)) to diagnose a given HS. The performance evaluation was validated by sounds from online HS databases and clinical heart databases. The accuracy of the proposed method was compared to the accuracies of other well-known classifiers, and the highest classification accuracies of \(99.43\%\), \(98.93\%\), \(99.13\%\), \(99.85\%\), \(98.62\%\), 99.67\(\%\) and 99.91\(\%\) in the detection of MR, MS, ASD, NM, AS, AR and VSD sounds were achieved by setting \(\beta _{k}(k=1, 2, \ldots , 7)\) to 0.87,0.65,0.67,0.65,0.67,0.79 and 0.87, respectively. Therefore, this proposed intelligent diagnosis system provided an efficient way to diagnose seven types of heart diseases.

The advantages and limitations were summarized as follows:

\(\bullet\) Advantages: \({\textcircled {1}}\) \({CS}_{1}\) and \({CS}_{2}\) were automatically extracted to reduce difficulty in segmenting each cardiac cycle into a sequence of four heart stages: \({ S }_{1}\longrightarrow\) Systole period \(\longrightarrow { S }_{2}\longrightarrow\) Diastole period; \({\textcircled {2}}\) More features could be extended by setting even more threshold values for the unknown heart diseases, especially for the heart sound with the compound heart diseases; \({\textcircled {3}}\) Every classifier achieved in this study could be adjusted based on the desired \(\beta\) for fitting incremental new features without being retrained via huge training features.

\(\bullet\) Limitations: \({\textcircled {1}}\) This methodology was impossible to diagnose the sounds when \({ CS }_{1}\) and \({ CS }_{2}\) cannot be segmented and extracted via the STMHT method for a given heart sound such as that plotted in Fig. 10; \({\textcircled {2}}\) The proposed classifier might not be satisfied with the compound heart diseases due to the distribution of features extracted from which can not fit a single Gaussian distribution.

Figure 10
figure 10

An example of a AR sound from database26.

Future study

Future study focused on how to handle the sounds (such as some AR sounds) when \({ CS }_{1}\) and \({ CS }_{2}\) cannot be segmented and extracted via the STMHT method will be explored, and on how to build the classifier model for fitting the compound heart diseases will be further studied.

Research statement

The study was conducted at Nanyang Institute of Technology and Nanyang First People’s Hospital, Henan, China from December 2017 to June 2021, and was approved by the ethics committee of Nanyang Institute of Technology and First People’s Hospital (Approval Number: V6.0). Informed consent was waived due to the retrospective design of the study. The study complies with the Declaration of Helsinki.