Breast Cancer Prediction App

Ghida Ibrahim
Wed Jul 20 16:47:04 2016

App Idea

  • The app provides a user-friendly interface for predicting women's breast cancer risk, through relying on inputs related to the breast tumor size
  • The app can be used by women sensing tumors development in their breasts or by doctors for doing a pre-diagnosis for their patients
  • The app is expected to boost the early-stage detection of breast cancer
  • The app is also expected to enable a highly accurate and low-cost diagnosis of women breast cancer

UI.R Implementation Details

The UI.R script includes the shinyUI function which allows displaying the following items on the app website: https://ghida.shinyapps.io/My_App/

  • a sidebar panel containing a slider where the user can specify the approximate size, on a scale from 1 cm to 6 cm, of the breast tumor
  • A main panel where the input provided by the user and the subsequently calculated cancer risk are displayed

Server.R Implementation Details

The Server.R script includes the followings:

  • a R function taking as input the tumor size as provided by the user, and calculating the associated risk of breast cancer. The calculation is based on a pre-fitted linear regression model with the tumor size as a single feature and the cancer risk on a scale from 0 to 1 as output. The R code is presented below:
CancerRisk <- function(Tumor_size) (Tumor_size)/7
  • A shinyServer function called each time the user provides a new input. This function renders the input and the associated breast cancer risk so that these values can be displayed on the UI

Remarks and Future Work

This app provides a very basic means for assessing breast cancer risk based on a single input, that is the tumor size. A more sophisticated prediction model including more features and taking into account a large volume of training examples from existing patients with breast tumors in under development.

When the model is ready, the R function in Server.R should be updated to reflect these changes