Next Article in Journal
A Practical Framework for Developing Net-Zero Electricity Mix Scenarios: A Case Study of South Korea
Next Article in Special Issue
Probability Calculation for Utilization of Photovoltaic Energy in Electric Vehicle Charging Stations
Previous Article in Journal
Engineering Fastest Control: A New Process Control Method for Thermal Power Units
Previous Article in Special Issue
A Heuristic-Driven Charging Strategy of Electric Vehicle for Grids with High EV Penetration
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Insights into Household Electric Vehicle Charging Behavior: Analysis and Predictive Modeling

Durham School of Architectural Engineering & Construction, College of Engineering, University of Nebraska—Lincoln, Omaha, NE 68182, USA
*
Authors to whom correspondence should be addressed.
Energies 2024, 17(4), 925; https://doi.org/10.3390/en17040925
Submission received: 4 January 2024 / Revised: 4 February 2024 / Accepted: 14 February 2024 / Published: 16 February 2024

Abstract

:
In the era of burgeoning electric vehicle (EV) popularity, understanding the patterns of EV users’ behavior is imperative. This paper examines the trends in household charging sessions’ timing, duration, and energy consumption by analyzing real-world residential charging data. By leveraging the information collected from each session, a novel framework is introduced for the efficient, real-time prediction of important charging characteristics. Utilizing historical data and user-specific features, machine learning models are trained to predict the connection duration, charging duration, charging demand, and time until the next session. These models enhance the understanding of EV users’ behavior and provide practical tools for optimizing the EV charging infrastructure and effectively managing the charging demand. As the transportation sector becomes increasingly electrified, this work aims to empower stakeholders with insights and reliable models, enabling them to anticipate the localized demand and contribute to the sustainable integration of electric vehicles into the grid.

1. Introduction

The increasing adoption of electric vehicles (EVs) brings both opportunities and challenges to the electric grid [1]. While EVs offer environmental benefits, their charging behavior can have a significant impact on grid stability and reliability. The rise in electricity demand for charging, especially in low-voltage systems, can lead to conflicts and affect the lifespan of transformers [2]. Other studies have shown that the introduction of EVs can result in a considerable increase in transformers’ Loss of Life (LoL). In [3], a 10× increase in LoL was observed when EVs were introduced, and the annual LoL in urban areas could increase from 0.002 to 0.014. Interestingly, the charging scenario, whether slow or fast charging, has a contrasting effect on the power equipment strain. Slow charging, typically performed at home during peak afternoon hours, puts more strain on the power equipment compared to fast charging during off-peak hours. Furthermore, EV usage can accelerate the aging of distribution transformers (DTs), as analyzed in [4] for an apartment complex with EV chargers. Realistic EV charging demand profiles were generated, and it was found that DT aging could be expedited by up to 40% with an EV penetration ratio of up to 30%. The study also highlighted the potential benefits of integrating PV sources to enhance DTs’ reliability. It is important to consider realistic charging profiles when assessing the impact of the EV load on the grid. The concerns regarding EV charging impacts were reiterated in [5], where it was shown that frequent charging throughout the day can have a significant negative affect on the performance of distribution transformers. The addition of more public fast chargers can lead to transformer overloading, even with fewer EVs. Uncoordinated EV charging patterns can significantly worsen the impact on the electric grid, necessitating costly upgrades and investments. This uncontrolled behavior strains the infrastructure, potentially leading to increased electricity prices and grid instability. The accurate understanding and prediction of charging behavior are essential to integrate EVs into the grid. This knowledge aids in identifying challenges, developing efficient strategies, and mitigating the impact on the grid. Intelligent charging scheduling and optimization techniques enable the distribution of the charging load, aligning it with low-demand periods and maximizing renewable energy utilization.
This paper focuses on the detailed study of individual charging sessions, seeking to predict session-level variables like the energy demand, connection duration, charging duration, and time until the next session. These predictions have substantial implications for applications, such as charging station management, scheduling optimization, peak load management, and vehicle-to-grid integration. The dataset utilized is composed of 265,340 charging sessions from 576 users in Omaha, NE, from January 2019 to December 2022. For each charging session, comprehensive information is collected, including the unique EV users’ IDs (which remain anonymous in this study), start and end time of charging and connection, and kWh consumed. A regression framework is introduced for predicting several key charging parameters in real time at the start of a charging session. This framework is trained and tested on real Omaha data.
The following Section provides a brief review of the recent research in EV charging behavior analysis and prediction. Section 3 provides a visualization and discussion of the trends in residential EV charging in Omaha, NE, based on 4 years of data. Section 4 outlines a framework for predicting the important charging session variables, using only the information available at the start of each session. Using the Omaha data as a case study, regression results are provided for each variable of interest. The final Section summarizes key findings from both analysis and prediction and discusses the implications for future EV research.

2. Literature Review

This literature review describes the existing research on EV charging behavior, with a focus on methodologies, variables, and modeling approaches. This examination encompasses diverse studies, employing methods ranging from data-driven analyses to machine learning models. This Section lays the groundwork for comprehending the intricate interactions among EV users, charging infrastructure, and the power grid.
Research on EV users’ behavior has significantly contributed to understanding the adoption and usage of EVs. Mixed-method studies like [6] analyze the charging data from large-scale EV fleets, identifying distinct charging behavior clusters based on user profiles, locations, and durations. Insights into the peak charging periods and opportunities for load balancing emerged, informing optimized infrastructure placement. In a similar vein, the authors of [7] conduct a comprehensive analysis of EV users’ behavior in an aggregated area, emphasizing the importance of understanding charging patterns for effective load management and grid stability during peak demand. The authors of [8] explore the impact of pricing structures, revealing the potential of time-of-use pricing to shift charging behaviors and support grid management.
Users’ satisfaction and preferences take center stage in [7], emphasizing the importance of user-centric design in developing charging infrastructure and services. The authors of [9] address future charging demand estimations through predictive models, considering factors like the EV adoption rate, users’ behavior, and charging infrastructure growth, offering insights for grid planning and expansion.
Real and simulated datasets feature prominently in analyzing EV charging behaviors. For instance, the authors of [10] analyze real data from public charging stations, identifying correlations between the EV drivers’ behavior and charging patterns. The authors of [11] employ a dataset of 400,000 charging sessions, applying a Monte Carlo model for trip data simulation. The authors of [12] use Gaussian Mixture Models (GMMs) to determine the EV charging metrics, while [13] focuses on predicting the changes in EV charging demand over time through an algorithm considering time and location.
Challenges in the electric network due to EV charging are predicted in [14] using the data from charging points, tracking real EV users’ charging and travel behavior over two years. Despite a focus on public charging stations, there is a need to understand residential charging patterns with the expected surge in EV adoption.
Predictive modeling of EV charging behavior has seen a surge in interest, with the employment of diverse approaches and methodologies [15,16,17,18,19,20,21,22]. Commonly, supervised machine learning techniques, like decision trees, Random Forests (RFs), support vector machines (SVMs), and Artificial Neural Networks (ANNs), are utilized. For instance [23], employs XGBoost to predict EV departure times at public charging stations, achieving a mean absolute error (MAE) of 82 min. The authors of [24] predict the arrival and departure times at a university campus with mean absolute percentage errors (MAPEs) of 2.85% and 3.7%, respectively. Ensemble models, as seen in [18], use RFs, Naive Bayes (NB), and ANNs to predict household EV charging, achieving high true positive rates and accuracies.
Regression models, exemplified in [15], showcase the effectiveness of XGBoost in predicting the energy requirements using public charging station data, boasting high R² scores and low mean absolute errors. Some studies go beyond user behavior analysis to predict various charging outcomes, such as in [25], exploring the statistical characteristics of the charging duration, connection duration, and EV demand profiles. Anticipating EV charging demand is also explored in [26,27], predicting urban fast-charging demands and the popularity of charging infrastructure, respectively.
Deep learning models, including recurrent neural networks (RNNs), long short-term memory (LSTM), and gated recurrent units (GRUs), have gained traction for capturing complex patterns and dependencies in EV charging data. In [28], LSTM-based models outperform the traditional ANN models for charging load forecasting. The authors of [29] employ multiple RNN-based models for hourly charging load prediction, demonstrating the effectiveness of deep learning in capturing complex patterns.
Clustering techniques, such as k-means, hierarchical clustering, expectation–maximization algorithms, GMMs, and DBSCAN, are valuable for identifying distinct groups within charging data, revealing patterns and preferences. Hybrid estimators, like the combination of GKDE and DKDE proposed in [30], enhance the prediction accuracy for session duration and energy consumption. These clustering techniques empower researchers to develop effective strategies for managing charging infrastructure and optimizing resource allocation.
This study aims to take a comprehensive approach to the prediction of individual residential charging sessions, building off some of the approaches discussed above. A larger set of features are extracted and engineered from a four-year set of real data to capture as much information as possible for the modeling of future users’ behavior. A unique regression framework is proposed, which leverages the historical information typically collected for each EV user, but does not rely on computationally expensive user-specific models, or the inclusion of user ID as a categorical feature. While several previous studies have shown that the inclusion of user IDs can lead to more accurate predictions, such models cannot be generalized to new users and can become computationally prohibitive as the number of included users grows. A diverse selection of supervised machine learning models are examined, comparing the results to linear and statistical approaches. This research aims to not only enhance the accuracy of EV charging predictions, but also to deepen the understanding of the interaction between various charging variables.

3. EV Users’ Charging Behavior Analysis

This Section focuses on analyzing EV users’ charging behavior at household charging stations using real collected data. The data span from January 2019 to December 2022, sourced from a total of 576 residential Level 2 charging stations across Omaha, NE, each equipped with a single-phase 40 A, 240 V charging port. A total of 265,340 charging sessions are recorded. For each charging session, comprehensive information is collected, including the unique EV users’ IDs, start and end times for connection and charging, and kWh consumed. Table 1 provides a summary of the active users, number of sessions, and energy consumption in each year, highlighting the increased adoption of EVs in the Omaha area.
Before further analysis, the dataset is cleaned to address the missing or potentially erroneous values. Sessions shorter than 5 min, or when less than 1 kWh was consumed are removed. Many of these sessions are indicative of connection problems and are not representative of intentional charging behavior. In addition, several sessions contained unrealistically high values for certain variables, such as charging demands exceeding the battery capacity of current EVs. To eliminate such outliers and examine trends in typical charging behavior, sessions containing values above the 95th percentile are excluded. The resulting dataset contains 228,988 valid charging sessions. The following Sections summarize the trends in these data across several variables of interest for EV charging behavior.

3.1. EV Connection Start Time

The connection start time is the moment a user connects their vehicle for charging, which is crucial for analyzing charging behavior and grid planning. Figure 1 illustrates the hourly start time distribution. There is a steady increase from 6 to 7 a.m., peaking at around 5 p.m., when many drivers return home. The number of sessions declines later in the evening, except for a spike at 10–11 p.m., possibly attributed to late shifts, or users choosing to charge before bed.

3.2. EV Connection End Time

The connection end time is the time when a user disconnects from the port, not the time when charging completes. This is an important attribute for the potential scheduling of charging sessions, or vehicle-to-grid strategies. Figure 2 illustrates the hourly distribution of end times in the full dataset. Predominantly, the sessions conclude between 7 and 8 a.m., experiencing a swift decline throughout the day. This trend suggests that the users typically disconnect before departing for work or engaging in daily activities, but a significant percentage of users do disconnect at various times in the afternoon or evening.

3.3. Connection Duration

The connection duration is the time between connecting and disconnecting an electric vehicle from a charging station, indicating the total time that the vehicle is available for charging (or discharging). This can range from a few minutes to several hours. Figure 3 displays the distribution of connection durations in the dataset in one hour increments. Sessions longer than 24 h are grouped as a single bar and comprise approximately 2% of the sessions. The average connection duration is 8.8 h, but the distribution is highly irregular, with peaks in the 1–3 h range, as well as the 11–15 h range. A total of 50% of the sessions last 9 h or more.

3.4. Charging Duration

The charging duration is the time an EV draws power from the station each session. This may be the same as the connection duration if a user disconnects before the battery is full, or it may be much shorter. This duration is influenced by the charging power and battery capacity, but also by other user behavior, such as the miles driven between sessions. Figure 4 illustrates the distribution of charging durations for the dataset in one hour increments. The average charging duration is 2.1 h, but the distribution is heavily skewed. The majority of the charging durations are 1–2 h, with only 9% exceeding 5 h. These data aid in optimizing charging, managing infrastructure, and planning for factors like availability, time, and costs.

3.5. Idle Duration

The idle duration represents the time an EV stays connected to a charging station without actively charging. This duration, calculated by subtracting charging time from connection time, can occur for various reasons, like completed charging or interrupted sessions. Like the connection duration, this metric is extremely important for scheduling or vehicle-to-grid strategies, which make use of the hours that the cars are connected to the grid. Figure 5 illustrates the distribution of idle durations in the full dataset in one hour increments. The average idle duration is 8.7 h, but the distribution is again highly irregular, with approximately 10.4% of the sessions having a duration under one hour, and a smaller peak in the 9–11 h range. Less than 1% of the sessions have an idle duration longer than 24 h.

3.6. Charging Demand

The charging demand signifies the energy consumed by an EV during a charging session. This is largely proportional to charging duration, affected by the charging power, battery specifications, and users’ driving behavior. These data are crucial for residential grid planning in aggregated areas and are a key constraint for scheduling charging sessions. Figure 6 illustrates a histogram of the charging demand for the sessions in this dataset in 1 kWh increments. The charging demand follows a skewed distribution similar to the charging duration. The average consumption is 12.9 kWh, but 50% of the sessions consume less than 10 kWh, and 90% of the sessions consume less than 33 kWh.

3.7. Time to Next Charge

The time to next charge is measured from the start of the current session to the start of the next session. This parameter is one way to anticipate when charging sessions will occur for individual users or groups. The accurate prediction of this is important for anticipating the grid demand, or the scheduling of charging sessions. Figure 7 illustrates a histogram for the time to next charge in this dataset. There is a very wide distribution, with a peak near 24 h, indicating the common daily periodicity of charging behavior. The average is slightly longer than a day, however, at 26 h, as it is somewhat common for users to not charge every day. Smaller sub-peaks exist at 24 h intervals, indicating that even if a user skips a day, they are more likely to charge at a similar time as their last session. The standard deviation of this parameter is 23 h, which is equal to its median, indicating a relatively large amount of variance in the data.

3.8. Summary of EV Charging Behavior

The variables related to EV charging sessions exhibit different distribution patterns. The charging demand and duration are highly related and follow similar skewed patterns, with a concentration around the low values and long tails that have a hard limit due to the battery capacity. The connection duration, idle duration, and time to next charge exhibit highly irregular distributions, with large standard deviations relative to their means, especially for the time to next charge. Table 2 provides the mean, median, and standard deviation of the variables that are predicted in the following Section. The large variance in charging behavior between individual sessions represents a potential challenge for the prediction of these variables.
The connection durations are significantly longer than charging durations on average, and this is reflected in the large idle durations. This discrepancy could be utilized to offset charging until off-peak hours through incentives or centralized scheduling, or to utilize EVs as storage in vehicle-to-grid operations.

4. EV Charging Behavior Prediction

This Section aims to assess the feasibility of predicting session parameters using only the information available at the start of the charging session. The four target variables are listed in Table 3. The accurate prediction of these four variables allows for the direct calculation of all the other unknown session parameters, such as the departure time and idle duration. Each output variable is treated as a function of all the known input parameters. Regression is used to approximate this underlying functional relationship, creating a model that maps the set of inputs for each charging session to the predicted output for that session. Figure 8 illustrates the overall process of training and testing these predictive models using machine learning.
The user ID is deliberately omitted as an input variable to investigate the reliance of charging behavior on general user statistics, rather than establishing a unique functional relationship for each user. When user ID is included as a categorical variable, the number of features can grow to intractable amounts as the user base grows. Omitting the user ID may result in a lower accuracy, but this approach facilitates greater generalization across larger populations, ensures real-time prediction capability, and enables the exploration of shared charging behavior patterns among users. Essential session-specific statistics, such as the historical mean, maximum, minimum, and most recent values for each target variable (connection duration, charging demand, etc.), are computed based on the individual users’ behavior. The additional factors considered are the number of previous charging sessions, the average charging frequency for each user, and the time elapsed since the last session ended. Finally, several numerical and categorical temporal variables are included to describe the time of session start: the absolute time series value, the time of day, the day of the week, month, and season. The full set of input parameters is given in Table 4, alongside their abbreviations and descriptions. For predicting each target variable, only the previous statistics of that variable are included as model inputs; for example, the mean connection duration is not used as an input for predicting the charging duration. Thus, each model uses twelve input parameters, but four of these are specific to each target variable.
Three machine learning algorithms, namely Gradient Boosting (XGBoost), Random Forest (RF), and Artificial Neural Network (ANN), are investigated for predicting the charging behavior. These algorithms strike a balance between accuracy and computational speed, making them suitable for real-time applications.
Machine learning models encounter challenges, notably the risk of overfitting, where excessive complexity hampers generalization to new data. Appropriate tuning and validation are essential to address this concern. Additionally, interpreting the machine learning results can be challenging due to a lack of an analytical or statistical relationship between the inputs and outputs. Linear regression is used in this study as a reference point. However, this incorrectly assumes a linear relationship between the dependent and independent variables and cannot accurately model the effect of categorical variables.

4.1. Data Processing and Splitting

Before inputting the data into the machine learning model, thorough data cleaning and splitting processes are crucial for ensuring the analysis’ high quality and reliability. Cleaning involves addressing the missing or potentially erroneous values, while splitting divides the dataset into multiple groups for training and testing.
In addition to the initial cleaning described in Section 3, the data were further trimmed for regression modeling. The aim of this predictive framework is to assess the degree to which the users’ behavior might be predictable with enough prior information. To this end, the users were only included in the regression dataset if they charged at least 500 times during the data-recording period. While this approach does exclude infrequent chargers (the minimum charging frequency is about once every 3 days), it ensures that sufficient data are available for each user for meaningful regression. The final dataset contains 161,948 sessions and 183 unique users.
In tackling overfitting, splitting the data into training and testing sets is essential. The training set, encompassing 80% of the data, acts as the laboratory, where the model learns patterns and relationships from the user data. During this phase, the model optimizes its parameters, minimizing the errors and enhancing the overall performance. The remaining 20% of the data is used to test the model’s performance. This set consists of new, unseen data, ensuring that an overfit model will not yield deceptively accurate predictions. Evaluating the model’s performance on this independent dataset provides a robust estimation of its generalization capabilities. This approach ensures the model’s reliability and applicability in diverse real-world scenarios.
Determining how sessions are allocated to each subset is an important decision, shaping the model’s performance. In the current framework, the dataset is first sorted by user, and the initial session of each user is excluded. This discarded session serves as the starting point for calculating the “historical” parameters for each user, like the mean, maximum, and minimum values for target variables, along with the time elapsed since the last charge. The first 80% of the charging sessions for each user based on chronological order are assigned to the training set. This ensures that the model learns from a substantial portion of each user’s charging history, and the testing and training sets contain sufficient data for each user. The subsequent 20% of the charging sessions for each user are allocated to the testing set. This segment serves as a simulation of the “future” charging behavior, providing an evaluation of the model’s capabilities on unseen data. No information is leaked from the test set to the training set, as all the features are calculated based only on the previous sessions.
Each model in this study is implemented using the Python programming language, which offers a comprehensive set of libraries and tools for machine learning tasks. The code for model implementation is organized and executed within Jupyter Notebook, an interactive environment that facilitates code development, visualization, and documentation. For model training and evaluation, several packages from the Scikit-learn library are utilized [31]. Scikit-learn provides convenient functions for training models and tuning parameters for the Linear, XGBoost [32], Random Forest [33], and Artificial Neural Network [34] methods.

4.2. EV Charging Behavior Prediction Results

The following subsections quantify the predictive performance of the models trained on the dataset for each of the four target variables. A total of five predictive models are considered: three machine learning models (RF, XGBoost, and ANN), linear regression, and a baseline model referred to as the “Mean Model”. The “Mean Model” simply assumes the target variable for each session is equal to the historical mean for that user, calculated from the user’s prior sessions. This model serves as a reference point to assess whether regression provides a meaningful increase in accuracy beyond this simple assumption. For each target variable, the following results are provided:
Accuracy Metrics—After applying each model to the test data, the R2, mean absolute error (MAE), and Root Mean Square Error (RMSE) are provided in a table to quantitatively compare the performance of each model. Higher values of R2 and lower values of MAE/RMSE indicate more accurate predictions.
Scatter Plots—The predicted values are plotted against the actual values for the linear model and the best-performing ML model. This provides a more comprehensive visualization of model performance than the accuracy metrics alone, allowing for the identification of patterns, clusters, and ranges of a higher or lower accuracy.
Feature Importance plot: The models are trained on a large, comprehensive set of input features, and it is important to identify which of these are actually useful for predicting charging behavior. A bar chart is provided for the most accurate ML model, highlighting the relative importance of each feature, as determined by Gini importance.
Recursive Feature Elimination (RFE): RFE is performed using the best performing ML model to refine the feature selection process iteratively. In contrast to the feature importance calculations, this method determines the most relevant features by systematically eliminating the less-important ones, running the model with fewer features for each iteration. The accuracy of the model (quantified by adjusted R2) is plotted versus the number of included features to determine how the accuracy increases with each feature added.

4.2.1. Connection Duration

Table 5 provides the accuracy metrics for each method of predicting the connection duration. The RF algorithm outperformed the other approaches, as evidenced by lower values for the MAE (210 min) and RMSE (304 min). However, the R2 value of 0.39 indicates that only roughly 40% of the variance in connection duration is explained by the model. The MAE represents a relatively high percentage of the average connection duration (40%), indicating that prediction errors are often large relative to the actual connection durations. Nevertheless, the RF model represents a significant improvement in accuracy over both the “Mean Model” and linear regression, with an MAE 25% lower than that of the linear model.
Figure 9 presents a scatter plot of the predicted and observed connection durations for the linear and RF models. Values closer to the dotted line indicate more accurate predictions. In both the plots, clustering is evident for both the observed values and the predictions. A narrower vertical spread of predictions in the linear plot indicates that the linear model is not as responsive to the input features. Both the models consistently overpredict low connection durations and underpredict higher durations, but RF has a notably better performance than the linear model for predicting connection durations of less than 400 min.
Figure 10 shows the relative importance of each feature in the RF model. The time of day, mean connection duration, and the absolute time series value have the most significance for predicting connection duration. The season has almost no impact, and it is worth noting that the time elapsed since the last charge has a very little effect on the connection duration as well.
The RFE plot in Figure 11 illustrates the increase in model accuracy (as measured by adjusted R2) for the RF method as more features are included. There is a rapid increase in accuracy for up to 3–4 features. Including six features still increases the model accuracy slightly, but all the features beyond this provide almost no improvement to the model. The six most significant features as determined by the RFECV process are shown alongside the plot and are the same as those determined by Gini importance in Figure 10, though with slight differences in ranking.

4.2.2. Charging Duration

Table 6 summarizes the accuracy metrics for each method of predicting the charging duration. The RF model again outperforms the other methods, with the highest R2 value of 0.47 and the lowest MAE and RMSE values of 40 and 54 min, respectively. The XGBoost method also shows a similar performance. All the ML models show a significant improvement over the linear and Mean Models, but the predictive accuracy is still mediocre, capturing only 47% of the variance in charging duration. The MAE of the RF model (40 min) represents 31% of the average charging duration (128 min), indicating a moderately large average error relative to the size of the target variable.
Figure 12 provides a comparison between the predicted and observed charging durations for the linear and RF models. The RF predictions are visibly more clustered around the dotted line, but there is still a large spread. Both the models struggle with extreme values, as short charging durations are often significantly overpredicted, and long charging durations are underpredicted.
The feature importance plot for the RF method is shown in Figure 13. The mean charging duration is the most significant feature for predicting the charging duration of each session by a large margin. Similar to the connection duration, the time of day and absolute time series are also important. In direct contrast to the connection duration, however, the time elapsed since the last charge is the next most significant, which is consistent with the assumption that vehicles that have not been charged recently will need longer to recharge. The categorical temporal variables (season, month, and day) have little effect on the charging duration predictions, in addition to the historical minimums and maximums.
Figure 14 illustrates the RFE results. The prediction accuracy increases with each feature added until six features, after which more features do not improve the model performance. The six most important features determined by RFE and feature importance are the same, although the frequency of charging is ranked higher by the RFE.

4.2.3. Charging Demand

The accuracy metrics across all the models for predicting the charging demand are summarized in Table 7. Once again the RF model exhibits the best overall performance across all the metrics, with an R2 of 0.48, an MAE of 3.6 kWh, and an RMSE of 5.1 kWh. Both RF and XGBoost show a notable improvement over the linear and Mean Models, but the predictive accuracy is still not high. The average error of the RF model is 28% of the average charging demand in the dataset.
In Figure 15, the plots of predicted versus observed charging demands show a distinct improvement with RF over linear regression. The linear model is highly flat, underpredicting all the high values, and overpredicting most of the low ones. The RF predictions are consistently closer to the actual values, but the model still struggles with extremely high or low charging demands.
Figure 16 displays the relative feature importance for the input parameters in the RF model. Similar to the charging duration, the mean charging demand is the most significant input parameter by a large margin. The time of day and time since last charge are the next most impactful. Again, similar to the charging duration, the categorical variables of season, month, and day of the week are the least important, along with the historical minimums and maximums.
The RFE plot in Figure 17 follows a similar trend to the previous target variables. The model sees significant increases in accuracy with each feature added, until saturating at 5–6 features. The most significant features, as determined by recursive elimination, are again the same as those determined by Gini importance, but in a slightly different order. This set of features is also identical to the most important features for charging duration prediction, highlighting the similarity of these two variables. In practice, it may be sufficient to perform predictive modeling on only one of these variables and calculate the other based on the average charging power.

4.2.4. Time until Next Charge

Table 8 summarizes the performance of each model for the prediction of time until the next charging session. This parameter is significantly more difficult to predict than the previous target variables. In addition to having a very wide distribution (the standard deviation is 88% of the mean), the best-performing ML models (RF and XGBoost) only explain roughly 20% of the variance in the output, as quantified by their R2 values. These models are only a very slight improvement over the “Mean Model” and linear regression, and for all the methods, the predicted values are largely uncorrelated with the actual observations. Nevertheless, of the approaches considered, the RF/XGBoost models provide the best predictions possible given the information available at the start of each session, and the RMSE of the models are significantly lower than the standard deviation of the data, making modeling a much better approach than assuming constant values.
The predicted versus observed values are plotted for the linear and RF models in Figure 18. The RF results exhibit only a slight improvement over the linear model. In both cases, the predictions have a flat distribution and are largely uncorrelated with the observations. While there are noticeable clusters in the observed target values, these clusters are not present in the predictions.
The feature importance results for the RF method are plotted in Figure 19. The mean time until next charge is the most significant feature, followed by the previous value and time of day. The temporal categorical values, along with minimum and maximum, remain the least important features for prediction.
Figure 20 shows the results of RFE. Here, near-maximum accuracy is obtained with only 3–4 features, and additional features beyond 6 can actually decrease the adjusted R2. For this model, a smaller set of features is likely appropriate due to the lack of correlation between most input parameters and the target variable.

5. Conclusions

The comprehensive analysis of EV charging behavior is crucial to accommodate the increasing penetration of EVs. The trends in users’ behavior provide an important baseline for the planning of charging infrastructure, electric grid upgrades and operational strategies, public and private incentive programs, and commercial opportunities. Looking at 4 years of residential charging data from Omaha, NE, this study found that the EV users have a large degree of variance in their home charging behavior. The important parameters, like the start and end times, connection duration, and time between sessions, have wide and irregular distributions. The charging duration and charging demand are highly correlated and have skewed distributions, with many short sessions, but a large range. The connection durations are significantly longer than the charging durations in households, and this idle time could be utilized for the more efficient scheduling of charging, or vehicle-to-grid operations.
The high variance in charging behavior presents both the need for the prediction of the relevant variables and the challenge in accurately doing so. This study examines the feasibility of predicting four key charging parameters at the time of EV plug in using only the previous information that is commonly recorded by charging service providers. The framework is constructed to avoid computationally expensive user-specific models, relying instead on statistically engineered input parameters for each user. These parameters are related to the target variables through the training of machine learning models and tested on an unseen portion of the same dataset.
The Random Forest algorithm yields the most accurate predictions for each variable in this case study. XGBoost exhibits a very similar performance, and the Artificial Neural Network is only slightly behind, with the average errors being 15% higher at most. The connection duration, charging duration, and charging demand can be predicted with moderate accuracy, with R2 values ranging from 0.40 to 0.48. This marks a significant improvement over the assumption that the charging behavior follows a stable average as well as over the linear model. The average errors are still significant, however, indicating that individual residential charging behavior is still highly random, with respect to the information known to the charging service providers. This is especially evident in the final parameter studied: time to next charge. With an R2 of 0.21 or lower, even the machine learning models are incapable of accurately predicting the next session’s start time for an individual user, given the information considered in this study. While this framework yields positive results for predicting the duration and demand of the current session, anticipating when the next session will start is likely better handled by alternative frameworks.
While this study examines 12 possible input parameters for each model, optimal accuracy is typically achieved with just 4–6. The consistently important input parameters include the user’s historical average for the variable being predicted, the start time of the session, and the frequency that the user charges. The time elapsed since the last session is useful for predicting the charging duration and demand, but it is not related to the connection duration. Temporal patterns are best handled with an absolute-time-series variable and a time-of-day variable; the season, month, and day of the week do not provide additional accuracy. The low number of features required and the ability to use a single model for a large group of users makes the framework well suited for real-time prediction and live learning.
In summary, predicting the parameters of individual residential charging sessions is a challenging task, and the accuracy is lower than that of similar models of users’ behavior at public charging stations. A large amount of the variance in users’ behavior is unaccounted for by user-agnostic models. However, machine learning provides a significant increase in accuracy over the statistical approaches. The efficient scheduling of charging sessions, vehicle-to-grid strategies, and effective grid management will benefit from additional information from EV users to make even more accurate predictions at the session level. A similar framework may be employed for the improved prediction of aggregate trends, such as those in neighborhoods or cities. The future work will leverage real residential charging data for the prediction of aggregate demand, as well as the optimization of charging session scheduling for a set of users.

Author Contributions

Conceptualization, A.A.; methodology; software, A.A.; supervision, M.A.; writing—original draft, A.A., K.J. and F.A.J.; writing—review and editing, K.J. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Restrictions apply to the availability of these data. Data were obtained from ChargePoint and are available from the authors with the permission of ChargePoint and the Nebraska Community Energy Alliance.

Acknowledgments

This work has been supported in part by the Nebraska Environmental Trust (NET), the Nebraska Community Energy Alliance (NCEA) and the Durham School of Architectural Engineering and Construction—University of Nebraska-Lincoln.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Almaghrebi, A. Data-Driven Framework for Predicting and Scheduling Household Charging of EVs. Ph.D. Dissertation, The University of Nebraska-Lincoln, Lincoln, NE, USA, 2023. [Google Scholar]
  2. Neaimeh, M.; Wardle, R.; Jenkins, A.M.; Yi, J.; Hill, G.; Lyons, P.F.; Hübner, Y.; Blythe, P.T.; Taylor, P.C. A probabilistic approach to combining smart meter and electric vehicle charging data to investigate distribution network impacts. Appl. Energy 2015, 157, 688–698. [Google Scholar] [CrossRef]
  3. Mao, D.; Gao, Z.; Wang, J. An integrated algorithm for evaluating plug-in electric vehicle’s impact on the state of power grid assets. Electr. Power Energy Syst. 2019, 105, 793–802. [Google Scholar] [CrossRef]
  4. Hong, S.K.; Lee, S.G.; Kim, M. Assessment and mitigation of electric vehicle charging demand impact to transformer aging for an apartment complex. Energies 2020, 13, 2571. [Google Scholar] [CrossRef]
  5. Shao, S.; Pipattanasomporn, M.; Rahman, S. Challenges of PHEV penetration to the residential distribution network. In Proceedings of the 2009 IEEE Power & Energy Society General Meeting, Calgary, AB, Canada, 26–30 July 2009; IEEE: Piscataway, NJ, USA, 2009; pp. 1–8. [Google Scholar]
  6. Cai, H.; Jia, X.; Chiu, A.S.F.; Hu, X.; Xu, M. Siting public electric vehicle charging stations in Beijing using big-data informed travel patterns of the taxi fleet. Transp. Res. Part D Transp. Environ. 2014, 33, 39–46. [Google Scholar] [CrossRef]
  7. Jonas, T.; Daniels, N.; Macht, G. Electric Vehicle User Behavior: An Analysis of Charging Station Utilization in Canada. Energies 2023, 16, 1592. [Google Scholar] [CrossRef]
  8. Jaruwatanachai, P.; Sukamongkol, Y.; Samanchuen, T. Predicting and Managing EV Charging Demand on Electrical Grids: A Simulation-Based Approach. Energies 2023, 16, 3562. [Google Scholar] [CrossRef]
  9. Kim, D.; Kwon, D.; Han, J.; Lee, S.M.; Elkosantini, S.; Suh, W. Data-Driven Model for Identifying Factors Influencing Electric Vehicle Charging Demand: A Comparative Analysis of Early- and Maturity-Phases of Electric Vehicle Programs in Korea. Appl. Sci. 2023, 13, 3760. [Google Scholar] [CrossRef]
  10. Almaghrebi, A.; Shom, S.; Al Juheshi, F.; James, K.; Alahmad, M. Analysis of User Charging Behavior at Public Charging Stations. In Proceedings of the 2019 IEEE Transportation Electrification Conference and Expo, Detroit, MI, USA, 19–21 June 2019; pp. 1–6. [Google Scholar]
  11. Yang, X.; Cai, Y.; Zhang, M.; Yang, X. Analysis of charging demand of household electric vehicles based on travel characteristics. In Proceedings of the 2019 IEEE Innovative Smart Grid Technologies-Asia (ISGT Asia), Chengdu, China, 21–24 May 2019; pp. 3217–3222. [Google Scholar]
  12. Jiang, Z.; Tian, H.; Beshir, M.J.; Sibagatullin, R.; Mazloomzadeh, A. Statistical Analysis of Electric Vehicles Charging, Station Usage and Impact on the Grid. In Proceedings of the 2016 IEEE Power & Energy Society Innovative Smart Grid Technologies Conference (ISGT), Minneapolis, MN, USA, 6–9 September 2016; IEEE: Piscataway, NJ, USA, 2016; pp. 1–5. [Google Scholar]
  13. Weiller, C. Plug-in hybrid electric vehicle impacts on hourly electricity demand in the United States. Energy Policy 2011, 39, 3766–3778. [Google Scholar] [CrossRef]
  14. Schäuble, J.; Kaschub, T.; Ensslen, A.; Jochem, P.; Fichtner, W. Generating electric vehicle load profiles from empirical data of three EV fleets in Southwest Germany. J. Clean. Prod. 2017, 150, 253–266. [Google Scholar] [CrossRef]
  15. Almaghrebi, A.; Aljuheshi, F.; Rafaie, M.; James, K.; Alahmad, M. Data-Driven Charging Demand Prediction at Public Charging Stations Using Supervised Machine Learning Regression Methods. Energies 2020, 13, 4231. [Google Scholar] [CrossRef]
  16. Lucas, A.; Barranco, R.; Refa, N. EV Idle Time Estimation on Charging Infrastructure, Comparing Supervised Machine Learning Regressions. Energies 2019, 12, 269. [Google Scholar] [CrossRef]
  17. Buzna, L.; De Falco, P.; Khormali, S.; Proto, D.; Straka, M. Electric vehicle load forecasting: A comparison between time series and machine learning approaches. In Proceedings of the 2019 1st International Conference on Energy Transition in the Mediterranean Area (SyNERGY MED), Cagliari, Italy, 28–30 May 2019; pp. 1–5. [Google Scholar] [CrossRef]
  18. Ai, S.; Chakravorty, A.; Rong, C. Household EV Charging Demand Prediction using Machine and Ensemble Learning. In Proceedings of the 2018 IEEE International Conference on Energy Internet (ICEI), Beijing, China, 21–25 May 2018; IEEE: Piscataway, NJ, USA, 2018; pp. 163–168. [Google Scholar]
  19. Chung, Y.W.; Khaki, B.; Li, T.; Chu, C.; Gadh, R. Ensemble machine learning-based algorithm for electric vehicle user behavior prediction. Appl. Energy 2019, 254, 113732. [Google Scholar] [CrossRef]
  20. Shahriar, S.; Al-Ali, A.R.; Osman, A.H.; Dhou, S.; Nijim, M. Prediction of EV charging behavior using machine learning. IEEE Access 2021, 9, 111576–111586. [Google Scholar] [CrossRef]
  21. Lilhore, A.; Prasad, K.K.; Agarwal, V. Machine Learning-based Electric Vehicle User Behavior Prediction. In Proceedings of the 2023 IEEE IAS Global Conference on Renewable Energy and Hydrogen Technologies, GlobConHT 2023, Male, Maldives, 11–12 March 2023; IEEE: Piscataway, NJ, USA, 2023; pp. 1–6. [Google Scholar]
  22. Pokharel, S.; Sah, P.; Ganta, D. Improved prediction of total energy consumption and feature analysis in electric vehicles using machine learning and shapley additive explanations method. World Electr. Veh. J. 2021, 12, 94. [Google Scholar] [CrossRef]
  23. Frendo, O.; Gaertner, N.; Stuckenschmidt, H. Improving Smart Charging Prioritization by Predicting Electric Vehicle Departure Time. IEEE Trans. Intell. Transp. Syst. 2021, 22, 6646–6653. [Google Scholar] [CrossRef]
  24. Xu, Z. Forecasting Electric Vehicle Arrival & Departure Time on UCSD Campus using Support Vector Machines. Master’s Thesis, University of California, San Diego, CA, USA, 2017. [Google Scholar]
  25. Fotouhi, Z.; Hashemi, M.R.; Narimani, H.; Bayram, I.S. A General Model for EV Drivers’ Charging Behavior. IEEE Trans. Veh. Technol. 2019, 68, 7368–7382. [Google Scholar] [CrossRef]
  26. Xing, Q.; Chen, Z.; Zhang, Z.; Xu, X.; Zhang, T.; Huang, X.; Wang, H. Urban Electric Vehicle Fast-Charging Demand Forecasting Model Based on Data-Driven Approach and Human Decision-Making Behavior. Energies 2020, 13, 1412. [Google Scholar] [CrossRef]
  27. 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]
  28. Zhu, J.; Yang, Z.; Chang, Y.; Guo, Y.; Zhu, K.; Zhang, J. A novel LSTM based deep learning approach for multi-time scale electric vehicles charging load prediction. In Proceedings of the 2019 IEEE Innovative Smart Grid Technologies-Asia (ISGT Asia), Chengdu, China, 21–24 May 2019; IEEE: Piscataway, NJ, USA, 2019; pp. 3531–3536. [Google Scholar]
  29. Zhu, J.; Yang, Z.; Guo, Y.; Zhang, J.; Yang, H. Short-term load forecasting for electric vehicle charging stations based on deep learning approaches. Appl. Sci. 2019, 9, 1723. [Google Scholar] [CrossRef]
  30. Chung, Y.W.; Khaki, B.; Chu, C.; Gadh, R. Electric vehicle user behavior prediction using hybrid kernel density estimator. In Proceedings of the 2018 IEEE International Conference on Probabilistic Methods Applied to Power Systems (PMAPS), Boise, ID, USA, 24–28 June 2018; IEEE: Piscataway, NJ, USA, 2018; pp. 1–6. [Google Scholar]
  31. Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Al, E. Scikit-learn: Machine Learning in Python. J. Mach. Learn. Res. 12 2011, 12, 2825–2830. [Google Scholar] [CrossRef]
  32. Chen, T.; Guestrin, C. XGBoost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016; pp. 785–794. [Google Scholar] [CrossRef]
  33. Ho, T.K. Random decision forests. In Proceedings of the 3rd International Conference on Document Analysis and Recognition, Montreal, QC, Canada, 14–16 August 1995; Volume 1, pp. 278–282. [Google Scholar]
  34. Mcculloch, W.S.; Pitts, W. A logical calculus nervous activity. Bull. Math. Biol. 1990, 52, 99–115. [Google Scholar] [CrossRef] [PubMed]
Figure 1. The percentage of total household charging sessions with a given start time.
Figure 1. The percentage of total household charging sessions with a given start time.
Energies 17 00925 g001
Figure 2. The percentage of total household charging sessions with a given end time.
Figure 2. The percentage of total household charging sessions with a given end time.
Energies 17 00925 g002
Figure 3. The percentage of total household charging sessions with a given connection duration.
Figure 3. The percentage of total household charging sessions with a given connection duration.
Energies 17 00925 g003
Figure 4. The percentage of total household charging sessions with a given charging duration.
Figure 4. The percentage of total household charging sessions with a given charging duration.
Energies 17 00925 g004
Figure 5. The percentage of total household charging sessions with a given idle duration.
Figure 5. The percentage of total household charging sessions with a given idle duration.
Energies 17 00925 g005
Figure 6. Histogram of charging demand for each session.
Figure 6. Histogram of charging demand for each session.
Energies 17 00925 g006
Figure 7. Histogram of time to next charge for each session.
Figure 7. Histogram of time to next charge for each session.
Energies 17 00925 g007
Figure 8. Charging demand prediction framework.
Figure 8. Charging demand prediction framework.
Energies 17 00925 g008
Figure 9. Predicted vs. observed connection durations for linear (left) and RF (right) models.
Figure 9. Predicted vs. observed connection durations for linear (left) and RF (right) models.
Energies 17 00925 g009
Figure 10. Feature importance of connection duration prediction for each method.
Figure 10. Feature importance of connection duration prediction for each method.
Energies 17 00925 g010
Figure 11. RFE analysis of RF model for prediction of connection duration. Accuracy vs. feature count (left) and 6 most important features (right).
Figure 11. RFE analysis of RF model for prediction of connection duration. Accuracy vs. feature count (left) and 6 most important features (right).
Energies 17 00925 g011
Figure 12. Predicted vs. observed charging durations for linear (left) and RF (right) models.
Figure 12. Predicted vs. observed charging durations for linear (left) and RF (right) models.
Energies 17 00925 g012
Figure 13. Feature importance of charging duration predictions for each method.
Figure 13. Feature importance of charging duration predictions for each method.
Energies 17 00925 g013
Figure 14. RFE analysis of RF model for prediction of charging duration. Accuracy vs. feature count (left) and 6 most important features (right).
Figure 14. RFE analysis of RF model for prediction of charging duration. Accuracy vs. feature count (left) and 6 most important features (right).
Energies 17 00925 g014
Figure 15. Predicted vs. observed charging demands for linear (left) and RF (right) models.
Figure 15. Predicted vs. observed charging demands for linear (left) and RF (right) models.
Energies 17 00925 g015
Figure 16. Feature importance of charging demand predictions for each method.
Figure 16. Feature importance of charging demand predictions for each method.
Energies 17 00925 g016
Figure 17. RFE analysis of RF model for prediction of charging demand. Accuracy vs. feature count (left) and 6 most important features (right).
Figure 17. RFE analysis of RF model for prediction of charging demand. Accuracy vs. feature count (left) and 6 most important features (right).
Energies 17 00925 g017
Figure 18. Predicted vs. observed times until the next session for linear (left) and RF (right) models.
Figure 18. Predicted vs. observed times until the next session for linear (left) and RF (right) models.
Energies 17 00925 g018
Figure 19. Feature importance of time for the next session predictions for each method.
Figure 19. Feature importance of time for the next session predictions for each method.
Energies 17 00925 g019
Figure 20. RFE analysis of RF model for prediction of time until next charge. Accuracy vs. feature count (left) and 6 most important features (right).
Figure 20. RFE analysis of RF model for prediction of time until next charge. Accuracy vs. feature count (left) and 6 most important features (right).
Energies 17 00925 g020
Table 1. Yearly summary of household charging.
Table 1. Yearly summary of household charging.
No. of Active Unique UsersNo. of SessionsEnergy Consumed (MWh)
201922845,921547.9
202035548,022611.6
202148482,8981137
202248088,4991244
Total(576)265,3403540
Table 2. Summary of the distribution of charging behavior variables.
Table 2. Summary of the distribution of charging behavior variables.
MedianMeanStd
Connection Duration (minutes)545528398
Charging Duration (minutes)11112888
Charging Demand (kWh)10.012.99.8
Time to next charge (minutes)137415981369
Table 3. Target variables for each charging session.
Table 3. Target variables for each charging session.
ParameterTypeDescription
Charging DemandNumericThe energy consumed during the session, in kWh
Connection DurationNumericThe connection duration of the session, in minutes
Charging DurationNumericThe charging duration of the session, in minutes
Time to Next Charge NumericThe time until the next session begins, in minutes
Table 4. Input parameters for each charging session.
Table 4. Input parameters for each charging session.
ParameterAbbrev.TypeDescription
Time Series ValueTabsNumericThe absolute time series of the session start
Time of DayTdayNumericThe time of day for session start (minutes)
Day of weekDayCategoricalMon, Tue, Wed, Thu, Fri, Sat, and Sun
Month of yearMonthCategoricalJan, …, Dec
SeasonSeasonCategoricalWinter, Spring, Summer, and Fall
Session CountCountNumericThe count of previous sessions for the user
Average Frequency FreqNumericThe average daily charge frequency for the user
Time ElapsedTEsNumericTime elapsed since user’s last charge ended (minutes)
Target Variable MeanTVmean NumericMean of target variable for past user sessions
Target Variable MinTVminNumericMin of target variable for past user sessions
Target Variable MaxTVmaxNumericMax of target variable for past user sessions
Target Variable PreviousTVprevNumericValue of target variable for user’s most recent session
Table 5. Accuracy metrics for predicting connection duration.
Table 5. Accuracy metrics for predicting connection duration.
MethodsR2MAE (Minutes)RMSE (Minutes)
Linear0.20282346
XGBoost0.38218307
RF0.39210304
ANN0.34227313
Mean Model0.12304362
Table 6. Accuracy metrics for predicting charging duration.
Table 6. Accuracy metrics for predicting charging duration.
MethodsR2MAE (Minutes)RMSE (Minutes)
Linear0.294862
XGBoost0.454155
RF0.474054
ANN0.404357
Mean Model0.265064
Table 7. Accuracy metrics for predicting charging demand.
Table 7. Accuracy metrics for predicting charging demand.
MethodsR2MAE (kWh)RMSE (kWh)
Linear0.314.76
XGBoost0.463.95.3
RF0.483.65.1
ANN0.404.15.5
Mean Model0.384.35.7
Table 8. Accuracy metrics for predicting time for the next session in min.
Table 8. Accuracy metrics for predicting time for the next session in min.
MethodsR2MAE (Minutes)RMSE (Minutes)
Linear0.16583781
XGBoost0.21565760
RF0.20567761
ANN0.17582774
Mean Model0.16585783
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

Almaghrebi, A.; James, K.; Al Juheshi, F.; Alahmad, M. Insights into Household Electric Vehicle Charging Behavior: Analysis and Predictive Modeling. Energies 2024, 17, 925. https://doi.org/10.3390/en17040925

AMA Style

Almaghrebi A, James K, Al Juheshi F, Alahmad M. Insights into Household Electric Vehicle Charging Behavior: Analysis and Predictive Modeling. Energies. 2024; 17(4):925. https://doi.org/10.3390/en17040925

Chicago/Turabian Style

Almaghrebi, Ahmad, Kevin James, Fares Al Juheshi, and Mahmoud Alahmad. 2024. "Insights into Household Electric Vehicle Charging Behavior: Analysis and Predictive Modeling" Energies 17, no. 4: 925. https://doi.org/10.3390/en17040925

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