AI-powered tool that predicts possible diseases based on symptoms using a trained machine learning model and provides chatbot-style suggestions.
disease-symptom-prediction/
├── data/ # Excel dataset (not uploaded)
│ └── README.md # Instructions for downloading from Kaggle
│
├── src/ # Source code
│ ├── data_preprocessing.py # Cleans & prepares dataset
│ ├── model.py # Trains and saves the ML model
│ ├── predict.py # Predicts disease from symptoms
│ └── chatbot.py # Symptom-checker chatbot logic
│
├── app/ # App interface
│ └── gradio_app.py # Gradio-based web UI
│
├── models/ # Trained model files
│ └── rf_model.pkl
│
├── notebooks/ # Jupyter notebooks for analysis
│ ├── 1_data_exploration.ipynb
│ ├── 2_preprocessing_test.ipynb
│ └── 3_model_testing.ipynb
│
├── requirements.txt # Python dependencies
├── .gitignore
└── README.md
git clone https://github.com/your-username/disease-symptom-prediction.git
cd disease-symptom-prediction
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
python app/gradio_app.py
The app will start locally and you can open it in your browser at http://localhost:7860
.
- ✅ Predict disease from symptoms
- 🧠 Trained on structured healthcare dataset
- 💬 Chatbot-style health advice
- 🖥️ User-friendly Gradio interface
📦 Dataset Note (Click to expand)
We use a healthcare dataset available on Kaggle. Due to licensing, it is not uploaded in this repo. Please download it manually and place it in the data/
directory.
This project is licensed under the MIT License - see the LICENSE file for details.
Created by Mate — feel free to fork, star, or contribute.