TRANSMISSION // 2612.00012v1

How an AI Can Rebuild a Route in a New City

Source published

A system called Roamer uses road features, trip context and map connectivity to recover routes from sparse GPS data across cities. Its tests are promising, but cover three cities and rely on map-matched reference routes.

AI-generated conceptual illustration for How an AI Can Rebuild a Route in a New City
AI-generated conceptual illustration; not documentary evidence.

Sparse GPS tracks leave long gaps between recorded locations. Roamer, a research system, aims to fill those gaps with road segments and positions—even when the destination city has a different road network and little labeled data.

A phone or vehicle may record its location only every minute or few minutes to save energy and bandwidth. But services such as travel-time estimation and fleet management often need a more detailed account of where a vehicle went. Recovering a route from those widely spaced GPS points is difficult: several roads may connect two observations, especially around parallel streets or complex intersections.

The challenge grows when a model trained in one city is used in another. Road identifiers are local labels, not universal names, and a new city may have a different network, layout and set of road attributes. A model built around one city’s road IDs may therefore need substantial rebuilding. Another option is to predict GPS coordinates first and then use a separate map-matching system to assign roads, but that extra step can make mistakes of its own.

Researchers from Zhejiang University propose Roamer, a system designed to predict road segments directly while transferring between cities. The study asks whether a model can use what it learned in one place to recover routes in a different road network, even when the target city has few or no labeled trips.

A shared representation of roads

Instead of assigning each road a city-specific learned ID, Roamer represents roads using features that can be computed in different networks: road attributes, geometry and directed connections, including turn information. A shared encoder turns those features into representations that the model can score without creating a new output layer sized to the target city.

Those features alone may not distinguish two similar roads. Roamer therefore builds a trip-specific road table, representing candidate roads in relation to the GPS points that are visible in the current trip. For the gaps between observations, it retrieves relevant map information, including which roads lead toward a candidate and which roads can reach it. A pretrained BERT-small model, adapted with low-rank adaptation (LoRA), combines this map evidence with the observed trip. It predicts both the missing road sequence and the vehicle’s progress along each road segment.

The researchers tested the system on ride-hailing trajectories from Chengdu and Xi’an and taxi trajectories from Porto, using road networks from OpenStreetMap. They compared Roamer with 12 single-city and six cross-city baselines. For evaluation, trajectories were represented on a 15-second timeline, while sparse inputs retained points at intervals of one, two or four minutes. The team tested single-city recovery, transfer with 5,000 labeled target trips, and a zero-shot setting with no target-city training. Reported results were averaged over three random-seed runs.

Strong results in the tested cities

In the cross-city tests with 5,000 target trajectories, Roamer achieved higher road-recovery accuracy and lower mean absolute error (MAE) than the strongest baseline in all six source-to-target directions at the reported one-in-eight keep ratio. The paper reports relative accuracy gains of 22.48% to 44.64% and MAE reductions of 27.81% to 46.91% across those directions. These are relative improvements over the best baseline for each measure and setting, not percentage-point changes.

The authors also report that Roamer led the tested methods in single-city evaluations across the three cities and three sparsity levels. In zero-shot transfer from Chengdu, it reached 36.24% accuracy on Porto and 53.04% on Xi’an—higher than the reported cross-city baselines adapted using 5,000 target trips. This suggests that the source-trained model carried useful information into these particular tests; it does not mean that no adaptation is needed for every new city or application.

Component tests offer clues about the design. Removing trip-specific road relationships or map retrieval lowered performance in the evaluated settings. So did replacing the pretrained backbone with randomly initialized BERT. These comparisons support the usefulness of the components in this setup, but do not by themselves establish why the full system performs better in every possible setting.

What the evidence does—and does not—show

The evaluation is substantial within its stated scope, but it covers only three cities and specific datasets, preprocessing choices and baselines. The route labels were generated through hidden Markov model map matching, followed by filtering and other processing. As a result, the benchmark measures agreement with those constructed labels; it is not an independent demonstration that every recovered route matches a vehicle’s true path. The researchers also report that Roamer’s inference time and memory use grew approximately linearly with road-network size in the tested scalability experiment, which does not establish performance at every city scale or on every deployment setup.

The paper describes its results as experiments on public trajectory and map data. They are evidence about offline evaluation, not proof of improved ride-hailing, traffic analysis or other real-world services. The source is an arXiv preprint, and the supplied material does not establish peer-review status. Results should therefore be treated as preliminary until independently checked or replicated.

Roamer’s central idea is to transfer road representations rather than road IDs, then use the current trip and the map’s direction of travel to narrow the missing route. The reported tests make that approach promising for the examined cities, while leaving open how well it generalizes to other networks, data quality and operating conditions.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.