A machine learning-powered web application that predicts diseases based on user-entered symptoms and provides comprehensive health recommendations including medications, dietary suggestions, and exercise routines.
- Intelligent Disease Prediction: Uses Random Forest machine learning model with 100% accuracy
- Symptom Spell Correction: Advanced fuzzy matching to correct misspelled symptoms
- Comprehensive Health Recommendations:
- Disease descriptions and information
- Personalized medication suggestions
- Dietary recommendations
- Exercise and workout plans
- Preventive precautions
- User-Friendly Web Interface: Clean, responsive design with Bootstrap
- Real-time Predictions: Instant results through Flask web application
- Backend: Python, Flask
- Machine Learning: scikit-learn, Random Forest Classifier
- Data Processing: pandas, numpy
- Frontend: HTML, CSS, Bootstrap 5
- Model Persistence: pickle
The system uses comprehensive medical datasets containing:
- 41 Diseases: Including common conditions like diabetes, hypertension, allergies, etc.
- 132 Symptoms: Comprehensive symptom database for accurate predictions
- Medical Recommendations: Curated medications, diets, and workout plans for each disease
Training.csv
: Main training dataset with symptoms and disease labelssymptoms_df.csv
: Symptom database with disease mappingsdescription.csv
: Detailed disease descriptionsmedications.csv
: Medication recommendations for each diseasediets.csv
: Dietary recommendations and nutrition plansworkout_df.csv
: Exercise and workout suggestionsprecautions_df.csv
: Preventive measures and precautionsSymptom-severity.csv
: Symptom severity classifications
- Python 3.7+
- pip package manager
-
Clone the repository:
git clone https://github.com/sohamvsonar/Disease-Prediction-and-Medical-Recommendation-System.git cd Disease-Prediction-and-Medical-Recommendation-System
-
Install required dependencies:
pip install -r requirements.txt
-
Run the Flask application:
python main.py
-
Access the application: Open your web browser and navigate to:
http://localhost:5000
- Enter Symptoms: Type your symptoms separated by commas (e.g., "fever, headache, nausea")
- Submit: Click the predict button to get your results
- View Results: Get comprehensive information including:
- Predicted disease
- Disease description
- Recommended medications
- Dietary suggestions
- Exercise plans
- Preventive precautions
- Soham Sonar
- Tanmay Pramanick
- Kunal Rajput
Disease-Prediction-and-Medical-Recommendation-System/
├── dataset/ # Medical datasets
│ ├── Training.csv
│ ├── symptoms_df.csv
│ ├── description.csv
│ ├── medications.csv
│ ├── diets.csv
│ ├── workout_df.csv
│ ├── precautions_df.csv
│ └── Symptom-severity.csv
├── model/ # Trained ML models
│ └── RandomForest.pkl
├── templates/ # HTML templates
│ └── index.html
├── static/ # Static assets
│ ├── bgCover.jpg
│ └── img.png
├── screenshots/ # Application screenshots
│ ├── ss1.jpg
│ ├── ss2.jpg
│ └── ss3.jpg
├── main.py # Flask web application
├── disease_prediction_system.ipynb # Model training notebook
├── requirements.txt # Python dependencies
└── README.md
This system is for educational and informational purposes only. It should not be used as a substitute for professional medical advice, diagnosis, or treatment. Always consult with qualified healthcare professionals for medical concerns.
=======