Software engineers working in a conference room on their laptops.
Tourism & Hospitality

Booking cancellation prediction with machine learning

Predicting booking cancellations for hospitality resilience.

01.2021

The project

Booking cancellations always cost hotels money, and during the pandemic they hit the industry hard. That’s why we started this project with GODO. 

The project consists of training algorithms by using the data from our customer’s booking history to predict booking cancellations in their system, allowing hotels or travel agencies to anticipate and act in a preventive manner.

The process

To train the algorithm we used 80% of the bookings from the most active hotels that were created between 2018 and 2019. The other 20%, the test set, was used to validate the performance of our model.

Moreover, we categorized the predictions of the bookings in the test set, into three categories: to be canceled, to be confirmed, and uncertain. A prediction is uncertain when the model’s probability is close to 50% either way.

Of the 24,652 bookings that were used to test the model, the predictions were:

  • 5,256 (21%) to be canceled;

  • 15,500 (63%) to be confirmed;

  • 3,896 (16%) uncertain;

Of the 5,256 to-be-canceled predictions, 4,955 (94%) were correct.

Of the 15,500 to be confirmed predictions, 13,887 (90%) were correct.

With 94% of predicted cancellations and 90% of predicted confirmations turning out correct, we can reliably use the booking predictions of our model. The next step is to decrease the number of uncertain bookings, while also maintaining the accuracy of the predictions.

After the implementation of this project, we continued with future improvements to ensure that the ML service is easy to operate and that the trained models are easy to manage, monitor, and deploy, including: 

Implementation of ML Pipeline with DVC consists of five stages: 

  1. Data selection

  2. Feature extraction

  3. Train-test split

  4. Train model

  5. Model evaluation

  • DVC and git enable versioning of the dependencies, parameters, and outputs for every stage of the pipeline which allows reproducing different versions of our model and gives a simple method to run multiple model experiments with different training parameters;

  • Development of the ML API which receives requests for predictions, makes the predictions on the already trained models, and sends back the results;

  • Generalized model of training multiple algorithms for different GODO properties sequentially and storing and versioning the generated models in the ML Pipeline in order to achieve a simpler process of tracing the changes, and an easier process of managing the different models; 

The result

The result is a lightweight ML service: one generalized pipeline that trains, versions and serves a model for each GODO property.

Similar projects
violet frame violet frame
Optimizing operations with smarter database management and streamlined code
violet frame violet frame
Transforming hospitality operations.
violet frame violet frame
Ability to negotiate, pre-reserve and book accommodation in bulk.
violet frame violet frame
Streamline booking and communication between hotels and agencies

Let's discuss your project.

We're all ears.

Drop us a line

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.