File size: 2,761 Bytes
5970059 19677e1 38eae38 19677e1 38eae38 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
---
license: mit
sdk: gradio
---
---
license: mit
---
# π§ Disease Symptom Prediction AI



AI-powered tool that predicts possible diseases based on symptoms using a trained machine learning model and provides chatbot-style suggestions.
---
## π Project Structure
```
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
```
---
## βοΈ Installation
### 1. Clone the repository
```bash
git clone https://github.com/your-username/disease-symptom-prediction.git
cd disease-symptom-prediction
```
### 2. Create virtual environment (optional but recommended)
```bash
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
```
### 3. Install dependencies
```bash
pip install -r requirements.txt
```
---
## π Run the App
```bash
python app/gradio_app.py
```
The app will start locally and you can open it in your browser at `http://localhost:7860`.
---
## π€ Features
- β
Predict disease from symptoms
- π§ Trained on structured healthcare dataset
- π¬ Chatbot-style health advice
- π₯οΈ User-friendly Gradio interface
---
<details>
<summary>π¦ Dataset Note (Click to expand)</summary>
We use a healthcare dataset available on [Kaggle](https://www.kaggle.com/). Due to licensing, it is not uploaded in this repo. Please download it manually and place it in the `data/` directory.
</details>
---
## πͺͺ License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
---
## π Credits
Created by [Mate](https://github.com/your-username) β feel free to fork, star, or contribute.
--- |