๐Ÿซ€ AI-Powered Heart Murmur Detection System

An end-to-end AI-powered heart sound classification system that uses audio signal processing, MFCC feature extraction, and an LSTM deep learning model to analyze heart sound recordings and classify them into target categories.

โš ๏ธ Medical Disclaimer: This project is for educational and research purposes only. It is not a medical device and should not be used for clinical diagnosis or treatment decisions.

๐Ÿš€ Key Features

  • ๐ŸŽง Heart sound audio classification
  • ๐Ÿ“Š MFCC feature extraction
  • ๐Ÿง  LSTM deep learning model
  • ๐Ÿ”Š Audio preprocessing and normalization
  • โฑ๏ธ Up to 10-second audio clips
  • ๐ŸŒ Streamlit deployment
  • ๐Ÿค— Hugging Face model hosting

๐Ÿ–ผ๏ธ Project Preview

AI-Powered Heart Murmur Detection System

๐Ÿ—๏ธ System Architecture

System Architecture

๐Ÿง  Model Architecture

Heart Sound Audio
       โ†“
Audio Preprocessing
       โ†“
Resampling & Normalization
       โ†“
MFCC Feature Extraction
       โ†“
LSTM Deep Learning Model
       โ†“
Classification
       โ†“
Prediction + Confidence

๐Ÿ“‹ Model Details

Parameter Details
Task Audio Classification
Architecture LSTM
Features MFCC
Sample Rate 22,050 Hz
Maximum Duration 10 seconds
Framework TensorFlow / Keras
Audio Processing Librosa

๐ŸŽง Preprocessing

  1. Load heart sound audio.
  2. Resample to 22,050 Hz.
  3. Normalize the audio.
  4. Standardize the clip duration.
  5. Extract MFCC features.
  6. Pass the feature sequence to the LSTM model.

Important: Inference must use the same preprocessing and feature-extraction pipeline used during training.

๐Ÿ“ค Output

The model produces a predicted class and confidence score:

Prediction: <CLASS_NAME>
Confidence: <VALUE>

Confidence should not be interpreted as medical certainty.

๐Ÿ’ป Run Locally

git clone https://github.com/mdzaheerjk/AI-Powered-Heart-Murmur-Detection-System.git

cd AI-Powered-Heart-Murmur-Detection-System

pip install -r requirements.txt

streamlit run app.py

๐ŸŒ Live Demo

๐Ÿš€ Streamlit App: https://ai-powered-heart-murmur-detection--system.streamlit.app/

๐Ÿ› ๏ธ Tech Stack

Python โ€ข TensorFlow โ€ข Keras โ€ข Librosa โ€ข NumPy โ€ข Pandas โ€ข Matplotlib โ€ข Streamlit

โš ๏ธ Limitations

Model performance can be affected by:

  • Audio quality and background noise
  • Recording devices
  • Dataset size and diversity
  • Class imbalance
  • Differences between training and real-world data

This model has not been clinically validated and should not be used as a standalone diagnostic system.

๐Ÿ”ฎ Future Improvements

  • CNN + LSTM hybrid architecture
  • Transformer-based audio models
  • Larger and more diverse datasets
  • Audio augmentation
  • Explainable AI
  • Cross-dataset evaluation
  • Model optimization
  • Clinical validation

๐Ÿ‘จโ€๐Ÿ’ป Author

Md Zaheer JK

AI/ML โ€ข Deep Learning โ€ข Generative AI โ€ข NLP โ€ข Computer Vision โ€ข MLOps

๐Ÿ”— GitHub: https://github.com/mdzaheerjk ๐Ÿค— Hugging Face: https://huggingface.co/zaheerjk

๐Ÿ“œ License

MIT License.


๐Ÿซ€ Turning Heart Sounds into Machine Learning Insights

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support