{"id":22882673,"url":"https://github.com/masoudnick/brain-tumor-mri-classification","last_synced_at":"2025-10-24T14:45:41.069Z","repository":{"id":44911342,"uuid":"410386248","full_name":"masoudnick/Brain-Tumor-MRI-Classification","owner":"masoudnick","description":"Brain Tomur Classification Using Pre-trained Models","archived":false,"fork":false,"pushed_at":"2022-03-25T20:41:39.000Z","size":3970,"stargazers_count":67,"open_issues_count":0,"forks_count":26,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-31T06:32:02.773Z","etag":null,"topics":["brain-tumor","brain-tumor-classification","brain-tumor-dataset","classification","dataset","deep-neural-networks","keras","medical-image-processing","pre-trained-model","resnet-50","tensorflow"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/masoudnick.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-25T21:32:05.000Z","updated_at":"2025-03-14T19:13:02.000Z","dependencies_parsed_at":"2022-09-03T21:31:58.324Z","dependency_job_id":null,"html_url":"https://github.com/masoudnick/Brain-Tumor-MRI-Classification","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masoudnick%2FBrain-Tumor-MRI-Classification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masoudnick%2FBrain-Tumor-MRI-Classification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masoudnick%2FBrain-Tumor-MRI-Classification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masoudnick%2FBrain-Tumor-MRI-Classification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/masoudnick","download_url":"https://codeload.github.com/masoudnick/Brain-Tumor-MRI-Classification/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252816937,"owners_count":21808704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["brain-tumor","brain-tumor-classification","brain-tumor-dataset","classification","dataset","deep-neural-networks","keras","medical-image-processing","pre-trained-model","resnet-50","tensorflow"],"created_at":"2024-12-13T18:18:59.656Z","updated_at":"2025-10-24T14:45:36.038Z","avatar_url":"https://github.com/masoudnick.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Brain Tumor MRI Classification Using Pre-trained Models\n\n## What is a brain tumor?\n\nA brain tumor is a collection, or mass, of abnormal cells in your brain. Your skull, which encloses your brain, is very rigid. Any growth inside such a restricted space can cause problems. Brain tumors can be cancerous (malignant) or noncancerous (benign). When benign or malignant tumors grow, they can cause the pressure inside your skull to increase. This can cause brain damage, and it can be life-threatening.\n\n## The importance of the subject\n\nEarly detection and classification of brain tumors is an important research domain in the field of medical imaging and accordingly helps in selecting the most convenient treatment method to save patients life therefore.\n\n## Basic Requirements\n\n| **Package Name**      | **Version** |\n| --------------------- | ----------- |\n| `python`              | 3.7.12      |\n| `tensorflow`          | 2.6.0       |\n| `keras`               | 2.6.0       |\n| `keras-preprocessing` | 1.1.2       |\n| `matplotlib`          | 3.0.2       |\n| `opencv`              | 4.1.2       |\n| `scikit-learn`        | 0.22.2      |\n\n## Dataset\n\nThe dataset was taken from [here](https://www.kaggle.com/masoudnickparvar/brain-tumor-mri-dataset).\n\n### Dataset Details\n\nThis dataset contains **7022** images of human brain MRI images which are classified into 4 classes:\n\n- glioma\n- meningioma\n- no tumor\n- pituitary\n\nAbout 22% of the images are intended for model testing and the rest for model training.\nPay attention that The size of the images in this dataset is different. You can resize images to the desired size after pre-processing and removing the extra margins.\n\n### Data Pre-processing\n\nCrop the part of the image that contains only the brain (which is the most important part of the image): The cropping technique is used to find the extreme top, bottom, left and right points of the brain using OpenCV. You can do this with [Preprocessing.py](https://github.com/masoudnick/Brain-Tumor-MRI-Classification/blob/main/Preprocessing.py)\n\n![preprocessing result](https://github.com/masoudnick/Brain-Tumor-MRI-Classification/blob/main/preprocess.jpg)\n\n## Pre-trained Model\n\nA pre-trained model is a model that was trained on a large benchmark dataset to solve a problem similar to the one that we want to solve. Accordingly, due to the computational cost of training such models, it is common practice to import and use models from published literature (e.g. VGG, Inception, ResNet50). For this project, I decided to use **ResNet50** model to perform image classification for brain tumor MRI images.[Resnet50 Article](https://arxiv.org/abs/1512.03385)\n\n## Note\nYou can see more details about training steps and testing results inside [Brain_Tumor_Classification.ipynb](https://github.com/masoudnick/Brain-Tumor-MRI-Classification/blob/main/Brain_Tumor_Classification.ipynb)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasoudnick%2Fbrain-tumor-mri-classification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasoudnick%2Fbrain-tumor-mri-classification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasoudnick%2Fbrain-tumor-mri-classification/lists"}