Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harshitwaldia/disease_detection
A disease detection system using Random Forest Classifier and GUI in Python, identifying illnesses based on user symptoms.
https://github.com/harshitwaldia/disease_detection
pandas-python python3 random-forest-classifier scikit-learn tkinter-gui
Last synced: about 1 month ago
JSON representation
A disease detection system using Random Forest Classifier and GUI in Python, identifying illnesses based on user symptoms.
- Host: GitHub
- URL: https://github.com/harshitwaldia/disease_detection
- Owner: HarshitWaldia
- Created: 2024-12-08T15:54:50.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-08T16:03:02.000Z (about 1 month ago)
- Last Synced: 2024-12-08T17:18:02.504Z (about 1 month ago)
- Topics: pandas-python, python3, random-forest-classifier, scikit-learn, tkinter-gui
- Language: Python
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Disease Detection System Using Symptoms
This project is a simple disease detection system built using Python and the Tkinter GUI library. It uses machine learning (Random Forest Classifier) to predict diseases based on user-reported symptoms. The system takes up to five symptoms as input and outputs a potential disease diagnosis.
## Features
- User-friendly GUI to input symptoms
- Predicts disease based on symptoms using a Random Forest Classifier
- Disease predictions based on pre-trained data
- Simple and interactive design using Tkinter## Technologies Used
- **Python**: The programming language used for building the system.
- **Tkinter**: For the graphical user interface (GUI).
- **Scikit-learn**: For training the Random Forest Classifier model.
- **Pandas**: For handling and processing the dataset.
- **NumPy**: For numerical operations on the data.## Files Used
1. **Training.csv**: Contains the training data with symptoms and corresponding diseases.
2. **Testing.csv**: Used to test the model with new data.## How It Works
1. The user selects five symptoms from a dropdown list on the GUI.
2. The symptoms are fed into the trained Random Forest model.
3. The model predicts the disease based on the input symptoms.
4. The result is displayed on the screen, showing the predicted disease.## Dependencies
- `Tkinter`: Used for the graphical user interface.
- `pandas`: Used for handling data.
- `numpy`: Used for numerical operations.
- `scikit-learn`: Used for machine learning tasks.Install dependencies using `pip`:
```bash
pip install pandas numpy scikit-learn
```## How to Run
1. Clone this repository or download the project files.
2. Make sure you have the necessary dependencies installed.
3. Run the script using Python:```bash
python disease_detection.py
```4. Enter the symptoms in the GUI, and the disease prediction will be displayed.
### Example
* **Symptom 1**: Abdominal Pain
* **Symptom 2**: Diarrhoea
* **Symptom 3**: Fever
* **Symptom 4**: Weakness in Limbs
* **Symptom 5**: Chest PainClick on "SEARCH" to predict the disease based on the selected symptoms.
## Dataset
The dataset used for training the model includes various symptoms and their corresponding diseases. It is represented in a CSV format with symptoms as columns and the disease as the target variable.
## Future Improvements
* Add more symptoms and diseases to improve prediction accuracy.
* Implement additional machine learning models to compare performance.
* Create a web-based interface for easier access.
* Integrate with healthcare APIs for real-time disease updates.## Author
* **Harshit Waldia** - Developer