This project uses a Machine Learning model (Logistic Regression) to predict the likelihood of heart disease using basic health indicators such as age, cholesterol, blood pressure, and heart rate.
It supports UN Sustainable Development Goal 3: Good Health and Well-being, by showing how AI can assist in early disease detection and preventive healthcare.
- Algorithm: Logistic Regression
- Type: Supervised Learning (Binary Classification)
- Tools: Python, Scikit-learn, Pandas, NumPy, Matplotlib, Seaborn
- IDE: Visual Studio Code (Ubuntu)
- Source: : Using local dataset .
- Features: 13 clinical and demographic attributes
- Target:
target(1 = has heart disease, 0 = healthy)
git clone https://github.com/toxidity-18/SDG13-HeartDiseasePrediction-.git
cd SDG3_HeartDisease_Predictionpython3 -m venv venv
source venv/bin/activatepip install -r requirements.txtpython3 Heart_Disease.py- Model Accuracy: ≈ 85%
- Visualization: Confusion Matrix displaying predicted vs. actual results
- Evaluation Metric: Accuracy Score
This model uses publicly available, anonymized data. It is intended for educational and research purposes only, not for real medical diagnosis. Ethical AI means protecting privacy and avoiding misuse of health predictions.
By integrating AI with healthcare, this project demonstrates how machine learning can:
- Assist in early risk detection
- Support preventive healthcare
- Advance SDG 3: Good Health and Well-being
