As global energy shortages and environmental concerns caused by petroleum resources intensify, governments worldwide are vigorously promoting new energy technologies. Electrified transportation is recognized as one of the most effective pathways to address these challenges. Lithium-ion batteries serve as the primary power source for electric vehicles (EVs) due to their fast start capability, cleanliness, and low energy consumption. However, during operation, the internal physical and chemical changes within the battery cause its performance to degrade continuously, leading to serious safety issues. Accurate prediction of the state of health (SOH) of the battery pack is therefore essential for ensuring the safe and reliable operation of EVs. Most existing studies rely on laboratory data, and their algorithms cannot be directly applied to real-world driving conditions. In this thesis, I conduct research on battery pack SOH estimation using real-world vehicle-road data. On this basis, I further develop a control algorithm that optimizes the vehicle speed trajectory to suppress battery aging. This work is organized as follows: first, I introduce the data source and analyze the challenges of real vehicle data; second, I propose a capacity calculation method and feature engineering framework; third, I construct three machine learning models for SOH estimation; finally, I establish a vehicle longitudinal dynamics model, an electric motor model, a battery equivalent circuit model, and a battery capacity fade model to formulate an optimal speed control strategy that minimizes capacity degradation.

1. Introduction
The fast-growing EV market demands robust battery management systems (BMS) to monitor the health of vehicle traction batteries. SOH is a key metric indicating the remaining capacity relative to the nominal capacity. According to the common definition, when the capacity fades to 80% of the initial value, the battery reaches its end of life. In practice, SOH estimation from laboratory cycling data is well-studied, but these approaches often assume constant temperature, controlled charge/discharge rates, and complete charge-discharge cycles. In contrast, real vehicle data are noisy, incomplete, and collected under highly variable driving conditions. Thus, transferring laboratory models to field applications remains a significant challenge.
Many studies have estimated SOH using model-based methods such as equivalent circuit models, electrochemical models, or empirical models. Data-driven approaches, including Gaussian process regression (GPR), support vector regression (SVR), and neural networks, have also been widely used. However, most rely on laboratory-based cycling or partial charging data under idealized conditions. There is a clear need for methods that exploit real-world charging events and can be validated across different vehicle types.
Besides accurate SOH estimation, extending battery life through intelligent vehicle control has become a topical research area. When the SOH is known, optimizing the speed trajectory of an EV can reduce battery aging by avoiding unnecessary high-current transients and regenerative braking events. Existing eco-driving strategies often focus on minimizing energy consumption; fewer studies directly consider the battery degradation model inside the optimization loop. Furthermore, the coupling between vehicle speed, battery current, and the resulting capacity fade has not been fully exploited in a model predictive control (MPC) framework.
My thesis addresses these gaps by proposing: (1) a practical capacity calculation method for vehicle traction batteries from fragmented charging data; (2) a generic feature engineering approach that identifies the optimal feature set for SOH estimation; (3) a comparison of GPR, SVR, and multiple linear regression (MLR) for SOH prediction; and (4) a battery-friendly velocity planning strategy developed through MPC and sequential quadratic programming (SQP) to minimize battery capacity loss.
2. Real Vehicle Data Processing and Analysis
2.1 Dataset Description
The original dataset used in this work was acquired from a national traffic management information platform that collects real-time operational data from EVs across different regions and vehicle models. Each vehicle record contains timestamps, vehicle status, charging status, cumulative mileage, battery pack voltage and current, cell-level maximum/minimum voltages, maximum/minimum temperatures, SOC, and alarm flags. Table 1 lists the main fields and their units/meaning.
| Field | Description | Format/Range |
|---|---|---|
| VID | Vehicle identifier | Unique string |
| TIME | Data acquisition timestamp | 10-digit Unix timestamp |
| VEHICLE_STATUS | Vehicle running state (start/stop/other) | 1,2,3 |
| CHARGE_STATUS | Charging status | 0 (stop charging), 1 (charging), etc. |
| RUN_MODEL | Operating mode (pure EV, hybrid, etc.) | 1,2,3 |
| Speed | Vehicle speed | 0-220 km/h |
| SUM_MILE_AGE | Cumulative mileage | 0-1,000,000 km |
| SUM_VOLTAGE | Total pack voltage | 0-1000 V |
| SUM_CURRENT | Total pack current | -1000 to +1000 A |
| SOC | State of charge | 0-100% |
| MAX_CELL_VOLT | Maximum cell voltage | 0-15000 mV |
| MIN_CELL_VOLT | Minimum cell voltage | 0-15000 mV |
| MAX_TEMP | Maximum temperature | -40 to 210 °C |
| MIN_TEMP | Minimum temperature | -40 to 210 °C |
| COMMON_ALARM_FLAG | Generic alarm flag | bit-field |
| MAX_ALARM_LEVEL | Highest alarm severity | 0-3 |
2.2 Data Quality Issues
The collected raw data suffer from missing values, abnormal jumps, inconsistent sampling intervals, and alarm flags that indicate possible sensor errors or battery faults. For example, SOC values occasionally jump by more than 5% within a few seconds, which is physically unrealistic. These anomalies must be cleaned before any further analysis. Since the data volume is huge, I employed Python to process the CSV files efficiently.
2.3 Cleaning and preprocessing
I first removed rows containing missing critical fields (voltage, current, SOC) or invalid strings such as ‘NAN’. For short gaps, I used linear interpolation to reconstruct the missing SOC/current values. For abnormal jumps in SOC or total voltage, I deleted the outliers when the number of abnormal samples was small relative to the total dataset size. Figures in the original thesis illustrate the SOC before and after cleaning, demonstrating that the processed values behave smoothly and remain within plausible ranges.
The alarm flags were examined individually. For instance, flags indicating temperature alarms or cell voltage inconsistencies led to the rejection of the affected charging or discharging segments if the alarm persisted. For hybrid vehicles, certain alarms related to high-voltage storage types were not relevant, as I only considered pure electric vehicles in this study. Table 2 summarizes the typical alarm bits and my handling strategy.
| Alarm bit | Meaning | Handling |
|---|---|---|
| 1 | Temperature difference alarm | Compare with neighboring cycles |
| 2 | High temperature alarm | Check cycle; discard if severe |
| 3 | Over-voltage (pack type) | Ignore for pure EV analysis |
| 4 | Under-voltage (pack type) | Ignore for pure EV analysis |
| 5 | Low SOC alarm | No special treatment |
| 6 | Cell over-voltage alarm | Inspect cycle |
| 7 | Cell under-voltage alarm | Inspect cycle |
| 8 | SOC too high | No special treatment |
| 9 | SOC jump alarm | Inspect cycle |
| 10 | RESS mismatch | Ignore for pure EV analysis |
| 11 | Cell inconsistency severity | Discard data |
| 12 | Insulation alarm | Maintain until alarm clears |
| 13 | DC-DC temperature alarm | Inspect cycle |
| 14 | Brake system alarm | Maintain until alarm clears |
| 15 | DC-DC status alarm | Inspect cycle |
| 16 | Motor controller temperature | Maintain until alarm clears |
| 17 | Motor temperature alarm | Maintain until alarm clears |
| 18 | RESS overcharge | Ignore for pure EV analysis |
2.4 Segmentation of Charging and Discharging Data
Real vehicle operating data are not composed of complete charge/discharge cycles. Drivers charge at arbitrary states of charge levels. Therefore, I divided the long time-series into individual charging and discharging segments using two state indicators: vehicle status and charge status. A charging segment is defined when the vehicle is parked (VEHICLE_STATUS = 2) and the battery is being charged (CHARGE_STATUS = 1). A discharging segment corresponds to driving with no external charging. Moreover, I checked that the current sign matches the intended operation: positive current for charging and negative for discharging. To avoid including regenerative braking events inside a charging segment, I required that the cumulative mileage remains constant during the charging period and that SOC does not exhibit a discontinuous drop. The flowchart of my segmentation algorithm for charging events is given in the original work; essentially, after locating candidate rows, I verify the SOC continuity within a tolerance of 5% and the stationary mileage to accept a valid charging fraction.
2.5 Selection of Charging Fragments
Comparing current and voltage profiles for charging and discharging reveals that charging currents are much more stable, as modern chargers apply multi-stage constant-current protocols. Discharging current varies rapidly due to driver accelerations and decelerations, making accurate coulomb counting difficult. Thus, I decided to use charging fragments to compute the battery capacity label. Moreover, because the SOC values provided by the BMS may be inaccurate, especially for lithium iron phosphate (LFP) cells near full charge, I restricted the analysis to a SOC range of 30%–90%. This range not only covers many realistic charging sessions but also avoids the nonlinear SOC-voltage region near the end of charge. To reduce cumulative errors in coulomb counting, I imposed the following conditions, shown in Table 3.
| Parameter | Condition |
|---|---|
| Rest time before charging | > 2 hours (to ensure OCV convergence) |
| Initial SOC | < 30% |
| Maximum search time | < 24 hours |
| Discharge during the charging segment | < 20% of nominal capacity |
These conditions strike a balance between capturing a wide group of charging behaviors and maintaining high accuracy in the integrated charge.
3. Capacity Calculation and Feature Engineering
3.1 Label Capacity from Inverse Ampere-Hour Integral
The battery capacity at a given time cannot be measured directly in an on-road vehicle. I estimate the label capacity \(Q_{\max}\) from a chosen charging fragment using the inverse form of the ampere-hour counting equation:
\[
SOC_{\mathrm{end}} = SOC_{\mathrm{start}} + \frac{1}{Q_{\max}} \int_{t_{\mathrm{start}}}^{t_{\mathrm{end}}} \eta I \, dt
\]
which leads to the discrete expression:
\[
Q_{\max} = \frac{\sum \eta I(t_k)\,\Delta t}{SOC_{\mathrm{end}}-SOC_{\mathrm{start}}}
\]
where \(\Delta t = 10\,\mathrm{s}\) is the sampling time, \(\eta\) is the Coulombic efficiency (taken as 1 for charging), and \(I\) is the charging current. Because the SOC difference \(\Delta SOC\) is computed from the BMS, which may have a level of uncertainty, I further reduce noise by assuming that the capacity remains almost constant within a single month. For each month, I select the maximum computed capacity as the true reference and assign that value to all fragments belonging to that month. This approach avoids the distortion caused by occasional SOC errors.
3.2 Outlier Detection for Capacity Values
Even after using the monthly maximum reference, the computed capacity values can contain outliers due to communication delays, missing data, or exceptional driving events. Figure in the original article shows a plot of label capacity versus mileage; some points deviate severely from the expected degradation trend. To eliminate such unreliable values, I applied a two-stage outlier detection algorithm:
First stage: Local Outlier Factor (LOF). LOF calculates the local density of a data point with respect to its \(k\)-nearest neighbors. A point whose local density is significantly lower than that of its neighbors is considered an outlier. For each point \(p\), the \(k\)-distance is \(d_k(p)\), the \(k\)-distance neighborhood \(N_k(p)\) is the set of points within \(d_k(p)\), and the reachability distance is defined as:
\[
\mathrm{reach}_{k}(p,o) = \max\{d_k(o), d(p,o)\}
\]
The local reachability density is inversely proportional to the average reachability distance:
\[
\mathrm{lrd}_k(p) = \frac{|N_k(p)|}{\sum_{o\in N_k(p)} \mathrm{reach}_k(p,o)}
\]
The local outlier factor is then:
\[
\mathrm{LOF}_k(p) = \frac{\sum_{o\in N_k(p)} \mathrm{lrd}_k(o)}{|N_k(p)|\,\mathrm{lrd}_k(p)}
\]
Values far above 1 indicate an anomaly.
Second stage: Rmoutliers using the 3-sigma rule. After removing LOF anomalies, I further applied a univariate outlier removal based on the mean and standard deviation of the remaining capacity distribution. A point was considered an outlier if it fell outside the interval \([\mu-3\sigma, \mu+3\sigma]\). This procedure successfully removed unreasonable capacity labels, as shown by the resulting capacity-vs-mileage trend that closely follows a monotonically decreasing pattern consistent with battery aging.
3.3 Selection of Features
I extracted a set of statistical features from each selected charging fragment. These include the average and standard deviation of pack voltage, current, maximum and minimum cell voltages, temperatures, and SOC changes. The rationale is that battery aging manifests itself through changes in voltage behavior, internal resistance, and thermal response. However, because there is no direct measurement of internal resistance or IC peaks in real data, I relied on statistical descriptors that are easily obtainable.
For each fragment, I computed features such as:
\[
\begin{aligned}
x_1 &= \text{average cumulative mileage},\\
x_2 &= \text{average pack voltage},\\
x_3 &= \text{standard deviation of pack current},\\
x_4 &= \text{standard deviation of maximum cell voltage},\\
x_5 &= \text{average SOC},\\
x_6 &= \text{maximum temperature difference},\\
&\ldots
\end{aligned}
\]
To ensure that extracted features are comparable across varying charging lengths, I fixed a voltage window that covers the majority of charging events. For ternary (NMC) batteries, the selected range of maximum cell voltage is from 3800 mV to 4000 mV. For lithium-ion phosphate (LFP) batteries, I used a range from 3350 mV to 3500 mV. This selection was based on an analysis of the maximum/minimum cell voltage distributions across all fragments. Figure 3.9 in the original work, which I do not reproduce here, demonstrates that this interval indeed captures almost every charging segment.
3.4 Quantitative Correlation Analysis
To identify the most relevant features and to avoid redundancy, I performed two independent correlation analyses between each feature and the label capacity.
Pearson correlation coefficient is defined as:
\[
r = \frac{\sum_{i=1}^{n}(X_i-\bar{X})(Y_i-\bar{Y})}
{\sqrt{\sum_{i=1}^{n}(X_i-\bar{X})^2}\sqrt{\sum_{i=1}^{n}(Y_i-\bar{Y})^2}}
\]
Grey relational analysis calculates the grey relational grade between a reference sequence \(X_0\) (SOH) and comparison sequences \(X_i\) (features). After normalization, the grey relational coefficient is:
\[
\zeta_i(k)=\frac{\min_i\min_k |X_0(k)-X_i(k)|+\rho \max_i\max_k |X_0(k)-X_i(k)|}
{|X_0(k)-X_i(k)|+\rho \max_i\max_k |X_0(k)-X_i(k)|}
\]
with \(\rho=0.5\). The final grade is the average over all \(k\). Table 4 presents the most significant features and their correlation ranks for one representative vehicle.
| Feature | Pearson correlation | Grey relational |
|---|---|---|
| mile_ave | -0.63 | 0.92 |
| Vpack_ave | 0.51 | 0.87 |
| I_std | 0.35 | 0.81 |
| Vmax_std | -0.32 | 0.79 |
| Tmax_std | -0.30 | 0.78 |
Features with Pearson coefficient \(>=0.3\) or grey relational grade \(>=0.8\) were considered strongly related to SOH. However, if two selected features had a correlation coefficient above 0.9, one of them was removed to reduce multicollinearity. The final optimal feature set for the representative vehicle consisted of the following four features: average cumulative mileage, average pack voltage, standard deviation of charging current, and standard deviation of maximum cell voltage. This set was used as the input vector for the subsequent SOH estimation models.
4. SOH Estimation Algorithms and Results
4.1 Machine Learning Methods
I evaluated three regression methods that are widely used for battery health estimation.
Multiple Linear Regression (MLR). MLR assumes a linear combination of the input features:
\[
y = \beta_0 + \beta_1 x_1 + \cdots + \beta_k x_k + \varepsilon
\]
The coefficients are obtained by minimizing the sum of squared residuals. MLR is simple and interpretable, but cannot capture non-linear degradation patterns.
Gaussian Process Regression (GPR). GPR is a non-parametric Bayesian method that places a Gaussian process prior over the latent function. Given training inputs \(X\), training targets \(y\), and a kernel function \(k(\mathbf{x}_i,\mathbf{x}_j)\), the predictive distribution at a test point \(\mathbf{x}_*\) is Gaussian:
\[
\mu_* = \mathbf{k}_*^\top (K + \sigma_n^2 I)^{-1}\mathbf{y}
\]
\[
\sigma_*^2 = k(\mathbf{x}_*,\mathbf{x}_*) – \mathbf{k}_*^\top (K + \sigma_n^2 I)^{-1}\mathbf{k}_*
\]
GPR provides a measure of uncertainty in its predictions, which is highly valuable for battery health management.
Support Vector Regression (SVR). SVR searches for a function \(f(x)\) that deviates from the observed targets by no more than \(\epsilon\), while being as flat as possible. In its dual formulation, the model becomes:
\[
f(\mathbf{x}) = \sum_{i=1}^{m} (\alpha_i – \alpha_i^*) \, k(\mathbf{x}_i,\mathbf{x}) + b
\]
where \(k(\cdot)\) is a kernel function. I used a radial basis function (RBF) kernel for SVR in this study.
4.2 Performance Metrics
To evaluate model accuracy, I use four metrics:
\[
\mathrm{MSE} = \frac{1}{n}\sum_{i=1}^{n}(y_i-\hat{y}_i)^2
\]
\[
\mathrm{RMSE} = \sqrt{\frac{1}{n}\sum_{i=1}^{n}(y_i-\hat{y}_i)^2}
\]
\[
\mathrm{MAE} = \frac{1}{n}\sum_{i=1}^{n}|y_i-\hat{y}_i|
\]
\[
\mathrm{MAPE} = \frac{100\%}{n}\sum_{i=1}^{n}\frac{|y_i-\hat{y}_i|}{|y_i|}
\]
4.3 Results for Vehicle A
I trained each model on 50% of the samples and tested the remaining 50%. Figure 4.5 (not shown here) plots the predicted SOH versus the true SOH for GPR. The prediction errors remain mostly below 0.05, with a few exceptions. The scatter plot near the \(y=x\) line indicates that GPR generally agrees well with the true values. The SVR and MLR models provide similarly accurate predictions, as evident from the errors plotted against sorted data indices. Table 5 summarizes the quantitative results for Vehicle A.
| Model | MSE (%) | RMSE (%) | MAE (%) | MAPE (%) |
|---|---|---|---|---|
| GPR | 0.09 | 2.92 | 1.87 | 2.08 |
| SVR | 0.08 | 2.77 | 1.76 | 1.97 |
| MLR | 0.06 | 2.89 | 1.93 | 2.15 |
All models achieve RMSE below 3%, demonstrating the effectiveness of the extracted features. MLR obtains the lowest MSE, while SVR shows the lowest RMSE and MAPE. The differences among the three models are small, suggesting that the relationship between the selected statistical features and SOH may be close to linear.
4.4 Validation on Other Vehicle Models
To verify the universality of my feature selection and estimation method, I selected four additional vehicle models (B, C, D, E) from the database. The same capacity calculation, outlier removal, feature extraction, and correlation filtering procedures were applied to each. The optimal feature set was generally composed of mileage, average pack voltage, current standard deviation, and cell voltage standard deviation. Table 6 reports the resulting MSE values, and Table 7 reports RMSE, MAPE, and MAE for all five vehicle models.
| Vehicle | GPR | SVR | MLR |
|---|---|---|---|
| A | 0.090 | 0.080 | 0.060 |
| B | 0.089 | 0.090 | 0.091 |
| C | 0.182 | 0.162 | 0.162 |
| D | 0.405 | 0.042 | 0.044 |
| E | 0.076 | 0.078 | 0.080 |
| Model | RMSE (%) | MAPE (%) | MAE (%) | ||||||
|---|---|---|---|---|---|---|---|---|---|
| GPR | SVR | MLR | GPR | SVR | MLR | GPR | SVR | MLR | |
| A | 2.92 | 2.77 | 2.89 | 2.08 | 1.97 | 2.15 | 1.87 | 1.76 | 1.93 |
| B | 4.05 | 4.09 | 4.15 | 3.89 | 3.91 | 3.98 | 3.34 | 3.36 | 3.42 |
| C | 2.27 | 2.03 | 2.02 | 1.77 | 1.63 | 1.61 | 1.66 | 1.53 | 1.52 |
| D | 4.06 | 4.22 | 4.40 | 3.56 | 3.66 | 3.93 | 2.98 | 3.05 | 3.29 |
| E | 4.48 | 4.58 | 4.69 | 3.93 | 3.98 | 4.28 | 3.29 | 3.35 | 3.59 |
For all vehicle types, the RMSE values are below 5%, and most are under 4%. The worst-case MAPE is 4.28%, which remains acceptable for practical BMS applications. These results confirm that the proposed feature extraction pipeline generalizes well to different vehicle models using the same voltage windows and outlier filtering criteria.
5. Speed Trajectory Optimization for Battery Aging Suppression
5.1 Motivation and Framework
After knowing the current SOH, one can actively slow down further degradation by controlling how the vehicle is driven. In urban stop-and-go traffic, the speed profile is often determined by the preceding vehicle. However, optimizing the velocity trajectory of an autonomous or connected vehicle can significantly affect battery stress. Frequent accelerations increase high discharge currents, while regenerative braking imposes additional charge cycles and contributes to battery aging. My goal is to derive, in real time, the optimal speed profile that minimizes the battery capacity fade over a short prediction horizon, subject to traffic safety constraints and vehicle dynamics.
5.2 Vehicle and Component Models
I use a longitudinal single-degree-of-freedom vehicle model. The forces acting on the vehicle are aerodynamic drag, rolling resistance, and grade resistance:
\[
F_{\mathrm{drag}} = \frac12 \rho_a C_d A_f v^2
\]
\[
F_{\mathrm{roll}} = C_r m g \cos\theta
\]
\[
F_{\mathrm{grade}} = m g \sin\theta
\]
The wheel torque balance gives:
\[
T_{\mathrm{whl}} = T_{\mathrm{em}} i_g + T_{\mathrm{brake}}
\]
where \(T_{\mathrm{em}}\) is the electric machine torque, \(i_g\) is the gear ratio, and \(T_{\mathrm{brake}}\) is the friction braking torque. The motor power depends on its operating mode. In traction mode:
\[
P_{\mathrm{em}} = \frac{i_g v T_{\mathrm{em}}}{r\,\eta(T_{\mathrm{em}},n)}
\]
and in regenerative braking mode:
\[
P_{\mathrm{em}} = \frac{i_g v T_{\mathrm{em}}\, \eta(T_{\mathrm{em}},n)}{r}
\]
where \(r\) is the wheel radius, and \(n\) is the motor speed. The battery is modeled by an equivalent circuit with open-circuit voltage \(U_{oc}\) and internal resistance \(R\). The relation between current and power is
\[
I = \frac{U_{oc} – \sqrt{U_{oc}^2 – 4R P_{\mathrm{em}}}}{2R}
\]
Then the SOC derivative is
\[
\frac{dz}{dt} = -\frac{I}{Q_{\mathrm{nom}}}
\]
5.3 Battery Capacity Fade Model
I adopt a capacity loss model based on active material loss. For a constant temperature, the capacity lost over a time interval \([t_1, t_N]\) is
\[
Q_{\mathrm{AM}} = \phi(T) \int_{t_1}^{t_N} z\,|I|\,dt
\]
where \(\phi(T)=k_{AM}\exp(-E_{AM}/(RT))\) is an Arrhenius-type temperature-dependent coefficient. For discrete control intervals of length \(\Delta t\), the capacity degradation at step \(i\) is derived as:
\[
\Delta Q_{AM,i} = \phi(T) \int_{t_i}^{t_{i+1}} z |I| dt = \frac{\phi(T) Q_{\mathrm{nom}}}{2} |\Delta z_i| (z_i+z_{i+1})
\]
where \(\Delta z_i = z_{i+1}-z_i\) and I used the trapezoidal rule. Summing over a horizon of \(N\) steps yields the objective function:
\[
J = \frac{\phi(T) Q_{\mathrm{nom}}}{2} \sum_{i=1}^{N} |\Delta z_i| (z_i+z_{i+1})
\]
5.4 State-Space Representation and MPC Formulation
The state vector is \(\mathbf{x}=[s, v, z]^\top\) (distance, speed, SOC). The control vector is \(\mathbf{u}=[T_{\mathrm{em}}, T_{\mathrm{brake}}]^\top\). The continuous-time state equations are:
\[
\dot{s} = v
\]
\[
\dot{v} = \frac{T_{em}i_g + T_{brake} – C_r m g \cos\theta – \frac12 \rho_a C_d A_f v^2 – m g\sin\theta}{m r}
\]
\[
\dot{z} = -\frac{U_{oc}-\sqrt{U_{oc}^2-4R P_{em}}}{2R Q_{nom}}
\]
I discretize these differential equations using the forward Euler method with sampling step \(\Delta t=1\,\mathrm{s}\). The optimization problem at each time step is:
\[
\min_{\mathbf{u}} \quad J(\mathbf{u})
\]
subject to:
\[
v_{min} \le v_{i} \le v_{max}, \quad i=1,\dots,N+1
\]
\[
a_{min} \le a_{i} \le a_{max}, \quad i=1,\dots,N
\]
\[
T_{em,min} \le T_{em,i} \le T_{em,max}
\]
\[
T_{brake,i} \le 0
\]
\[
d_{min} \le d_{i} \le d_{max} \quad \text{(when following a preceding vehicle)}
\]
\[
0 \le z_i \le 1
\]
The resulting nonlinear constrained optimization is solved by the sequential quadratic programming (SQP) method integrated in MATLAB’s `fmincon` routine. To achieve real-time performance, I embed the optimization into a Model Predictive Control (MPC) framework. At each sampling instant, the controller solves the optimal speed trajectory over a horizon of N steps, applies the first computed speed command, then shifts the horizon forward and repeats. The overall control structure is depicted in the original thesis; I summarize it here: the system takes the preceding vehicle’s velocity and the traffic signals as inputs, and computes a battery-friendly speed profile that satisfies safe distance constraints.
5.5 Simulation Setup
I simulated a Tesla Model 3 vehicle whose main parameters are listed in Table 8. The open-circuit voltage and internal resistance are assumed constant over short time intervals.
| Symbol | Value | Description |
|---|---|---|
| m | 1761 kg | Vehicle mass |
| r | 0.334 m | Wheel radius |
| \(U_{oc}\) | 400 V | Open-circuit voltage |
| \(Q_{nom}\) | 150 Ah | Battery nominal capacity |
| \(P_{max}\) | 202 kW | Maximum power |
| R | 0.0745 Ω | Battery internal resistance |
| \(A_f\) | 2.0 m² | Frontal area |
| \(C_d\) | 0.3 | Aerodynamic drag coefficient |
| \(C_r\) | 0.01 | Rolling resistance coefficient |
| \(\rho_a\) | 1.29 kg/m³ | Air density |
5.6 Single-Vehicle Optimization Results
First, I compared the optimized speed profile with a constant-speed driving strategy. Both cases cover 100 seconds of travel, with an average speed of 15 m/s. For the constant-speed case, the vehicle travels at exactly 15 m/s. For the optimized case, the controller is free to vary speed within a limited range while still reaching the same final distance. The optimized speed trajectory exhibits a sawtooth-like pattern around 15 m/s. During the early period, the vehicle accelerates slightly above the constant speed, causing a temporary increase in energy consumption and battery aging. In the subsequent intervals, however, the optimized trajectory reduces the battery discharge current by limiting unnecessary acceleration, and it uses friction braking instead of regenerative braking in order to reduce battery cycling. As a result, the optimized strategy reduces energy consumption by 9.70% and battery capacity fade by 10.33% compared with the constant-speed baseline.
5.7 Traffic-Flow Scenario
In a more realistic scenario, the target vehicle follows a preceding vehicle whose velocity is taken from the UDDS driving cycle. I remove zero-speed intervals because the model assumes continuous motion. The preceding vehicle’s velocity and acceleration profiles are shown in the original publication. The target vehicle must maintain a safe spacing between a minimum of 10 m and a maximum of 50 m.
I ran simulations with two prediction horizons: \(N=25\) and \(N=30\) seconds. The optimized velocity trajectories are displayed in Figure 5.10 of the thesis; the target vehicle tends to anticipate the preceding vehicle’s slowing and thus decelerates earlier and more smoothly. This avoids intense regenerative-braking events. The motor torque curves show fewer sign changes, indicating reduced charge-discharge reversals. The vehicle accelerations stay well within comfort limits, and the friction braking usage is higher for the target vehicle because the controller intentionally avoids using regenerative braking when possible.
Figure 5.13 in the original work shows the cumulative battery capacity fade over the whole simulation. The target vehicle is consistently lower than the preceding vehicle for both N values. When \(N=30\), the reduction in capacity fade reaches 33.02% compared with the preceding vehicle, though the energy consumption increases by 18.80%. This trade-off is because using friction brakes dissipates kinetic energy as heat rather than feeding it back to the battery. Table 9 reports the optimization CPU time and the relative changes for N=25 and N=30.
| Horizon N | Computing time (s) | Capacity fade reduction vs. preceding vehicle | Energy consumption change vs. preceding vehicle |
|---|---|---|---|
| 25 | 0.92 | 20.78% | -20.48% |
| 30 | 0.95 | 33.02% | -18.80% |
Here, negative percentage for energy consumption means the target vehicle consumes more energy than the preceding vehicle. The MPC computation time is less than one second, satisfying the real-time requirement. Table 10 compares the absolute capacity fade and energy consumption for N=25, 30, 35, and 40.
| N | Capacity fade (Ah equivalent) | Energy consumption (kWh) |
|---|---|---|
| 25 | 2.8991e-5 | 1.1874e-2 |
| 30 | 2.4510e-5 | 1.1628e-2 |
| 35 | 2.4150e-5 | 1.1516e-2 |
| 40 | 2.4110e-5 | 1.1498e-2 |
Longer horizons allow the optimizer to better coordinate acceleration and braking phases, thereby further reducing capacity fade. However, the computational cost increases with N: 1.05 s for N=35 and 1.36 s for N=40, which exceeds the sampling period of 1 s and may not meet real-time constraints. Therefore, \(N=30\) provides a good balance between aging suppression and online feasibility.
6. Conclusion and outlook
In this thesis, I developed a robust framework for estimating the state of health of vehicle traction batteries using real-world charging data, and I introduced a velocity planning algorithm that can actively suppress battery aging. The main conclusions are summarised as follows.
First, a capacity calculation method based on inverse ampere-hour integration was established for fragmented charging data. The monthly maximum capacity was adopted as a reference, and a two-stage outlier detection algorithm (LOF and Rmoutliers) was employed to eliminate unrealistic values. This procedure produced clean capacity labels that decrease correctly with mileage.
Second, a feature engineering procedure was designed to extract statistical features from fixed voltage intervals. Through Pearson correlation and grey relational analysis, the optimal features were determined to be the average mileage, average pack voltage, standard deviation of charging current, and standard deviation of maximum cell voltage. This optimal feature set was consistent across several vehicle models.
Third, using the selected features, three machine learning models (GPR, SVR, and MLR) were trained to predict SOH. For the representative vehicle A, all three models achieved RMSE lower than 2.95%, with SVR performing best. When applied to four additional vehicle models, the RMSE remained under 4.7%, and the MAPE was below 4.3%, demonstrating that the proposed pipeline is general and practical.
Fourth, an MPC-based speed optimization algorithm was proposed to minimize battery capacity fade. The algorithm uses a physics-based battery degradation model embedded in the vehicle optimization. Simulation results showed that for a single vehicle, the optimized speed profile can reduce energy consumption by 9.70% and battery capacity loss by 10.33% relative to constant-speed driving. In a car-following scenario, the target vehicle can reduce its battery capacity fade by up to 33.02% compared with the preceding vehicle if the prediction horizon is 30 seconds, while remaining within the safe distance limits and real-time computational constraints.
Future work could improve the current framework in several directions. The capacity label accuracy can be enhanced by fusing discharge data with advanced SOC correction techniques. The battery degradation model could incorporate more mechanistically explicit terms such as SEI growth and lithium plating. In addition, the speed optimization can be extended to a multi-vehicle connected environment where energy consumption and battery aging are jointly optimized with a trade-off weight. Finally, the feasibility of the proposed algorithms should be verified on a real vehicle or a high-fidelity hardware-in-the-loop test bench.
