KatInterview

Scoring Property Photos and Predicting Listing Appeal

Machine LearningModel answer
MediumModel answerMachine Learningrankingcomputer-visioncold-start

Last updated

Design a two-stage ML system that scores listing photos and predicts overall listing appeal to improve ranking and bookings, including targets, features, imbalance, cold start, metrics and fairness.

Scenario

A short-term rental marketplace wants the most appealing listings to surface higher in search results. You are asked to design a two-stage machine learning system:

  1. Photo scoring model. Rates each uploaded photo on visual craft (lighting, sharpness, composition) and on how useful it is for a guest (does it show the room clearly, is it free of watermarks, collages and overlaid text).
  2. Listing appeal model. Takes the photo scores together with other listing information (price, reviews, location, amenities, host history) and predicts how attractive the listing is to guests.

Available data

  • Millions of raw photos
  • Search impression and click logs, with result positions
  • Booking history
  • Listing metadata and reviews

Objective

Raise booking conversion and engagement (clicks and saves).

What your answer should cover

  • The target variable for each model
  • A feature strategy, especially for the unstructured image data
  • The training approach, including class imbalance if you frame it as binary classification
  • Offline and online metrics
  • How to handle cold-start listings with few or no reviews or bookings

Constraints

  • Must scale to millions of listings
  • Must respect the latency budget of real-time search ranking
  • Must address bias and fairness, for example the risk that the model simply favors photos of luxury homes over those of budget rooms

Hints

Hint 1

Decide what 'quality' means before modeling: should it depend on the search query, or be an intrinsic property of the listing that the ranker combines with relevance later? Consider precomputing it rather than scoring at request time.

Hint 2

Photo labels are scarce. Think about combining human pairwise comparisons, engagement signals that control for the property itself (for example comparing different photos within one listing), and simple utility labels such as room type or blur.

Hint 3

Click and booking data is biased by display position and by popularity feedback loops, and bookings are rare. Think about position debiasing, negative downsampling with calibration correction, and a small randomized exploration slice.

Hint 4

Cold start is where content-based photo features matter most. Combine a content-based prior with observed engagement via shrinkage, and expose a confidence value to the ranker.