🔗 Live Web App:
👉 https://heartstroke.streamlit.app/
This project predicts the risk of heart disease using a trained
Machine Learning model.
Users can input their health parameters and instantly receive a risk
score with visualizations.
- 🖥️ Beautiful & Organized UI \
- 🤖 KNN-based ML model\
- 📊 Risk Gauge Meter\
- 🔢 Handles all numeric & categorical inputs\
- 📈 Works with real clinical parameters\
- ⚡ Fast predictions\
- 📝 Inline explanations & guidance\
- 🛡️ Medical disclaimer included
- Algorithm → K-Nearest Neighbors (KNN)
- Preprocessing → StandardScaler
- Model Files:
knn_heart_model.pklheart_scaler.pklheart_columns.pkl
- Dataset → UCI Heart Disease Dataset
The model predicts: - 1 → High Risk - 0 → Low Risk
| Component | Technology |
|---|---|
| Frontend | Streamlit |
| Backend | Python |
| ML Model | Scikit-Learn |
| Visualization | Plotly |
| Deployment | Streamlit Cloud |
| Version Control | Git & GitHub |
git clone https://github.com/Vikaumar/HeartStrokePredictor.git
cd HeartStrokePredictorpip install -r requirements.txtstreamlit run app.py📦 HeartStrokePredictor
┣ 📜 app.py
┣ 📜 knn_heart_model.pkl
┣ 📜 heart_scaler.pkl
┣ 📜 heart_columns.pkl
┣ 📜 requirements.txt
┣ 📂 screenshots
┃ ┣ 📜 Screenshot1.png
┃ ┣ 📜 Screenshot2.png
┃ ┗ 📜 Screenshot3.png
┗ 📜 README.md
This app is deployed using Streamlit Cloud:
🌍 https://heartstroke.streamlit.app/
This tool is for educational purposes only.
It does not provide medical diagnosis.
Always consult certified healthcare professionals for medical decisions.
Vikas Kumar
If you like this project, please ⭐ the repository!
🎉 Thank you for exploring this project!