A machine learning system that predicts diseases based on symptoms and recommends medications using patient review data analysis.
This major project combines disease prediction and drug recommendation using machine learning and NLP techniques. The system analyzes patient drug reviews to provide data-driven insights for healthcare decisions.
Based on research paper: "An Intelligent Disease Prediction and Drug Recommendation Prototype by Using Multiple Approaches of Machine Learning Algorithms" by Suvendu Kumar Nayak et al.
- ML-powered disease prediction from symptoms
- Drug recommendation based on patient reviews
- Sentiment analysis of drug reviews
- Interactive web interface using Streamlit
- Data visualization of predictions
- Multi-condition classification system
Uses UCI ML Drug Review dataset (KUC Hackathon Winter 2018)
- 215,063 patient drug reviews
- Patient condition information
- 10-star rating system
- Timestamps and usefulness ratings
- Detailed patient experiences
- Frontend: Streamlit
- Backend: Python 3.8+
- ML Pipeline: Scikit-learn
- NLP: NLTK, BeautifulSoup4
- Data Processing: Pandas, NumPy
- Visualization: Plotly, Matplotlib
- Text preprocessing with NLTK
- TF-IDF vectorization with n-grams
- Passive Aggressive Classifier
- Naive Bayes implementation
- Drug recommendation engine
- Python 3.8+
- Git
git clone https://github.com/darkxdd/Disease-Prediction-and-Drug-Recommendation-Prototype.git
cd Disease-Prediction-and-Drug-Recommendation-Prototype
pip install -r requirements.txt
streamlit run app.py
- Implemented multiple ML approaches:
- Bag of Words (BoW)
- TF-IDF with n-grams
- Passive Aggressive Classifier
- Naive Bayes Classifier
- Birth Control
- Depression
- Diabetes Type 2
- High Blood Pressure
- Migraine
- Pneumonia
- Asthma (acute)
- Urinary Tract Infection
- ADHD
- Acne ... etc
Disease-Prediction-and-Drug-Recommendation-Prototype/
├── app.py # Main application file
├── model/
│ ├── passmodel.pkl # Trained ML model
│ └── tfidfvectorizer.pkl # Text vectorizer
├── data/
│ └── custom_dataset.csv # Drug reviews dataset
└── requirements.txt # Project dependencies
- Select symptoms from the predefined list in the web interface
- Click the "Predict" button
- View the predicted condition and recommended drugs
- Explore the interactive visualization of drug recommendations
This system is a prototype for educational purposes. Always consult healthcare professionals for medical advice.
- Student Name: Puneeth Raj
- Roll Number: 21831A7251
- Supervisor: Sheeltal Kundra
- Department: Artificial Intelligence and Data Science (AI & DS)
Student Email: [email protected]
Project Link: GitHub Repository