arXiv:2610.24266cs.AIOct 2026

Manuscript Offprint

arXiv:2610.24266

Can Compact Open-Weight Large Language Models Recover Mobility Events from Incomplete Trajectories? A Controlled Evaluation Using Air Trips

Hsuan-Chih Wang, Xianfeng Terry Yang

Hsuan-Chih Wang

Graduate Research Assistant

Department of Civil and Environmental Engineering, University of Maryland

College Park, MD, 20742

ORCID: 0000-0002-8669-7915

Email: hcwang@umd.edu

Xianfeng Terry Yang, Ph.D.

Associate Professor & Director

Maryland Transportation Institute

Department of Civil and Environmental Engineering, University of Maryland

College Park, MD, 20742

ORCID: 0000-0002-9416-6882

Email: xtyang@umd.edu

Total Number of Pages: 15

Accepted for presentation at the 106th Annual Meeting of the Transportation Research Board, January 2027.

ABSTRACT

Objectives: Incomplete mobility trajectories can obscure the observations needed to identify important travel events and their endpoints. This study evaluates whether compact, locally deployed large language models can recover missing mobility information from incomplete trajectories, using high-confidence air trips as a controlled test case. It also examines whether more explicit prompts can compensate for the loss of endpoint evidence.

Methods: The study used nationwide location-based services (LBS) data collected in the United States in January 2022 and airport reference data containing airport codes and coordinates. Thirty high-confidence air trips were converted into three incomplete-trajectory conditions by removing observations near the origin airport, the destination airport, or both. Four prompt variants and two large language models generated 720 requests, each using a two-stage procedure to identify the flight transition segment and then selected the origin and destination airports. Performance metrics include recovery rates for transitions, origins, destinations, exact airport pairs, and joint transition–airport-pair identification.

Findings: Exact transition accuracy is 9.2%, while origin and destination accuracy are 31.4% and 10.7%, respectively. Only 1.9% of requests recover both the rule-identified transition and the reference airport pair. The most explicit prompt produced the highest observed exact transition and exact airport-pair recovery rates.

Novelty: The study introduces a controlled endpoint-removal framework for evaluating recovery of discrete mobility events from incomplete trajectories. Air trips provide a measurable test case with identifiable transitions and endpoints, allowing failures to be examined by inference stage.

Practical Applications: The framework can support the evaluation of trajectory inference methods before deployment. By distinguishing transition identification from endpoint assignment, it helps analysts determine whether recovered information should be retained, independently verified, or left unresolved.

INTRODUCTION

Passively collected location-based services (LBS) data provide large-scale observations of human movement and support transportation applications such as trip extraction, travel-mode inference, origin–destination analysis, and estimation for travel demand. However, unlike continuously recorded trajectories, LBS data consist of irregular observations generated by mobile applications. Their frequency can vary across devices, applications, vendors, locations, and times. Important movements may therefore occur during periods in which no location is recorded, leaving the temporal boundaries and geographic endpoints of a mobility event uncertain. Recovering such event information from incomplete trajectories is important because errors introduced during reconstruction may propagate into subsequent estimates of travel behavior and transportation demand.

Previous studies have demonstrated that passive location data can support passenger aviation analysis and large-scale identification of trip ends and transportation modes (Marzuoli et al. 2019; Yang et al. 2022). Nevertheless, missing observations can obscure trip boundaries, hide intermediate movements, and remove the observations that are most informative for identifying a transportation mode. Air trips provide a useful controlled case for examining this problem because they represent discrete mobility events with identifiable transitions, travel direction, and geographic endpoints. A long and rapid movement may be consistent with air travel, but exact recovery requires identifying the observation interval associated with the flight and assigning the correct origin and destination airports. When observations near one or both airports are missing, these event attributes must be inferred from the remaining trajectory context.

Large language models (LLMs) provide a possible approach for combining the temporal, kinematic, and geographic evidence contained in mobility trajectories. Their ability to interpret structured context and integrate multiple forms of evidence makes them potentially useful for trajectory inference. Recent research has also evaluated LLMs for reconstructing masked trajectory segments from geographic and network context (Truong et al. 2025). However, a fluent or geographically plausible response does not necessarily represent exact recovery of the underlying mobility event. Reliability must be evaluated against known event transitions and endpoints. High-confidence air trips provide an appropriate test case because their flight transitions and airport endpoints can be identified before selected observations are deliberately removed.

A further gap concerns how missing evidence is evaluated. Naturally incomplete trajectories do not reveal the observations that are absent, making it difficult to determine whether a failed inference is caused by information loss, transition identification, or airport assignment. Controlled endpoint removal provides a direct way to isolate this issue: begin with a high-confidence air trip, remove specified airport observations, and compare the inferred result with the original event. A controlled experiment is therefore needed to determine whether prompt modifications improve recovery under endpoint information loss.

The analysis aims to address the following research questions:

  1. Under controlled removal of endpoint observations, how accurately can compact open-weight LLMs recover the transition and endpoints of a discrete mobility event?

  2. How does observed recovery performance vary across endpoint-removal conditions and prompt variants?

This study presents a controlled endpoint-removal stress test for compact, locally deployed open-weight LLMs. The experiment begins with high-confidence air trips for which the flight transition and origin–destination (OD) airports are observable. Sightings near the origin, destination, or both endpoints are then removed. Each masked trajectory is evaluated through a two-stage task workflow: Stage 1 selects the consecutive observations most likely to represent the flight transition, and Stage 2 assigns origin and destination airports to the selected endpoints.

This study makes three main contributions. First, it introduces a controlled endpoint-removal framework for evaluating the recovery of discrete mobility events from incomplete trajectories, demonstrated using high-confidence air trips. Second, it decomposes recovery into transition identification, origin assignment, destination assignment, and complete event recovery so that error accumulation can be examined by inference stage. Third, it characterizes the reliability limits of compact open-weight LLMs and assesses whether alternative prompting strategies yield consistent improvements when endpoint evidence is missing.