Skip to content

This interactive application helps you understand and predict your 10-year risk of coronary heart disease (CHD) using advanced machine learning techniques. Let's embark on a journey to better heart health! πŸš€

Notifications You must be signed in to change notification settings

apih99/HeartDiseasePrediction

Repository files navigation

❀️ Heart Disease Risk Prediction App

Streamlit App Python 3.8+ License: MIT Code style: black

πŸš€ An interactive web application for predicting 10-year coronary heart disease (CHD) risk using machine learning.

App Demo

✨ Features

  • πŸ” Personalized Risk Assessment: Get instant predictions for your 10-year CHD risk
  • πŸ“Š Interactive Data Visualization: Explore risk factors through dynamic charts
  • πŸ€– AI-Powered Analysis: Utilizing Random Forest algorithm with 85% accuracy
  • πŸ“± User-Friendly Interface: Clean, intuitive design for easy navigation
  • πŸ“ˆ Real-time Insights: Immediate feedback and recommendations

🎯 Quick Start

🌐 Online Demo

Visit our live demo: Heart Disease Predictor App

πŸ’» Local Installation

  1. Clone the repository
git clone https://github.com/yourusername/heart-disease-predictor.git
cd heart-disease-predictor
  1. Create a virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies
pip install -r requirements.txt
  1. Run the app
streamlit run app.py

πŸ“Š Project Structure

heart-disease-predictor/
β”œβ”€β”€ app.py                     # Main Streamlit application
β”œβ”€β”€ model_development.py       # Model training script
β”œβ”€β”€ exploratory_analysis.py    # Data analysis script
β”œβ”€β”€ requirements.txt           # Project dependencies
β”œβ”€β”€ framingham.csv            # Dataset
β”œβ”€β”€ heart_disease_model_pipeline.joblib  # Trained model
└── README.md                 # Project documentation

πŸ”¬ Model Performance

Metric Score
Accuracy 85%
ROC AUC 0.75
Precision 0.82
Recall 0.71

πŸ“± App Screenshots

Home Page Prediction Page Analysis Page

πŸ› οΈ Technologies Used

  • Python Python 3.8+
  • Streamlit Streamlit
  • scikit-learn scikit-learn
  • Pandas Pandas
  • Plotly Plotly

πŸ“– Dataset

The Framingham Heart Study dataset includes:

  • πŸ₯ 4,240 patient records
  • ⏳ 10-year follow-up period
  • πŸ“ˆ 15+ health parameters
  • 🎯 Binary classification task

πŸš€ Features Used in Prediction

  1. Age
  2. Blood Pressure
  3. Cholesterol Levels
  4. Smoking Status
  5. BMI
  6. Heart Rate
  7. Glucose Levels
  8. And more...

πŸ’‘ How to Use

  1. Navigate to the "Risk Prediction" page
  2. Enter your health information
  3. Click "Predict Risk"
  4. Get instant results and recommendations
  5. Explore data insights and model performance

⚠️ Medical Disclaimer

This tool is for educational purposes only and should not replace professional medical advice. Always consult with healthcare providers for medical decisions.

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ‘₯ Authors

πŸ™ Acknowledgments

  • Framingham Heart Study for the dataset
  • Streamlit team for the amazing framework
  • All contributors and users of this application

πŸ“¬ Contact

For questions and feedback:


Made with ❀️ for better heart health
Β© 2024 Heart Disease Risk Predictor

About

This interactive application helps you understand and predict your 10-year risk of coronary heart disease (CHD) using advanced machine learning techniques. Let's embark on a journey to better heart health! πŸš€

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages