Skip to content

About

Google Colab project to classify MRI images using TensorFlow

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

ML-MRI_Classification

Google Colab project to classify MRI images using TensorFlow

Complete Cell Structure: 🎛️ Master Control Panel (Cell 1)

All flags in one place for easy control Visual status display showing what's ON/OFF

📦 Setup & Installation (Cell 2)

Package installation with flag control Library imports (always run)

⬇️ Dataset Download (Cell 3)

Kaggle API integration Manual upload instructions Directory creation

📁 Data Organization (Cell 4)

Automatic train/validation/test split Multiple source directory detection Error handling and feedback

🏗️ MRI Classifier Class (Cell 5)

Complete professional classifier Medical-optimized settings Comprehensive logging

📊 Data Visualization (Cell 6)

Sample image display Dataset statistics Error diagnostics

🏗️ Model Building (Cell 7)

Architecture selection Data generator creation Model summary display

🚀 Model Training (Cell 8)

Training with callbacks Progress visualization Performance tracking

📊 Model Evaluation (Cell 9)

Comprehensive testing Medical interpretation Confusion matrix

🔍 Individual Predictions (Cell 10)

Single image testing Visual prediction display Accuracy assessment

💾 Model Saving (Cell 11)

Model and metadata storage Loading instructions File management

📋 Workflow Summary (Cell 13)

Complete status report Next steps recommendations Success tips

Key Features: 🎯 Easy Control: python# Just change these at the top: VISUALIZE_SAMPLES = True # See your data TRAIN_MODEL = False # Skip training for now
TEST_PREDICTIONS = False # Test later 🔄 Flexible Workflow:

Run any combination of steps Skip time-consuming parts during testing Easy to restart and modify

📱 Beginner-Friendly:

Clear status messages Error explanations Next step guidance

🏥 Medical-Professional:

Appropriate augmentation for medical images Clinical interpretation of results Professional model architecture

How to Use in Colab:

Copy-paste into Colab cells (split at the # === markers) Set your flags in Cell 1 based on what you want to do Run cells in order - each checks its flag first Modify flags and re-run as needed

This gives you the exact same experience as horses vs humans, but with:

Professional medical features Complete control over execution No wasted time on unnecessary steps Clear guidance at every stage

You can start by just setting VISUALIZE_SAMPLES = True to see your data, then gradually enable training and testing as you get comfortable!

About

Google Colab project to classify MRI images using TensorFlow

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages