Group 4
22 Jun 2022
Breast cancer has affected countless women around the world. Detection of this disease in initial stage help to increase the effectiveness of treatment. However, the process to detect breast cancer is time consuming and small malignant areas can be missed.
The goal of developing this app is to assist health professional with the:
ML models are trained to use for breast cancer prediction based on radius, texture, perimeter, area, smoothness, compactness, concavity, concave point, symmetry and fractal dimension.
Source code for Breast Cancer Data Visualizer & Cancer Predictor is available on Github at: [https://github.com/ChaiNamChi/GraphIt]
x_input_norm <- predict(standardizer, x_input[1,]) # perform standardization to data
x_input_pca <- predict(pca, x_input_norm) # perform PCA with predefined pca model
x_input_pca <- t(data.frame(x_input_pca[,1:5])) # get the first 5 features of PCA
svm_classifier <- svm(x_train, y_train, gamma = 0.07, cost = 2)
y_pred <- predict(best_svm_classifier, x_input_pca) # 0 for benign, 1 for malignant