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 Component | Details |
|---|---|
| Images | 420K RGB images, resized to 224x224 for training |
| Labels | 120 possible tags; average 2.7 tags per image |
| Metadata | upload_device, country, hour_of_day, image_width, image_height |
| Class balance | Highly 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
- Build a multi-label tag prediction model for uploaded images.
- Explain preprocessing, feature extraction, and model choice.
- Handle class imbalance, label noise, and threshold selection.
- Evaluate the model with appropriate multi-label metrics.
- Propose a production-ready inference and retraining approach.
Practicing as: AI Engineer interview at GoogleHi, 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.
You are practicing as a guest. Sign up free to get your answer graded with AI feedback. Your draft stays right here.

