0
0
Computer Visionml~20 mins

Dataset bias in vision in Computer Vision - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Dataset Bias Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Dataset Bias in Vision Models

Which of the following best describes dataset bias in computer vision?

AWhen the training data does not represent the real-world diversity, causing the model to perform poorly on unseen data.
BWhen the model architecture is too simple to learn complex patterns in images.
CWhen the dataset contains corrupted or missing image files.
DWhen the model is trained for too many epochs causing overfitting.
Attempts:
2 left
💡 Hint

Think about how the data used to train the model affects its ability to generalize.

data_output
intermediate
2:00remaining
Detecting Bias in Image Dataset Distribution

You have a dataset with images labeled as 'cat' or 'dog'. The dataset has 900 cat images and 100 dog images. What is the class distribution ratio?

Computer Vision
labels = ['cat'] * 900 + ['dog'] * 100
from collections import Counter
class_counts = Counter(labels)
ratio = class_counts['cat'] / class_counts['dog']
print(ratio)
A9.0
B0.11
C1.0
D10.0
Attempts:
2 left
💡 Hint

Divide the number of cat images by the number of dog images.

visualization
advanced
2:30remaining
Visualizing Dataset Bias with Image Counts

Given a dataset with image counts per class, which bar chart correctly shows the bias towards one class?

Computer Vision
import matplotlib.pyplot as plt
classes = ['cat', 'dog', 'rabbit']
counts = [900, 100, 50]
plt.bar(classes, counts, color=['blue', 'orange', 'green'])
plt.title('Image Counts per Class')
plt.xlabel('Class')
plt.ylabel('Number of Images')
plt.show()
AA line chart showing counts over time.
BA bar chart with all bars equal height.
CA bar chart with 'rabbit' bar tallest, 'dog' medium, 'cat' shortest.
DA bar chart with 'cat' bar much taller than 'dog' and 'rabbit' bars.
Attempts:
2 left
💡 Hint

Look for the chart where one class has many more images than others.

🔧 Debug
advanced
2:00remaining
Identifying Bias Impact in Model Accuracy

Consider a model trained on a biased dataset with mostly cats. The accuracy on cats is 95%, but on dogs is 60%. What is the likely cause?

AThe model architecture is too complex causing overfitting on cats.
BThe training was stopped too early before learning dog features.
CThe model learned mostly from cat images and struggles to generalize to dogs due to dataset bias.
DThe dog images are corrupted causing low accuracy.
Attempts:
2 left
💡 Hint

Think about how the imbalance in training data affects model performance on different classes.

🚀 Application
expert
3:00remaining
Mitigating Dataset Bias in Vision Models

You have a dataset with strong bias: 90% of images are indoor scenes, 10% outdoor. You want to train a model that works well on both. Which approach is best?

AIgnore the bias and train on the full dataset as is.
BUse data augmentation to increase outdoor images and balance the dataset before training.
CTrain only on indoor images since they are the majority to maximize accuracy.
DRemove all indoor images and train only on outdoor images.
Attempts:
2 left
💡 Hint

Think about how to balance the dataset to reduce bias.