π An interactive web application for predicting 10-year coronary heart disease (CHD) risk using machine learning.
- π 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
Visit our live demo: Heart Disease Predictor App
- Clone the repository
git clone https://github.com/yourusername/heart-disease-predictor.git
cd heart-disease-predictor
- Create a virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies
pip install -r requirements.txt
- Run the app
streamlit run app.py
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
Metric | Score |
---|---|
Accuracy | 85% |
ROC AUC | 0.75 |
Precision | 0.82 |
Recall | 0.71 |
![]() |
![]() |
![]() |
The Framingham Heart Study dataset includes:
- π₯ 4,240 patient records
- β³ 10-year follow-up period
- π 15+ health parameters
- π― Binary classification task
- Age
- Blood Pressure
- Cholesterol Levels
- Smoking Status
- BMI
- Heart Rate
- Glucose Levels
- And more...
- Navigate to the "Risk Prediction" page
- Enter your health information
- Click "Predict Risk"
- Get instant results and recommendations
- Explore data insights and model performance
This tool is for educational purposes only and should not replace professional medical advice. Always consult with healthcare providers for medical decisions.
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.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Your Name - GitHub Profile
- Framingham Heart Study for the dataset
- Streamlit team for the amazing framework
- All contributors and users of this application
For questions and feedback:
- π§ Email: [email protected]
- π¦ Twitter: @yourusername
- πΌ LinkedIn: Your Name
Made with β€οΈ for better heart health
Β© 2024 Heart Disease Risk Predictor