Journals / Case study

How Expedia sorted traveller messages without labelled data

In October 2022 an Expedia engineer described how a team there sent customer messages to the right teams without training a classifier. Pre-trained word vectors measure how far each keyword sits from a category word, and a hand-set cutoff decides. The post reports no accuracy at all, which is the first thing we would fix.

08 NOV 20268 min readTravel · Classification · Embeddings · Machine learning Based on: Expedia Group, 2022
Diagram of Expedia's worked example. The message "We flew an hour late." is cleaned to three keywords: flew, hour and late. A table gives each keyword's distance to the category words Flight, Hotel and Car: flew 3.82, 5.28, 5.46; hour 4.56, 5.35, 5.40; late 5.43, 5.39, 5.66. The cutoff N is 4 for Flight and not given for Hotel or Car. Only flew to Flight, 3.82, is under the cutoff, so the message goes to Flight. Below, a flat sketch of the idea: plane, jet, pilot, flown and flew sit inside a dashed circle around Flight; resort, inn and apartment sit near Hotel; truck, driver and vehicle near Car; hour and late sit outside every circle.
Diagram: MORARI. Source: Expedia Group

Every travel company gets messages it has to pass on: a delayed flight, a dirty room, a refund that never came. The hard part is deciding who should read each one. On 25 October 2022 Aman Gupta of Expedia Group described how the Conversation Platform Voice of Traveller team did it without a single labelled example.

The problem: thousands of messages, no labels

"We receive thousands of customer messages every day and need an efficient way to send each message to the correct Expedia Group teams." A message can belong to more than one team, so each needs one or more labels from "a custom multi-label taxonomy".

The usual answer is to train a classifier. But such models "need thousands of pre-classified/labelled dataset for fine-tuning", and the team had none. Labelling by hand was judged "tedious and time-consuming."

The cheap answer is a keyword list with synonyms. The post shows where it breaks with two complaints: "My plane was delayed." and "We flew an hour late." Plane is a synonym of flight, so the first one sorts itself. In the second, "the keyword ‘flew’ is not a synonym of the word ‘flight’, thereby making it difficult for the algorithm to classify it as a ‘flight issue’."

How they built it

Borrow meaning from word vectors. The team wrote "a heuristic algorithm that leverages pre-trained word-embedding models." A word embedding turns each word into a list of numbers, learned from a large body of text, so that words used in similar ways get similar numbers. "In our actual solution we used pre-trained word embedding from GloVe", a free set of English vectors from Stanford. The post's 3D plots show what that buys: flew, flown, jet and airplane cluster around flight, while flight, hotel and car sit far apart.

One word per category. Each category is represented by its own word. The post's example has three: Flight, Hotel and Car.

Measure the distance. A cleaning step strips the message to keywords; for the second complaint, "‘flew’, ’hour’, ’late’." For each keyword the pipeline measures the distance to every category word, and assigns the message to a category "if the resulting linear distance is less than ’N’ (can be different for each category)." Because each category has its own cutoff, a message can land in several.

Tune by hand. The cutoffs were set by trial: "By making small changes to the value of ’N’ and analysing the results, we enriched the classification results." The team also added "custom classification rules", whose details the post leaves out.

The worked example is drawn above. Flew sits 3.82 from Flight, 5.28 from Hotel and 5.46 from Car. With N "configured as 4" for Flight, the message goes to Flight.

Look closer and the example is thin, in our reading. Only flew passes. Hour is 4.56 from Flight, over the cutoff, and late is nearer to Hotel (5.39) than to Flight (5.43). One word out of three decides. The post does not say how keywords combine, which GloVe file was used, or what the Hotel and Car cutoffs are.

The title says unsupervised learning. The vectors were trained that way, but nothing is learned from Expedia's messages: the categories, the words and the cutoffs are all set by people.

What it delivered

The post claims one result: messages get sorted and forwarded, "so they can take action on the feedback." It reports no accuracy, no share of messages placed, no comparison with the keyword list it replaced, and no volume beyond "thousands" a day. It does not say how many categories run in production, which languages are handled, or whether a person checks the output.

That is not unusual for a short engineering post, but it means the method's value is unproven. Without a labelled test set, nobody can say whether a cutoff of 4 is good.

What has changed since

Word vectors gave way to sentence vectors. Twelve days before the post, researchers released MTEB, a benchmark for text embedding models: "MTEB spans 8 embedding tasks covering a total of 58 datasets and 112 languages." Models scored there embed a whole message, so a message about flying an hour late lands near one about a delayed flight, without hanging on one keyword.

Tools caught up with Expedia's exact problem. BERTopic, an open-source topic library, added zero-shot topic modelling in November 2023: "Use a predefined list of topics to assign documents" and "If needed, allows for further exploration of undefined topics". That is Expedia's fixed category list with a cutoff, plus a way to find new themes.

Large language models moved into review text, mostly to summarise rather than sort. Amazon's AI review highlights launched in August 2023, "Now available to a subset of mobile shoppers in the U.S. across a broad selection of products". In October 2024 Booking.com said it "is testing Review Summaries". Expedia's own tech blog wrote in December 2024 that "the LLM distills large volumes of customer reviews into insights and highlights." Hotel Dive reported that Expedia's "self-service virtual agents handle nearly half of all inquiries", Expedia-reported.

None of these says what happened to the 2022 classifier, and we found no follow-up post. Summaries help a reader skim many reviews; routing gets one message to one team. Different jobs, in our reading.

Why it matters for your business

Indonesian hotels, airlines and apps face the same routing problem, in a harder language mix. A guest might write AC kamar mati, check-in lama banget, with Indonesian, English and slang in one line. GloVe's vectors are English only. The research base for Indonesian exists: IndoNLU "includes twelve tasks, ranging from single sentence classification to pair-sentences sequence labeling", and SEA-LION says its models support "11 SEA languages, namely English, Chinese, Indonesian," and more. Neither is a hotel-feedback dataset, so you still need your own test set.

Guest messages also carry names, phone numbers and booking codes. Indonesia's personal data protection law, UU 27/2022, sets rules for sending personal data abroad, which covers pasting guest text into a foreign AI service. Masking comes first; check the details with counsel.

The lesson that travels is Expedia's starting point, not its method: you do not need thousands of labels to begin sorting. You do need a few hundred to know whether the sorting works.

How we would build it today

Diagram of guest-message sorting for an Indonesian hotel group, in four bands. Pick the job: route each message to front office, housekeeping, F and B, finance or the app team; count complaints per theme, per property, per week; or summarise review highlights for readers, a different tool with human spot checks. Prepare: a short category list written with operators, such as check-in, kebersihan, noise, Wi-Fi, sarapan, staff, refund and app, plus other; a labelled test set of a few hundred real messages, two people each, in the mixed Indonesian, English and slang guests write; and masking of names, phone numbers, emails and booking codes before any outside API, per UU 27/2022. Sort: a multilingual sentence-embedding model scored on the test set, then a cutoff per category, Expedia's N on whole messages rather than single words, then leftovers clustered, named by an LLM and approved by a person before a new category is added. A second opinion: an LLM classifier given the list and the message, measured on the same test set for accuracy and cost. Prove it: accuracy per category on the test set before anything is routed, a weekly review of 50 live messages by a person, and retuning of cutoffs and categories from the disagreements.
Fix the job and the test set first, then let meaning do the matching. Diagram: MORARI. Source: Expedia Group
  1. Name the job. Routing, counting themes and summarising reviews need different tools. Start with one.
  2. Write the category list with operators. Ten or so, in the words staff use, plus "other".
  3. Label a test set. A few hundred real messages, each labelled by two people. This is the step Expedia's post skips, and the one that makes every later choice measurable.
  4. Embed whole messages. A multilingual sentence-embedding model, chosen by its score on your test set, not a leaderboard.
  5. Keep Expedia's cutoff. Compare each message with a short description of each category and set a cutoff per category, tuned on the test set instead of by eye.
  6. Cluster the leftovers. Messages that fit nowhere get grouped; an LLM suggests a name and a person approves any new category.
  7. Try an LLM as a second opinion. Give it the list and the message, then compare its accuracy and cost with step 5 on the same test set.
  8. Mask before you send. Names, phone numbers, emails and booking codes out before any outside API.
  9. Check weekly. A person reviews 50 live messages a week, and the disagreements retune the cutoffs.

With a few hundred messages a week, steps 2, 3 and 9 with a simple LLM prompt may be enough, in our view. The embeddings can wait.