Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Identifying Abnormalities in Heart Sound data using Machine Learning
Blekinge Institute of Technology, Faculty of Computing, Department of Computer Science.
Blekinge Institute of Technology, Faculty of Computing, Department of Computer Science.
2025 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesis
Abstract [en]

Introduction: This thesis explores the use of machine learning to automatically detect abnormalities in heart sounds, known as phonocardiograms (PCGs). These sounds, recorded using digital stethoscopes, carry vital information about the mechanical function of the heart. The main objective of this work is to develop an accurate and interpretable system that supports early diagnosis of heart conditions in a practical and clinically relevant way.

Related Work: Previous studies have used both traditional machine learning and deep learning for heart sound classification. Traditional models often relied on basic features like zero-crossing rate or spectral centroid, but lacked clinical relevance. Deep learning models improved accuracy but acted as black boxes, offering limited interpretability. Most prior work did not incorporate explainability, which is essential in medical contexts. This thesis addresses these gaps by comparing a feature-based method with a deep learning baseline, focusing on transparency and clinical usefulness.

Method: Two approaches were implemented and evaluated. First, a one-dimensional convolutional neural network (ID CNN) was used as a pilot study to assess classification performance and examine the limitations of black-box models. Although Grad-CAM was used to highlight signal regions influencing predictions, the specific clinical relevance such as which features made the model label a heart sound as abnormal remained unclear. To address this, a second, feature-based pipeline was developed. It involved signal denoising, S1/S2 detection, and extraction of clinically relevant features like heart rate, cardiac cycle duration, MFCCs, entropy, and energy. These features were used to train interpretable models including Random Forest, SVM, and XGBoost. LIME was then applied to visualize how each feature influenced the prediction, making it possible to understand what aspect of the heart sound such as frequency patterns in MFCCs or timing irregularities may be contributing to an abnormal classification. All experiments used 3,240 PCG recordings from the PhysioNet database.

Results and Analysis: Both approaches successfully classified heart sounds as normal or abnormal. However, the feature-based models offered more transparent reasoning be hind their decisions. With LIME, it became pogible to see which clinically relevant features such as changes in MFCCs or heart rate variability were contributing to a specific prediction, helping us understand what aspect of the heart sound indicated an abnormality.

Discussion: This study shows that combining clinical signal features with interpretable machine learning models results in systems that are not only accurate but also understandable and practical for clinical use. It also reveals that while deep learning models like ID CNNs can achieve good accuracy, they lack the transparency needed for medical decision-making unless paired with effective explainability tools.

Conclusion: By focusing on explainable classification of PCG recordings, this thesis contributes toward building machine learning systems that support early detection of heart abnormalities in a way that clinicians can trust and act upon with confidence.

Place, publisher, year, edition, pages
2025. , p. 71
Keywords [en]
Heart sound classification, Phonocardiogram (PCG), Machine Learning, 1D CNN, LIME, Explainability
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:bth-28280OAI: oai:DiVA.org:bth-28280DiVA, id: diva2:1980582
Subject / course
DV1478 Bachelor Thesis in Computer Science
Educational program
DVGDT Bachelor Qualification Plan in Computer Science 60.0 hp
Supervisors
Examiners
Available from: 2025-07-03 Created: 2025-07-02 Last updated: 2025-09-30Bibliographically approved

Open Access in DiVA

Thesis_Report(5622 kB)882 downloads
File information
File name FULLTEXT01.pdfFile size 5622 kBChecksum SHA-512
88511f96b39bf3544f1ba300f5eacdb176a296d5c77985e957100af0973bc979f27717d6cf9d004855259f221377ed1a4a03240941d610b4872923c80e840cd2
Type fulltextMimetype application/pdf

By organisation
Department of Computer Science
Computer and Information Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 883 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 265 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf