Spaces:
Sleeping
Sleeping
File size: 2,275 Bytes
535410e 55fb1d9 535410e 55fb1d9 535410e 55fb1d9 535410e 55fb1d9 535410e 55fb1d9 535410e 55fb1d9 535410e 55fb1d9 535410e 55fb1d9 535410e 55fb1d9 535410e 55fb1d9 535410e 55fb1d9 535410e 55fb1d9 535410e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
---
title: Heart Attack Risk Prediction
emoji: ❤️
colorFrom: red
colorTo: pink
sdk: docker
sdk_version: "4.44.0"
app_file: streamlit_app.py
pinned: false
---
# ❤️ Heart Attack Risk Prediction: An Ensemble Modeling Approach
Advanced machine learning ensemble combining XGBoost, CatBoost, and LightGBM for accurate cardiovascular risk assessment.
## 🎯 Features
- **Ensemble Model**: Combines XGBoost (5%), CatBoost (85%), and LightGBM (10%) for optimal performance
- **High Accuracy**: ~80.77% accuracy with ~93.27% recall
- **Comprehensive Risk Assessment**: Analyzes multiple health factors including:
- Demographics (Age, Gender, Height, Weight)
- Blood Pressure and Cholesterol levels
- Lifestyle factors (Smoking, Alcohol, Physical Activity)
- Derived health metrics (BMI, BP categories)
## 📊 Model Performance
- **Accuracy**: 80.77%
- **Recall**: 93.27%
- **ROC-AUC**: 92.50%
## 🚀 Usage
1. Enter your health information in the input form
2. Click "Predict Heart Attack Risk"
3. View your personalized risk assessment with:
- Overall risk percentage
- Individual model predictions
- Key risk factors identified
- Detailed model breakdown
## 🔬 Technical Details
### Models Used
- **XGBoost**: Gradient boosting with optimized hyperparameters
- **CatBoost**: Categorical boosting with balanced class weights
- **LightGBM**: Light gradient boosting machine
- **Ensemble**: Weighted combination of all three models
### Optimization
- Multi-objective optimization for accuracy and recall
- Threshold optimization for optimal performance
- Feature engineering with derived health metrics
## 📝 Citation
If you use this model in your research, please cite:
```
Heart Attack Risk Prediction: An Ensemble Modeling Approach
Using XGBoost, CatBoost, and LightGBM
```
## ⚠️ Disclaimer
This tool is for educational and research purposes only. It is not a substitute for professional medical advice, diagnosis, or treatment. Always seek the advice of your physician or other qualified health provider with any questions you may have regarding a medical condition.
## 📧 Contact
For questions or issues, please open an issue on the repository.
---
**Built with ❤️ using Streamlit, XGBoost, CatBoost, and LightGBM**
|