nerdexam
Amazon

MLS-C01 · Question #305

A company's machine learning (ML) specialist is building a computer vision model to classify 10 different traffic signs. The company has stored 100 images of each class in Amazon S3, and the company…

The correct answer is A. Use Amazon SageMaker Ground Truth to label the unlabeled images. C. Use data augmentation to rotate and translate the labeled images. The ML specialist has an overfitting computer vision model for multi-class traffic sign classification with limited labeled data and needs to address this.

Modeling

Question

A company's machine learning (ML) specialist is building a computer vision model to classify 10 different traffic signs. The company has stored 100 images of each class in Amazon S3, and the company has another 10,000 unlabeled images. All the images come from dash cameras and are a size of 224 pixels ?224 pixels. After several training runs, the model is overfitting on the training data. Which actions should the ML specialist take to address this problem? (Choose two.)

Options

  • AUse Amazon SageMaker Ground Truth to label the unlabeled images.
  • BUse image preprocessing to transform the images into grayscale images.
  • CUse data augmentation to rotate and translate the labeled images.
  • DReplace the activation of the last layer with a sigmoid.
  • EUse the Amazon SageMaker k-nearest neighbors (k-NN) algorithm to label the unlabeled images.

How the community answered

(28 responses)
  • A
    75% (21)
  • B
    14% (4)
  • D
    4% (1)
  • E
    7% (2)

Why each option

The ML specialist has an overfitting computer vision model for multi-class traffic sign classification with limited labeled data and needs to address this.

AUse Amazon SageMaker Ground Truth to label the unlabeled images.Correct

Overfitting is often caused by insufficient training data, so using Amazon SageMaker Ground Truth to label the 10,000 unlabeled images significantly expands the training dataset. This provides more diverse examples for the model, helping it generalize better and reducing overfitting.

BUse image preprocessing to transform the images into grayscale images.

Transforming images to grayscale reduces color information, which might be crucial for distinguishing traffic signs, and is not a primary or universally effective method for addressing overfitting.

CUse data augmentation to rotate and translate the labeled images.Correct

Data augmentation, such as rotating and translating existing labeled images, artificially increases the size and diversity of the training dataset without requiring new data collection. This technique helps the model learn more robust features and become less sensitive to minor variations, directly combating overfitting.

DReplace the activation of the last layer with a sigmoid.

Replacing the activation of the last layer with a sigmoid is appropriate for binary classification; for 10 classes, a softmax activation function is required, making this change functionally incorrect for the problem type.

EUse the Amazon SageMaker k-nearest neighbors (k-NN) algorithm to label the unlabeled images.

While k-NN could be used for pseudo-labeling, Amazon SageMaker Ground Truth offers human-in-the-loop labeling, which provides higher quality and more reliable labels crucial for effectively addressing overfitting with new data.

Concept tested: Overfitting mitigation in computer vision

Source: https://docs.aws.amazon.com/sagemaker/latest/dg/sms-features-ground-truth.html

Topics

#Overfitting#Data Augmentation#Data Labeling#Computer Vision

Community Discussion

No community discussion yet for this question.

Full MLS-C01 Practice