An AI-based Smart Health Risk Prediction System developed using Machine Learning and Streamlit to predict possible diseases based on user symptoms and health parameters. The system helps in early risk assessment by analyzing symptom patterns, estimating risk levels, and recommending suitable OPD consultations.
The Smart Health Risk Prediction System is designed to assist users in identifying potential health risks using machine learning techniques. The system takes patient details and symptoms as input, predicts the most probable disease, and classifies the risk level as Low, Medium, or High.
In addition to prediction, the system provides hospital and specialist consultation suggestions and generates a downloadable medical report in PDF format. Patient records are stored locally for future analysis and visualization of disease trends.
This project demonstrates the practical application of Artificial Intelligence and Machine Learning in healthcare decision support systems.
-
Disease prediction using Machine Learning (Random Forest)
-
Risk level classification based on prediction confidence
-
Patient information management
-
OPD consultation suggestions based on disease and city
-
Automated medical report generation (PDF)
-
Patient history storage using SQLite database
-
Disease trend visualization
-
Interactive Streamlit web interface
-
Real-time model accuracy display
-
User enters patient information (age, gender, height, weight, city).
-
Symptoms are selected as input features.
-
Data is processed and passed to the trained ML model.
-
Model predicts the most probable disease.
-
Prediction confidence determines risk level.
-
System suggests suitable OPD consultations.
-
Patient details are stored in database.
-
Medical report is generated and downloadable as PDF.
-
Disease trends are visualized from stored records.
-
Python
-
Machine Learning (Scikit-learn)
-
Streamlit – User Interface
-
Pandas & NumPy – Data Processing
-
Matplotlib – Visualization
-
SQLite – Database Management
-
FPDF – PDF Report Generation
git clone https://github.com/khushikumari-2003/Health-Risk-Prediction-System.git
cd Health-Risk-Prediction-System
pip install -r requirements.txt
streamlit run app.py
-
Algorithm Used: Random Forest Classifier
-
Feature Scaling: StandardScaler
-
Label Encoding for disease classification
-
Model trained using symptom-based dataset
-
Accuracy displayed dynamically in application
-
After prediction, the system generates a medical report containing:
-
Patient details
-
Predicted disease
-
Risk level
-
Suggested OPD consultations
-
Generated timestamp
The report can be downloaded directly from the application.
-
The system stores patient history and displays:
-
Disease occurrence trends
-
Historical patient records
-
Frequency-based disease analysis
-
Early health risk assessment
-
AI-assisted healthcare support
-
Educational healthcare AI projects
-
Medical data analysis demonstrations
-
Integration with real hospital APIs
-
Deep Learning-based prediction models
-
Cloud database integration
-
User authentication system
-
Deployment on cloud platforms
Khushi Kumari
B.Tech CSE (Ai & Ml)