arXiv:2611.01319cs.LGOct 2026

Manuscript Offprint

arXiv:2611.01319

Inferring missing locations in human mobility data using memory effects

Pablo Rosillo-Rodes, Antònia Tugores, David Sánchez, José J. Ramasco

Pablo Rosillo-Rodes,1,∗^{1,*} Antònia Tugores,1^{1} David Sánchez,1^{1} and José J. Ramasco1^{1}

1^{1}Instituto de Física Interdisciplinar y Sistemas Complejos IFISC (CSIC-UIB), Campus UIB, 07122 Palma de Mallorca, Spain

Empirical datasets used to characterize human mobility are sparse in space and time, owing to technological factors such as coverage and battery, or to the erratic nature of online interactions. Missing data can bias the conclusions drawn from them, so filling the gaps in incomplete timelines is a key challenge in computational social science. Here, we propose a simple imputation method in which the informativeness of an observation decays with its bidirectional temporal distance from the missing entry, at a rate set by a single parameter per individual. On synthetic and real Twitter data, a power-law decay, selected by Bayesian model comparison, yields accurate imputations (macro-AUROC above 0.9 overall, and above 0.8 for the most mobile users) and matches a gap-aware continuous-time Markov chain, outperforming it among the most mobile users. The method is robust to moderate noise and generalizes across countries and European administrative regions.

The proliferation of mobile sensing technologies, from GPS-enabled smartphones to location-based social networks, has generated an unprecedented volume of geolocated data. Digital traces (see Fig. 1a) have become fundamental for understanding human mobility [1, 2], driving applications that range from urban planning and city science [3–5] to the modeling of epidemic spreading [6–9] and flight delays [10, 11]. These applications are of utmost importance to define public policies that depend on the analysis of scenarios produced thanks to data-driven models. The quality and potential biases of mobility data have been the focus of several recent works. Just to mention some examples, there have been discussions about the divergence of the results with different mobility data sources [12], difficulties in finding home locations with mobile phone data [13], biases induced by the heterogeneous activity of the users [14], differences in the data between geographical areas [15] or socioeconomic biases in the representation of a population [16]. These biases have, for instance, an impact on modeling epidemic spreading and models to react against epidemics and pandemics [8, 17, 18].

There is, however, one point that has received less attention. When considering user by user, mobility data is frequently sparse and features significant gaps or empty spaces [19], resulting from signal loss, device deactivation, or privacy-preserving sampling mechanisms. Consequently, the ability to accurately fill these missing data in geo-located timelines is a prerequisite for reliable behavioral analysis.

From a brute-force perspective, deep learning predictive models have achieved high performance by learning complex, non-linear dependencies in trajectory data [20]. These methods, however, predominantly enforce spatial correlation. For instance, the Spatial Temporal Recurrent Neural Network (ST-RNN) [21] partitions the study area into grid cells and models the transition matrices between these spatial regions. While this method incorporates temporal contexts, the core architecture relies on learning spatial transitions where the likelihood of a next location is constrained by the distance from the current state. More recent attention-based models, such as DeepMove [22], have significantly improved the capture of long-term periodicity by attending to historical trajectories. Despite their performance, these deep learning models remain limited by a heavy dependence on spatial proximity and a lack of explainability.

Inferring missing data from a more explainable approach usually requires assumptions on statistical regularities and mechanistic models. Existing theoretical frameworks for mobility modeling and trajectory reconstruction are largely focused on methods that couple temporal dynamics with strong spatial constraints, often assuming that future locations are heavily dependent on geographical proximity to previous observations [1]. A seminal mechanistic contribution in this domain is the Exploration and Preferential Return (EPR) model [23]. This model characterizes mobility as a competition between two mechanisms, namely the tendency to explore new locations (exploration) and the propensity to return to previously visited ones (preferential return). Although EPR successfully reproduces scale-free spatial patterns and the heavy-tailed distribution of jump lengths observed in empirical data [24], this model struggles to describe the long-term evolution of an individual's set of familiar locations, assuming day-to-day mobility is stationary over time. In reality, the set of familiar locations evolves over months or years [25].

In this work, we introduce a Bayesian-inspired statistical model to impute missing data in geo-located timelines, relying exclusively on time, and learning from both past and future locations. The model takes as input only the pair (time, location label) and treats the label as an opaque categorical identifier: no coordinates, distances or adjacency relations between locations are used. This is a deliberate restriction. It delimits the setting in which no spatial information is available.

Our approach requires that the mechanism generating the gaps is ignorable given timing, i.e., missing at random

(MAR) [26]: whether a day is recorded does not depend on the location occupied on that day. Additionally, we hypothesize that temporal proximity and memory effects play a key role in location inference, since observations from days closer in time to a missing entry are more informative than those further away. To test this, we design and compare several probabilistic models that assign weights to observed data based on their temporal distance from the missing entries. Our method demonstrates strong performance in inferring missing locations at both the country-level resolution and narrower geographical European unit levels in the activity of a large number of Twitter users. We put forward, thus, a parsimonious, fully interpretable mechanistic framework that integrates explainable machine learning with individual trajectory analysis leveraging a memory-decay mechanism. This mechanism characterizes how rapidly the informativeness of an observation decays with temporal separation, at a specific, measurable rate. We use “memory” throughout in this statistical sense, as a property of the mobility record rather than a claim about individual cognition.

Our main finding is the following. Since human mobility and online activity display heavy-tailed temporal statistics [23, 24, 27, 28], we exploit this to recover missing entries, using both past and future information. We find that a single parameter per individual, describing how fast an observation loses informativeness, recovers most of what an explicit transition model achieves. Remarkably, our method performs on par with a gap-aware continuous-time Markov chain, which requires K(K−1)+1K(K-1)+1 parameters for an individual visiting K locations, and outperforms it among the most mobile individuals, where imputation is hardest.

RESULTS