A Machine Learning-powered web application that predicts diseases based on symptoms and recommends appropriate medicines.
Built with ❤️ using Python, Flask, and Scikit-learn.
✅ Predicts possible diseases from user-selected symptoms
✅ Recommends appropriate medicines for predicted diseases
✅ Clean and interactive web interface (Flask + HTML/CSS)
✅ Machine Learning models trained and compared for best performance
✅ Deployed online and accessible to all
| Category | Technologies Used |
|---|---|
| Backend | Python, Flask |
| Machine Learning | Scikit-learn, Pandas, NumPy |
| Frontend | HTML, CSS |
| Deployment | Render |
Medicine-Recommendation-System/
├── kaggle_dataset/ # Dataset files (Training, Symptoms, Medicines)
├── model/ # Trained machine learning model
├── static/ # Static files (images, CSS)
├── templates/ # HTML templates (for Flask)
├── EDA_ModelComparison_RF.ipynb # Exploratory Data Analysis & model comparison
├── disease_prediction_system.ipynb # Notebook for building the prediction system
├── main.py # Flask application file
├── requirements.txt # Python dependencies
└── README.md # Project documentation
- Python 3.8+
- pip
git clone https://github.com/ShamScripts/Medicine-Recommendation-System.gitcd Medicine-Recommendation-Systempip install -r requirements.txtpython main.pyOpen your browser and visit:
http://127.0.0.1:5000
Access the live project here:
👉 HealthCareAI
- Dataset cleaning and preprocessing
- Feature engineering and encoding
- Model training and evaluation (Random Forest, SVM, Naive Bayes)
- Model selection based on accuracy and performance metrics
- Saving the best model and integrating into Flask app
| Input Symptoms | Predicted Disease | Recommended Medicines |
|---|---|---|
| Fever, Cough, Headache | Common Cold | Paracetamol, Antihistamines |
| Chest Pain, Shortness of Breath | Heart Attack | Aspirin, Nitroglycerin |
| Fatigue, Frequent Urination | Diabetes | Metformin, Insulin |
✅ Handles multiple symptoms
✅ Handles no symptom input (shows warning)
✅ Handles edge cases
- Expand database to include more diseases and symptoms
- Add severity-based recommendations
- Improve UI/UX (multi-language support, better form controls)
- Mobile-friendly design
- Integrate chatbot assistant for health queries
This project is intended for educational purposes only.
Please consult a certified doctor for actual medical advice.
- GitHub: ShamScripts
- LinkedIn: Shambhavi Jha