Abstract
Accurate prediction of vehicle trip timing and distance is essential for optimizing electric vehicle (EV) energy management and intelligent transportation systems. This paper presents a deep learning framework utilizing Parallel Attention-based Long Short-Term Memory (LSTM) networks. By decoupling time and distance into parallel processing streams and incorporating an attention mechanism, the proposed model (PM4) achieves a significant reduction in prediction error compared to standard architectures. Furthermore, the integration of TimeSHAP provides model-agnostic explainability, identifying the historical trips that most influence future predictions.
Introduction
In the evolving landscape of intelligent transportation, predicting the "road ahead"—specifically when a vehicle will move and how far it will travel—is a critical challenge. For Electric Vehicles (EVs), these predictions enable proactive battery pre-conditioning to mitigate "cold starts" that degrade battery health and cabin pre-heating for passenger comfort. Beyond the individual vehicle, accurate trip forecasting assists grid managers in balancing charging loads and fleet operators in optimizing energy distribution.
Human travel patterns are inherently stochastic and non-linear, making them difficult to model with traditional statistical methods. While previous research has focused on destination and route prediction, the temporal and mileage aspects of the next trip remain elusive due to the variable-length nature of historical driving data.
Methodology
Researchers at Chalmers University of Technology evaluated four distinct architectures based on Long Short-Term Memory (LSTM) networks to address these challenges:
- PM1 (Standard LSTM): A baseline model processing time intervals, distances, and weekdays through three joint LSTM layers.
- PM2 (Parallel LSTM): Features separate LSTM branches for time and distance, concatenating their outputs to capture independent patterns.
- PM3 (Attention-based LSTM): Integrates an attention mechanism into the standard LSTM to weigh the importance of specific past trips.
- PM4 (Parallel At-LSTM): The most sophisticated model, combining parallel processing for time and distance with dedicated attention mechanisms for each stream.
The inclusion of an Attention Mechanism allows the model to selectively focus on relevant historical data points, which is particularly effective for capturing non-routine or "seldom" trip patterns that standard LSTMs often overlook.
Dataset and Preprocessing
The study leveraged a robust real-world dataset comprising GPS-tracked vehicles in Sweden. The initial dataset included 95,962 trips from 700 vehicles. To ensure high data quality for energy management applications, the researchers applied several preprocessing steps:
- Merging: Trips occurring within 10 minutes of each other were merged to account for GPS signal dropouts.
- Filtering: Trips shorter than 3km were excluded, as they have a negligible impact on battery degradation and energy planning.
- Final Scope: The refined dataset retained approximately 50% of the original trips and 59% of the vehicles, providing a clean foundation for training.
Results and Performance Analysis
The quantitative results demonstrate the superiority of the parallel and attention-based approach. The Parallel At-LSTM (PM4) emerged as the top performer, achieving a remarkably low prediction error margin of 3.99%. This represents a 23.89% improvement over the standard PM1 baseline.
The performance gains suggest that the drivers' temporal patterns (when they drive) and spatial patterns (how far they drive) are distinct enough to benefit from specialized, parallel sub-networks. Furthermore, the model demonstrated high robustness during cross-validation, consistently outperforming non-parallel models.
Explainability with TimeSHAP
To move beyond the "black box" nature of deep learning, the researchers employed TimeSHAP, a model-agnostic explainability method adapted for sequence data. This allowed the team to rank the contribution of historical trips and features. A key finding was that long-distance trips often provide a significantly higher contribution to the model's logic than short-distance ones, confirming that the model learns meaningful behavioral patterns rather than just memorizing recent noise.
Conclusion and Future Work
The Parallel Attention-based LSTM framework provides a highly accurate and explainable solution for trip prediction. While the current generalized model is effective, future research will focus on vehicle-specific modeling to adapt to individual driver quirks. Additionally, the authors propose exploring federated learning to enhance model accuracy across larger fleets while maintaining strict user privacy by keeping raw GPS data on-device.
Summary updated