Predicting cancellations with survival modeling

Jacob Lynn11 Nov 2024

Problem

Booking.com predicts the probability that a reservation will be canceled, because many properties offer free cancellation. A gross booking becomes a net booking (a real stay) only at check-in, which can be more than a year after booking. Experiments and marketing decisions cannot wait that long, and a change may raise gross bookings while net bookings stay flat. The classifier trained on completed reservations could not follow the 2020 pandemic spike in cancellations. Its training data contained almost only pre-pandemic reservations.

Example from the article: reservations made before the pandemic with check-in in April or May 2020 suddenly had a 99%+ chance of being canceled, and the model had not seen this behavior.

Solution in brief

Instead of one cancellation probability, a neural network outputs the whole distribution of cancellation time (per day after booking). The loss function uses canceled reservations and still-open reservations alike, so recent data enters training immediately. The same distribution also gives the updated cancellation risk of any open reservation.

Questions this case answers
  • How to train a probability model on records whose final outcome is not yet known, without biasing the labels toward early events or toward still-open records
  • How to update the predicted event probability of an open record as it stays event-free, without training a new model for each time window
  • How to train a prediction model when the outcome label only arrives at a later date, such as check-in?
  • How to keep a cancellation model accurate when user behavior shifts suddenly?

Tools and methods

  • Survival analysis (time-to-event model) — learns the probability that a reservation is canceled on each day after booking.
  • Feed-forward neural network with a distribution output — outputs one value per day after booking instead of one sigmoid value.
  • Survival loss with censored records — counts open reservations through the probability of a cancellation after the observation day.
Continue reading — it's free

Google or a one-time email code. No password.