An end-to-end Machine Learning pipeline for predicting cancer risk using patient health and lifestyle features.
This project focuses on building and comparing multiple machine learning models for cancer risk prediction. Instead of relying on a single algorithm, different classification models, data balancing techniques, and hyperparameter tuning methods were evaluated to identify the best-performing pipeline.
Dataset
↓
Exploratory Data Analysis (EDA)
↓
Data Cleaning
↓
Feature Scaling
↓
Model Comparison (12 Models)
↓
Class Imbalance Handling
↓
Hyperparameter Tuning
↓
Final Model Selection
- Logistic Regression
- Decision Tree
- Random Forest
- Naive Bayes
- Support Vector Machine
- K-Nearest Neighbors
- Gradient Boosting
- AdaBoost
- XGBoost
- Bagging
- Linear Discriminant Analysis
- Quadratic Discriminant Analysis
The following techniques were compared:
- SMOTE
- RandomOverSampler
- ADASYN
RandomOverSampler achieved the best overall performance on this dataset.
RandomOverSampler
↓
GridSearchCV
↓
AdaBoost
| Metric | Score |
|---|---|
| Accuracy | 96.29% |
| Precision | 0.96 |
| Recall | 0.97 |
| F1 Score | 0.96 |
- Python
- Pandas
- NumPy
- Matplotlib
- Seaborn
- Scikit-learn
- Imbalanced-learn
- XGBoost
Cancer-Risk-Prediction-ML
│
├── dataset
├── notebook
├── images
├── README.md
├── requirements.txt
└── LICENSE
- SHAP Explainability
- LIME Explainability
- Streamlit Deployment
- Feature Importance Dashboard
⭐ If you found this project useful, consider giving it a star.
