Disease Prediction from Symptoms
Desktop symptom checker that predicts the most likely of 12 common diseases from 28 symptoms, comparing 7 machine-learning models, with probability charts and a prediction history.
- Price: ₹1,499
- Category: AI / ML
- Technology: Python, Tkinter, scikit-learn, pandas, Matplotlib, SQLite
- Includes: Source code + database
- Suitable for: BCA / B.Sc CS, MCA / M.Sc CS, B.E / B.Tech CSE & IT
Project overview
Symptom checkers are a popular healthcare use of machine learning, and this project shows the whole pipeline in one desktop application. A 3,000-record training set is generated from a symptom-probability table covering 12 common diseases and 28 symptoms - the data is synthetic and clearly labelled as such, which also means there are no privacy issues. Seven algorithms (Random Forest, Gradient Boosting, Decision Tree, K-Nearest Neighbours, Logistic Regression, Naive Bayes and a neural network) are trained in the background and compared with accuracy, precision, recall and F1 score, a bar chart and a 12 x 12 confusion matrix. The best model is saved automatically. On the Predict screen the user sets each symptom to Yes or No (or loads a sample patient) and gets the most likely disease with its probability and a chart of the six most likely diseases. Every prediction is stored in a history that can be exported to CSV. A trained model is included, so the demo works on day one.
Modules
- Login: Admin login with a salted password hash; the password can be changed from the Home screen.
- Home: Shows records, symptoms, number of diseases, the active model and its accuracy.
- Dataset explorer: Browse the patient records; disease distribution, correlation heatmap and symptom histograms.
- Train & Compare: Train 7 models in the background; accuracy, precision, recall, F1 table; bar chart; 12 x 12 confusion matrix; CSV export.
- Symptom checker (Predict): 28 Yes/No symptom fields, sample-patient loader, most likely disease with probability and a top-6 chart.
- History: Every prediction saved with time and symptoms; export to CSV or clear.
Requirements
- Python 3.11
- Internet once, to install the libraries (about 3 minutes)
- Windows 10 / 11
How to run this project
- Install Python 3.11 from python.org and tick "Add python.exe to PATH" during setup.
- Extract the zip and open the project folder (STUDENT_GUIDE.md explains every step in simple words).
- Double-click `1_INSTALL.bat` once and wait until it says [OK] (about 3 minutes; it downloads the libraries into a private .venv folder).
- Double-click `2_RUN.bat` to start the project. If it does not start, double-click `CHECK_SETUP.bat` and read what it says.
- Log in with admin / admin123.
- Open Train & Compare and click Train: compare the 7 models and open the confusion matrix. Open Predict, set Fever = Yes, Chills = Yes, High fever = Yes and click Predict; then try Headache + Light sensitivity.