Breast Cancer Detection System
Desktop app that classifies a breast tumour as benign or malignant from 30 cell measurements using a neural network and 6 other models, with comparison charts and prediction history.
- Price: ₹1,999
- Category: AI / ML
- Technology: Python, Tkinter, scikit-learn (Neural Network), 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
Early and accurate classification of a breast tumour as benign or malignant improves treatment, and the measurements taken from a fine-needle sample are ideal for machine learning. This desktop application trains a multi-layer neural network and six other classifiers - SVM, Logistic Regression, Random Forest, Gradient Boosting, K-Nearest Neighbours and Naive Bayes - on the Wisconsin Diagnostic Breast Cancer data (569 samples, 30 measurements) and compares them with accuracy, precision, recall, F1 score, a bar chart and a confusion matrix; most models reach about 95-98 percent accuracy on unseen data. The best model is saved automatically and used on the Predict screen, which has a validated 30-field form, a sample-record loader, the predicted class with a confidence percentage and a probability chart. A dataset explorer shows the records, class balance, correlation heatmap and histograms, and a history screen keeps and exports every prediction. 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, input fields, classes, the active model and its accuracy.
- Dataset explorer: Browse the 569 samples; class distribution, correlation heatmap and feature histograms.
- Train & Compare: Train the neural network and 6 other models in the background; table of accuracy, precision, recall, F1; bar chart; confusion matrix; CSV export.
- Predict: Validated 30-measurement form, sample-record loader, benign / malignant result with confidence and probability chart.
- History: Every prediction 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 neural-network confusion matrix. Open Predict, click 'Load a sample record' and Predict; load a few more samples and compare with the known answer.