Dataford
Popular roles
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Browse
Browse All RolesEvery role hub, from analyst to MLBrowse All CompaniesCompany-specific interview loopsAll Interview GuidesThe full guide library
Top questions by role
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Top questions by skill
SQLPythonStatisticsMachine LearningA/B TestingSystem DesignGenerative AIProduct SenseMetricsBehavioral
Browse all questions →Try a mock interview
ExperiencesCoaching
New
Practice
Mock InterviewsTimed interview simulations with feedbackSuccess PathYour 6-week structured planModulesCurated lessons by topicWebinarsTalks from ex-Big Tech data leadsPlaygroundA free-form scratch editor
Learn
BlogInterview strategy and career adviceTech Job Market ReportHiring trends across data and AI rolesFor UniversitiesDataford for career centersAbout DatafordWho we are and how we build
Pricing
Get started

Predict Image Upload Tags

HardMachine Learning00:00
Practice interviewer
In session
5 left
00:00

Whenever you're ready, walk me through how you'd approach this.

You need to log in / sign up to chat or submit.

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.