Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Predict Image Upload Tags

Medium
MediumMachine LearningNeural NetworksFeature EngineeringSupervised LearningAsked 2 times

Problem

Business Context

PixShare, a consumer photo-sharing platform, receives about 1.8M image uploads per day. The search and discovery team wants an automated tag prediction system that suggests relevant tags (for example: beach, dog, sunset, indoor, food) immediately after upload to improve search recall and downstream recommendations.

Dataset

You are given a historical training set of user-uploaded images with moderator-approved tags. This is a multi-label image classification problem: each image can have zero, one, or multiple valid tags.

Dataset ComponentDetails
Images420K RGB images, resized to 224x224 for training
Labels120 possible tags; average 2.7 tags per image
Metadataupload_device, country, hour_of_day, image_width, image_height
Class balanceHighly imbalanced; top 10 tags cover 61% of labels, long tail tags appear in <1% of images
Data quality~6% noisy labels from weak user annotations; ~3% corrupted images removed during preprocessing

Success Criteria

A solution is considered good enough if it achieves strong ranking quality on common tags while maintaining usable recall on tail tags. Target performance is micro-F1 >= 0.68, macro-F1 >= 0.42, and Precision@3 >= 0.78 on a held-out test set.

Constraints

  • Predictions must be returned in under 120 ms p95 per image in online inference.
  • The system should output the top 3-5 tags with calibrated confidence scores.
  • Retraining can run weekly; online serving budget does not allow a very large ensemble.
  • The moderation team needs per-tag thresholding and error analysis for sensitive tags.

Deliverables

  1. Build a multi-label tag prediction model for uploaded images.
  2. Explain preprocessing, feature extraction, and model choice.
  3. Handle class imbalance, label noise, and threshold selection.
  4. Evaluate the model with appropriate multi-label metrics.
  5. Propose a production-ready inference and retraining approach.
Practicing as: AI Engineer interview at Google

Hi, I'll play your Google interviewer for the AI Engineer role. Candidates describe these interviews as mostly positive and hard, so expect me to be friendly but thorough. Take your time with the question above and answer like we're in the room.

Take this as a live interview session →

You are practicing as a guest. Sign up free to get your answer graded with AI feedback. Your draft stays right here.

Sign up freeI have an account
Sign up to unlock solutions
Google AI Engineer Interview QuestionsTop 50 Neural Networks Interview Questions
Next questions
MetaReal-Time Hate Speech DetectionHardPredict Campaign Response for Retail MarketingEasyMidwest Employers CasualtySegment Shoppers and Predict PurchasesEasy