- The paper introduces a unified time-aware deep learning framework for predicting inter-stop energy consumption and quantifying causal drivers.
- It employs Time2Vec periodic encoding with a TabM backbone, achieving a MAPE of 6.52% and R² of 0.982 on the enriched Zurich dataset.
- It advances interpretability by integrating SHAP, DirectLiNGAM, and T-Learner, offering actionable insights for fleet management and urban transit planning.
Time-Aware Tabular Deep Learning for Dual-Source Trolleybus Energy Prediction and Causal Driver Quantification
Motivation and Problem Statement
Urban electrified transit operations increasingly rely on dual-source trolleybuses (DTBs) due to their hybrid catenary–battery architecture, which allows dynamic power switching between overhead grid and onboard storage. This configuration alleviates the structural limitations of pure battery-electric buses, optimizing energy efficiency and deployment cost with only partial catenary coverage. However, predictive modeling for DTB inter-stop energy consumption presents substantive challenges due to complex, heterogeneous input spaces encompassing static route attributes, high-frequency vehicle telemetry, and meteorological records. Prior approaches insufficiently fuse these data types, fail to encode temporal information optimally, and rarely attempt causal quantification of energy drivers—impeding both operational decision-making and infrastructure planning.
Methodological Framework
Dataset Construction
The adopted framework integrates the ZTBus benchmark vehicle data (second-level sampling) with external meteorological records (hourly resolution) through rigorous spatio-temporal alignment. Ratio-based feature engineering and leakage-free standardization transform raw inputs into 63 feature fields across eight categories (time, operation, route, traction, coasting, braking, weather, energy). Target variable selection (energy per kilometer) normalizes for section length, facilitating cross-route generalization and emphasizing behavior-driven energy determinants.
Time-Aware Tabular Model Architecture
A unified predictive architecture, Time-Aware TabM, is developed by embedding Time2Vec periodic encoding into a parameter-efficient TabM backbone. Time2Vec maps timestamp information into learnable periodic representations, capturing daily, weekly, and operational cycles—addressing the principal failure of prior models to exploit intrinsic temporal rhythms. TabM uses batch ensembling with a flattened GEMM matrix multiplication strategy, reducing parameter overhead and suppressing overfitting through shared backbone weights and lightweight ensemble heads. Hyperparameter selection is driven by tree-structured Parzen Estimator (TPE)-based Bayesian optimization, with median pruning to maximize search efficiency.
Multi-Layer Causal Explanation Pipeline
Interpretability and causality are addressed via a three-layer pipeline. SHAP quantifies feature-level marginal contributions, DirectLiNGAM reconstructs the causal directed acyclic graph (DAG) from observational data, and a T-Learner meta-framework estimates net average treatment effects (ATE). This chain moves analysis from correlation ranking to structural causal discovery and then to quantifiable intervention effect estimation—a significant methodological advance relative to single-step post-hoc attributions.
Experimental Evaluation and Numerical Results
A comprehensive evaluation on the enriched Zurich trolleybus dataset demonstrates strong numerical performance. Time-Aware TabM achieves a mean absolute percentage error (MAPE) of 6.52% and a coefficient of determination (R²) of 0.982, outperforming all ten baselines including XGBoost, LightGBM, LSTM, and Transformer-based architectures. Ablation studies isolate the accuracy gain to the Time2Vec module, which reduces MAPE from 7.68% to 6.68%. Further augmentation with the flattened GEMM ensemble yields a complementary refinement, confirming the necessity of temporal encoding for robust generalization.
MAPE standard deviation (0.07) and range (0.49) are markedly lower than deep and classical baselines, indicating superior stability. Tree ensembles attain deterministic accuracy (MAPE ≈ 7.9%), but fail to encode temporal nuances. ARIMA, SVR, DLN, and TabPFN exhibit weaker performance and higher variability, further affirming the core contribution of the time-aware tabular fusion.
Interpretability and Causal Analysis
SHAP Attribution
Global SHAP-based feature importance ranks regenerative braking ratio, average speed, coasting time, dwell time, and coasting distance as dominant predictors. Regenerative braking ratio presents a markedly larger negative SHAP contribution, substantiating its central role in kinetic energy recovery. Coasting distance, by contrast, is identified as the primary driver of excess consumption. SHAP dependence plots reveal nonlinear threshold effects: raising average speed above congestion levels yields pronounced energy savings, while excessive coasting amplifies losses. Feature-interaction network analysis confirms strong kinematic-state couplings (speed, braking, coasting) and identifies average speed as the central network hub.
DirectLiNGAM Causal Discovery
DirectLiNGAM-constructed DAG validates regenerative braking ratio and average speed as direct causal antecedents of energy consumption. No outgoing edges from the energy variable are imposed, conforming to physical constraints. The causal topology aligns with SHAP importance but moves explanation from statistical association to directional mechanism.
T-Learner Effect Quantification
ATE analysis demonstrates that regenerative braking ratio (ATE = −1110.07 kJ/km) and average speed (ATE = −537.28 kJ/km) are the main energy-saving levers, while coasting distance (ATE = +445.98 kJ/km), dwell time, and brake time drive excess consumption. Notably, passenger load exhibits a negative net effect (ATE = −117.30 kJ/km) under prevailing speed and energy-recovery regimes—a physically defensible outcome reflecting enhanced inertia-driven kinetic energy recovery during braking, consistent with emergent electric vehicle research on mass–recovery dynamics.
Implications: Operational, Technological, and Planning
The progressive causal analysis pipeline provides actionable intervention thresholds across four dimensions:
- Vehicle Technology: Maximizing regenerative braking efficiency in prevalent 30–50 km/h deceleration windows, combined with pre-conditioning and heat-pump HVAC deployment for low-temperature operation.
- Traffic Operation: Maintaining suburban/BRT corridor speeds (40–60 km/h), minimizing low-speed operation (<15 km/h) through signal priority and dedicated lanes; constraining coasting distance (≤150 m/event) and deceleration protocols to optimize kinetic energy recovery.
- Capacity Allocation: Moderately increasing per-vehicle passenger load under suitable speed/energy-recovery conditions to enhance energy efficiency, with concomitant real-time service monitoring for quality assurance.
- Policy and Planning: Incorporating causal anchors (regenerative braking ratio and average speed) into operational KPIs (≥35% braking ratio, ≥20 km/h section mean speed, ≤2.0 kWh/km energy use); leveraging causal topology for route-sensitive catenary layout and infrastructure siting.
Limitations and Future Directions
Inference latency (2.8× baseline) restricts real-time deployment unless model distillation or quantization is applied. Model validation is limited to two DTBs in Zurich; broader cross-domain evaluation is required. DirectLiNGAM’s linearity and T-Learner’s binarization may discard nonlinear causal information; future work should explore non-parametric discovery and continuous-treatment frameworks, as well as time-varying causal graphs responsive to seasonal and route-specific heterogeneity.
Conclusion
This study presents a unified, time-aware tabular deep learning framework for inter-stop energy prediction and causal driver quantification in dual-source trolleybuses (2607.11349). By embedding periodic encoding within an efficient ensemble backbone and integrating a multi-layer causal explanation pipeline (SHAP, DirectLiNGAM, T-Learner), the architecture achieves superior predictive performance, robust interpretability, and actionable causal insights. Results establish regenerative braking ratio and average speed as the dominant energy-saving mechanisms and provide concrete operational and planning strategies for fleet management. The methodological advances outlined herein inform future developments in intelligent urban transit, hybrid vehicle modeling, and causal-integrated AI scheduling.