Computer Vision interview question

Deep LearningComputer VisionDL Regularizationeasy

A grocery chain trains a CNN to grade bananas on a conveyor belt as unripe, ripe or overripe from camera images. Which augmentation is most likely to hurt the model by producing images whose label is no longer correct?

  1. ARandom horizontal and vertical flips, because bananas reach the camera in one fixed orientation, so flipped images carry orientation cues that contradict the label.
  2. BRandom hue and saturation jitter, because ripeness is read from the colour of the peel, so shifting green toward yellow makes an unripe banana look ripe.
  3. CRandom resized crops covering 60–100% of the image, because a crop removes part of the fruit, so the remaining region can no longer show its ripeness.
  4. DRandom Gaussian blur and JPEG compression, because smoothing removes the small brown spots that mark overripe fruit, so the label signal disappears.
Show the answer and explanation

Correct answer: B, Random hue and saturation jitter, because ripeness is read from the colour of the peel, so shifting green toward yellow makes an unripe banana look ripe.

Explanation Computer Vision

Data augmentation only helps if the transformation is label-preserving: the transformed image must still be a valid example of the same class. Otherwise you inject label noise and teach the model a false invariance.

For ripeness grading, colour is the label: green means unripe, yellow ripe, brown-spotted overripe. Hue and saturation jitter can turn a green banana yellow while it keeps the "unripe" label, so the model is trained to treat the very signal it needs as irrelevant noise. Mild brightness jitter, simulating lighting changes, is usually fine; large hue shifts are not.

The other options are standard, safe augmentations here: ripeness does not depend on orientation, so flips are label-preserving even if the belt always presents fruit the same way. Crops covering most of the image still show the peel's colour, and blur or JPEG artefacts at realistic strengths mimic camera quality: they soften fine detail but keep the peel colour and browning that separate the classes.

Domain knowledge decides what is safe:

DomainRisky augmentationWhy
Digits, text, OCRflips, large rotations6↔9, mirrored letters
Traffic signshorizontal flipleft-turn ↔ right-turn arrows
Medical imagingleft-right fliplaterality matters (organ position, markers)
Fruit ripeness, traffic lightscolour/hue jittercolour is the label
Satellite imagery(rotations and flips usually fine)no canonical orientation

Interview tip: say you choose augmentations by asking "would a human labeller still give this image the same label?" and that you validate augmentations empirically, ideally inspecting a grid of augmented samples before training.

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More Deep Learning questions

  1. In a deep MLP with sigmoid activations, the error signal reaching the first layer's weights has passed through ten sigmoid derivatives. Ignoring the weight…
  2. A teammate multiplies a recommender's training loss by 100 so the dashboard shows larger numbers. For one weight the gradient has been steady at g = 0.004 per…
  3. In neural network training, what is an epoch?
  4. What is the ReLU activation, and why is it a popular default for hidden layers?
  5. In neural network training, what is backpropagation?