Manuscript Offprint

arXiv:2608.28142

Conditional Diffusion Models for Energy-Efficient Driving

Hemanth Neelgund Ramesh, André Snoeck, Chyi-Fu Hong, Shijing Sun

ABSTRACT

Electrification of commercial delivery fleets is shifting fleet routing from distance-and time-based optimization toward energy-aware decision-making. Existing sequence models primarily provide deterministic point estimates or limited uncertainty summaries, which do not capture the range of plausible energy-consumption trajectories required for operational decision-making. In this work, we introduce a conditional diffusion framework that generates EV battery-current profiles conditioned on route features such as vehicle velocity and ambient temperature. The model combines a latent conditioning encoder with a temporal 1D U-Net denoising backbone that enables trip-related conditions to be mapped into a shared representation and guides the reverse diffusion process. We evaluate the framework on an open-access commercial EV telemetry dataset containing 12k trips from 9 vehicles. The proposed latent-conditioned diffusion model generates realistic current trajectories that capture both the dominant temporal envelope and sharp transient events. The model achieves a Wasserstein distance of 0.0029 between generated and measured current distributions below the real vs real reference distance of 0.0085 indicating that generated samples lie within the empirical variability of the test set. We further demonstrate that learned latent conditioning substantially improves performance over direct condition injection, reducing the Wasserstein distance by 89.1% and MAE by 52.8%. This work demonstrates a generative modeling framework for characterizing EV energy consumption under real-world operating conditions, providing an essential foundation for uncertainty-aware fleet planning in large-scale operational settings.

1 INTRODUCTION

The electrification of last- and middle-mile delivery fleets is accelerating across major logistics networks, with operators such as Amazon, UPS, and FedEx deploying electric vehicles at operational scale [1, 2, 3, 4]. This transition fundamentally changes the routing problem. Traditional optimization methods developed for gasoline vehicles often treat distance or travel time as reliable proxies for operating cost. However, for electric vehicles, these metrics are insufficient; energy consumption uncertainty has become a primary operational constraint [5]. Consequently, minimizing energy con-

∗^{*}Corresponding authors.

This work was conducted as part of the UW+Amazon Science Hub collaboration between the University of Washington and Amazon.

sumption and ensuring that trips can be completed within the available charge are now the primary objectives for fleet operators.

Accurately modeling this energy demand is challenging because electric vehicle energy consumption is highly context-dependent [6, 7, 8, 9, 10]. Variations in road grade, ambient temperature, payload mass, and traffic dynamics can substantially alter energy requirements across otherwise similar trips. Therefore, effective modeling must integrate these heterogeneous data modalities, including dynamic features like velocity and its variations across terrains, alongside weather conditions. Furthermore, specific vehicle identity and battery chemistry dictate distinct discharge characteristics. The inherent stochasticity of driving behavior across different operational scenarios adds an additional layer of complexity that must be captured to reflect real-world operating conditions.

A growing body of literature on electric vehicle energy prediction has increasingly leveraged data-driven sequence models to estimate route-level energy demand from driving dynamics, vehicle characteristics, and environmental conditions [11, 12, 13, 14, 15, 16]. For instance, Feng et al. [17] proposed a hybrid LSTM-Transformer framework that combines recurrent temporal encoding with attention-based sequence modeling to predict electric vehicle energy consumption profiles. By incorporating multidimensional inputs including vehicle type, driving style, road conditions, and ambient factors, their model showed improved state-of-charge (SOC) prediction accuracy over standalone LSTM and multivariate regression baselines. Similarly, in the context of commercial fleet operations, Snoeck et al. [5] evaluated feed-forward networks, recurrent neural networks, and a Route Energy Transformer for last-mile delivery energy estimation. Their findings established that sequence-based architectures consistently outperform traditional distance-based heuristics and static physics models by natively capturing route-segment structure and delivery-specific operational dynamics. However, when trained with standard regression losses, these deterministic sequence models fundamentally predict the mean or median energy demand, thereby suppressing the operational variability critical for route-feasibility assessments.

To address this limitation, prior work has introduced uncertainty-aware extensions, including quantile regression, prediction intervals, Bayesian neural networks, and ensemble-based methods [14, 18, 19, 20, 21]. For example, Petkevičius et al. [22] developed probabilistic deep learning methods for electric vehicle energy-use prediction, where several models predicted distributional parameters rather than a single point estimate. Maity et al. [23] also proposed a probabilistic neural-network framework that incorporates model uncertainty using Monte Carlo approximation for triple-level energy demand. While these approaches emphasize that EV routing and range estimation benefit from uncertainty-aware predictions, sampling diverse, physically plausible energy-consumption trajectories under the same operational context requires a more flexible framework. This gap motivates the use of conditional generative models to directly characterize the full spread of possible energy outcomes.

Time-series generative models offer a principled approach to model energy consumption or current profiles by learning to sample trajectories conditioned on high-dimensional trip contexts. Among these, diffusion models are uniquely suited for this setting because they learn conditional distributions rather than collapsing into a single averaged trajectory. Recent literature has demonstrated the efficacy of these models across probabilistic time-series forecasting, imputation, and generation tasks [24, 25, 26]. For example, Rasul et al. [27] introduced TimeGrad, an denoising diffusion model designed for multivariate probabilistic forecasting. Score-based approaches have also been studied, such as Conditional Score-based Diffusion Models for Imputation (CSDI), proposed by Tashiro et al. [28], perform probabilistic time-series imputation by treating observed values as conditioning information through masking. More recently, the importance of conditioning on heterogeneous inputs has been demonstrated explicitly. The Time Weaver model by Narasimhan et al. [29] introduced a conditional diffusion framework that jointly encodes categorical, continuous, and time-varying metadata and injects this representation into the reverse denoising process. Their results show that structured conditioning on mixed-modality inputs can substantially improve generation quality.

These architectural properties make diffusion models attractive for EV fleet energy modeling because they preserve temporal dependencies in sequential data while generating plausible trajectories under given input conditions. Here, we propose a conditional diffusion framework for generating EV battery-current profiles (figure 1 to support downstream applications such as state-of-charge (SoC) estimation, routing, and planning. Our approach generates battery-current time-series profiles conditioned on heterogeneous route features, including velocity and ambient temperature. To achieve this,

Figure

Figure 1: Overview of the conditional diffusion framework for EV battery-current profile generation. Route features (velocity and ambient temperature) from about 12,000 commercial trips are mapped by a latent encoder (MLP + Transformer) into a shared representation. This representation conditions a temporal 1D U-Net during reverse denoising to generate realistic battery-current time-series profiles evaluated against real-world trajectories.

we introduce a latent encoder that projects these input features into a shared representation, which is injected throughout the reverse denoising process of a 1D U-Net backbone. We evaluate the framework on a real-world commercial EV telemetry dataset comprising approximately 12,000 trips from nine vehicles and compare its distributional fidelity against deterministic and diffusion-based baselines. Overall, accurate generative modeling of battery-current profiles provides a foundation for uncertainty-aware planning in large-scale EV fleet operations.

References (36)