RESEARCH PROJECT 2025 · Engineering Applications of Artificial Intelligence, 161, 112280

Artificial Intelligence-Based Phonocardiogram Signal Classification Using Segment-Specific Multi-Domain Features for Cardiovascular and Arterial Disease

Syeda Sana Bukhari, Shahab U. Ansari, Khurram Khan Jadoon and Raja Hashim Ali

Abstract

Heart disease is the leading cause of death worldwide, and early diagnosis can save lives. The sounds a heart makes reflect how its valves and chambers are working, and extra sounds called murmurs often point to a problem. A phonocardiogram (PCG), the digital recording of these sounds, is a quick, simple and affordable way to look for such conditions.

The public PhysioNet/2016 dataset contains annotated heart sound recordings covering nine classes of heart disease, yet it has mostly been used to tell normal from abnormal. Separating all nine classes is hard because some conditions sound alike and the signals vary a lot. This work splits each recording into its heart sound segments, extracts features from each segment across six domains, and compares several machine learning classifiers. The Random Forest classifier performed best. On the test data, it reached 94% accuracy, 93% sensitivity and 93% specificity for normal versus abnormal, and 89% accuracy, 80% sensitivity and 98% specificity for the nine-class problem, which includes both valve diseases and artery-related conditions.

Application of artificial intelligence Biomedical signal processing Machine learning classification Segmentation of phonocardiogram Wavelet decomposition Diagnosis of heart disease

Introduction

Heart disease is the main cause of death around the world, and many cases come from faulty heart valves or diseased arteries. A healthy heart makes a regular “lub-dub” sound as its valves open and close. The first sound is called S1, the second is S2, and the time between S1 and S2 is the systole. When a valve does not close or open properly, extra sounds called murmurs appear.

Listening to the heart with a stethoscope is the cheapest way to examine it, and a digital stethoscope can save the sound as a PCG signal. Doctors judge these sounds by experience, which leaves room for human error, so computer systems that assist them can help to find problems earlier. Earlier studies on PCG classification mostly separated normal from abnormal, or used at most six classes. They also usually extracted features from the whole recording, without splitting it into the regions that doctors actually listen to.

This study classifies PCG signals into nine classes that include murmur types, pathologic recordings and artery disease. The recording is first cleaned and split into its S1, S2, systole and diastole segments, in a similar way to how a physician listens. Features are then taken from each segment, and several classifiers are compared. What is new in this work:

Proposed Method

The work uses the PhysioNet/2016 Challenge dataset, which has nine classes. Because this dataset is unbalanced, it was balanced by data augmentation. The nine classes are:

The system works in five steps, shown in Figure 1. First, the heart sound is recorded from a patient with a digital stethoscope. Second, the raw PCG signal is prepared by scaling and normalizing it and then removing noise with wavelet denoising. Third, the signal is split into its S1, S2, systole and diastole segments. Fourth, 35 features are extracted from the segments across six domains: frequency (6 features), time (13), energy (6), spectrum (5), wavelet (4) and signal processing (1). Fifth, a Random Forest classifier uses these features to assign one of the nine classes. The same model was also used for the simpler task of normal versus abnormal.

Workflow from the patient's heart sound through pre-processing, segmentation and feature extraction to the Random Forest classifier and nine classes
Figure 1. Workflow of the proposed system, from the recorded heart sound to the nine-class result.

Results and Discussion

The model was tested on 4,093 PCG recordings. Wavelet decomposition removed noise from the signals effectively. The new segmentation method was also compared with a Gaussian Mixture Model, and its average systolic and diastolic durations were closer to the values reported in medical studies.

Several classifiers were compared on the same features, and the Random Forest performed best, so it was used in the final model. It reached 100% accuracy on the training data. On the test data, it achieved 94% accuracy, 93% sensitivity and 93% specificity for normal versus abnormal. For the nine-class problem, it achieved 89% accuracy, 80% sensitivity and 98% specificity.

Conclusions

This study built a framework for classifying heart sounds from the PhysioNet/2016 dataset. By taking features from each segment of the signal across six domains, the model captured the important characteristics of the heart sound, and the segmentation separated the key parts of the signal successfully. The unbalanced dataset was balanced through augmentation.

In the future, the authors plan to extend the system to more diagnoses, such as early detection of atrial septal defect, and to improve the segmentation so that it handles irregular heartbeats and arrhythmias better. They also plan to offer the model to clinicians as a web application running on a cloud server, to help them assess heart conditions.

Author Contributions

S.S.B. wrote the original draft and carried out the methodology, investigation, validation and formal analysis. S.U.A. contributed to conceptualization, supervision, project administration and validation, and reviewed and edited the manuscript. K.K.J. contributed to conceptualization, supervision and validation. R.H.A. contributed to conceptualization, supervision and validation, and reviewed and edited the manuscript.

Funding

Acknowledgments

The authors thank the AIM Lab at the Ghulam Ishaq Khan Institute of Engineering Sciences and Technology for supporting this research.

Competing Interests

The authors declare no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.