Abstract
Electric vehicles rely on regenerative braking as a means of improving energy efficiency and extending driving range. However, the optimization of torque distribution between regenerative and mechanical braking remains a challenging aspect. This study investigates machine learning techniques for predicting braking torque in light EVs with a view to improving energy recovery and reducing mechanical brake usage. For this purpose, a simulation model was developed in MATLAB/Simulink to generate a data set of 113,622 points based on speed, acceleration, road grade, vehicle weight, and road condition. Four supervised ML algorithms—Linear Regression, K-Nearest Neighbors, Decision Tree, and Random Forest—were trained and evaluated using R2, MSE, RMSE, and MAE metrics. To verify the results under WLTP Class 1 driving conditions, a test was conducted on a hardware test platform for the best model. The findings indicate that Random Forest achieved the highest level of accuracy with an R2 value of 0.97 in the simulation and an R2 value of 0.98 in the experimental validation. These findings support the hypothesis that ML-based torque prediction is a promising approach for real-time EV braking control. Also, this study supports sustainable transportation by improving energy recovery and reducing environmental impact through advanced AI-based braking strategies.
1. Introduction
Transportation constitutes a fundamental pillar of global economic development; however, conventional vehicles remain a major source of greenhouse gas emissions and environmental degradation. In response to these challenges, electric vehicles (EVs) have emerged as a viable and sustainable alternative, offering significant reductions in emissions alongside improved energy efficiency [1]. Despite these advantages, large-scale adoption of EVs is constrained by inherent limitations such as restricted driving range and extended charging durations, which continue to pose critical concerns for both manufacturers and end-users [2]. Consequently, enhancing energy recovery during braking has become imperative to extend vehicle range and improve overall system efficiency [3].
To address this issue, regenerative braking systems have been introduced as an effective solution. These systems convert the vehicle’s kinetic energy during deceleration into electrical energy, subsequently storing it within the battery. This mechanism not only reduces dependence on mechanical braking components but also minimizes energy losses and prolongs brake life [4]. To achieve optimal regenerative braking performance, it is essential to ensure precise torque distribution between regenerative and mechanical braking modes, whilst also considering the principles of safety and stability [5]. Recent advancements in hierarchical control for independently driven EVs highlight the trade-off between energy conservation and dynamic stability [6]. Building on this, dual-model predictive control frameworks have been proposed to jointly enhance efficiency and handling in distributed-drive EVs. The aim of these frameworks is to concurrently enhance energy efficiency and handling stability in distributed-drive electric vehicles (DDEVs) [7].
Extensive research has been conducted to explore various strategies for energy recovery in electric vehicles. Initial efforts focused on conventional control methodologies, such as rule-based and fuzzy logic controllers (FLC), which have demonstrated notable success in improving energy recovery performance [8]. For example, FLCs have been reported to achieve energy-saving improvements exceeding 15% under typical driving cycles and surpassing 40% under specific driving scenarios [9]. However, a significant limitation of these traditional methods is their constrained adaptability across diverse road conditions, driving profiles, and vehicle parameters.
Building on these foundational principles, recent studies have focused on developing sophisticated control and optimization techniques. The integration of machine learning (ML) and artificial intelligence (AI) methods has emerged as a highly promising approach to increase regenerative braking efficiency, particularly under dynamic and unpredictable driving conditions [10]. These adaptive methodologies facilitate real-time decision-making and adaptive control, which are crucial for maximizing energy recuperation and, consequently, extending the vehicle’s driving range. Moreover, recent contributions have highlighted the efficacy of ML-based methodologies for the optimization of braking energy recovery, consistently demonstrating superior performance in comparison to conventional approaches. Furthermore, the employment of sophisticated real-time optimization algorithms has yielded notable enhancements, with certain strategies achieving over 50% enhancement in energy recovery efficiency while concurrently ensuring the maintenance of braking stability [11]. In essence, comparative analyses consistently demonstrate that energy recovery is most effective in urban environments, where it can account for up to 20% of the total trip energy [12]. The following table summarizes the research findings based on machine learning (ML) and rule-based algorithms, as well as the results of studies related to regenerative braking that have been conducted in recent years (Table 1).
Table 1.
Comparison and discussion of regenerative braking systems for EVs.
These advancements underscore the rapid evolution of regenerative braking strategies and highlight the relevance of ML-based approaches for optimizing braking energy recovery. ML algorithms exhibit the capacity to model complex non-linear relationships between vehicle dynamics and braking torque, enabling accurate predictions and real-time control. Nevertheless, existing studies often remain confined to simulation environments or single driving conditions, leaving gaps in generalization, experimental validation, and integration into practical EV control architectures.
To address these gaps, the present study employs machine learning algorithms—Linear Regression (LR), K-Nearest Neighbors (KNN), Decision Tree (DT), and Random Forest (RF)—to predict torque in regenerative braking systems. The selection of these algorithms is based on a multifaceted evaluation that encompasses their predictive accuracy, interpretability, and computational efficiency. This ensures the feasibility of these algorithms for real-time applications in electric vehicle technology. More complex approaches, such as Support Vector Machines and ensemble boosting, are not considered due to their high tuning complexity and computational demands. Conversely, unsupervised techniques like PCA and GMM are excluded in view of the study’s focus on torque prediction as opposed to dimensionality reduction or clustering. The principal innovation of this work lies in its dual-output torque prediction framework, which has been tailored for light EVs. This is combined with a parametric simulation methodology and hardware validation under WLTP conditions. In contrast to previous studies that have focused on single torque estimation or have relied exclusively on simulations, this research proposes a scalable approach that integrates machine learning with experimental verification. This approach represents a significant advancement in the field of practical regenerative braking control.
Within this scope, the remainder of the paper is organized as follows. Section 2 provides a brief overview of EV dynamics, regenerative braking, and driving cycles. Section 3 explains the fundamental principles of the ML methods used in the study and outlines the evaluation criteria for these methods. Section 4 gives the details of the construction of the data set obtained by the simulations. In Section 5, the training results of the ML models are presented and compared with each other, based on the results obtained. Section 6 includes an experimental setup to compare models in terms of their performance. Finally, Section 7 discusses and comments on the actual results obtained and trained on the ML-based data set, evaluating the most efficient and highest performing driving profiles.
The present study aims to address these gaps by means of five key contributions:
- It introduces a comparative framework for multiple ML algorithms—Linear Regression, K-Nearest Neighbors, Decision Tree, and Random Forest—trained on a data set generated from realistic driving profiles and vehicle dynamics.
- It validates the models not only through simulation but also on a hardware test platform under WLTP Class 1 conditions, ensuring real-world applicability.
- It demonstrates that Random Forest achieves superior predictive performance (R2 = 0.97 in simulation and R2 = 0.98 in external validation), highlighting its potential to reduce mechanical braking and enhance energy recovery, paving the way for integration into real-time EV braking control strategies.
- It proposes a dual-output prediction approach for both regenerative and mechanical braking torque, using a feature space tailored for light EVs (speed, acceleration, road grade, vehicle weight, and road condition), which is rarely addressed in prior studies.
- It outlines a conceptual framework for real-time integration of ML-based torque prediction into EV braking control loops, bridging the gap between algorithmic performance and practical implementation.
2. Modeling of an EV
Most of the research on EVs involves the utilization of mathematical modeling techniques, which enable the efficient and cost-effective simulation of a variety of methodologies. To model the dynamic behavior of EVs accurately, it is essential that all vehicle components are described mathematically in detail.
2.1. Vehicle Dynamics
All dynamic equations have mathematical formulas that describe the movement of EVs. These equations for EVs depend on a few variables, including the vehicle’s engine/electric machine power, battery capacity, coefficient of friction, and other elements. These formulas are used to determine the position, speed, acceleration, and other physical properties of the vehicle. Also, they are used to estimate the efficiency and energy consumption of the vehicle.
In Figure 1, all forces acting on the vehicle are given [19]. The total force () acting on the vehicle can be expressed as follows.
where is the aerodynamic force, is the acceleration force, is the rolling friction force, and is the road grade resistance force.
Figure 1.
Forces acting on the vehicle.
The aerodynamic force (), caused by air resistance acting on the vehicle’s surface, is calculated using the following equation.
where is the drag coefficient, A () is the front surface area of the vehicle, and ( is the density of air.
The acceleration force () can be expressed as
where is the linear acceleration of the vehicle, is its speed, and is its mass.
In Equation (4), the road grade angle of the road is denoted by and the gravitational force is denoted by . The value of the road grade resistance force (), which is a component of the force acting on the vehicle due to gravity and in the direction of movement of the vehicle, varies according to the road grade angle of the road on which the vehicle is located.
The rolling friction force () is influenced by the weight of the vehicle, the acceleration of gravity, and the rolling resistance coefficient (). can be expressed in Equation (5).
As a result, the total net force acting on the vehicle () is equal to the sum of all forces.
With the sum of the forces acting on the vehicle and the wheel radius, the demanded moment can be calculated by formula given in Equation (7).
The required motor power is also calculated by following equation using the total force and speed relationship.
Finally, assuming that the moment of deceleration of the EV is time interval [t1, t2], the maximum recoverable energy can be calculated as follows.
2.2. Regenerative Braking
Regenerative braking is one of the methods for improving energy efficiency in EVs. The kinetic energy of the vehicle in braking or slowing down is recovered and converted into electrical energy by means of the electrical motor acting as a generator, which is employed as a truck system in EVs. This mechanism enables the vehicle to maintain motion while feeding the recovered energy back into the battery. Additionally, regenerative braking outlasts traditional braking systems in terms of brake life and energy loss. The distribution of braking demand between the use of mechanical or regenerative braking strategies, as well as the front and rear wheels of a vehicle, allows for the classification of regenerative braking systems into two distinct categories, as shown in Figure 2. Regenerative braking is the main technique of a series braking strategy. However, if the regenerative braking is not sufficient, the mechanical brake provides additional braking force. In contrast, the parallel braking strategy can be defined as a method of simultaneous implementation of both mechanical and regenerative braking in specific conditions. Still, it is difficult to control the two braking systems at the same time, and mechanical braking is not remarkably effective.
Figure 2.
Braking strategies of Evs. (a) Parallel, (b) serial.
2.3. Driving Profiles and Cycles
Driving profiles and cycles are time-based data sets of speed data of the vehicle that vary across national borders based on several factors such as traffic density, road conditions, and driving habits. Many national and international organizations have created and published several different driving profiles. Ref. [20] reports the characteristics of several driving profiles, as summarized in Table 2, which are commonly utilized in environmental assessment studies to represent national traffic conditions.
Table 2.
Driving profiles in different cycles [20].
The ECE and JAPAN-10 driving profiles are designed to simulate urban driving conditions, which typically require a smooth and consistent driving style at low speeds. The data set illustrates the behavior of vehicles undergoing moderate acceleration and deceleration. In contrast, the NYCC driving profile indicates conditions of dense traffic, which require vehicles to move at a relatively high speed and to stop and start frequently. In such instances, vehicles demonstrate a higher level of aggression in their driving behavior. In contrast to this, the WLTP driving profile is a combination of the aforementioned profiles and represents an average driving scenario as shown in Figure 3.
Figure 3.
Different driving cycles for the tests.
3. Machine Learning Algorithms
In the field of AI, ML is defined as the process by which computers learn from training data. The objective of ML is to identify patterns and relationships within data sets by applying mathematical techniques. These techniques use data analysis to identify results and inform decision-making. The accuracy of the results depends on the amount of data and the experience of the analyst. Applying ML to large and complex data sets allows challenging the problems.
One method deriving insights from data is ML. The selection of an appropriate learning model is dependent on the characteristics of the data set and the desired outcomes. In the basic framework, four different learning models can be considered: supervised, unsupervised, semi-supervised, or reinforcement; the classification of the models is given in Figure 4. One of the most popular ML approaches is supervised learning. This approach is applicable when the label assigned to each data point in the data set is known. In this way, the algorithm can recognize the relationships between the data and predicted labels for a new data set. Regression and classification are two tasks where supervised learning is particularly effective.
Figure 4.
Taxonomy of ML algorithms.
In this study, four AI algorithms, namely LR, RF, KNN, and DT, are preferred for investigating regenerative braking systems in EVs.
3.1. Linear Regression
A statistical modeling technique, LR, is used to identify the relationship between variables and to use this relationship to predict the effect of one variable on another. The fundamental assumption of LR is that there is a linear relationship between the dependent and the independent variables. This approach involves the construction of a linear equation that represents the relationship between the two variables, x and y, as shown in Figure 5.
Figure 5.
LR algorithm working visualization.
The observations within the data set are then used to solve this linear equation, resulting in the calculation of the coefficients and the constant terms. This allows the relationship between the dependent and independent variables to be explained.
where
: dependent or predicted variable
: independent variables
: constant terms representing road grade coefficient for each argument
: model’s random error term
3.2. KNN Algorithm
An ML technique that is employed for regression and classification problems is the KNN algorithm. Essentially, the algorithm assigns a label or prediction to a data point based on the values or labels of its nearest neighbors (Figure 6). The KNN algorithm is used to arrange the data points according to their spatial position. The algorithm identifies the KNN of a given data point, which is then used to predict the label or value of that point. In other words, the KNN algorithm uses a process of classifying or predicting using the labels or values of its KNN.
Figure 6.
KNN algorithm working visualization.
3.3. Decision Tree Algorithm
DT algorithm represents an ML technique that is employed for the purpose of classification and regression. In essence, the algorithm builds a Decision Tree from the attributes within the data set and then uses that tree to categorize data points or predict their values. The DT technique is employed for the classification of data points or the prediction of their values, based on the features of the independent variables present in the data set. The algorithm generates a tree structure consisting of the target variables, which represent the classes in classification problems or the target values in regression problems, and the features present in the data set. The tree structure is used to either predict or categorize the values of the data points. The DT algorithm facilitates understanding the structure of features and target variables in the data set, as well as defining complex decision boundaries and visualizing relationships. A further application of the DT algorithm is the understanding and identification of the key features within a given data set.
P(x) represents the percentage of samples that have a particular feature, whereas H(x) denotes the entropy value associated with feature x, as defined in Equation (12). To illustrate, if we had ten data points and four of them were selected for abrupt braking, the P(x) value would be 4/10. The entire data set, referred to as S, and a specific subset, referred to as x, are represented by the terms in Equation (13). It is important to reduce the entropy value to create optimal partitions within the DT algorithm.
The process of dividing the root node into leaf nodes in a DT algorithm can be explained as follows: The root node represents the entirety of the data set. It serves as the origin of the tree, shown in Figure 7. A decision node represents a feature dividing the information into two or more groups. The course of each observation is determined by the split based on the value of the feature.
Figure 7.
Principle of the Decision Tree structure.
3.4. Random Forest Algorithm
A ML algorithm designed for classification and regression problems is referred to as a RF algorithm. In the ensemble learning technique known as RF, multiple DTs are integrated to form a unified model. Each DT is trained individually before the resulting predictions are combined, as depicted in Figure 8.
Figure 8.
Principle of the Random Forest structure.
The training of any DT within a RF algorithm is achieved through the random selection of features and the implementation of random sampling, a process also referred to as bootstrapping. To train each DT in this manner, a variety of sample data set and feature subsets are employed. Subsequently, more reliable and stable predictions for classification or regression problems are obtained by combining the predictions of these trees.
The RF performs well on high-dimensional data sets and is relatively robust against overfitting. In addition, the RF algorithm is useful for identifying the relative importance of features and elucidating the relationships within a data set. The RF algorithm is widely used in the fields of classification, regression, and feature selection because its properties facilitate its use in a variety of applications.
3.5. Performance Evaluation Criteria of the Algorithms
The objective of ML algorithms is to ascertain the relationship between variables in a data set collected from specific scenarios, with the aim of predicting outcomes for unknowns. To assess the efficacy and precision of the algorithms and ascertain which model is the most effective, it is necessary to use a set of measurement metrics. The efficacy of the model is evaluated through regression analysis, using metrics such as the mean. In this study, the following error metrics are employed: the coefficient of determination (R2), mean square error (MSE), root mean square error (RMSE), and mean absolute error (MAE).
3.5.1. R-SQUARE
In the context of learning algorithms, the coefficient of determination (R2) is defined as a metric to measure how close the data is to the regression line. The R2 coefficient is defined for values within the interval [0, 1]. The highest level of prediction accuracy is represented by the number 1, while the lowest level is represented by the number 0.
The sum of mean differences () is calculated by the formula:
where is the actual data, is the average of the predicted data, and N is the amount of data.
The calculation of the sum of squares of error (SSE) is expressed by the formula:
where is the predicted data.
The coefficient of determination R2 is calculated by the formula:
3.5.2. MSE
MSE is a statistical measure of the difference between predicted and observed data. It shows the difference in average square error between the original and predicted values. It determines the variance of the residuals. In instances where the error amounts are comparable and relatively proximate, the MSE can be used. Conversely, the application of MSE may be inadvisable in instances where the magnitude of the errors exceeds the mean and the number of errors is on the rise. In such cases, MAE may be a more appropriate measure. MSE is calculated by the formula:
3.5.3. RMSE
RMSE is a statistical measure that quantifies the distance between the regression line and the actual data set, representing the standard deviation of prediction errors. The value of the RMSE can range from zero to infinity. A value of zero indicates a perfect model with no errors. The RMSE is calculated using with the formula:
3.5.4. MAE
The MAE is a statistical measure and simple calculation and has an intuitive nature, making it one of the most widely used error metrics in practice. The MAE is calculated as the average vertical distance between each actual value and the regression line that best fits the data set as follows:
The MAE value can range from zero to infinity. Unlike the MAE, the RMSE metric assigns greater weight to relatively large errors. Therefore, in circumstances where large errors are to be avoided, it is advisable to consider the RMSE value.
4. Creating a Data Set and Its Training
4.1. Simulation Model
The simulation model shown in Figure 9 is designed using the MATLAB/Simulink R2025b environment, which includes both mechanical and electronic models based on dynamic equations of an EV. It allows ML algorithms to synthetically generate the training and test data required for model generation.
Figure 9.
Simulation model of the EV model.
The input and output variables essential for developing a learning model are identified in Table 3. The input variables consist of road gradient, vehicle weight, speed, acceleration, and road condition. In this study, the coefficient of rolling friction within the mathematical model is defined as a representation of the road condition, specifically the variable indicating whether the road is asphalt, mud, or soil. For output variables, the torque of the electrical motor and the mechanical brakes are considered. One of the output components, motor torque, includes both the positive torque value necessary for acceleration and the negative torque value essential for deceleration when the motor is employed for regenerative braking when behaving as a generator. If the regenerative braking torque is inadequate during deceleration, the mechanical braking torque—the other output component—is employed to adjust the mechanical brake.
Table 3.
Input and output parameters used in learning algorithms.
4.2. Descriptions and Data Set Preparation
To achieve the aims of this paper, it is essential to create a data set that is within the operating limits of the test system. This involves careful selection and pre-processing of the data to ensure that it accurately reflects the conditions under which the test system operates. In this way, the reliability and validity of the results can be maintained, providing a solid basis for subsequent analysis and conclusions. For this purpose, the analysis is conducted for driving standards, road conditions, vehicle speeds, and driving profiles. Table 4 describes the limits of the variables in the data set to be created. The European urban normal driving profile (ECE), the aggressive urban driving profile (NYCC), and the Japanese urban moderately aggressive driving profile (JAPAN 10) are selected as speed data for the light EVs and are shown in Figure 10. The hybrid speed profile is representative of real-world scenarios as it covers a range of speeds and driving profiles.
Table 4.
Limitations of the data set.
Figure 10.
A complex road profile considered.
4.3. Model Training
In the field of ML, a sub-category of AI, learning-based algorithms are used to enable systems to learn from data and improve their performance over time without being obviously programmed. This field encompasses a variety of techniques and methodologies aimed at creating models that can make predictions or decisions based on the input data. Among these techniques, supervised learning is a prominent approach where the model is trained on a labeled data set, meaning that each training example is paired with an output label. Within the supervised learning category, there are several algorithms that are commonly used due to their effectiveness and versatility. Four such algorithms are LR, KNN, DT, and RF.
Once the input–output data has been created and some basic data cleanings have been completed to ensure the quality and consistency of the data set, the data are then divided into training and test data. The data cleaning process involves the removal of any duplicate values, the handling of missing values, and the normalization of the data in preparation for analysis. A total of 113,622 data points are utilized in the study, thereby providing a robust data set for training and evaluation purposes. Of the total data points, 30% are allocated to the test group, which is used to evaluate the performance of the model on previously unused data, while the remaining 70% are allocated to the training group, which is used to train the model. For each model, the 30/70 partitioning is repeated 10 times to ensure robustness, and hyperparameter selection is conducted using grid search. This division ensures that the model can be properly validated, and their performances accurately assessed, preventing overfitting and ensuring that the model generalizes well to new, previously unseen data.
5. Training Results
5.1. Findings of the Linear Regression Algorithm
The LR algorithm is a supervised learning algorithm that belongs to the category of regression algorithms. It is particularly suited to cases where the dependent and independent data have a linear relationship. The differences between the actual and estimated Y1 outputs can be attributed to inaccurate predictions, which is an unfavorable outcome, as shown in Figure 11.
Figure 11.
Comparison of estimated and actual values from data set of Y1 in LR.
Figure 12 shows the discrepancies between the actual and predicted values of the Y2 output data. The output data reveals that the vehicle is operating at an unacceptable power level, which could lead to loss of stability and potentially dangerous results.
Figure 12.
Comparison of estimated and actual values from data set of Y2 in LR.
The performance metrics of the model created with LR are calculated as follows: R2 0.67, MSE 16.54, RMSE 4.07, and MAE 3.08. These values are presented in Table 5.
Table 5.
LR algorithm metric values.
5.2. Findings of the KNN Algorithm
A supervised ML algorithm based on the nearest neighbor principle is the KNN algorithm. The KNN algorithm identifies K-Nearest Neighbors within the given data set, calculates the distances between each neighbor and the target value, and then averages these distances to predict the target value. The optimal results for this study have been obtained when k is set to 2. The outputs of the model generated by the KNN algorithm, comparing actual and predicted data, are presented in Figure 13 for output data Y1 and Figure 14 for output data Y2.
Figure 13.
Comparison of estimated and actual values from data set of Y1 in KNN.
Figure 14.
Comparison of estimated and actual values from data set of Y2 in KNN.
The performance metrics of the model created with KNN are calculated as follows: R2 0.86, MSE 7.15, RMSE 2.67, and MAE 1.37. These values are presented in Table 6.
Table 6.
KNN algorithm measurement values.
5.3. Findings of Decision Tree Algorithm
A class of supervised ML algorithms, designated as DT algorithms, is frequently selected when the data exhibits a non-linear distribution. In comparing actual and forecast data, the model constructed using the DT algorithm is illustrated in Figure 15 for output data Y1 and in Figure 16 for output data Y2. The model created with the DT algorithm performs the duty better than the models created with the LR and KNN algorithms.
Figure 15.
Comparison of estimated and actual values from data set of Y1 in DT.
Figure 16.
Comparison of estimated and actual values from data set of Y2 in DT.
The performance metrics of the model created with DT are calculated as follows: R2 0.96, MSE 1.94, RMSE 1.39, and MAE 0.46. These values are presented in Table 7.
Table 7.
Measurement values from the DT algorithm.
5.4. Findings of Random Forest Algorithm
A combination of DTs constitutes the ML algorithm designated as the RF algorithm, which belongs to the category of supervised learning algorithms. The algorithm takes the endpoints of multiple DTs, performs a voting process, and then determines the outcome of the prediction.
In the model created with the RF algorithm, Figure 17 shows the comparison of the predicted actual value for the Y1 output and Figure 18 shows the predicted actual value for the Y2 output. With this model, a better result is obtained compared to the models created with LR, KNN, and DT algorithms.
Figure 17.
Comparison of estimated and actual values from data set of Y1 in RF.
Figure 18.
Comparison of estimated and actual values from data set of Y2 in RF.
The performance metrics of the model created with RF are calculated as follows: R2 0.97, MSE 1.39, RMSE 1.18, and MAE 0.41. These values are presented in Table 8.
Table 8.
Measured performance values from the RF algorithm.
5.5. Performance Evaluation of the Simulated Algorithms
As indicated in the paper, the efficiency of the developed regenerative energy control algorithms is analyzed using a set of metrics, and the results are presented. Given the non-linear relationship between the independent and dependent variables in the prepared data set, the LR model is observed to demonstrate the least optimal performance when evaluating the results. Although the KNN method yields slightly superior findings in comparison to the LR algorithm, the results are nevertheless deemed inadequate. In consideration of the evaluated performance criteria, the DT and RF algorithms are identified as the most effective in comparison to the other algorithms. The RF algorithm demonstrates optimal performance, with an R2 of 0.97, an MSE of 1.39, an RMSE of 1.18, and an MAE of 0.41 in comparison to the other algorithms. The performance parameters of the algorithms are presented in Figure 19.
Figure 19.
Comparison of the algorithms in terms of the criteria; (A) R2, (B) MSE, (C) RMSE, (D) MAE.
6. Experimental Study
Considering the EV components as shown in Figure 20 and Figure 21, the test platform has been designed to test the energy efficiency of an EV under real road conditions [21].
Figure 20.
The principal schema of the experimental setup.
Figure 21.
The implemented test setup.
In test studies, the rapid and precise acquisition of data is of paramount importance. To achieve this, high-reliability devices commonly used in the industry are employed in the test system. Moreover, for advanced academic study in future, a programmable logic controller (PLC) device and a human–machine interface (HMI) with flexible programming capabilities are used to enable data collection and processing.
The experimental setup consists of a 2 kW power brushless DC motor (BLDC) with a motor speed of 750 rpm and an operating voltage of 96 V, which acted as the motor for the EV. In addition, a high-accuracy servo motor and motor driver are included to generate the forces acting on the vehicle. The design also featured six parallel batteries with a capacity of 60 Ah and a cell voltage of 13.2 V, serving as the energy source for the electric motor. To measure the necessary parameters, an AC analyzer, DC analyzer, torque sensor, and power analyzer are integrated into the design.
The HMI page design for the test platform is shown in Figure 22. Figure 22a displays the page where necessary settings are made, such as servo operation mode, PID coefficient parameter settings for the braking system, manual control of the servo motor, writing driving profiles, language options, and other HMI system settings. Figure 22b shows the page where vehicle parameter values such as weight, wheel radius, and front surface area are entered for calculating vehicle dynamic equations, as well as driving cycle selection, regenerative mode selection, and battery selection. The data HMI screen, shown in Figure 22c, is used to operate the test platform and start the experiment by entering vehicle parameters, driving profiles, and regenerative mode information. Additionally, Figure 22d presents the “Analyzer” page designed to observe changes in electrical values of the battery and the motor during the test system operation. All the data observed through the HMI can be recorded and saved in Excel format using AI-based algorithms.
Figure 22.
HMI screens of the test setup (a) system parameter page (b) vehicle parameter page (c) speed-torque monitoring page (d) battery and BLDC motor monitoring page.
Table 9 presents the parameters of the low-power urban vehicle used in the simulation studies.
Table 9.
Vehicle Parameters used in the test system.
The efficiency of the RF learning model for regenerative energy control is evaluated by using a different data set, the WLTP Class 1 data set, which is a globally harmonized light vehicle data set. The data set is selected for evaluation purposes as it is not included in either the training or test data sets used in the model development process. The model, created using the RF algorithm, is executed on the designed test system running in Python 3.11.0 codes. As the result of the simulations, the model follows the reference speed in the driving profile and demonstrates the desired acceleration and deceleration capabilities in the test platform given in Figure 23. Furthermore, the observed torque of the motor is compared to the estimated torque, which is generated by the learning model as shown in Figure 24. When the motor generates a positive torque, this result in an increase in vehicle speed. In contrast, the generation of negative torque allows the activation of either regenerative braking or mechanical braking. The performance values are compared with the state-of-charge (SoC) value calculated from Figure 25. It is observed that during the regenerative braking process, the SoC value increases because of the energy flows to the battery. The battery current and voltage diagram, as shown in Figure 26, indicates that there is an increase in the battery voltage and a negative battery current during the regenerative braking process.
Figure 23.
Comparison of the measured and reference vehicle speed.
Figure 24.
Comparison of the measured and estimated motor torque value.
Figure 25.
Measured values of power and SoC.
Figure 26.
Measured current and voltage values of the battery.
The application of the RF algorithm to the external data set of the WLTP Class 1 driving profile yields the results shown in Figure 27 and Figure 28, which represent the results of the model construction. The model demonstrates an accurate prediction of the data, with minimal discrepancy between the predicted and actual values observed for the Y1 and Y2 data sets.
Figure 27.
Estimated and actual measured values of Y1 data.
Figure 28.
Estimated and actual measured values of Y2 data.
Table 10 shows the performance metrics obtained by evaluating the model against the WLTP Class 1 criteria. An R2 value of 0.98 indicates a high degree of predictive performance when examining the performance metrics. The effectiveness of the model is also observed by other metrics with low error values. The performance metrics of the model created with RF are calculated as follows: R2 0.98, MSE 0.78, RMSE 0.88, and MAE 0.27.
Table 10.
Performance measurements of the RF algorithm.
7. Conclusions
The present study aims to compare the prediction performance of four machine learning algorithms—LR, K-NN, DT, and RF—for the estimation of regenerative braking torque in light EVs. A MATLAB/Simulink-based simulation framework is developed, and data sets are split into 70% training and 30% testing subsets. The performance of the model is evaluated using a variety of performance metrics, including R2, MSE, RMSE, and MAE. Non-linear system characteristics result in LR demonstrating the least optimal performance, while RF exhibits the highest level of accuracy (R2 = 0.97, MSE = 1.39, RMSE = 1.18, MAE = 0.41). Furthermore, these findings are validated through hardware-in-the-loop experiments, which employed a WLTP Class 1 driving cycle. The RF algorithm exhibits enhanced performance (R2 = 0.98, MSE = 0.78, RMSE = 0.88, MAE = 0.27) and demonstrates effective speed tracking and an improved balance between regenerative and mechanical braking.
The proposed RF-based approach offers significant potential for reducing mechanical braking and maximizing energy recovery, thereby supporting real-time energy management in EVs. The methodology is adaptable to various vehicle types, motor characteristics, battery technologies, and driving cycles, ensuring practical applicability.
7.1. Contribution to Sustainability
By implementing AI-driven regenerative braking strategies, this research minimizes energy loss during deceleration, extends driving range, and reduces dependence on fossil fuels. Real-time optimization decreases brake wear and maintenance costs, contributing to environmental and economic sustainability. These outcomes align with global sustainability goals by promoting cleaner transportation systems and supporting the transition toward smart cities.
7.2. Future Work
Future research will focus on:
- Exploring advanced algorithms (e.g., SVM, PCA, GMM) for improved predictive accuracy
- HIL/embedded real-time deployment, battery/inverter constraints, SoC/temperature coupling.
- Quantitative validation under varying braking intensities, battery state-of-charge levels, and temperature conditions
- Detailed modeling of battery constraints, inverter dynamics, and motor characteristics
- Integration of hybrid energy storage systems combining batteries and ultra-capacitors
- Real-time implementation of ML-based torque prediction in embedded controllers
Author Contributions
Conceptualization, O.B. and M.T.; methodology, O.B.; software, M.T.; validation, M.T.; investigation, O.B.; data curation, O.B.; writing—original draft preparation, O.B.; writing—review and editing, M.T.; visualization, M.T.; supervision, O.B.; project administration, O.B.; funding acquisition, O.B. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by Pamukkale University Scientific Research Projects Coordination Office with project number 2020FEBE044.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.
Acknowledgments
We would like to express our deep gratitude to Selami Kesler, our research supervisor, for his patient guidance, enthusiastic encouragement, and useful critiques of this research work.
Conflicts of Interest
The authors declare no competing interests.
References
- Morgan, J. Electric Vehicles: The Future We Made and the Problem of Unmaking It. Camb. J. Econ. 2020, 44, 953–977. [Google Scholar] [CrossRef] [Scilit]
- Shrestha, S.; Baral, B.; Shah, M.; Chitrakar, S.; Shrestha, B.P. Measures to Resolve Range Anxiety in Electric Vehicle Users. Int. J. Low-Carbon Technol. 2022, 17, 1186–1206. [Google Scholar] [CrossRef] [Scilit]
- Szumska, E.M. Regenerative Braking Systems in Electric Vehicles: A Comprehensive Review of Design, Control Strategies, and Efficiency Challenges. Energies 2025, 18, 2422. [Google Scholar] [CrossRef] [Scilit]
- Jurgen, R. (Ed.) Electric and Hybrid-Electric Vehicles; SAE International: Warrendale, PA, USA, 2002; pp. 99–105. ISBN 978-0-7680-0833-3. [Google Scholar]
- Ergun, O.; Cayci, N.O.; Dincmen, E.; Istif, I. Optimum Torque Distribution During Regenerative Braking in a Fully Electrical Vehicle via Dynamic Programming. In Proceedings of the 2023 7th International Symposium on Multidisciplinary Studies and Innovative Technologies (ISMSIT), Ankara, Turkiye, 26 October 2023; pp. 1–6. [Google Scholar]
- Liang, J.; Wang, F.; Feng, J.; Zhao, M.; Fang, R.; Pi, D.; Yin, G. A Hierarchical Control of Independently Driven Electric Vehicles Considering Handling Stability and Energy Conservation. IEEE Trans. Intell. Veh. 2024, 9, 738–751. [Google Scholar] [CrossRef] [Scilit]
- Liang, J.; Feng, J.; Fang, Z.; Lu, Y.; Yin, G.; Mao, X.; Wu, J.; Wang, F. An Energy-Oriented Torque-Vector Control Framework for Distributed Drive Electric Vehicles. IEEE Trans. Transp. Electrif. 2023, 9, 4014–4031. [Google Scholar] [CrossRef] [Scilit]
- Paterson, J.; Ramsay, M. Electric Vehicle Braking by Fuzzy Logic Control. In Proceedings of the Conference Record of the 1993 IEEE Industry Applications Conference Twenty-Eighth IAS Annual Meeting, Toronto, ON, Canada, 2–8 October 1993; Volume 3, pp. 2200–2204. [Google Scholar] [CrossRef] [Scilit]
- Yin, Z.; Ma, X.; Su, R.; Huang, Z.; Zhang, C. Regenerative Braking of Electric Vehicles Based on Fuzzy Control Strategy. Processes 2023, 11, 2985. [Google Scholar] [CrossRef] [Scilit]
- Prakash, Z. Integration of AI and ML in Regenerative Braking for Electric Vehicles: A Review. Front. Artif. Intell. 2025, 8, 1626804. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Jiang, B.; Zhang, X.; Wang, Y.; Hu, W. Regenerative Braking Control Strategy of Electric Vehicles Based on Braking Stability Requirements. Int. J. Automot. Technol. 2021, 22, 465–473. [Google Scholar] [CrossRef] [Scilit]
- Szumska, E.M.; Jurecki, R. The Analysis of Energy Recovered during the Braking of an Electric Vehicle in Different Driving Conditions. Energies 2022, 15, 9369. [Google Scholar] [CrossRef] [Scilit]
- Prasanth, B.; Paul, R.; Kaliyaperumal, D.; Kannan, R.; Venkata Pavan Kumar, Y.; Kalyan Chakravarthi, M.; Venkatesan, N. Maximizing Regenerative Braking Energy Harnessing in Electric Vehicles Using Machine Learning Techniques. Electronics 2023, 12, 1119. [Google Scholar] [CrossRef] [Scilit]
- Xu, J.; Xiao, W. Research on Braking Intention Recognition Algorithm for Pure Electric Vehicles Based on Adaboost. In Proceedings of the Third International Conference on Electronic Information Engineering and Data Processing (EIEDP 2024), Kuala Lumpur, Malaysia, 5 July 2024; Jabbar, M.A., Lorenz, P., Eds.; SPIE: Bellingham, WA, USA, 2024; p. 233. [Google Scholar]
- Yu, Z.; Feng, H.; Meng, Y.; Xu, E.; Wu, Y. Braking Energy Management Strategy for Electric Vehicles Based on Working Condition Prediction. AIP Adv. 2022, 12, 015220. [Google Scholar] [CrossRef] [Scilit]
- Anh, N.T.; Chen, C.-K.; Liu, X. An Efficient Regenerative Braking System for Electric Vehicles Based on a Fuzzy Control Strategy. Vehicles 2024, 6, 1496–1512. [Google Scholar] [CrossRef] [Scilit]
- Tang, M.; Zhang, X. Optimal Regenerative Braking Control Strategy for Electric Vehicles Based on Braking Intention Recognition and Load Estimation. IEEE Trans. Veh. Technol. 2024, 73, 3378–3392. [Google Scholar] [CrossRef] [Scilit]
- Gupta, G.; Sudeep, R.; Ashok, B.; Vignesh, R.; Kannan, C.; Kavitha, C.; Alroobaea, R.; Alsafyani, M.; AboRas, K.M.; Emara, A. Intelligent Regenerative Braking Control With Novel Friction Coefficient Estimation Strategy for Improving the Performance Characteristics of Hybrid Electric Vehicle. IEEE Access 2024, 12, 110361–110384. [Google Scholar] [CrossRef] [Scilit]
- Hayes, J.G.; Goodarzi, G.A. Electric Powertrain: Energy Systems, Power Electronics & Drives for Hybrid, Electric and Fuel Cell Vehicles; John Wiley & Sons Ltd.: Hoboken, NJ, USA, 2018; ISBN 9781119063667. [Google Scholar]
- Barlow, T.J.; Latham, S.; Mccrae, I.S.; Boulter, P.G. A Reference Book of Driving Cycles for Use in the Measurement of Road Vehicle Emissions; TRL Published Project Report; TRL: Crowthorne, UK, 2009. [Google Scholar]
- Kesler, S.; Boyaci, O.; Tumbek, M. Design and Implementation of a Regenerative Mode Electric Vehicle Test Platform for Engineering Education. Sustainability 2022, 14, 14316. [Google Scholar] [CrossRef] [Scilit]
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.



























