Skip to content

Latest commit

 

History

History
131 lines (46 loc) · 4.27 KB

README.EN.md

File metadata and controls

131 lines (46 loc) · 4.27 KB

Tumor Detection-Segmentation Project

i wrote 2 deep learning model for classification and segmetation of tumor and i also create exe GUI application for who wants to use this project but donot have computer knowledge like doctors and medical reaserchers ... i hope it will useful for you

usage GUI Aplication

for using the exe appilcation you can easily download the latest release in github and run the app_GUI_interface.exe and wait for a second and easily use it GUI Aplication does not need download any dependencies all of them is already exist in github release

image

image

install dependencies

we use 3.11 to wrote this code but pay attention to using 3.7 or latest version of python to run thease code you can easily download source code from my github page or if you are familiar with github you can clone the source code in your envirement(better use virtual envierment in these case)

first tip : for next step we have to install python library dependencies you can use Requierments.txt file and then open your terminal and change directory to your virtual envierments and use this command for installing all library with one line code : pip install -r Requirements.txt

second tip : also you can download bellow dependencies manually with pip install

  • tensorflow
  • scikit-learn
  • numpy
  • opencv-python
  • matplotlib
  • pillow
  • pandas
  • keras

important file

we have 3 important python file(notebook)

classification-tumor-finall: in this file i implement a model that able us to know what MRI has tumor and what MRI has not any tumor in fact this model classification all brain MRI to 2 class ( has tumot , has not tumor) also this model do this job with more than 97% accuracy so it is reliable model

finall-version-tumor-segmentation : in this file i implement a model that able us to know location of the tumor in image this model has more than 98% accuracy in identifying the correct location and it has more than 78% accuracy in identifying the entire tumor area and it means i creat reliable model to know where tumor it is

mask maker : in this file i wrote some code to make my input data readable for my model i created i download some dataset from kaggle and i use them for training my model and i use annotation_data_1 and image_dataset directory for train tumor segmentation and i ues no , yes directory for training tumor classification.

some explanation

i ues deep learning alghorithm call convolutional neural network(CNN) and dense neural network for train my data and i use U-Net alghorithm for tumor segmentation beacuse U-Net is so accurate even with little dataset(like this case) and beacuse thease reason it is use a lot in medical AI model

Classification Model Architecture

image

image

Segmentation Model Architecture

image

Model Performance Statistics

evaluate on classification test dataset :

image

statistics during training classification model :

image

image

evaluate on segmentation test dataset :

image

statistics during training segmentation model :

image

image