Skip to content

erharsh2104/Tumor-Detection-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ§ͺ Tumor Detection Project

This project applies machine learning to detect whether a tumor is Malignant (M) or Benign (B) based on medical features such as mean radius, texture, perimeter, and area. The model is built using Python and scikit-learn.


πŸ“Œ Project Overview

  • Load and clean the tumor dataset (Tumor_Detection.csv).
  • Explore the data with descriptive statistics and visualizations.
  • Preprocess data (drop irrelevant columns, handle missing values, scale features).
  • Train a Random Forest Classifier to classify tumors.
  • Evaluate performance using accuracy, confusion matrix, and classification report.
  • Analyze important features influencing predictions.

πŸ“Š Steps in the Workflow

  1. Data Preparation

    • Remove id and unnamed columns.
    • Handle missing values.
    • Encode target labels (M=1, B=0).
  2. Exploratory Data Analysis

    • Class distribution visualization.
    • Summary statistics for numeric features.
    • Correlation heatmap.
  3. Modeling

    • Train/test split.
    • Standardize features.
    • Train Random Forest Classifier.
  4. Evaluation

    • Accuracy and classification report.
    • Confusion matrix heatmap.
    • Feature importances plot.

πŸ“ˆ Expected Results

  • Accuracy: ~95–98% (depending on random train/test split).
  • Top contributing features:
    • Mean radius
    • Mean perimeter
    • Mean area

πŸ“Œ Future Improvements

  • Experiment with Logistic Regression, SVM, or XGBoost.
  • Perform hyperparameter tuning with GridSearchCV.
  • Apply feature selection and dimensionality reduction (PCA).
  • Use cross-validation for more robust results.

πŸ™Œ Acknowledgements

Dataset adapted from the Breast Cancer Wisconsin Dataset (UCI Machine Learning Repository).


✍️ Author

About

This project applies machine learning to detect whether a tumor is Malignant (M) or Benign (B) based on medical features such as mean radius, texture, perimeter, and area. The model is built using Python and scikit-learn.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors