Skip to content

A thorough project on brain tumour diagnosis. From start; data collection to finish; mobile app development.

Notifications You must be signed in to change notification settings

ifunanyaScript/Brain-tumour-diagnosis-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brain-tumour-diagnosis-app

The Data

The dataset consist of 3000 images of Brain MRI scans; 1500 images each for tumour and no-tumour.
Due to Github's 1000 files policy, I did not upload the entire dataset in this repository. However if you wish to procure the dataset you can find it here

Model building

A norm when training machine learning models is to train several versions of the model for quality and testing purposes.
For this purpose, I trained three CNNs for brain tumour classification.
The first model was built as a binary classification. The output layer has one neuron activated by a sigmoid function. I stacked 6 concolution layers, one fully connected dense layer and a final output layer. The model achieved 97.70% testing accuracy.
The second model was built as a multiclass classification. The output layer has 2 neurons activated by a softmax function. I stacked 6 concolution layers, two fully connected dense layer and a final output layer. The model achieved 98.50% testing accuracy.
The third CNN was modelled employing transfer learning. I employed the VGG16 pretrained model weights and designed a new model as a multiclass classification. This model achieved 99% testing accuracy.

The notebooks for training these models are available here. The trained models were saved and exported and are available here.

React JS web app

A react web app for brain tumour diagnosis was developed using these pretrained models.
The web is a drag and drop architecture: One can drag and drop and image of a Brain MRI scan, and readily get a diagnosis result, i.e tumour classification and classification probabilty.
. brain3

The entire source code used to develop this React web app is available here.

React Native mobile app

A fully functional react native app for brain tumour diagnosis. This mobile app is a step up of the web app. It also adopts a similar architecture with a caveat: Using the mobile phone's camera, one can take a picture of a brain MRI scan and readily get a diagnosis result. Alternatively, one can select a picture of a brain MRI from the phone's file manager and also get a diagnosis result.

The source codes used to develop this React Native mobile app is available here.


Feel free to fork this repo and drop a ⭐star on your way out. Thanks! 😀.