A machine learning-powered web application that predicts the risk of heart disease and muscle weakness based on user input. Built with Flask, python, and deployed on Render.
- ❤️ Heart Disease Risk
- 💪 Muscle Weakness Risk
- 🔍 Predicts health risks based on user input
- 📊 Saves prediction history to CSV
- 🧾 View history by category (Heart or Muscle)
- 🗑️ Clear history with one click
- 🎨 Clean, responsive UI with animations
| Layer | Tools Used |
|---|---|
| Frontend | HTML, CSS, Jinja2 |
| Backend | Flask, Python |
| ML Models | RandomForest, DecisionTree |
| Data Storage | CSV (history.csv) |
project/ │ ├── app.py # Main Flask app ├── history.csv # Stores prediction logs ├── templates/ │ ├── base.html │ ├── home.html │ ├── result.html │ ├── history.html │ └── health_tips.html ├── static/ │ └── style.css ├── models/ │ ├── heart_model.pkl │ └── muscle_model.pkl └── README.md
📌 Future Improvements
- Add login/authentication
- Export history to Excel or PDF
- Dynamic health tips based on prediction
- Deploy to Render or Vercel
🙌 Author Built with ❤️ by [Goodness]
- Visit the Live Demo
- Choose a prediction type:
- Heart Disease
- Muscle Weakness
- Fill in the form with your health data
- Click Predict
- View your result instantly
- Navigate to History to:
- View past predictions
- Download them as a CSV
- Clear the history if needed
To visualize what the app does:
- Go to the homepage
- Submit a prediction form
- Watch the result appear on screen
- Click on History to see all past predictions
- Use the Download button to export them
git clone https://github.com/GoodnessOni/health-risk-predictor.git
cd health-risk-predictor