Abstract
Visual querying is essential for interactively exploring massive trajectory data. However, data uncertainty—such as mobile phone positions that refer to cell tower regions rather than precise GPS coordinates—imposes profound challenges. This paper proposes a visual analytics approach that extracts spatial-temporal constraints from natural language sentences to support effective querying over uncertain mobile trajectory data. By encoding spatially uncertain trajectories with the semantic information of Points of Interest (POIs) and regions, the system stores trajectory "documents" in a text database using an effective indexing scheme. The visual interface facilitates query condition specification, situation-aware visualization, and semantic exploration of large-scale movement data.
Introduction
Analyzing massive human trajectory data is crucial for urban planning, traffic management, and public health. However, real-world data often lacks precise GPS coordinates. Mobile phone records, for instance, provide "uncertain" locations based on the coverage area of the nearest cell tower.
Furthermore, querying this data is traditionally difficult, requiring complex programming or rigid map-based interfaces. Domain experts prefer natural language queries, such as "find trajectories passing a school in the morning." Mapping these vague human concepts to mathematically uncertain spatial data represents a significant technical hurdle. This research addresses this gap by treating trajectory querying as an Information Retrieval (IR) problem.
Methodology
Trajectory Textualization and Uncertainty
To bridge the gap between natural language and uncertain spatial data, the system first textualizes the trajectories. The city is divided into Possible Spatial Regions (PSRs) using Voronoi cells centered on cell towers. Trajectories are then converted into "documents" containing the semantic information of all POIs within those regions.
NLP and Probabilistic Retrieval
Natural language queries are parsed using a lexical analyzer. Temporal words are mapped to specific time windows, while spatial words are expanded using a Word2Vec model. For example, a query for "student" might automatically expand to include "university" and "apartment." The system then employs the Okapi BM25 algorithm—a standard search engine ranking function—to score the relevance of POIs to the user's keywords.
Topic Modeling and Visual Interface
To capture the functional context of a neighborhood, Latent Dirichlet Allocation (LDA) is used to classify regions into topics (e.g., residential, commercial, entertainment). This allows the system to differentiate between a restaurant in a business district versus one in a tourist area.
These components are integrated into a coordinated dashboard featuring a "Relevance Tree" for tweaking keyword-to-POI mappings, a Map View for spatial distribution, and a "Semantics View" that plots trajectories inside a hexagon based on their LDA topic distributions.
Evaluation and Results
Datasets
The approach was tested on a massive real-world dataset from a major Chinese city, containing 3 billion records from 7 million users over one month (736 GB). Location accuracy in this dataset varied from 500 to 5000 meters. This was enriched with 862,635 POIs containing GPS coordinates and category types.
Performance and Qualitative Success
Despite the massive scale, the temporal-textual-trajectory index enabled near real-time performance. A query for a 2-hour time window took just 2.07 seconds. In case studies with urban planning experts, the system successfully extracted complex behaviors from vague queries. For instance, querying "trajectories of students" successfully isolated commuting paths between university campuses and dorms without requiring the user to know exact coordinates.
Discussion and Insights
Key Ideas
- Trajectories as Text: Treating spatial uncertainty as a text search problem is highly efficient. By converting paths into documents of nearby POIs, standard search engine technologies like inverted indexes can be used for lightning-fast queries.
- Contextual Weighting: Literal keyword matching is insufficient for human geography. Using LDA to extract regional functional topics allows the engine to weigh the context of a location, matching the user's actual semantic intent.
- Human-in-the-loop: Natural language is inherently ambiguous. The system’s "Relevance Tree" UI allows users to see how their words were interpreted and manually adjust weights or delete misinterpretations.
Limitations and Future Work
While the system handles spatial uncertainty well, it currently assumes timestamps are perfectly accurate. Additionally, the natural language engine struggles with complex Boolean logic (e.g., nested AND/OR conditions). Future work will focus on implementing distributed computing backends to handle multi-year datasets and adding automatic clustering to group similar trajectories for bulk analysis.
Summary updated