Brain Tumor Detection:
MRI Image Segmentation Using U-net
By: Peike Li, Queenie Wu, Juslyn Theriault, Eva Wade, and Aidan Perez
Overview
Background
Model Architecture
Model Building &�Training
Loss function and metrics
MRI
U-net
Model
Model Assessment
Learning curve &
conclusion�
Result
MRI & FLAIR
Abnormal watery region
Our dataset
Goal and Potential Applications
Solution
Image segmentation using convolutional neural network (CNN):
U-Net
U-Net Background
Original Application:
Segmenting Images of cells
Modern Application:
Generative AI
Pug Dancing
Ballet
U-Net
Encoder
Decoder
Skip Connection
Skip Connection
Skip Connection
Channels/Dimensions
Procedures
Procedure overview
Read Images
Image Augmentation
“An image to (256, 256, 3)”
–– OpenCV
“Rotate, zoom, shift, flip
Recognize me in all angles”
–– more training data
Train-Test
Split
Model
Building
Model
Training
& Assessment
“Encoder, Decoder, Me!”
–– U-Net
Model Building
Build a U-Net
Get Layer (256 x 256)
Get Layer (128 x 128)
Get Layer (64 x 64)
Get Layer (32 x 32)
Bridge
Pretrained Model As Encoder
Customized Decoder
Get Layer (32 x 32)
Get Layer (64 x 64)
Get Layer (128 x 128)
Get Layer (256 x 256)
Model Building
Build a U-Net
Get Layer (256 x 256)
Get Layer (128 x 128)
E
Get Layer (32 x 32)
Bridge
Pretrained Model As Encoder
Customized Decoder
D
Get Layer (64 x 64)
Get Layer (128 x 128)
Get Layer (256 x 256)
What’s happening in a decoder layer?
Inside a Decoder Layer…
D = Last decoder layer
Concatenate
E = encoder layer
E after integrating D
D after Upsampling
Input 1
Input 2
“Attention gate”
Convolutional Block
D_new = Decoder layer
Feature extraction + learning
Loss Function & Metrics
Dice Coefficient
Jaccard’s Index
Suppose model was trained successfully…
For illustration purpose
Learning Curve
Epochs
Truth-Prediction Comparison