TLDR: This paper introduces a transformer-based generative model that addresses the underrepresentation of shift workers in urban mobility data. By leveraging fragmented GPS trajectories and incorporating period-aware temporal embeddings and a transition-focused loss function, the model accurately generates complete and behaviorally valid activity patterns for individuals working non-standard hours. Evaluated with Los Angeles County GPS data, the model demonstrates high alignment with real-world shift worker mobility, providing a crucial tool for inclusive transportation planning.
Urban planning and transportation management rely heavily on understanding how people move within cities. However, a significant portion of the workforce, known as shift workers, has historically been overlooked in traditional transportation surveys and planning efforts. These individuals, who make up 15-20% of the workforce in industrialized societies, often work outside the conventional 9-to-5 schedule, leading to unique mobility patterns that are not well-captured by existing data.
The challenge lies in the fact that traditional surveys tend to under-sample non-standard schedule workers, struggling to record their overnight mobility behaviors. This creates a biased view of urban movement, focusing predominantly on daytime patterns and neglecting activities that cross midnight boundaries. While GPS-enabled devices offer a wealth of data, they often present fragmented and inconsistent information, especially during overnight periods.
A Novel Approach to Understanding Shift Worker Mobility
To address this critical data gap, a new research paper titled “Beyond 9-to-5: A Generative Model for Augmenting Mobility Data of Underrepresented Shift Workers” introduces an innovative transformer-based model. Authored by Haoxuan Ma, Xishun Liao, Yifan Liu, Chris Stanford, and Jiaqi Ma, this model leverages incomplete GPS trajectory data to generate complete and realistic activity patterns for shift workers. The core idea is to transform fragmented GPS traces into comprehensive activity diaries, providing a more accurate representation of their 24/7 mobility needs.
The model incorporates several key innovations:
- Period-Aware Temporal Embeddings: This feature allows the model to understand and capture the distinct temporal patterns of shift workers, recognizing different periods like evening, overnight, and morning transitions.
- Transition-Focused Loss Function: Unlike traditional models that might oversimplify activity patterns, this component specifically emphasizes the accurate prediction of activity changes, ensuring the model learns the complex temporal structure of shift worker schedules.
- Masking Approach: To handle the inherent gaps in GPS data, the model explicitly accounts for missing observations, enabling it to learn from incomplete data and generate full activity chains.
In essence, the transformer architecture acts like a sophisticated pattern recognizer, inferring missing activities and reconstructing full activity sequences from partial GPS observations. This allows for the creation of augmented datasets that rebalance the systemic under-sampling of shift workers in planning data.
Also Read:
- PatchTraj: Unifying Time and Frequency for Smarter Pedestrian Trajectory Prediction
- Advanced AI for Accurate Bicycle Count Estimation in Data-Scarce Urban Areas
Empirical Validation and Impact
The researchers conducted extensive empirical evaluations using GPS trajectory data from Los Angeles County. This dataset, collected over six months, identified over 200,000 paired activity sequences from individuals with shift work patterns. The model was trained and tested on this real-world data, demonstrating remarkable performance.
The evaluation showed that the generated data achieved excellent alignment with real GPS data, with very low Jensen-Shannon Divergence (JSD) values (an average JSD of less than 0.02 for all evaluation metrics). This indicates that the model effectively captures the temporal dynamics of activity transitions and activity durations throughout the day. For instance, it accurately reproduced the distinctive bimodal peaks in work activity start times (early morning and late evening) that are characteristic of overnight shift schedules.
A comparative analysis further highlighted the model’s significance. It clearly demonstrated the stark contrast between the mobility patterns of shift workers and conventional 9-to-5 workers, as well as those captured by traditional surveys. While normal workers show concentrated work start times in the morning, shift workers exhibit peaks during late evening and early morning hours. The model successfully replicated these unique temporal signatures, validating its ability to generate highly realistic activity sequences that closely match real-world shift worker behaviors.
This research provides transportation planners with a powerful data augmentation tool to fill critical gaps in understanding the 24/7 mobility needs of urban populations. By transforming incomplete GPS traces into complete, representative activity patterns, it enables more precise and inclusive transportation planning, ensuring that the needs of all worker populations are considered in infrastructure and service development. For more details, you can refer to the full paper available at arXiv:2507.19510.
While the model offers significant advancements, the authors acknowledge certain limitations, such as potential demographic biases in GPS data collection and reliance on rule-based assumptions for activity detection. However, the framework’s adaptability allows it to leverage improved datasets in the future, and its reliance on widely available GPS and POI data makes it deployable across diverse urban environments.
Ultimately, this work serves as a crucial step towards recognizing and accommodating shift workers, an essential workforce that keeps cities functioning around the clock but has been systematically overlooked in policy decisions. Future work could explore seasonal variations, weather context, and integration with spatial models for even more comprehensive transportation demand forecasting.


