EIS-Based Temperature Estimation for Li-ion Batteries

I investigate the problem of accurate temperature monitoring for Li-ion battery systems when hardware constraints prevent the installation of physical temperature sensors on every cell. The Li-ion battery has become a central energy-storage device because of its high energy density, long cycle life, low self-discharge, and absence of memory effect. These properties make the Li-ion battery suitable for mobile electronics, electric vehicles, grid-scale energy storage, distributed photovoltaic support, and charging infrastructure. However, the performance, safety, and lifetime of a Li-ion battery are strongly influenced by temperature. A high temperature can accelerate aging, increase internal resistance, degrade the solid electrolyte interphase, and even initiate thermal runaway. A low temperature can reduce ionic conductivity, increase charge-transfer resistance, and limit available capacity. Therefore, reliable temperature estimation is essential for the safe and efficient operation of any Li-ion battery management system.

My approach is based on electrochemical impedance spectroscopy, commonly abbreviated as EIS. Instead of relying only on surface thermistors, I extract temperature-sensitive features from the impedance response of a Li-ion battery and use a machine-learning model to estimate temperature. The proposed method combines Pearson correlation coefficient analysis, extreme gradient boosting, and a dung beetle optimizer. I use EIS because it is non-invasive, relatively fast at selected frequencies, and rich in information about electrochemical processes inside the Li-ion battery. The final model uses a small set of impedance features and provides an average estimation error of about 1.21% on the validation dataset.

1. Motivation and Background

Temperature is one of the most important state variables in a Li-ion battery. It affects reaction kinetics, electrolyte conductivity, solid-state diffusion, charge-transfer resistance, and aging trajectories. In a large Li-ion battery pack, cells are connected electrically and thermally, but they are not necessarily identical. Manufacturing variation, cooling-channel design, contact resistance, and local current distribution can create temperature gradients. If only a few cells are instrumented with temperature sensors, the unmeasured Li-ion battery cells may operate outside their safe temperature range without detection.

Direct temperature measurement methods include embedded thermocouples and fiber Bragg grating sensors. These methods can provide accurate local measurements, but they require internal integration, careful placement, and robust packaging. Their readings can be affected by sensor location, contact pressure, thermal interface material thickness, and long-term drift. In practical Li-ion battery packs, it is difficult and costly to embed sensors in every cell.

Model-based temperature estimation methods use electrochemical, thermal, or coupled electrothermal models. These methods can be physically interpretable, but they often require extensive parameter identification, boundary-condition calibration, and computational resources. A reduced-order model may work well under specific conditions, but its accuracy can degrade when the Li-ion battery ages or when the operating profile changes.

Data-driven temperature estimation methods learn a mapping from measurable signals to temperature. They can handle complex nonlinear relationships and can be trained on experimental data. However, a purely data-driven Li-ion battery model may require large datasets, may lack physical interpretability, and may not extrapolate well outside the training domain. My goal is to combine the physical sensitivity of EIS with the flexibility of a data-driven model while keeping the input feature set compact and interpretable.

The proposed framework can be summarized as follows:

Stage Method Purpose
EIS measurement Frequency-domain impedance acquisition Collect real part, imaginary part, magnitude, and phase of the Li-ion battery impedance
Correlation analysis Pearson correlation coefficient Identify EIS features that are strongly related to temperature and weakly coupled to SOC and aging
Feature extraction Selected frequency-point impedance components Build a compact input vector for Li-ion battery temperature estimation
Model construction XGBoost regression Learn the nonlinear mapping from EIS features to Li-ion battery temperature
Hyperparameter optimization Dung beetle optimizer Improve fitting accuracy and generalization of the Li-ion battery temperature model
Validation RMSE, MAE, MBE, and R² Quantify the accuracy and robustness of the proposed Li-ion battery temperature estimator

2. EIS Fundamentals for Li-ion Battery Analysis

Electrochemical impedance spectroscopy measures the complex impedance of a Li-ion battery over a range of frequencies. A small sinusoidal excitation is applied, and the resulting current or voltage response is analyzed. The impedance is a complex quantity:

$$Z(\omega)=\frac{V(\omega)}{I(\omega)}=Z_{\text{real}}(\omega)+jZ_{\text{imag}}(\omega)$$

where \(Z_{\text{real}}\) is the real part, \(Z_{\text{imag}}\) is the imaginary part, \(\omega=2\pi f\) is the angular frequency, and \(j\) is the imaginary unit. The magnitude and phase are defined as:

$$|Z(\omega)|=\sqrt{Z_{\text{real}}^2(\omega)+Z_{\text{imag}}^2(\omega)}$$

$$\phi(\omega)=\arctan\left(\frac{Z_{\text{imag}}(\omega)}{Z_{\text{real}}(\omega)}\right)$$

For a Li-ion battery, different frequency ranges correspond to different electrochemical processes. I summarize the physical interpretation in the following table.

Frequency region Dominant process in Li-ion battery Typical equivalent-circuit interpretation Temperature sensitivity
High frequency Ionic conduction in electrolyte and electronic conduction in current collectors Series resistance and inductance Moderate to high because electrolyte conductivity depends on temperature
Medium frequency Charge transfer at electrode-electrolyte interface and ion migration through SEI film RQ parallel elements or depressed semicircles High because charge-transfer resistance is thermally activated
Low frequency Solid-state diffusion inside active particles Warburg impedance Moderate, but also influenced by SOC

For a Li-ion battery, the EIS curve is influenced by state of charge, state of health, and temperature. I observed that the low-frequency region is more sensitive to SOC, especially below 10 Hz. The medium-frequency semicircle and high-frequency intercept are more sensitive to aging and temperature. As the Li-ion battery ages, the semicircle radius tends to increase, and the overall curve shifts to the right. As temperature increases, the impedance generally decreases, the semicircle shrinks, and the phase behavior changes.

This frequency-dependent sensitivity is the foundation of my feature-selection strategy. I do not use the entire EIS spectrum as a high-dimensional input. Instead, I identify a few frequency points where the Li-ion battery impedance is strongly correlated with temperature and less affected by SOC and cycle number. This reduces model complexity and improves robustness.

3. Correlation Analysis and Feature Extraction

I use the Pearson correlation coefficient to quantify the linear relationship between each EIS feature and three variables: SOC, cycle number, and temperature. The Pearson correlation coefficient between two variables \(X\) and \(Y\) is:

$$PCC=\frac{\text{Cov}(X,Y)}{\sigma_X\sigma_Y}$$

Equivalently, for \(N\) samples:

$$PCC=\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}}$$

The value of PCC lies between \(-1\) and \(1\). A value close to \(1\) indicates a strong positive correlation, a value close to \(-1\) indicates a strong negative correlation, and a value close to \(0\) indicates weak linear correlation. I evaluate the real part, imaginary part, magnitude, and phase at multiple frequencies. The goal is to find EIS features that satisfy two conditions:

$$|PCC_{\text{feature, temperature}}|\geq 0.95$$

$$|PCC_{\text{feature, SOC}}|<0.75$$

$$|PCC_{\text{feature, cycle number}}|<0.75$$

In other words, I want features that are highly sensitive to Li-ion battery temperature but not strongly confounded by SOC or aging. I summarize the qualitative correlation behavior in the next table.

EIS quantity Correlation with SOC Correlation with cycle number Correlation with temperature Feature suitability
Real part at low frequency Very strong Strong Strong Poor because of SOC and aging coupling
Magnitude at low frequency Very strong Strong Strong Poor because of SOC and aging coupling
Imaginary part at medium frequency Moderate to weak Moderate to weak Very strong Excellent for Li-ion battery temperature estimation
Phase at medium frequency Moderate to weak Moderate to weak Very strong Excellent for Li-ion battery temperature estimation
High-frequency real part Moderate Strong Strong Useful but aging-sensitive

From my analysis, the frequency range around 300 Hz to 1000 Hz is particularly informative. In this range, the imaginary part and phase of the Li-ion battery impedance are weakly correlated with SOC and cycle number, while remaining highly correlated with temperature. Specifically, the frequency points 794.3 Hz and 398.1 Hz provide strong temperature correlation with reduced confounding. I therefore select impedance components at these two frequencies as the core features.

The input feature vector can be written as:

$$x_i=\left[Z_{\text{real},1},Z_{\text{imag},1},Z_{\text{real},2},Z_{\text{imag},2}\right]$$

where the subscripts 1 and 2 denote the selected frequency points. In my implementation, I use the real and imaginary parts at 794.3 Hz and 398.1 Hz. The phase information is used during correlation screening and can be incorporated as an equivalent feature because phase and imaginary part are related through the real part. The model output is the estimated Li-ion battery temperature:

$$y_i=T_{\text{Li-ion battery},i}$$

This four-input, one-output structure keeps the model small enough for practical implementation while retaining the essential temperature information in the Li-ion battery impedance.

Candidate frequency Selected quantity Correlation with SOC Correlation with cycle number Correlation with temperature Decision
794.3 Hz Real part Low Low Very high Selected
794.3 Hz Imaginary part Low Low Very high Selected
398.1 Hz Real part Low Low Very high Selected
398.1 Hz Imaginary part Low Low Very high Selected
10 Hz to 100 Hz Real part High Moderate High Rejected
Below 10 Hz Magnitude Very high High Moderate Rejected

4. XGBoost Model for Li-ion Battery Temperature Estimation

After feature extraction, I use extreme gradient boosting, or XGBoost, to learn the mapping from EIS features to Li-ion battery temperature. XGBoost is an ensemble learning method based on gradient-boosted decision trees. It builds trees sequentially, and each new tree fits the residual of the previous ensemble. This makes XGBoost effective for nonlinear regression problems with moderate-sized datasets, which is common in Li-ion battery experiments.

For a dataset:

$$D=\{(x_i,y_i)\}_{i=1}^{n}$$

where \(x_i\) is the EIS feature vector and \(y_i\) is the measured Li-ion battery temperature, the prediction of an ensemble of \(M\) trees is:

$$\hat{y}_i=F(x_i)=\sum_{m=1}^{M}f(x_i;\theta_m)$$

Here, \(f(x_i;\theta_m)\) is the \(m\)-th regression tree and \(\theta_m\) represents its parameters. The objective function combines a loss term and a regularization term:

$$\min L=\sum_{i=1}^{n}l(y_i,\hat{y}_i)+\sum_{m=1}^{M}\Omega(f_m)$$

$$\Omega(f_m)=\gamma T+\frac{1}{2}\lambda\|\omega\|^2$$

where \(l\) is the loss function, \(\Omega(f_m)\) is the regularization term, \(\gamma\) controls the complexity penalty per leaf, \(T\) is the number of leaves, \(\lambda\) controls the regularization strength, and \(\omega\) is the leaf weight. The regularization term is important for a Li-ion battery temperature model because it reduces overfitting when experimental data are limited.

At iteration \(m\), the prediction is updated additively:

$$\hat{y}_i^{(m)}=\hat{y}_i^{(m-1)}+f_m(x_i)$$

The corresponding objective is:

$$L^{(m)}=\sum_{i=1}^{n}l\left(y_i,\hat{y}_i^{(m-1)}+f_m(x_i)\right)+\Omega(f_m)$$

Using a second-order Taylor expansion, I approximate the objective as:

$$L^{(m)}\approx\sum_{i=1}^{n}\left[l(y_i,\hat{y}_i^{(m-1)})+g_i f_m(x_i)+\frac{1}{2}h_i f_m^2(x_i)\right]+\Omega(f_m)$$

where \(g_i\) and \(h_i\) are the first and second derivatives of the loss function with respect to the previous prediction. After the maximum number of iterations \(M_{\max}\), the final Li-ion battery temperature estimate is:

$$\hat{y}_i^{(M_{\max})}=F_{M_{\max}}(x_i)=\sum_{m=1}^{M_{\max}}f(x_i;\theta_m)$$

XGBoost has several hyperparameters that must be set before training. These hyperparameters strongly influence the bias-variance tradeoff of the Li-ion battery temperature estimator. I list the main hyperparameters and their search ranges in the following table.

Hyperparameter Meaning Search range Effect on Li-ion battery temperature model
Number of trees Number of boosting iterations Integer, typically 50 to 200 More trees can improve learning but may overfit
Maximum depth Maximum depth of each regression tree Integer, typically 4 to 8 Controls nonlinearity and interaction order
Learning rate Step-size shrinkage for each tree 0 to 0.5 Smaller values are more stable but require more trees
Minimum child weight Minimum sum of instance weight in a child node 0 to 5 Larger values reduce overfitting
Subsample Fraction of samples used per tree 0.5 to 1.0 Smaller values increase randomness and reduce variance
Column sample by tree Fraction of features used per tree 0.5 to 1.0 Controls feature-level randomness

Because these hyperparameters interact nonlinearly, manual tuning is time-consuming and may not find the global optimum. I therefore introduce a metaheuristic optimizer to tune the XGBoost model for Li-ion battery temperature estimation.

5. Dung Beetle Optimizer for Hyperparameter Tuning

I use the dung beetle optimizer, or DBO, to search for the optimal XGBoost hyperparameters. DBO is inspired by five behavioral patterns of dung beetles: rolling, dancing, breeding, foraging, and stealing. These behaviors create a balance between exploration and exploitation in the search space. For my Li-ion battery temperature estimation problem, each candidate solution represents a complete XGBoost hyperparameter set.

The fitness function is the root mean square error of the Li-ion battery temperature estimate:

$$\text{fitness}=\text{RMSE}$$

A smaller fitness value indicates a better hyperparameter combination. The DBO algorithm updates candidate solutions according to the following behavioral rules.

5.1 Rolling Behavior

When a dung beetle rolls a ball without obstacles, its position is updated as:

$$x_i^{t+1}=x_i^t+\alpha k x_i^{t-1}+b\left|x_i^t-x_{\text{worst}}^t\right|$$

where \(x_i^t\) is the current candidate hyperparameter set, \(x_{\text{worst}}^t\) is the worst position in the current iteration, \(\alpha\) is a natural deflection coefficient equal to \(1\) or \(-1\), \(k\) is a deflection parameter in \((0,0.2]\), and \(b\) is a constant in \((0,1)\). This behavior supports global exploration of the hyperparameter space for the Li-ion battery temperature model.

5.2 Dancing Behavior

When the path is blocked, the dung beetle dances to find a new direction:

$$x_i^{t+1}=x_i^t+\tan(\theta)\left|x_i^t-x_i^{t-1}\right|$$

where \(\theta\in[0,\pi]\). The tangent term introduces a stochastic directional change. This helps the optimizer avoid local minima when tuning the Li-ion battery temperature model.

5.3 Breeding Behavior

Female dung beetles choose a safe spawning area. The lower and upper boundaries of this area are:

$$Lb^*=\max\left\{x_{\text{gbest}}^t(1-R),Lb\right\}$$

$$Ub^*=\min\left\{x_{\text{gbest}}^t(1+R),Ub\right\}$$

where \(R=1-t/T\), \(T\) is the maximum number of iterations, \(x_{\text{gbest}}^t\) is the current global best position, and \(Lb\) and \(Ub\) are the global lower and upper bounds. This behavior concentrates the search around promising hyperparameter regions.

5.4 Foraging Behavior

The foraging boundaries are defined around the local best position:

$$Lb’=\max\left\{x_{\text{lbest}}^t(1-R),Lb\right\}$$

$$Ub’=\min\left\{x_{\text{lbest}}^t(1+R),Ub\right\}$$

The position update for foraging is:

$$x_i^{t+1}=x_i^t+C_1\left(x_i^t-Lb’\right)+C_2\left(x_i^t-Ub’\right)$$

where \(C_1\) and \(C_2\) are random numbers following a normal distribution in \((0,1)\). This step refines the search around the best-known Li-ion battery temperature model configurations.

5.5 Stealing Behavior

Some dung beetles steal food from others. The corresponding position update is:

$$x_i^{t+1}=x_{\text{lbest}}^t+S g\left(\left|x_i^t-x_{\text{gbest}}^t\right|+\left|x_i^t-x_{\text{lbest}}^t\right|\right)$$

where \(g\) is a random vector following a normal distribution and \(S\) is a constant. This behavior increases diversity and helps the optimizer escape local optima.

After the DBO iterations, the global best solution \(x_{\text{gbest}}\) is used as the XGBoost hyperparameter set. The overall procedure for Li-ion battery temperature estimation is summarized below.

Step Operation Output
1 Measure EIS data for Li-ion battery cells under different temperatures, SOC levels, and aging states Raw impedance spectra
2 Compute PCC between EIS quantities and temperature, SOC, and cycle number Correlation ranking
3 Select frequency points and impedance components with high temperature sensitivity and low confounding Feature vector \(x_i\)
4 Split data into training, validation, and test sets Data partitions
5 Initialize DBO population of XGBoost hyperparameter sets Candidate solutions
6 Train XGBoost with each candidate set and evaluate RMSE Fitness values
7 Update positions using rolling, dancing, breeding, foraging, and stealing New candidate solutions
8 Select the best hyperparameter set Optimized DBO-XGBoost model
9 Estimate Li-ion battery temperature on the test set Final temperature predictions

6. Experimental Setup and Evaluation Metrics

I validated the proposed method using a cylindrical Li-ion battery cell. The cell chemistry was ternary material, and the nominal parameters are listed below. These parameters define the operating envelope of the Li-ion battery during the EIS measurements and temperature estimation experiments.

Parameter Value
Cell type Cylindrical Li-ion battery
Nominal voltage 3.65 V
Nominal capacity at 0.2 C 2.6 Ah
Charge cutoff voltage 4.2 V
Discharge cutoff voltage 2.75 V
Standard discharge current 1 C
Maximum discharge current 3 C
Charging temperature range 0 to 50 °C
Discharging temperature range −20 to 60 °C

I used a battery test system to charge and discharge the Li-ion battery and to record voltage and current. A temperature recorder monitored the environmental temperature, and a thermal chamber provided a controlled ambient temperature. The measurement equipment and their roles are summarized in the following table.

Equipment Function Relevant specification
Battery test system Charge and discharge the Li-ion battery; record voltage and current Full-scale voltage and current accuracy about ±0.05%
Temperature recorder Monitor ambient and reference temperature Range −270 to 400 °C; accuracy ±0.1 °C
Thermal chamber Provide constant environmental temperature for the Li-ion battery Range −50 to 150 °C; deviation ±2 °C

For each Li-ion battery condition, I collected EIS data over a wide frequency range. The data include frequency, real impedance, and imaginary impedance. I then computed magnitude and phase and performed correlation analysis. The dataset was divided into a training set and a test set with an 8:2 ratio. The training set was further divided using 5-fold cross-validation for hyperparameter optimization and model validation.

I use four metrics to evaluate the Li-ion battery temperature estimation performance. The root mean square error is:

$$\text{RMSE}=\sqrt{\frac{1}{N}\sum_{i=1}^{N}\left(\hat{Y}_i-Y_i\right)^2}$$

The mean absolute error is:

$$\text{MAE}=\frac{1}{N}\sum_{i=1}^{N}\left|\hat{Y}_i-Y_i\right|$$

The mean bias error is:

$$\text{MBE}=\frac{1}{N}\sum_{i=1}^{N}\left(\hat{Y}_i-Y_i\right)$$

The coefficient of determination is:

$$R^2=1-\frac{\sum_{i=1}^{N}\left(\hat{Y}_i-Y_i\right)^2}{\sum_{i=1}^{N}\left(Y_i-\bar{Y}\right)^2}$$

In these equations, \(N\) is the number of test samples, \(\hat{Y}_i\) is the estimated Li-ion battery temperature, \(Y_i\) is the measured temperature, and \(\bar{Y}\) is the mean measured temperature. RMSE and MAE measure absolute error magnitude, MBE measures systematic bias, and \(R^2\) measures how well the model explains the variance of the Li-ion battery temperature data.

7. Hyperparameter Optimization Results

I set the DBO population size to 10 and the maximum number of iterations to 100. The fitness value converged in fewer than 20 iterations, which indicates that DBO can efficiently search the hyperparameter space for the Li-ion battery temperature model. The optimized XGBoost hyperparameters are listed below.

Hyperparameter Search range Optimized value
Number of trees 50 to 200, integer 182
Maximum depth 4 to 8, integer 4
Learning rate (0, 0.5] 0.028249
Minimum child weight (0, 5] 3.282668
Subsample [0.5, 1] 0.483561
Column sample by tree [0.5, 1] 0.873652

The optimized learning rate is relatively small, while the number of trees is moderately large. This combination allows the Li-ion battery temperature model to learn slowly and stably. The maximum depth is four, which limits tree complexity and helps prevent overfitting. The subsample ratio is slightly below 0.5 in the recorded optimization output, which introduces useful randomness into the ensemble. The column sample ratio is close to 0.87, meaning that most of the four input features are used by each tree. Because the feature set is already compact, a high column sampling rate is reasonable.

8. Temperature Estimation Results and Comparison

I compared the proposed DBO-XGBoost model with three alternatives: a particle swarm optimization XGBoost model, a standard XGBoost model without metaheuristic tuning, and a random forest model. All models used the same EIS features and the same data split. The comparison is shown in the following table.

Model RMSE (°C) MAE (°C) MBE (°C) R²
DBO-XGBoost 1.43 1.19 −0.14 0.97
PSO-XGBoost 1.58 1.15 −0.14 0.96
XGBoost 1.75 1.09 −0.12 0.96
Random forest 2.80 2.15 −0.37 0.90

The DBO-XGBoost model achieved the lowest RMSE and the highest \(R^2\) among the four methods. Compared with PSO-XGBoost, standard XGBoost, and random forest, the RMSE of the proposed Li-ion battery temperature estimator was reduced by approximately 9.4%, 18.3%, and 48.9%, respectively. Although the MAE of the standard XGBoost model was slightly lower in this particular split, its RMSE was higher, indicating larger maximum errors. For Li-ion battery safety monitoring, reducing large errors is more important than minimizing average absolute error alone.

To reduce the influence of random data splitting and random initialization, I repeated the training and validation ten times while keeping the model structure and data allocation ratio unchanged. The maximum, minimum, and average metrics from these ten experiments are summarized below.

Model Metric Maximum Minimum Average
DBO-XGBoost RMSE (°C) 1.75 1.26 1.54
DBO-XGBoost MAE (°C) 1.42 1.07 1.21
DBO-XGBoost MBE (°C) −0.07 −0.79 −0.28
DBO-XGBoost R² 0.98 0.96 0.97
PSO-XGBoost RMSE (°C) 2.05 1.51 1.72
PSO-XGBoost MAE (°C) 1.46 1.11 1.26
PSO-XGBoost MBE (°C) −0.03 −0.24 −0.10
PSO-XGBoost R² 0.97 0.94 0.96
XGBoost RMSE (°C) 2.18 1.75 1.94
XGBoost MAE (°C) 1.58 1.09 1.34
XGBoost MBE (°C) 0.01 −0.15 −0.08
XGBoost R² 0.96 0.94 0.95
Random forest RMSE (°C) 2.83 2.64 2.75
Random forest MAE (°C) 2.20 2.05 2.11
Random forest MBE (°C) −0.30 −0.42 −0.37
Random forest R² 0.91 0.89 0.90

Across ten repeated experiments, the proposed DBO-XGBoost Li-ion battery temperature estimator achieved the best average RMSE, MAE, and \(R^2\). The RMSE ranged from 1.26 °C to 1.75 °C, and the average estimation error reached 1.21%. The PSO-XGBoost and standard XGBoost models sometimes produced RMSE values above 2 °C, while the random forest model never reduced RMSE below 2.64 °C. This confirms that both XGBoost and metaheuristic tuning are beneficial, and that DBO provides a stronger hyperparameter search for this Li-ion battery temperature estimation task.

9. Discussion

The results show that EIS-based features can provide reliable temperature information for a Li-ion battery without direct internal temperature sensors. The key is to select features that are sensitive to temperature but not overly sensitive to SOC or aging. My correlation analysis indicates that the medium-frequency region is especially useful. At 794.3 Hz and 398.1 Hz, the real and imaginary impedance components contain strong temperature information while maintaining acceptable independence from SOC and cycle number.

There are several reasons why the DBO-XGBoost model performs well for Li-ion battery temperature estimation. First, XGBoost can model nonlinear interactions among impedance features. The relationship between impedance and temperature is not purely linear because electrolyte conductivity, charge-transfer kinetics, and diffusion all have different temperature dependencies. Second, the regularization term in XGBoost controls model complexity. Third, DBO searches the hyperparameter space more effectively than manual tuning or simple grid search. The optimized model uses a small learning rate and a moderate number of trees, which produces stable learning and good generalization.

However, I also recognize several limitations. EIS measurements require additional hardware or periodic excitation, which may not be available in all Li-ion battery management systems. The feature frequencies may shift slightly with cell chemistry, form factor, and electrode design. The model must be retrained or recalibrated when the Li-ion battery chemistry changes significantly. In addition, the method estimates a representative cell temperature rather than a full spatial temperature distribution. If a large Li-ion battery pack has strong thermal gradients, multiple representative cells or a thermal model may still be needed.

Despite these limitations, the proposed method offers a practical compromise. It avoids the cost of covering every Li-ion battery cell with a temperature sensor, it uses a compact and interpretable feature set, and it achieves low estimation error. The method can be integrated into a battery management system as a virtual temperature sensor for unmeasured Li-ion battery cells. It can also be used for cross-checking physical sensors and detecting sensor faults.

10. Practical Implementation Considerations

For practical deployment, I would implement the proposed Li-ion battery temperature estimator in several stages. First, during commissioning, EIS data should be collected at several controlled temperatures, SOC levels, and aging states. The PCC analysis should then be repeated to confirm the selected frequencies for the specific Li-ion battery cell. Second, the DBO-XGBoost model should be trained offline and validated using held-out data. Third, the trained model should be embedded in the battery management system with a fixed feature extraction routine. The feature extraction only needs the real and imaginary impedance at two frequencies, which reduces computational load.

Implementation stage Action Benefit for Li-ion battery monitoring
Commissioning Collect EIS data over temperature, SOC, and aging conditions Ensures feature frequencies are valid for the target Li-ion battery
Offline training Optimize XGBoost hyperparameters with DBO Maximizes accuracy and generalization
Embedded deployment Extract two-frequency impedance components and run the regression model Provides virtual temperature sensing for unmeasured Li-ion battery cells
Online monitoring Compare estimated and measured temperatures Detects sensor faults and thermal anomalies
Periodic recalibration Update the model after significant aging Maintains accuracy throughout the Li-ion battery lifetime

I also note that the excitation signal for EIS should not disturb normal operation. Small-amplitude excitation is preferred. In a large Li-ion battery pack, EIS measurements may be multiplexed across cells if the hardware supports it. Alternatively, a small number of representative cells can be instrumented for EIS, and the trained model can infer the temperature of similar cells. This hybrid strategy can reduce hardware cost while preserving safety coverage.

11. Summary of Contributions

My main contributions can be summarized as follows. I analyze the temperature, SOC, and aging sensitivity of EIS features for a Li-ion battery. I use Pearson correlation to select a compact feature set at frequencies where temperature sensitivity is high and confounding effects are low. I construct an XGBoost regression model for Li-ion battery temperature estimation. I apply a dung beetle optimizer to tune the XGBoost hyperparameters globally. I validate the method on experimental data and compare it with PSO-XGBoost, standard XGBoost, and random forest models. The proposed DBO-XGBoost Li-ion battery temperature estimator achieves an average estimation error of about 1.21% and provides better RMSE and \(R^2\) than the alternatives.

Contribution Method Result
Temperature-sensitive feature extraction PCC analysis of EIS real, imaginary, magnitude, and phase Selected impedance components at 794.3 Hz and 398.1 Hz
Nonlinear temperature modeling XGBoost regression Four-input, one-output Li-ion battery temperature model
Hyperparameter optimization Dung beetle optimizer with RMSE fitness Optimized tree number, depth, learning rate, and sampling ratios
Validation Ten repeated experiments and model comparison Average error about 1.21%; best RMSE and \(R^2\) among tested models

12. Conclusion

I have presented an EIS-based method for Li-ion battery temperature estimation. The method addresses the practical problem that physical temperature sensors cannot cover every cell in a Li-ion battery pack. By analyzing the correlation between EIS features and temperature, SOC, and cycle number, I selected a small set of impedance features that are strongly related to temperature and weakly affected by SOC and aging. I used XGBoost to learn the nonlinear mapping from these features to Li-ion battery temperature. I further used a dung beetle optimizer to tune the XGBoost hyperparameters, which improved fitting accuracy and generalization. Experimental validation showed that the proposed DBO-XGBoost Li-ion battery temperature estimator achieved an average estimation error of about 1.21%. Compared with PSO-XGBoost, standard XGBoost, and random forest models, the proposed method achieved lower RMSE and higher \(R^2\). The results indicate that EIS-based virtual temperature sensing is a promising approach for safe, efficient, and cost-effective Li-ion battery management. Future work can extend the method to different Li-ion battery chemistries, larger packs, and online adaptive recalibration under long-term aging.

Scroll to Top