Skip to content

lsa3edii/Graduation_Project

Repository files navigation

Graduation Project

Overview:

Our project investigates the use of deep learning technology in the medical field, it is a medical diagnosis system for brain cancer that works using artificial intelligence algorithms such as deep learning techniques especially CNNs, for the model to classify magnetic resonance images (MRI), because traditional methods for classifying brain tumours take a long time to complete. Manual inspection and subject to human error. Therefore, we decided to create a mobile application with many features and linked it to the deep learning model that we had previously trained via an API to help doctors and patients identify whether patients have brain cancer or not.

We have created a mobile app to use the deep learning model smoothly and easily.

  • Users in our System → (Admin, Patients, and Doctor).

We have created a backend system to handle Firebase, Flutter UI, API, and deep learning model together, and API controller that facilitates seamless communication among different components of the system, ensuring efficient data flow and interaction.

Documentation & Presentation & Videos:

Explanation of CNN Model:

In this video, I personally explain our deep learning model: https://youtu.be/B4n_O51cDB0?si=b8SmDj6EP-moFNME

Technologies & Tools:

  • Python Language
  • Jupyter Notebook
  • Colab Notebook
  • Flask Framework
  • Dart Language
  • Flutter Framework
  • Firebase & Database
  • Android Studio
  • VS Code

Some of Features:

  • Registration & Login & Logout
  • Google Authentication
  • Facebook Authentication
  • Email Verification & Data Validation
  • Chatting with doctor
  • Searching for certain user
  • Reset Password
  • Change Profile Data
  • Manage Users (Add & Delete)
  • Use AI to predict brain cancer MRI
  • Contact with developer

Workflow:

Pipeline

Details of Our Datasets:

To create our Brain Cancer MRI (Magnetic Resonance Imaging) dataset, we collected some datasets, based on three different types of brain tumors (glioma, meningioma, pituitary) and another dataset does not contain any disease to train our model.

  • Number of Samples: 20000
  • [Training : Testing] Ratio → 16000 image : 4000 image → 80% : 20%
  • Diminution of images: (512 * 512)
  • Classes number: 4
  • Classes Labels: (brain glioma, brain menin, brain pituitary, no_tumor)

Links:

Analysis & Distribution Datasets:

Screenshot 2024-01-04 082717

Preprocessing:

Steps for our Image Preprocessing:

  • Image Collection & Exploration
  • Image Reading & Cleaning
  • Image Resizing
  • Splitting Dataset
  • Save Preprocessed Images

Model Training:

Screenshot 2024-01-03 192332

Accuracy & Loss Graphs:

Screenshot 2024-01-03 192221

Evaluation:

Screenshot 2024-01-03 192447 We have made some modifications to the model of the paper and changed the hyperparameters in the model many times to get the best results.

Comparison between Models:

Screenshot 2024-01-03 192247

Discussion and Notes about Custom CNN & TL Models:

  • There are many problems with Alex-Net Model because it is overfitting, and model can’t work with the dataset. So, we can’t train this model and the solution is with other models, especially Custom CNN.
  • VGG16 Model and Res-Net Model have shown great results in a very small number of epochs during the training, and we rely completely on our project on our Custom CNN.
  • Therefore, we did not care much about training both models (VGG16 and Res-Net) any further, and we were satisfied with these results.

Future Work:

  • Make the scaling of application is larger to handle many different of users.
  • Make an application version for the web to make it easier for users to use our web app.
  • Add Video call for users and doctors.
  • Support different languages to gain more audience from all over the world.
  • Activate Facebook authentication.
  • Add dark mode theme to our application.
  • Train another model on object detection techniques to detect the Infected cells.
  • Train another model on NLP techniques for predicting brain prescription texts.

About

Medical Diagnosis System for Brain Cancer by Using Deep Learning Techniques

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published