This project explores ischemic heart disease trends in Nigeria using data visualizations and machine learning to uncover insights into mortality, healthcare access, and spending.
---
# π« Ischemic Heart Disease Analysis & Dashboard β Nigeria
---
## π Overview
This project presents a **comprehensive data-driven analysis** of **Ischemic Heart Disease (IHD)** in Nigeria, focusing on trends, demographics, healthcare infrastructure, and expenditure.
It includes:
* A **Streamlit-powered interactive dashboard** for real-time exploration π
* A **classification model** to predict heart disease risk using machine learning π
> Built with Python, Pandas, Plotly, and scikit-learn.
---
## π Features
### π Exploratory Data Analysis
* π **Yearly Trends** in IHD deaths (by gender & age group)
* β°οΈ **Top Causes of Death** comparison to IHD
* π₯ **Doctor-to-Patient Ratio** tracking over time
* π° **Health Expenditure per Capita** visualization
### π§ Classification Modeling
* Logistic Regression, Random Forest, and Decision Tree models evaluated
* Key metrics: **Accuracy, Precision, Recall, F1 Score, Log Loss**
* Decision Tree emerged as the best performer with **\~82% accuracy**
### π₯οΈ Interactive Dashboard (Streamlit)
* Real-time bar, pie, and line charts
* Responsive layout for seamless exploration
* Clean, minimal design with actionable insights
---
## πΌοΈ Dashboard Preview
>
---
## ποΈ Project Structure
```
Ischemic-heart-disease-/
βββ analysis/
β βββ dashboard.py # Streamlit app source
β βββ IHD_analysis.ipynb # Jupyter notebook (EDA + ML models)
β βββ cleaned_data/ # Cleaned datasets
β βββ rough_data/ # Raw or semi-clean datasets
β βββ IHD_dashboard.jpeg
βββ requirements.txt # Project dependencies
βββ README.md # This file
βββ LICENSE
```
---
## βοΈ Getting Started
### β
Prerequisites
* Python 3.8+
* pip (Python package manager)
### π» Installation
```bash
git clone
github.com
cd Ischemic-heart-disease-
pip install -r requirements.txt
```
### π Run the Dashboard
```bash
streamlit run /analysis/dash β¦