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
- Ng Hoe Ping
- Ong Yao Sheng
- Edmund Yeo Zi Long
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.
- 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?
- Original Dataset
- Death Dataset
- Recovered Dataset
- Under Treatment Dataset
- Presentation Slides
- Video can be assessed from this link
- 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
- 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
- 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
- Decision Tree
- RandomForestClassifier
- Logistic Regression
- K-Nearest Neighbours (KNN)
- Support Vector Machine (SVM)
- Gaussian Naive Bayes (NB)
- Keras Neural Network
- Visualisations to identify imbalance data and effectiveness of Machine Learning Techniques.
- Evaluating with Precision, recall, f1 score.
-
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
- Numerical Columns
-
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.
- Concepts of different evluation methods (Precision, Recall and F1 Score).
- Identifying false accuracy with overfitting and imbalance data.
- Handling overfitting and imbalance data.
- 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)
- Neural Network Model (Multilayer Perceptron).
- 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
- Breast Cancer Statistics
- Breast Cancer Facts
- Guidelines for removing outliers
- Random Forest Regression
- K-Nearest Neighbors Classifier(KNN)
- Support Vector Classifier(SVC)
- Gaussian Naive Bayes
- Multilayer Perceptron
- Logisitic Regression
- Model Evaluation and Metrics
- Imbalance data: Methods to fix
- SMOTE Application
- Choosing the Best Machine Learning Classification Model