Heart Disease Prediction System
Desktop machine-learning app that predicts heart disease from 13 clinical details, trains and compares 7 models, and keeps a prediction history. Python, Tkinter, scikit-learn.
- 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
Heart disease screening depends on reading many clinical values together, which is exactly where machine learning helps. This desktop application trains seven classifiers - K-Nearest Neighbours, SVM, Decision Tree, Random Forest, Gradient Boosting, Logistic Regression and Naive Bayes - on the public UCI heart-disease dataset (287 unique patient records, 13 attributes) and compares them with accuracy, precision, recall and F1 score, a bar chart and a confusion matrix. The best model is saved automatically and used on the Predict screen, where the user enters age, chest-pain type, blood pressure, cholesterol, ECG result and the other values (with full input validation) or loads a real sample record. The result is shown with a confidence percentage and a probability chart, and every prediction is stored in a history that can be exported to CSV. The dataset screen shows the records with a target chart, a correlation heatmap and feature histograms. Duplicate records in the original data were removed, so the accuracy you show in the review is honest. Login, history and a ready-trained model are included, so the project is ready to demonstrate on day one.
Modules
- Login: Admin login with a salted password hash; the password can be changed from the Home screen.
- Home: Shows the number of records, input fields, classes, the active model and its accuracy.
- Dataset explorer: Browse the records and draw the target distribution, correlation heatmap and feature histograms.
- Train & Compare: Train up to 7 algorithms in the background, compare accuracy, precision, recall and F1, see the confusion matrix and export the comparison to CSV.
- Predict: Validated 13-field form, sample-record loader, predicted result with confidence and probability chart.
- History: Every prediction is saved with time and inputs; 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, click 'Load a sample record' and Predict; then change the values and predict again.