Challenge - 5 Problems
Medical Segmentation Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
Understanding segmentation masks
In medical image segmentation, what does a segmentation mask represent?
Attempts:
2 left
💡 Hint
Think about how each pixel is classified in segmentation.
✗ Incorrect
A segmentation mask labels each pixel to indicate which part of the image belongs to which class, such as different organs or tissues.
❓ Predict Output
intermediate1:30remaining
Output shape of segmentation model
Given a 2D medical image input of shape (128, 128, 1), what is the output shape of a segmentation model that predicts 3 classes per pixel?
Computer Vision
input_shape = (128, 128, 1) num_classes = 3 # Model outputs per-pixel class probabilities
Attempts:
2 left
💡 Hint
The output shape matches the input height and width, with channels equal to number of classes.
✗ Incorrect
The model outputs a probability for each class at every pixel, so the output shape is (height, width, number_of_classes).
❓ Hyperparameter
advanced2:00remaining
Choosing loss function for imbalanced classes
In medical image segmentation, some organs occupy very small areas compared to background. Which loss function is best to handle this class imbalance?
Attempts:
2 left
💡 Hint
Look for a loss that focuses on overlap between predicted and true masks.
✗ Incorrect
Dice Loss measures overlap and is robust to class imbalance, making it ideal for segmenting small organs.
❓ Metrics
advanced1:30remaining
Evaluating segmentation quality
Which metric best measures how well the predicted segmentation overlaps with the ground truth mask?
Attempts:
2 left
💡 Hint
This metric compares the size of the intersection to the size of the union of two sets.
✗ Incorrect
IoU measures the ratio of the overlap area to the combined area of predicted and true masks, reflecting segmentation quality.
🔧 Debug
expert2:30remaining
Diagnosing model output shape error
You trained a segmentation model but the output shape is (126, 126, 2) instead of (128, 128, 2) for 2 classes. What is the most likely cause?
Computer Vision
model = Sequential([
Conv2D(32, 1, activation='relu', input_shape=(128,128,1)),
Conv2D(2, 3, activation='softmax')
])
output = model.predict(input_image)
print(output.shape)Attempts:
2 left
💡 Hint
Check if convolution reduces spatial dimensions unexpectedly.
✗ Incorrect
Without padding='same', convolution reduces height and width, causing output shape to lose spatial dimensions.