Problem
A navigation app saves users time when it offers a destination and a ready route the moment they open it, with no typing. The 2GIS team started from a simple assumption: people travel on a schedule, so periodic visits to the same place would be easy to find and common. They never checked whether routes built in the app are periodic.
Example from the article: a father opens 2GIS to pick up his child from kindergarten, and the app already shows the route with traffic taken into account.
Solution in brief
The team first measured repeat behavior, found it was not periodic, and dropped the "habit" approach. They framed the task as classification: for each place the user visited before, predict the probability of building a route there on a given date and time of day. A LightGBM model on history features from the last two months is scored daily, and a suggestion appears on the home screen when the probability is above a threshold.
Questions this case answers
- How to predict which previously visited entity a user will act on at a given time when their behavior is irregular and only partly observed
- How to choose the history window and the candidate set for a repeat-behavior model when most actions target entities seen once or never
- How to suggest a destination and a ready route as soon as a user opens a navigation app?
- How to predict which of a user's past places they will route to at a given day and time of day?
Tools and methods
- LightGBM — gradient boosting classifier that outputs the route probability
- History features by day and time of day — answers to "did the user go here at similar times before" questions, computed over the last two months
Google or a one-time email code. No password.