Skip to content

kuehlapis/SC1015_MiniProj

 
 

Repository files navigation

SC1015 Mini-Project - Determining Breast Cancer on tumors & Rate of Survivability

About

This is the mini project for SC1015 - Introduction to Data Science and Artificial Intelligence (DSAI) which focuses on data of breast cancer from both breast-cancer-wisconsin and died-recovered-under treatment dataset

Members

  • Ng Hoe Ping
  • Ong Yao Sheng
  • Edmund Yeo Zi Long

Problem Motivation

Even with the advanced in technology in today's society, many patients find out that they are diagnosed with breast cancer too late. In hope of getting patients to start treatment early for early-staged breast cancer, it is important for them to do self-examination to detect for breast cancer early. Therefore, they would expect these features estimates to be as precise as possible. Inaccurate estimates can lead to panic or fear in patient.

Problem Definition

  • Are we able to predict if a breast tumor is malignant or benign based on its features?
  • Can we predict the survivability of someone with a malignant breast tumor based on their characteristic and habits?
  • Which model would be the best to predict it?

Resources (found in this folder)

Walk-Through

1. Data Preparation and Cleaning

[All Datasets]

  • Removed rows with NaN/NULL spaces that will affect the machine learning accuracy
  • Removed unnecessary parameters like "education" and "patient ID"
  • Combined "death.csv" and "recovered.csv" into a single variable in the code for machine learning

2. "original"

[variable named from "breast-cancer".csv]

  • Separated into 2 variables: "meanbreast" and "worstbreast"
  • Find parameters in both variables that will predict classifications Malignant("M") or Bengin ("B")
  • Visualisation in Histogram/Boxplot/Violinplot

3. "survival"

[Combined variable named from "death.csv" and "recovered.csv"]

  • Clean data by only focusing on relevant parameters to our problem, as well as remove any outliers
  • One-hot encoding, converted the variables under "condition" from "death" to "1", and "recovered" to "0".
  • Visualisation in Histogram/Correlation Heatmap
  • Implementation of different classification algorithms to find the highest accuracy score

4. Machine Learning Techniques to solve the problem

  • Decision Tree
  • RandomForestClassifier
  • Logistic Regression
  • K-Nearest Neighbours (KNN)
  • Support Vector Machine (SVM)
  • Gaussian Naive Bayes (NB)
  • Keras Neural Network

5. Model Evaluation

  • Visualisations to identify imbalance data and effectiveness of Machine Learning Techniques.
  • Evaluating with Precision, recall, f1 score.

Conclusion

  • We were able to find a strong relation between these 5 features (concave points, area, perimeter, radius, and concavity) and diagnosis of breast tumor (benign or malignant).

  • Factors that could greatly affect Survivability of malignant tumor patient includes:

    • Numerical Columns
      • Age (Positive Correlation)
      • Weight (Positive Correlation)
      • Thickness of Tumor (Positive Correlation)
      • Number of Times the Person Gave Birth (Positive Correlation)
    • Categorical Features
      • Blood Type
      • Breast Pain
      • Radiation History
      • Hereditory History
      • Smoking
  • The SMOTE model we implemented to estimate survivability has a 90% accuracy!!

  • From our findings, we can suggest that individuals can self-examine by looking at the 5 features mentioned earlier (concave points, area, perimeter, radius, and concavity), if suspected to be a malignant tumor, they can go to the hospital to get it checked and diagnosed early, if positive. Lastly, those with malignant tumor is able to lower the possibility of dying by having an active lifestyle and eating healthily, as well as reduce or quit smoking.

Key Learning Points

  1. Concepts of different evluation methods (Precision, Recall and F1 Score).
  2. Identifying false accuracy with overfitting and imbalance data.
  3. Handling overfitting and imbalance data.
  4. Implementation of K-Nearest Neighbors Classifier(KNN), Support Vector Classifier(SVC), Random Forest Classifier, Gaussian Naive Bayes, Logistic Regression and Synthetic Minority Overlapaping Technique(SMOTE)
  5. Neural Network Model (Multilayer Perceptron).

Contributors

  • Ng Hoe Ping: Data Cleaning, EDA, Feature Engineering, Machine Learning, Data Driven Insights from EDA and ML, Presentation Slides, Video
  • Yao Sheng: Data Cleaning, EDA, Feature Engineering, Machine Learning, Data Driven Insights from EDA and ML, Presentation Slides, Video
  • Edmund Yeo: Data Cleaning, EDA, Feature Engineering, Machine Learning, Data Driven Insights from EDA and ML, Presentation Slides, Video

References

  1. Breast Cancer Statistics
  2. Breast Cancer Facts
  3. Guidelines for removing outliers
  4. Random Forest Regression
  5. K-Nearest Neighbors Classifier(KNN)
  6. Support Vector Classifier(SVC)
  7. Gaussian Naive Bayes
  8. Multilayer Perceptron
  9. Logisitic Regression
  10. Model Evaluation and Metrics
  11. Imbalance data: Methods to fix
  12. SMOTE Application
  13. Choosing the Best Machine Learning Classification Model

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Jupyter Notebook 100.0%