Next Article in Journal
Design of an Efficient MPPT Topology Based on a Grey Wolf Optimizer-Particle Swarm Optimization (GWO-PSO) Algorithm for a Grid-Tied Solar Inverter Under Variable Rapid-Change Irradiance
Previous Article in Journal
Rheological Properties of Diesel-Based Fuels with Tyre Pyrolysis Oil as Admixture
Previous Article in Special Issue
Off-Grid Smoothing Control Strategy for Dual Active Bridge Energy Storage System Based on Voltage Droop Control
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Impact of Weather Conditions on Energy Consumption Modeling for Electric Vehicles

by
Maksymilian Mądziel
Faculty of Mechanical Engineering and Aeronautics, Rzeszow University of Technology, 35-959 Rzeszow, Poland
Energies 2025, 18(8), 1994; https://doi.org/10.3390/en18081994
Submission received: 4 February 2025 / Revised: 17 March 2025 / Accepted: 11 April 2025 / Published: 13 April 2025
(This article belongs to the Special Issue Studies of Microgrids for Electrified Transportation)

Abstract

:
This study presents a methodology for developing an energy consumption model for electric vehicles based on dynamic vehicle and environmental data. Particular attention is given to analyzing the impact of ambient temperature on the energy consumption modeling. The approach leverages a large dataset to enhance model robustness while acknowledging the constraints imposed by the selected explanatory variables—vehicle speed and acceleration. To improve the model’s accuracy, temperature and acceleration data were clustered using the K-Means method, resulting in four distinct energy consumption models tailored to specific data clusters. Despite the inherent limitations of using only speed and acceleration as predictors, the proposed models achieved strong validation results, with an R2 value of 0.84 and a MAE ranging from 0.75 to 1.23 Wh. This approach enables microscale energy consumption prediction while ensuring broad applicability across various driving scenarios.

1. Introduction

With the growing problem of air pollution, which contributes both to the intensification of the greenhouse effect and the deterioration of human health, there is an urgent need to implement ecological solutions in road transport [1,2]. This sector accounts for a significant share of emissions (around 25% of global CO2 emissions) [3,4], making technologies based on alternative fuels [5,6], modern hybrid drives [7,8], and fully electric vehicles essential [9,10]. The development of electromobility is one of the key elements of the energy transition to reduce greenhouse gas emissions and decrease dependence on fossil fuels [11,12]. Electric vehicles (EVs) are gaining popularity due to technological advancements, the growing availability of charging stations, and government initiatives that support their adoption [13,14]. However, despite numerous benefits, such as lower operating costs and reduced pollution emissions, electric vehicles still face challenges related to energy consumption optimization and the maintenance of a predictable range under various operating conditions [15,16]. One of the key factors influencing the energy efficiency of electric vehicles is weather conditions, which can significantly affect the energy demand and the actual range of the vehicle on a single charge [17,18]. Ambient temperature plays a particularly important role in the operation of electric vehicles, as it affects both the efficiency of the battery and the performance of vehicle thermal management systems [19,20]. High temperatures may require active cooling of the battery, leading to additional energy consumption, while low temperatures reduce the battery’s ability to store and deliver energy, shortening the range [21,22]. Additionally, in winter conditions, the demand for cabin heating increases, further burdening the vehicle’s energy resources [23,24]. Despite growing interest in the topic of the energy consumption of electric vehicles, previous studies have focused mainly on the impact of driving style, route profile, and vehicle load [25,26,27]. Much less attention has been paid to the analysis of weather conditions as a factor that shapes the energy efficiency of electric vehicles. Most available energy consumption prediction models consider weather conditions, particularly temperature, in a simplified manner or rely on limited datasets, leading to inaccurate forecasts [28].
Similar studies in this field include the work conducted in [29]. This study focuses on developing a simple, yet accurate energy consumption model for electric vehicles (EVs), using second-by-second vehicle speed, acceleration, and roadway grade data. Unlike existing models that are based on average regenerative braking efficiency, the proposed approach dynamically computes regenerative braking performance based on real-time vehicle operation. The results highlight the ability of the model to estimate EV energy consumption with an average error of 5.9%, demonstrating its effectiveness under various driving conditions. Furthermore, the study emphasizes the impact of auxiliary systems, such as heating and air conditioning, on the efficiency and range of electric vehicles. Similar work related to EV energy consumption modeling is performed in [30]. This study focuses on improving the accuracy of EV energy consumption modeling to enhance range estimation and reduce range anxiety among drivers. A detailed EV model, based on the BMW i3, was developed using MATLAB/Simulink, incorporating the powertrain system, longitudinal vehicle dynamics, and a driver behavior model. The inclusion of a regenerative braking strategy and auxiliary systems further improves the precision of the model. The validation against real-world data showed promising accuracy levels, with simulation errors ranging from 2% to 6% compared to experimental results. There are also some studies that address aspects of energy consumption modeling in the context of temperature variations. The authors point out that temperature influences both the physical properties of the battery and the energy consumption of the air-conditioning system [31]. Temperature variability affects battery performance, causing significant differences in the energy delivered by the battery and its internal resistance [32]. Additionally, Vepsäläinen et al. [33] conducted an energy consumption analysis in electric buses, highlighting that temperature, rolling resistance, and vehicle mass, including passenger load, are key factors influencing energy consumption variability.
A further challenge in previous studies is the lack of unified methodologies for data clustering and modeling. Many studies rely on classical statistical methods, while machine learning techniques, such as gradient-boosting models, remain underutilized in this field. In addition, few analyses consider different temperature ranges in the context of real vehicle dynamics, which hinders a full understanding of the interactions between weather conditions and energy consumption.
This study aims to address these gaps by applying exploratory data analysis methods and modern machine learning algorithms to model the impact of weather conditions on energy consumption of electric vehicles. The real-world operational data of electric vehicles were clustered according to ambient temperature and driving dynamics, followed by the development of predictive models using the LightGBM method. As a result, this study provides new information on the impact of weather conditions on the energy efficiency of electric vehicles, contributing to the development of more accurate energy management systems and route optimization in changing environmental conditions.
The aim of this article is to fill research gaps by performing a detailed data-driven analysis of the impact of ambient temperature conditions on the energy consumption of electric vehicles. The article will present energy consumption models that account for various atmospheric factors and propose methods for improving energy consumption prediction accuracy under different weather conditions. The article consists of five main sections. The first section presents an introduction and a brief review of the literature on the impact of weather conditions on the energy consumption of electric vehicles. The second section describes the research methodology, including the dataset and analytical techniques. The third section presents the results of the analysis, and the fourth compares them with the results of other studies. The final section contains the summary and conclusions.

2. Materials and Methods

The study involved the use of data collected from road tests to measure the operational parameters of electric vehicles. The goal of the investigation was to gather as much data as possible under varying environmental conditions, particularly with regard to ambient temperature. The data used for further analysis were obtained from a combination of our own research and a modified version of the database [34] tailored to our needs. The general structure of the study is presented in Figure 1.
The study used data from a compact five-door electric vehicle designed for urban mobility. The vehicle is equipped with a single electric motor that delivers 170 hp (125 kW) and a maximum torque of 250 Nm, utilizing a permanent magnet synchronous AC motor. The rear-wheel drive (RWD) configuration and the continuously variable transmission (CVT) ensure smooth driving. The vehicle’s maximum speed is 150 km/h, and the acceleration time from 0 to 100 km/h is 7.2 s. It is equipped with a 19 kWh lithium ion battery with a voltage of 360 V, allowing for a range of up to 190 km according to the NEDC cycle. The average energy consumption is below 12.9 kWh/100 km. A full battery charge takes approximately 3 h and 48 min. Data from this vehicle were processed for calculation at a rate of 1 Hz.
The data needed to create the energy consumption model include voltage, battery current, vehicle speed, acceleration, and ambient temperature measurements. The data were recorded in a CSV file and processed using Google Colab 1.2.0. Google Colab (Google Colaboratory) is a cloud-based platform to run and create Jupyter notebooks, enabling Python 3.1 code execution without the need for additional software installation [35,36]. Users have access to free computing resources, including graphics processors (GPUs) and tensor processors (TPUs), which makes Colab particularly useful for machine learning and data analysis.
In the conducted study, data on the energy consumption of the electric vehicle were segmented based on the following two key factors: temperature conditions and vehicle dynamics. In the first stage, a clustering algorithm was applied to divide the data into groups corresponding to different temperature ranges. The optimal number of clusters was determined using the “elbow method” and the silhouette score. The elbow method analyzes the sum of squared distances between data points and their closest centroid (called WCSS—within-cluster sum of squares), selecting the point where further increases in the number of clusters no longer significantly improve the quality of the division [37,38]. The silhouette score, on the other hand, evaluates the internal cohesion of clusters and their separation, enabling a more precise determination of the optimal number of groups [39,40]. A code snippet for preprocessing data to develop models for the studied clusters is presented in Algorithm 1.
Algorithm 1. Elbow method to determine the optimal number of clusters in K-Means clustering.
import matplotlib.pyplot as plt
from sklearn.cluster import KMeans
 
# Calculate inertia (sum of squared distances) for different numbers of clusters
inertia = []
k_range = range (1, 11) # Check for 1 to 10 clusters
for k in k_range:
  kmeans = KMeans (n_clusters = k, random_state = 42)
  kmeans.fit (df_cluster)
  inertia.append (kmeans.inertia_)
# Create the elbow method plot
plt.figure (figsize = (10, 8), dpi = 300) # Increased resolution (dpi = 300)
plt.plot (k_range, inertia, marker = ‘o’, linestyle = ‘-’, color = ‘b’)
plt.title (‘Elbow Method: Inertia vs. Number of Clusters’, fontsize = 16)
plt.xlabel (‘Number of Clusters’, fontsize = 14)
plt.ylabel (‘Inertia’, fontsize = 14)
plt.grid (True)
plt.xticks (k_range) # Add labels on the X-axis for each number of clusters
# Display the plot
plt.show()
After completion of the temperature-based clustering, further data segmentation was performed, which considered vehicle dynamics, represented by acceleration values. A clustering method was applied once again, based on an analysis of the driving characteristics within the previously separated temperature groups. As in the first stage, the number of clusters was determined using the elbow method and the silhouette score. This two-stage approach to clustering allowed for a more precise determination of the relationship between energy consumption and both environmental conditions and driving style.
Ambient temperature data were collected over a wide range from −3.0 °C to 33.5 °C, covering both winter and summer conditions. Most of the measurements fell within the 3–6 °C range for cooler days and 15–27 °C for warmer periods. This variation in temperature allows for the analysis of the impact of atmospheric conditions on energy consumption during the various seasons.
Based on the created clusters, an energy consumption model was developed for each group using the LightGBM (Light Gradient Boosting Machine) algorithm. This advanced machine learning method is based on gradient boosting, where a predictive model is built by iteratively training decision trees that correct the errors of previous iterations. LightGBM is known for its computational efficiency, ability to handle large datasets, and high prediction accuracy due to its better utilization of feature structure information [41,42]. The use of this model allowed us to identify key relationships between driving dynamics and energy consumption under various temperature conditions.

3. Results

The general procedure for generating model results is shown in Figure 2. The process of creating energy consumption models involves data segmentation to enhance their predictive capabilities. The first clustering was based on ambient temperature conditions during road tests. The data were divided into the following two clusters: higher temperature and lower temperature. Then, for these two clusters, additional clustering was performed on the basis of the vehicle’s acceleration. Since the goal was to develop a microscale model for applications related to vehicle traffic simulation, vehicle speed and acceleration were chosen as explanatory variables. This approach greatly enhances the potential of the model in terms of practical application. Essentially, every vehicle simulation software can easily generate these variables, and such models can also be easily applied to new real-world data from new road tests, including data from GPS systems or the vehicle’s OBD.
The creation of four clusters in total—(1) higher temperature, higher acceleration; (2) higher temperature, lower acceleration; and the opposite clusters (3) and (4)—enables a high level of accuracy in modeling energy consumption conditions for electric vehicles (EVs). A total of nearly 90,000 data rows were used for model training.

3.1. Energy Consumption vs. Ambient Temperature

The relationship between energy consumption and ambient temperature plays a key role in the efficiency of electric vehicles (EVs). In this section, clustering techniques are used to analyze energy-use patterns in different temperature ranges. Grouping similar data points allows for the development of more accurate models that reflect the impact of external conditions on EV performance. The results provide valuable information for optimizing energy management strategies and improving range predictions.
For clustering ambient temperature conditions in relation to energy consumption, the elbow method and silhouette score were used. These methods helped determine the optimal number of clusters for the next step in model creation. The results are shown in Figure 3.
Based on Figure 3, it can be seen that the elbow point on the graph indicates that the best predictive capabilities are associated with two clusters of data. The same conclusion can be drawn from the highest silhouette score, which also suggests that the two-cluster approach offers the best model performance. Therefore, for further processing of data related to energy consumption and temperature conditions, it was decided to use two clusters. The view of the developed data clusters is presented in Figure 4. The K-means method is a popular clustering technique aimed at dividing a dataset into k clusters, where each data point belongs to the cluster with the closest centroid [43,44]. The process begins by randomly selecting k points as initial cluster centers. Each data point is then assigned to the nearest center and the cluster centers are recalculated as the average of the points in that cluster. This process is repeated iteratively until the cluster centers no longer change, achieving stability. The choice of K-Means clustering for temperature segmentation was driven by the need for a data-driven and adaptive approach rather than relying on predefined thresholds. Unlike fixed temperature bins (e.g., below 0 °C, 0–10 °C, 10–20 °C, and above 20 °C), which impose arbitrary divisions, K-Means dynamically groups temperature values based on their natural distribution in the dataset. To ensure the effectiveness of this method, was used the elbow method and silhouette score, which confirmed that two clusters provided the most meaningful segmentation for energy consumption analysis. This approach allows the model to better capture non-linear relationships between temperature and energy consumption, making it more flexible across different climate conditions.
Moreover, predefined temperature bins may not be universally applicable to all geographic locations, as temperature effects on energy consumption may vary based on regional climate patterns and battery characteristics.
Figure 4 illustrates the process of clustering energy consumption data for an electric vehicle based on ambient temperature. Points on the plot were divided into two temperature groups using the K-Means clustering algorithm. The blue (0) group represents lower temperatures, while the orange group (1) includes higher temperatures. The average energy consumption for each group is indicated by dashed lines—blue for group 0 (2.14 Wh) and red for group 1 (1.68 Wh). A clear difference in energy consumption based on temperature is evident; in lower temperatures, the average energy consumption is higher than in warmer conditions. This could be due to the need for additional cabin heating or the lower efficiency of the battery at low temperatures. The high density of points in both groups suggests that the data cover a broad range of measurements, and the clustering effectively separates the two distinct temperature zones.
For a better comparison of the results for the two clusters, a 3D plot (Figure 5) was prepared, presenting the relationship between speed, temperature group, and energy consumption of the studied vehicles.
The three-dimensional plot shows the complex relationship between the speed of the electric vehicle, the ambient temperature, and the energy consumption, taking into account the division into two temperature groups. The two-layer structure visible on the plot indicates the strong influence of temperature on energy consumption, with each temperature group seemingly characterized by a different energy efficiency regime. Based on Figure 5, it can be observed that the highest concentration of data points for energy consumption is within the range of 0 Wh. The temperature cluster 0, which represents lower temperatures, shows a slightly greater dispersion of data, especially around the value of approximately 40 Wh.
When analyzing the relationship between speed and energy consumption, the non-linear character of this relationship is evident. In both temperature groups, energy consumption tends to be minimized at moderate speeds, whereas it increases at both very low and very high speeds. This may be due to different dominant mechanisms of energy loss: at low speeds, frequent accelerations, dynamic power changes, and rolling resistance play a larger role, while at high speeds, aerodynamic drag, which increases exponentially with speed, dominates. An especially interesting aspect of the plot is the color gradient, which reflects the energy consumption values. The presence of areas in blue, indicating potential negative energy consumption values, shows the effective operation of regenerative braking under certain driving conditions, especially when decelerating at high speeds. This suggests that, in certain operational ranges, the vehicle not only minimizes energy losses but also effectively recovers part of the consumed energy, which could be significant for energy management strategies in electric vehicles.
When comparing the impact of temperature on energy consumption characteristics, it is noticeable that, in warmer conditions, energy consumption shows greater uniformity, with extreme values being less visible compared to the low-temperature group. This suggests that the impact of temperature on battery efficiency degradation is more significant in winter conditions, where both internal cell resistance and auxiliary energy demand may contribute to increased energy consumption. In practical terms, this graph highlights the importance of optimizing energy management strategies in electric vehicles, particularly in relation to ambient temperature and driving style. The clear two-stage temperature dependence and non-linear energy consumption with respect to speed indicate the need for adaptive energy management strategies that account for dynamic changes in operational conditions to maximize the vehicle’s range and efficiency.
For the created temperature groups, a density distribution plot was also created, showing the data distribution for the formed clusters (Figure 6).
Figure 6 shows the distribution of the density of energy consumption for the two temperature groups, providing a better understanding of the energy characteristics of the electric vehicle under different environmental conditions. The density curves indicate that the energy consumption in both temperature groups is strongly concentrated around values close to zero, suggesting that in most cases the vehicle operates in a low energy consumption range or even recovers some energy through regeneration. However, the differences in the shape of the curves reveal important aspects, as follows: the low-temperature group (blue) shows a wider distribution, indicating greater variance in energy consumption under cooler conditions. This may be due to the additional energy demand for heating the battery and passenger cabin, as well as the less efficient operation of the drive system at low temperatures. On the other hand, the high-temperature group (orange) has a more concentrated distribution, suggesting that energy consumption in warmer climates is more predictable and less dependent on extreme operating conditions.

3.2. Energy Consumption vs. Acceleration for Temperature Clusters

Since the feature importance analysis in the context of creating an energy consumption model using the speed and acceleration parameters showed that acceleration has significant importance and high values, it was decided to use it to create additional data clusters for the previously created ambient temperature clusters. The impact of acceleration on the energy consumption generated by the aggregated groups is presented in Figure 7.
Based on Figure 7, a trend of increasing energy consumption with increasing acceleration can be observed, and this trend is linear for positive accelerations. In the braking deceleration range, i.e., for negative accelerations, a tendency to recover an average amount of instantaneous energy, around 4 Wh, can be noticed.
Similarly to the temperature parameter, for the previously developed clusters of environmental conditions, further clusters were created based on the acceleration characteristic of the vehicle. This step aims to further enhance the predictive capabilities of the energy consumption models. The results of the search for the optimal number of clusters are presented in Figure 8.
In the case of determining the number of clusters for acceleration, the elbow plot behaves slightly differently, as there is no typical break in the graph. This is clarified by the silhouette score, which, similar to the temperature parameter, shows the highest value for 2 clusters. Therefore, for the acceleration parameter, the same number of clusters was used (Figure 9).
The clusters for the two acceleration groups were divided into a group of very low or negative accelerations and a group of higher accelerations. The same division was made for the two main temperature clusters (left and right sides of the plot). From Figure 9, it can also be observed that group 0 of accelerations is characterized by a lower energy consumption or by regenerative braking.

3.3. Energy Consumption Modeling of Electric Vehicles Depending on Temperature and Acceleration Clusters

Since two explanatory variables will be considered for the energy consumption model, namely, acceleration (as previously presented) and speed, a summary of instantaneous energy consumption with respect to these parameters was prepared (Figure 10).
In Figure 10, it is clearly visible which speed and acceleration ranges correspond to the highest and lowest energy consumption values for EVs. Sudden acceleration, starting at a speed of 20 km/h, leads to a significant increase in instantaneous energy consumption, reaching up to 30 kWh. The highest values are recorded in the speed range of 60–100 km/h for accelerations greater than 2 m/s2. Speed and acceleration variables are good features for predicting energy consumption. This set of explanatory variables, as mentioned earlier, is justified by the fact that the resulting energy consumption model is intended to be as universal as possible for microscale simulation applications.
To model the energy consumption of electric vehicles, an approach based on the LightGBM algorithm was developed. This process took into account vehicle speed (velocity) and acceleration as explanatory variables, enabling the analysis of the impact of driving dynamics and atmospheric conditions on energy consumption. The selection of these variables was predetermined at the beginning of the study to ensure that the developed model could be applied universally in various scenarios, both real-world and simulation-based. By relying solely on speed and acceleration as inputs, the model remains adaptable to different road conditions and driving environments without requiring additional data sources.
The LightGBM library was used to build regression models, with acceleration and vehicle speed as features and energy consumption as the target variable. Given the predefined nature of the explanatory variables, the focus was placed on optimizing the model’s performance rather than identifying the most predictive feature set. To enhance the model’s accuracy, hyperparameter tuning was conducted using Bayesian optimization, which efficiently searched for the best hyperparameter values. The final model configuration, obtained from this process, included key parameters such as the number of decision tree leaves (31), learning rate (0.05), and feature fraction used for training (0.9). The training process consisted of 100 iterations, with early stopping applied based on the validation performance to prevent overfitting. To facilitate a more detailed analysis of environmental and driving factors, the data were divided into groups corresponding to different temperature ranges and acceleration levels, consistent with the initial grouping strategy. In each group, the dataset was split into training and test sets using the train–test split method. Additionally, to ensure compatibility with the LightGBM library, column names were transformed by removing parentheses, avoiding potential issues with feature name recognition. Dataset objects for LightGBM were created, and the model was trained separately for the four data groups resulting from clustering based on ambient temperature (2 groups) and acceleration (2 groups). The quality of the model was assessed using regression metrics, including mean absolute error (MAE), root mean square error (RMSE), and coefficient of determination (R2), as well as an analysis of predictive vs. actual data plots. The predictive performance results, visualized in 3D graphs comparing model predictions to actual values, are presented in Figure 11.
The energy consumption prediction model based on LightGBM shows varying effectiveness depending on temperature and acceleration conditions. In cases where acceleration is close to zero (left column of the plots), the model achieves high accuracy, as evidenced by the close alignment of actual (blue) and predicted (red) energy consumption values. This is particularly noticeable at lower energy levels, where the predictions almost perfectly mirror the actual data.
However, with higher acceleration (right column of the plots), the model’s predictions become more scattered and inconsistent, suggesting increased difficulty in modeling the relationship between energy, speed, and acceleration. It is evident that under higher acceleration conditions, the model tends to show increased error, especially at higher energy consumption values. Despite these challenges, the model still provides valuable predictions, offering a better understanding of the impact of various factors on the energy consumption of electric vehicles. To further verify the models obtained, additional validation plots (Figure 12) were prepared and validation indicators calculated.
The analysis of the residual plots (Figure 12) for the LightGBM model reveals its ability to predict energy consumption under various temperature and acceleration conditions. In the case of low acceleration (left column of the plots), the distribution of residuals is more concentrated around zero, indicating relatively good model accuracy, although slight tendencies toward errors can be seen in areas with very low or high predicted values. On the other hand, with higher acceleration (right column of the plots), the model shows a clearly larger spread of errors, especially for higher predicted energy consumption values. The visible heteroskedasticity, manifested by increased residual fluctuations for higher prediction values, suggests that the model may struggle to capture complex relationships under these conditions. The residual histograms placed alongside the plots show that, although most errors are concentrated around zero, there are cases of significant deviations, especially under higher acceleration conditions. The results of the validation metrics for the energy consumption models are presented in Table 1.
The results obtained from the evaluation of the LightGBM model indicate its good predictive ability to predict energy consumption under various temperatures and acceleration conditions. The high coefficient of determination (R2), especially for the Temp 0, Acc 0 group (R2 = 0.84), suggests that the model effectively explains the variability in the data with this configuration while achieving the lowest RMSE value of 1.81 Wh, indicating minimal deviations between the predictions and actual values. The model also shows very good accuracy for Temp 1, Acc 0, where the lowest MAE value (0.75 Wh) was achieved, meaning the smallest average prediction errors. Slightly higher error values for the Temp 1, Acc 1 group (MAE = 1.28 Wh, RMSE = 1.89 Wh) may suggest greater variability in the data under these conditions; however, the results still indicate solid predictive capabilities of the model with values above 0.72. Overall, the results confirm that the LightGBM model successfully predicts energy consumption, especially under more stable conditions with lower acceleration values.

4. Discussion

The analyses carried out provide valuable information on the impact of ambient temperature and driving dynamics on the energy consumption of electric vehicles (EVs). The use of the LightGBM algorithm for energy consumption modeling allowed for the incorporation of these factors and an assessment of their significance under different operating conditions. An analysis of the distribution of the energy consumption density for different temperature groups showed that, at lower temperatures, energy consumption is more varied. The wider distribution in the low-temperature group suggests greater variability in energy consumption, which may result from additional energy requirements to heat the battery and the passenger cabin, as well as from less efficient operation of the drive system in colder conditions. On the other hand, at higher temperatures, the distribution of the energy consumption is more concentrated, indicating a more predictable energy consumption in warmer climates. These findings align with previous studies suggesting that low temperatures can lead to increased energy consumption by electric vehicles. Furthermore, at cooler temperatures, electric batteries can lose up to 20% of their capacity, affecting vehicle range. An analysis of the impact of acceleration on energy consumption revealed a linear relationship within positive acceleration values. As acceleration increases, energy consumption increases proportionally. In the range of negative acceleration (i.e., regenerative braking), an average energy recovery of about 4 Wh was observed, indicating the effectiveness of the energy recovery system in electric vehicles. Similar results have been presented in the literature, where it was shown that dynamic driving, characterized by frequent and rapid acceleration, leads to increased energy consumption. However, moderate acceleration and braking promote more efficient energy management and can increase vehicle range. The application of the LightGBM algorithm for energy consumption modeling allowed for the inclusion of both ambient temperature and driving dynamics on the energy consumption of electric vehicles. Models trained for the various temperature and acceleration groups exhibited varying predictive performances. Under low-acceleration conditions, the model achieved high accuracy, as evidenced by the low mean absolute error (MAE) and the high coefficient of determination (R2). In the case of higher acceleration values, the model’s accuracy was slightly lower, which may result from greater data variability under these conditions. It should also be noted that the only explanatory variables for the model were speed and acceleration, which was intended to increase the universality of the models.
Similar work on the analyzed topic is found in [45]. The article discusses the use of electric vehicles (EVs) as a means to reduce dependence on oil, improve transportation efficiency, and reduce carbon emissions. The research focuses on evaluating the energy consumption of electric vehicles, including the analysis of data collected from a test electric vehicle. The results show that electric vehicles are more efficient on urban routes than on highways, and users tend to balance travel time and energy consumption. Additionally, a model is proposed to estimate energy consumption, which successfully predicts the power and energy consumption of electric vehicles in real time. The results presented in this work, in terms of the efficiency of electric drive at lower urban speeds, are consistent with the study developed. In addition, similar work of interest is presented in [46]. The article addresses the variability in the energy consumption of electric vehicles (EVs) according to external factors, such as road topology, traffic, and driving style. The goal is to analyze the correlation between vehicle kinematic parameters and energy consumption and to develop models that estimate this consumption based on real world data. Three models were proposed, using different levels of aggregation of input data, from basic travel parameters to detailed acceleration data. The results show that the first two models achieved similar results, while the third, despite a poorer fit, has potential for further development. However, the model developed in this work is somewhat limited in terms of the larger number of input data variables.
There are also numerous studies focusing specifically on the impact of temperature on energy consumption by electric vehicles (EVs). Liu et al. [47] analyzed the effect of ambient temperature on energy consumption per kilometer, taking into account the interaction with the air-conditioning system. They proposed a model based on least squares regression and linear regression with mixed effects. Omitting this interaction could lead to overestimating energy consumption for heating and underestimating energy consumption for cooling. Eliminating unjustified auxiliary loads saves an average of 9.66% of energy per kilometer. Ji et al. [48] developed a model for estimating trip energy consumption (TEC) based on real data, showing that ambient temperature is a key factor affecting increased TEC and decreased battery range and efficiency. They introduced multiple regression, in which traction energy and battery thermal management were analyzed together, while energy consumption by the air-conditioning system was analyzed separately. This allowed for more accurate predictions of energy consumption under different conditions. Many studies emphasize the significant impact of ambient temperature on energy consumption by electric vehicles (EVs) [49,50,51,52]. Wang et al. [53] developed a model that incorporates weather conditions and rolling resistance, while Abdelaty et al. [54] created an energy consumption estimation model based on low-resolution data, achieving 90% explanatory power for the variability in consumption. Gao et al. [55] used Grey relational analysis (GRA), showing that travel time, weather, and air conditioning affect the energy consumption of electric buses. Because of the long-term influence of meteorological conditions, temperature and humidity are often included in models that estimate energy consumption, for example, by estimating temperature based on the position of the vehicle. Another study in this area is found in [56]. This work presents new methods for optimizing energy consumption by electric vehicles, taking thermal comfort into account, and proposing three control strategies. To more accurately estimate the remaining range of electric vehicles, a method that incorporates the average air-conditioning power was proposed, helping to avoid errors from treating air-conditioning energy as part of propulsion energy. The simulation and experimental results confirm the effectiveness of this approach, showing that the range estimation error is below 3%, which helps to better balance energy savings and the comfort of EV users.
There is also a growing number of studies using various machine learning techniques to model the operational parameters of vehicles, including electric [57,58], hybrid [59,60], and combustion [61,62,63,64] vehicles. It is important to note that it is not only crucial to develop models analyzing energy consumption by electric vehicles but also to integrate them with traffic simulation tools such as Vissim or SUMO [65,66]. To obtain realistic and reliable results, it is necessary to use basic dynamic vehicle parameters as input data for such models. This need is addressed, among other ways, by this work, which focuses on analyzing variables related to vehicle speed and acceleration. This allows for quick and efficient collection of key data from both new road cycles and simulations, which can significantly improve traffic modeling and energy consumption forecasting in road transport.
While the study primarily focuses on temperature and acceleration as key environmental and driving factors influencing energy consumption, it is acknowledged that other meteorological conditions, such as wind speed and humidity, may also impact electric vehicle efficiency. Wind resistance can directly affect energy consumption, especially at higher speeds, while humidity may influence battery performance and vehicle aerodynamics. However, these variables were not included in the model because of data availability constraints and the aim of creating a universally applicable model based solely on speed and acceleration. Future work could explore the integration of these additional environmental factors to enhance predictive accuracy. Moreover, another important aspect influencing energy consumption is the operation of the air-conditioning (AC) system. In this study, the AC system was consistently set to maintain a single temperature with a fixed activation level across all driving scenarios. While this approach ensured uniform test conditions, it did not account for variations in AC usage, which can significantly impact energy demand, particularly in extreme temperatures. Future studies should incorporate datasets with different levels of AC operation to assess its full impact on energy consumption and improve the model’s generalizability across diverse driving and climatic conditions.

5. Conclusions

The study highlights the significant impact of ambient temperature and acceleration on the energy consumption of electric vehicles (EVs), providing valuable information to optimize energy efficiency and range prediction. Clustering the data before model training allowed for the identification of distinct patterns related to different driving conditions, such as ambient temperature and acceleration, which are crucial factors affecting energy consumption. This approach enabled the model to better capture the variability in energy usage across different scenarios. The clustering approach applied to temperature and acceleration data allowed for a more granular analysis of these factors, leading to several key conclusions.
  • Energy consumption varies significantly across different temperature clusters. Lower temperatures contribute to increased and more variable energy use due to factors such as battery heating requirements and reduced drivetrain efficiency;
  • The wider distribution of energy consumption in colder conditions suggests that additional energy management strategies are necessary to maintain efficiency, particularly in winter conditions;
  • On the contrary, higher temperatures result in a more stable and predictable energy consumption pattern, indicating improved overall efficiency in warmer climates;
  • A strong correlation between acceleration and energy consumption was observed, with energy usage increasing linearly with positive acceleration values;
  • Negative acceleration (i.e., deceleration or braking) demonstrates the effectiveness of regenerative braking, with an average energy recovery of approximately 4 Wh;
  • The LightGBM model proved to be an effective tool for predicting energy consumption, particularly under stable conditions with lower acceleration values;
  • The highest prediction accuracy was observed in scenarios with low acceleration and moderate speeds, with an R2 value of 0.84 and the lowest RMSE of 1.81 Wh.
Despite the high effectiveness of the LightGBM model in forecasting the energy consumption of electric vehicles, an increase in prediction errors was observed at higher acceleration values. This suggests the need to include additional variables, such as road gradient, air resistance, or individual driver habits, which can significantly affect energy consumption. The results of the analyses are of practical importance for electric vehicle manufacturers, fleet managers, and policymakers shaping transportation policies, all of whom aim to increase energy efficiency and extend battery life. Particularly important appears to be the consideration of the impact of temperature and acceleration in real-time energy management systems, which could improve range forecasting and optimize charging strategies. Future research should focus on expanding the model with additional environmental factors, such as road surface conditions or wind speed, which would increase its resilience to variable operational conditions. Moreover, verification of the effectiveness of the model in real driving conditions for different types of electric vehicles is necessary to assess its universality and adaptability. A key development direction is also the creation of intelligent energy management systems that would dynamically adjust power consumption to predicted road conditions and driving styles. While the model was not explicitly tested on multiple EV models, its structure allows for straightforward adaptation, provided that sufficient training data for different vehicles is available.

Funding

This research did not receive external funding.

Data Availability Statement

The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding authors.

Conflicts of Interest

The author declares no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
EVElectric Vehicle
LightGBMLight Gradient Boosting Machine
hpHorsepower
RWDRear-Wheel Drive
CVTContinuously Variable Transmission
PGUPower Generation Unit
TPUTensor Processing Unit
WCSSWithin-Cluster Sum of Squares
OBDOn-Board Diagnostics
RMSERoot Mean Squared Error
MAEMean Absolute Error
R2Coefficient of Determination

References

  1. Giechaskiel, B.; Grigoratos, T.; Mathissen, M.; Quik, J.; Tromp, P.; Gustafsson, M.; Franco, V.; Dilara, P. Contribution of Road Vehicle Tyre Wear to Microplastics and Ambient Air Pollution. Sustainability 2024, 16, 522. [Google Scholar] [CrossRef]
  2. Jaworski, A.; Lejda, K.; Mądziel, M.; Ustrzycki, A. Assessment of the emission of harmful car exhaust components in real traffic conditions. IOP Conf. Ser. Mater. Sci. Eng. 2018, 421, 042031. [Google Scholar] [CrossRef]
  3. Pryciński, P.; Pielecha, P.; Korzeb, J.; Pielecha, J.; Kostrzewski, M.; Eliwa, A. Air Pollutant Emissions of Passenger Cars in Poland in Terms of Their Environmental Impact and Type of Energy Consumption. Energies 2024, 17, 5357. [Google Scholar] [CrossRef]
  4. Lopez-Aparicio, S.; Grythe, H.; Drabicki, A.; Chwastek, K.; Toboła, K.; Górska-Niemas, L.; Kierpiec, U.; Markelj, M.; Strużewska, J.; Kud, B.; et al. Environmental sustainability of urban expansion: Implications for transport emissions, air pollution, and city growth. Environ. Int. 2025, 196, 109310. [Google Scholar] [CrossRef] [PubMed]
  5. Kuszewski, H.; Jaworski, A.; Mądziel, M.; Woś, P. The investigation of auto-ignition properties of 1-butanol–biodiesel blends under various temperatures conditions. Fuel 2023, 346, 128388. [Google Scholar] [CrossRef]
  6. Kuszewski, H.; Jaworski, A.; Mądziel, M. Lubricity of Ethanol–Diesel Fuel Blends—Study with the Four-Ball Machine Method. Materials 2021, 14, 2492. [Google Scholar] [CrossRef]
  7. Mądziel, M.; Campisi, T. Investigation of Vehicular Pollutant Emissions at 4-Arm Intersections for the Improvement of Integrated Actions in the Sustainable Urban Mobility Plans (SUMPs). Sustainability 2023, 15, 1860. [Google Scholar] [CrossRef]
  8. Ziółkowski, A.; Fuć, P.; Lijewski, P.; Bednarek, M.; Jagielski, A.; Kusiak, W.; Igielska-Kalwat, J. The Influence of the Type and Condition of Road Surfaces on the Exhaust Emissions and Fuel Consumption in the Transport of Timber. Energies 2023, 16, 7257. [Google Scholar] [CrossRef]
  9. Bagheri, S.; Huang, Y.; Walker, P.D.; Zhou, J.L.; Surawski, N.C. Strategies for improving the emission performance of hybrid electric vehicles. Sci. Total Environ. 2021, 771, 144901. [Google Scholar] [CrossRef]
  10. Pielecha, J.; Skobiej, K.; Kurtyka, K. Exhaust emissions and energy consumption analysis of conventional, hybrid, and electric vehicles in real driving cycles. Energies 2020, 13, 6423. [Google Scholar] [CrossRef]
  11. Pietrzak, K.; Pietrzak, O. Environmental effects of electromobility in a sustainable urban public transport. Sustainability 2020, 12, 1052. [Google Scholar] [CrossRef]
  12. Sierpiński, G.; Macioszek, E. Equalising the levels of electromobility implementation in cities. In Proceedings of the Research and the Future of Telematics: 20th International Conference on Transport Systems Telematics, TST 2020, Kraków, Poland, 27–30 October 2020; Selected Papers 20. Springer International Publishing: Cham, Switzerland, 2020; pp. 165–176. [Google Scholar]
  13. Das, H.S.; Rahman, M.M.; Li, S.; Tan, C.W. Electric vehicles standards, charging infrastructure, and impact on grid integration: A technological review. Renew. Sustain. Energy Rev. 2020, 120, 109618. [Google Scholar] [CrossRef]
  14. Skuza, A.; Szumska, E.M.; Jurecki, R.; Pawelec, A. Modeling the Impact of Traffic Parameters on Electric Vehicle Energy Consumption. Energies 2024, 17, 5423. [Google Scholar] [CrossRef]
  15. Straka, M.; De Falco, P.; Ferruzzi, G.; Proto, D.; Van Der Poel, G.; Khormali, S.; Buzna, L. Predicting popularity of electric vehicle charging infrastructure in urban context. IEEE Access 2020, 8, 11315–11327. [Google Scholar] [CrossRef]
  16. Zhang, C.; Huang, Q.; Tian, J.; Chen, L.; Cao, Y.; Zhang, R. Smart grid facing the new challenge: The management of electric vehicle charging loads. Energy Procedia 2011, 12, 98–103. [Google Scholar] [CrossRef]
  17. Wang, W.; Tang, A.; Wei, F.; Yang, H.; Xinran, L.; Peng, J. Electric vehicle charging load forecasting considering weather impact. Appl. Energy 2025, 383, 125337. [Google Scholar] [CrossRef]
  18. Li, X.; Li, C.; Jia, C. Electric Vehicle and Photovoltaic Power Scenario Generation under Extreme High-Temperature Weather. World Electr. Veh. J. 2024, 15, 11. [Google Scholar] [CrossRef]
  19. Seo, J.H.; Patil, M.S.; Cho, C.P.; Lee, M.Y. Heat transfer characteristics of the integrated heating system for cabin and battery of an electric vehicle under cold weather conditions. Int. J. Heat Mass Transf. 2018, 117, 80–94. [Google Scholar] [CrossRef]
  20. Mruzek, M.; Gajdáč, I.; Kučera, Ľ.; Gajdošík, T. The possibilities of increasing the electric vehicle range. Procedia Eng. 2017, 192, 621–625. [Google Scholar] [CrossRef]
  21. Fan, Y.; Zhan, D.; Tan, X.; Lyu, P.; Rao, J. Optimization of cooling strategies for an electric vehicle in high-temperature environment. Appl. Therm. Eng. 2021, 195, 117088. [Google Scholar] [CrossRef]
  22. Steinstraeter, M.; Heinrich, T.; Lienkamp, M. Effect of low temperature on electric vehicle range. World Electr. Veh. J. 2021, 12, 115. [Google Scholar] [CrossRef]
  23. Grützke, M.; Kraft, V.; Hoffmann, B.; Klamor, S.; Diekmann, J.; Kwade, A.; Winter, M.; Nowak, S. Aging investigations of a lithium-ion battery electrolyte from a field-tested hybrid electric vehicle. J. Power Sources 2015, 273, 83–88. [Google Scholar] [CrossRef]
  24. Trigui, O.; Dube, Y.; Kelouwani, S.; Agbossou, K. Comparative estimation of electric vehicle rolling resistance coefficient in winter conditions. In Proceedings of the 2016 IEEE Vehicle Power and Propulsion Conference (VPPC 2016), Hangzhou, China, 17–20 October 2016; pp. 1–6. [Google Scholar]
  25. Knowles, M.; Scott, H.; Baglee, D. The effect of driving style on electric vehicle performance, economy and perception. Int. J. Electr. Hybrid Veh. 2012, 4, 228–247. [Google Scholar] [CrossRef]
  26. Donkers, A.; Yang, D.; Viktorović, M. Influence of driving style, infrastructure, weather and traffic on electric vehicle performance. Transp. Res. Part D Transp. Environ. 2020, 88, 102569. [Google Scholar] [CrossRef]
  27. Hu, L.; Tian, Q.; Zou, C.; Huang, J.; Ye, Y.; Wu, X. A study on energy distribution strategy of electric vehicle hybrid energy storage system considering driving style based on real urban driving data. Renew. Sustain. Energy Rev. 2022, 162, 112416. [Google Scholar] [CrossRef]
  28. Koncar, I.; Bayram, I.S. A probabilistic methodology to quantify the impacts of cold weather on electric vehicle demand: A case study in the UK. IEEE Access 2021, 9, 88205–88216. [Google Scholar] [CrossRef]
  29. Fiori, C.; Ahn, K.; Rakha, H.A. Power-based electric vehicle energy consumption model: Model development and validation. Appl. Energy 2016, 168, 257–268. [Google Scholar] [CrossRef]
  30. Miri, I.; Fotouhi, A.; Ewin, N. Electric vehicle energy consumption modelling and estimation—A case study. Int. J. Energy Res. 2021, 45, 501–520. [Google Scholar] [CrossRef]
  31. Li, J.; Li, Z.; Zhuang, W.; He, Z.; Fu, J. Data-driven energy consumption prediction of electric bus on a given route. In Proceedings of the IEEE 5th International Electrical and Energy Conference (CIEEC 2022), Nangjing, China, 27–29 May 2022; pp. 1698–1703. [Google Scholar]
  32. Ahmed, S.H.; Kang, X.; Shrestha, S.O.B. Effects of temperature on internal resistances of lithium-ion batteries. J. Energy Resour. Technol. 2015, 137, 031901. [Google Scholar] [CrossRef]
  33. Vepsäläinen, J.; Otto, K.; Lajunen, A.; Tammi, K. Computationally efficient model for energy demand prediction of electric city bus in varying operating conditions. Energy 2019, 169, 433–443. [Google Scholar] [CrossRef]
  34. Steinstraeter, M.; Buberger, J.; Trifonov, D. Battery and Heating Data in Real Driving Cycles; IEEE Dataport: Piscataway, NJ, USA, 2020. [Google Scholar] [CrossRef]
  35. Balan, G.; Arumugam, S.; Muthusamy, S.; Panchal, H.; Kotb, H.; Bajaj, M.; Ghoneim, S.S.M.; Kitmo. An Improved Deep Learning-Based Technique for Driver Detection and Driver Assistance in Electric Vehicles with Better Performance. Int. Trans. Electr. Energy Syst. 2022, 2022, 8548172. [Google Scholar] [CrossRef]
  36. Michael, M.; Fianty, M.I. Measuring Public Sentiment on Electric Cars in Indonesia: A Social Media Data Analysis. G-Tech J. Teknol. Terap. 2024, 8, 2675–2686. [Google Scholar] [CrossRef]
  37. Bholowalia, P.; Kumar, A. EBK-means: A clustering technique based on elbow method and k-means in WSN. Int. J. Comput. Appl. 2014, 105, 17–24. [Google Scholar]
  38. Cui, M. Introduction to the k-means clustering algorithm based on the elbow method. Account. Audit. Financ. 2020, 1, 5–8. [Google Scholar]
  39. Shahapure, K.R.; Nicholas, C. Cluster quality analysis using silhouette score. In Proceedings of the 2020 IEEE 7th International Conference on Data Science and Advanced Analytics (DSAA), Sydney, NSW, Australia, 6–9 October 2020; IEEE: Piscataway, NJ, USA, 2020; pp. 747–748. [Google Scholar]
  40. Vardakas, G.; Papakostas, I.; Likas, A. Deep Clustering Using the Soft Silhouette Score: Towards Compact and Well-Separated Clusters. arXiv 2024, arXiv:2402.00608. [Google Scholar]
  41. Ke, G.; Meng, Q.; Finley, T.; Wang, T.; Chen, W.; Ma, W.; Ye, Q.; Liu, T.Y. Lightgbm: A highly efficient gradient boosting decision tree. In Proceedings of the 31st Conference on Neural Information Processing Systems (NIPS 2017), Long Beach, CA, USA, 4–9 December 2017; Volume 30. [Google Scholar]
  42. Truong, V.H.; Tangaramvong, S.; Papazafeiropoulos, G. An efficient LightGBM-based differential evolution method for nonlinear inelastic truss optimization. Expert Syst. Appl. 2024, 237, 121530. [Google Scholar] [CrossRef]
  43. Chen, J.I.Z.; Zong, J.I. Automatic vehicle license plate detection using K-means clustering algorithm and CNN. J. Electr. Eng. Autom. 2021, 3, 15–23. [Google Scholar]
  44. Pustokhina, I.V.; Pustokhin, D.A.; Rodrigues, J.J.; Gupta, D.; Khanna, A.; Shankar, K.; Changho, S.; Joshi, G.P. Automatic vehicle license plate recognition using optimal K-means with convolutional neural network for intelligent transportation systems. IEEE Access 2020, 8, 92907–92917. [Google Scholar] [CrossRef]
  45. Wu, X.; Freese, D.; Cabrera, A.; Kitch, W.A. Electric vehicles’ energy consumption measurement and estimation. Transp. Res. Part D Transp. Environ. 2015, 34, 52–67. [Google Scholar] [CrossRef]
  46. De Cauwer, C.; Van Mierlo, J.; Coosemans, T. Energy consumption prediction for electric vehicles based on real-world data. Energies 2015, 8, 8573–8593. [Google Scholar] [CrossRef]
  47. Liu, K.; Wang, J.; Yamamoto, T.; Morikawa, T. Exploring the interactive effects of ambient temperature and vehicle auxiliary loads on electric vehicle energy consumption. Appl. Energy 2018, 227, 324–331. [Google Scholar]
  48. Ji, J.; Bie, Y.; Zeng, Z.; Wang, L. Trip energy consumption estimation for electric buses. Commun. Transp. Res. 2022, 2, 100069. [Google Scholar] [CrossRef]
  49. Mądziel, M.; Campisi, T. Predictive Artificial Intelligence Models for Energy Efficiency in Hybrid and Electric Vehicles: Analysis for Enna, Sicily. Energies 2024, 17, 4913. [Google Scholar] [CrossRef]
  50. Wang, J.B.; Liu, K.; Yamamoto, T.; Morikawa, T. Improving estimation accuracy for electric vehicle energy consumption considering the effects of ambient temperature. Energy Proc. 2017, 105, 2904–2909. [Google Scholar] [CrossRef]
  51. Hao, X.; Wang, H.; Lin, Z.; Ouyang, M. Seasonal effects on electric vehicle energy consumption and driving range: A case study on personal, taxi, and ridesharing vehicles. J. Clean. Prod. 2020, 249, 119403. [Google Scholar] [CrossRef]
  52. Mądziel, M. Energy Modeling for Electric Vehicles Based on Real Driving Cycles: An Artificial Intelligence Approach for Microscale Analyses. Energies 2024, 17, 1148. [Google Scholar] [CrossRef]
  53. Wang, J.; Besselink, I.; Nijmeijer, H. Battery electric vehicle energy consumption modelling for range estimation. Int. J. Electr. Hybrid Veh. 2017, 9, 79–102. [Google Scholar] [CrossRef]
  54. Abdelaty, H.; Mohamed, M. A framework for BEB energy prediction using lowresolution open source data-driven model. Transport. Res. Transport Environ. 2022, 103, 103170. [Google Scholar] [CrossRef]
  55. Gao, Z.; Lin, Z.; LaClair, T.J.; Liu, C.; Li, J.M.; Birky, A.K.; Ward, J. Battery capacity and recharging needs for electric buses in city transit service. Energy 2017, 122, 588–600. [Google Scholar] [CrossRef]
  56. Li, N.; Xie, K.; Liu, C.; Zhou, J.; Yin, J. New control methodology of electric vehicles energy consumption optimization based on air conditioning thermal comfort. Appl. Therm. Eng. 2024, 241, 122375. [Google Scholar] [CrossRef]
  57. Orzechowski, A.; Lugosch, L.; Shu, H.; Yang, R.; Li, W.; Meyer, B.H. A data-driven framework for medium-term electric vehicle charging demand forecasting. Energy AI 2023, 14, 100267. [Google Scholar] [CrossRef]
  58. Kim, Y.; Kim, S. Forecasting charging demand of electric vehicles using time-series models. Energies 2021, 14, 1487. [Google Scholar] [CrossRef]
  59. Mądziel, M. Instantaneous CO2 emission modelling for a Euro 6 start-stop vehicle based on portable emission measurement system data and artificial intelligence methods. Environ. Sci. Pollut. Res. 2024, 31, 6944–6959. [Google Scholar] [CrossRef]
  60. Mądziel, M. Future Cities Carbon Emission Models: Hybrid Vehicle Emission Modelling for Low-Emission Zones. Energies 2023, 16, 6928. [Google Scholar] [CrossRef]
  61. Zhang, X.; Zhang, Z.; Liu, Y.; Xu, Z.; Qu, X. A review of machine learning approaches for electric vehicle energy consumption modelling in urban transportation. Renew. Energy 2024, 234, 121243. [Google Scholar] [CrossRef]
  62. Moon, S.; Lee, J.; Kim, H.J.; Kim, J.H.; Park, S. Study on CO2 Emission Assessment of Heavy-Duty and Ultra-Heavy-Duty Vehicles Using Machine Learning. Int. J. Automot. Technol. 2024, 25, 651–661. [Google Scholar] [CrossRef]
  63. Mądziel, M. Modeling Exhaust Emissions in Older Vehicles in the Era of New Technologies. Energies 2024, 17, 4924. [Google Scholar] [CrossRef]
  64. Mądziel, M. Quantifying Emissions in Vehicles Equipped with Energy-Saving Start–Stop Technology: THC and NOx Modeling Insights. Energies 2024, 17, 2815. [Google Scholar] [CrossRef]
  65. Al-Msari, H.; Koting, S.; Ahmed, A.N.; El-Shafie, A. Review of driving-behaviour simulation: VISSIM and artificial intelligence approach. Heliyon 2024, 10, e25936. [Google Scholar] [CrossRef]
  66. Mądziel, M. Predictive methods for CO2 emissions and energy use in vehicles at intersections. Sci. Rep. 2025, 15, 6463. [Google Scholar] [CrossRef]
Figure 1. General scheme of the work.
Figure 1. General scheme of the work.
Energies 18 01994 g001
Figure 2. Simplified data clustering workflow for further model development.
Figure 2. Simplified data clustering workflow for further model development.
Energies 18 01994 g002
Figure 3. A plot of the results for the elbow method and the silhouette score for the clustering ambient temperature conditions and energy consumption of the electric vehicle.
Figure 3. A plot of the results for the elbow method and the silhouette score for the clustering ambient temperature conditions and energy consumption of the electric vehicle.
Energies 18 01994 g003
Figure 4. Data clusters of instantaneous energy consumption, categorized by ambient temperature into group 0 (low temperature) and group 1 (high temperature), along with the presentation of mean values on a boxplot.
Figure 4. Data clusters of instantaneous energy consumption, categorized by ambient temperature into group 0 (low temperature) and group 1 (high temperature), along with the presentation of mean values on a boxplot.
Energies 18 01994 g004
Figure 5. 3D plot showing the relationship between speed, temperature group for a given cluster, and energy consumption of the electric vehicle.
Figure 5. 3D plot showing the relationship between speed, temperature group for a given cluster, and energy consumption of the electric vehicle.
Energies 18 01994 g005
Figure 6. Density distribution of data for the created temperature clusters with respect to EV energy consumption.
Figure 6. Density distribution of data for the created temperature clusters with respect to EV energy consumption.
Energies 18 01994 g006
Figure 7. Aggregated acceleration groups of electric vehicles and their impact on average energy consumption.
Figure 7. Aggregated acceleration groups of electric vehicles and their impact on average energy consumption.
Energies 18 01994 g007
Figure 8. The plot of the results for the elbow method and silhouette score to cluster the acceleration parameter data.
Figure 8. The plot of the results for the elbow method and silhouette score to cluster the acceleration parameter data.
Energies 18 01994 g008
Figure 9. Clusters of instantaneous energy consumption data, which is divided, based on the acceleration parameter, into low or negative acceleration (group 0) and positive and higher acceleration (group 1). The division also includes two temperature cluster groups; the left side of the plot represents the low-temperature cluster, and the right side represents the high-temperature cluster, corresponding to summer conditions.
Figure 9. Clusters of instantaneous energy consumption data, which is divided, based on the acceleration parameter, into low or negative acceleration (group 0) and positive and higher acceleration (group 1). The division also includes two temperature cluster groups; the left side of the plot represents the low-temperature cluster, and the right side represents the high-temperature cluster, corresponding to summer conditions.
Energies 18 01994 g009
Figure 10. Energy consumption with respect to the explanatory parameters of vehicle speed and acceleration.
Figure 10. Energy consumption with respect to the explanatory parameters of vehicle speed and acceleration.
Energies 18 01994 g010
Figure 11. Comparison of the predictive capabilities of the obtained models against actual energy consumption for clustered data.
Figure 11. Comparison of the predictive capabilities of the obtained models against actual energy consumption for clustered data.
Energies 18 01994 g011
Figure 12. Residual plots for energy consumption models.
Figure 12. Residual plots for energy consumption models.
Energies 18 01994 g012
Table 1. Results of the validation metrics for the energy consumption models obtained.
Table 1. Results of the validation metrics for the energy consumption models obtained.
Temperature GroupAcceleration GroupMAERMSER2
0 (low)0 (low)1.231.810.84
0 (low)1 (high)1.021.640.72
1 (high)0 (low)0.751.180.74
1 (high)1 (high)1.281.890.74
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Mądziel, M. Impact of Weather Conditions on Energy Consumption Modeling for Electric Vehicles. Energies 2025, 18, 1994. https://doi.org/10.3390/en18081994

AMA Style

Mądziel M. Impact of Weather Conditions on Energy Consumption Modeling for Electric Vehicles. Energies. 2025; 18(8):1994. https://doi.org/10.3390/en18081994

Chicago/Turabian Style

Mądziel, Maksymilian. 2025. "Impact of Weather Conditions on Energy Consumption Modeling for Electric Vehicles" Energies 18, no. 8: 1994. https://doi.org/10.3390/en18081994

APA Style

Mądziel, M. (2025). Impact of Weather Conditions on Energy Consumption Modeling for Electric Vehicles. Energies, 18(8), 1994. https://doi.org/10.3390/en18081994

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop