Millions of people rely on mapping services every day, but most routing systems still optimize for generic shortest paths. Real route choice is more personal: transport mode, time of day, and individual habits all influence the path a person is likely to take.
PNMLR extends the Neuro-MLR framework by embedding user-specific preferences into route prediction. The model uses Graph Attention Networks (GATs) to integrate factors such as user ID, time, and transport mode, capturing variability in user behavior and predicting the most likely route. Experiments on the Geolife GPS dataset show improvements in F1-score, precision, recall, and reachability compared with models that do not model user preferences.

Methodology
Data preprocessing
We preprocess the Geolife GPS dataset with the following steps.
- Outlier removal: filtering GPS points that deviate from plausible travel paths using a speed threshold of 500 km/h.
- Staypoint and duplicate removal: eliminating redundant points where users remain stationary, using a distance threshold of 5 meters.
- Compression: merging points within 100 meters of each other to reduce dimensionality while preserving trajectory shape.
- Map matching: projecting GPS points onto a Beijing road network graph from OpenStreetMap.
- Normalization: adjusting trajectory lengths so results remain comparable with baseline models.

Building dynamic node representations
PNMLR extends a standard Graph Convolutional Network by integrating Graph Attention Networks. Unlike GCNs, which use fixed weights when aggregating information from neighboring nodes, GATs use self-attention to learn different weights for each neighbor during training.
The attention score between nodes is computed as:
These scores are normalized with softmax and used to weight neighboring nodes when representations are updated. This dynamic weighting lets PNMLR adapt to users and context, capturing variations in route preference.
Incorporating user preferences
PNMLR models three user preference categories.
- User ID: persistent individual routing habits.
- Transport mode: different routing behavior for walking, driving, or bus trips.
- Time features: cyclical encodings for month, day, and hour.
For each category, the model creates a k-dimensional embedding vector. These are processed in two ways.
- Concatenation: combining the vectors into one larger preference representation.
- Averaging: element-wise averaging into a single k-dimensional vector.
The resulting preference representation passes through an MLP block to produce the final m-dimensional user preference embedding . In our experiments, concatenation followed by a three-layer MLP produced the strongest results.
Complete architecture and training
The complete PNMLR architecture combines four components.
- A Graph Attention Network that processes the road network and creates node embeddings.
- A preference embedding pipeline for user ID, transport mode, and time features.
- A concatenation module that combines current node embedding , transition node embedding , destination node embedding , and preference embedding .
- A final MLP that predicts transition probabilities from the concatenated representation.
Route prediction
During inference, the model receives a query with source, destination, and user preferences. It predicts transitions from the current node to neighboring nodes, then greedily selects the most likely transition until the destination is reached or a maximum path length is exceeded.
Results
Experiments on the Geolife GPS dataset show that PNMLR significantly outperforms baselines that ignore user preferences.
- F1-score: 78.49%, a 17.9% improvement over Neuro-MLR.
- Precision: 83.11%, a 12.7% improvement.
- Recall: 74.36%, a 12.9% improvement.
- Reachability: 75.39%, a 21.9% improvement.
The largest gains appear when using the Graph Attention Network variant with concatenation for preference aggregation. This supports the hypothesis that routing preferences matter, and that attention mechanisms can capture personalized route-choice patterns effectively.
BibTeX
@article{ponzi2025pnmlr,
title={PNMLR: Enhancing Route Recommendations with Personalized Preferences Using Graph Attention Networks},
author={Ponzi, Valerio and Comito, Ludovico and Napoli, Christian},
journal={IEEE Access},
volume={11},
year={2025},
doi={10.1109/ACCESS.2025.3555049},
publisher={IEEE}
}