EIS-Based Temperature Estimation for Lithium-Ion Cells

I have focused my recent research on accurate and scalable temperature monitoring for lithium-ion cells because temperature is one of the most influential state variables in lithium-ion cell operation. In electric vehicles, grid-scale energy storage, and portable electronics, the lithium-ion cell is the core electrochemical unit. Under the global push for carbon neutrality, the deployment of lithium-ion cell systems has expanded rapidly, and the safety, efficiency, and lifetime of these systems depend strongly on thermal conditions. A lithium-ion cell that operates at elevated temperature may experience accelerated aging, increased internal resistance, and even thermal runaway. Conversely, a lithium-ion cell that operates at low temperature may suffer from reduced capacity, poor rate capability, and lithium plating. Therefore, reliable temperature information for every lithium-ion cell is essential for battery management systems.

In practical battery packs, however, hardware constraints prevent temperature sensors from covering every lithium-ion cell. A conventional pack may contain dozens or hundreds of lithium-ion cells, while only a limited number of thermistors are installed. The measured temperature of a few lithium-ion cells may not represent the temperature of neighboring lithium-ion cells, especially under fast charging, high-rate discharging, or non-uniform cooling. This mismatch creates blind spots in thermal monitoring and increases the risk of local overheating. I therefore propose a method that estimates the temperature of a lithium-ion cell from electrochemical impedance spectroscopy (EIS) features, without requiring a dedicated temperature sensor on each lithium-ion cell.

Existing temperature estimation methods for lithium-ion cells can be grouped into three categories: direct measurement, model-based estimation, and data-driven estimation. Direct measurement places thermocouples or fiber Bragg grating sensors inside or on the surface of a lithium-ion cell. Although direct measurement provides real-time data, it is difficult to scale to every lithium-ion cell, and the result depends on sensor location, contact pressure, and thermal interface material thickness. Model-based estimation uses electrochemical and thermal models to infer temperature. Such methods offer physical interpretability, but they require complex parameter identification and may be sensitive to operating conditions. Data-driven estimation learns a mapping from measurable signals to temperature. It can achieve high accuracy under complex conditions, but it often requires large labeled datasets and lacks physical transparency. I combine the strengths of EIS analysis and data-driven regression while avoiding the need for a sensor on every lithium-ion cell.

The core idea of my method is to extract EIS features that are weakly coupled to state of charge (SOC) and state of health (SOH) but strongly correlated with temperature. I use the Pearson correlation coefficient (PCC) to quantify the relationship between EIS parameters and SOC, cycle number, and temperature. Based on this analysis, I select characteristic frequencies where the impedance components are highly sensitive to temperature and relatively insensitive to SOC and aging. I then use the extreme gradient boosting (XGBoost) algorithm to learn the mapping from these features to the temperature of a lithium-ion cell. To improve the fitting accuracy and generalization ability of the XGBoost model, I apply the dung beetle optimizer (DBO) to optimize its hyperparameters globally. The resulting DBO-XGBoost model estimates the temperature of a lithium-ion cell with an average estimation error of 1.21%.

Electrochemical impedance spectroscopy is a non-invasive diagnostic technique that has been widely studied for lithium-ion cell state estimation and fault diagnosis. Unlike techniques that require full charge or discharge cycles, EIS measurements are performed at selected frequency points, so the test time can be relatively short. The EIS data of a lithium-ion cell include frequency, real part of impedance, and imaginary part of impedance. The impedance response can be expressed as a complex quantity:

$$ Z(\omega) = \frac{V(\omega)}{I(\omega)} = Z’ + jZ” $$

where \( Z’ \) is the real part, \( Z” \) is the imaginary part, \( \omega \) is the angular frequency, \( V(\omega) \) is the voltage response, and \( I(\omega) \) is the current perturbation. The magnitude and phase of the impedance are calculated as:

$$ |Z| = \sqrt{(Z’)^2 + (Z”)^2} $$

$$ \phi = \arctan\left(\frac{Z”}{Z’}\right) $$

The EIS curve of a lithium-ion cell can be divided into high-frequency, middle-frequency, and low-frequency regions. The high-frequency region is mainly related to ionic conduction in the electrolyte and electronic conduction in the current collectors. This behavior can be represented by a series resistance and inductance. The middle-frequency region is associated with charge transfer at the electrode-electrolyte interface and ion migration through the solid electrolyte interphase (SEI) film. This region is often modeled by one or more parallel resistance-constant phase elements. The low-frequency region usually exhibits a diffusion tail with a slope close to 45 degrees, and it is often fitted by a Warburg impedance. These electrochemical processes make EIS a rich source of information for lithium-ion cell temperature estimation.

To build a robust temperature estimator for a lithium-ion cell, I analyze how the EIS curve changes with SOC, cycle number, and temperature. The EIS curve of a lithium-ion cell is only slightly affected by SOC. As SOC decreases, the low-frequency diffusion region shifts slightly to the right. The influence of cycle number is more pronounced: as the cycle number increases, the overall EIS curve shifts to the right, and the radius of the middle-frequency semicircle increases. This behavior reflects SEI growth and electrolyte degradation, which are major aging mechanisms in a lithium-ion cell. Temperature has a strong effect on the middle- and low-frequency regions. As temperature increases, the high-frequency region above 10 kHz shows no obvious shift, but the middle-frequency and low-frequency regions shift significantly to the left. The middle-frequency semicircle shrinks toward the lower left, and the low-frequency diffusion line also moves in the same direction. These observations indicate that temperature estimation for a lithium-ion cell should use EIS features that are sensitive to temperature but not dominated by SOC or aging.

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

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

where \( \text{Cov}(X,Y) \) is the covariance between \( X \) and \( Y \), and \( \sigma_X \) and \( \sigma_Y \) are the standard deviations of \( X \) and \( Y \). The PCC value lies between \( -1 \) and \( 1 \). A value close to \( \pm 1 \) indicates a strong positive or negative correlation, while a value close to zero indicates a weak correlation. I calculate the PCC for the real part, imaginary part, magnitude, and phase of the impedance at 12 frequency points in the range of 1 Hz to 3000 Hz. The correlation results guide the selection of temperature-sensitive features for the lithium-ion cell model.

The correlation analysis shows that the real part and magnitude of the impedance have strong correlations with SOC, with average PCC values of 0.911 and 0.910, respectively. Above 10 Hz, the imaginary part and phase have weak correlations with SOC, with absolute PCC values generally below 0.65. For cycle number, the imaginary part and phase in the range of 300 Hz to 1000 Hz have PCC values generally below 0.65. For temperature, nearly all four EIS parameters at the 12 selected frequencies show PCC values above 0.8. Above 100 Hz, the PCC values with temperature are above 0.94. I use a threshold of \( PCC \ge 0.95 \) to identify strong temperature correlation. At 794.3 Hz and 398.1 Hz, the imaginary part and phase have PCC values below 0.75 with SOC and cycle number but above 0.95 with temperature. I therefore select these two frequency points as the basis for temperature-sensitive features of the lithium-ion cell.

EIS parameter Correlation with SOC Correlation with cycle number Correlation with temperature
Real part \( Z’ \) Strong, average PCC ≈ 0.911 Strong at most frequencies Very strong, above 0.8
Imaginary part \( Z” \) Weak above 10 Hz, generally below 0.65 Weak in 300–1000 Hz, generally below 0.65 Very strong, above 0.95 at selected frequencies
Magnitude \( |Z| \) Strong, average PCC ≈ 0.910 Strong at most frequencies Very strong, above 0.8
Phase \( \phi \) Weak above 10 Hz, generally below 0.65 Weak in 300–1000 Hz, generally below 0.65 Very strong, above 0.95 at selected frequencies

Based on this analysis, I construct a feature vector for the lithium-ion cell temperature model using the real and imaginary parts at 794.3 Hz and 398.1 Hz:

$$ \mathbf{x} = [Z’_{794.3}, Z”_{794.3}, Z’_{398.1}, Z”_{398.1}] $$

This four-input feature vector is used to estimate a single output, which is the temperature of the lithium-ion cell. The use of two carefully selected frequencies reduces the influence of SOC and aging while preserving high sensitivity to temperature. Because the features are derived from EIS measurements, the method does not require a temperature sensor on each lithium-ion cell.

The experimental validation uses an INR18650-26E cylindrical ternary lithium-ion cell. The key parameters of this lithium-ion cell are summarized in the following table. The lithium-ion cell has a nominal voltage of 3.65 V and a nominal capacity of 2.6 Ah at 0.2 C. The charge cutoff voltage is 4.2 V, and the discharge cutoff voltage is 2.75 V. The standard discharge current is 1 C, and the maximum discharge current is 3 C. The operating temperature range is 0–50 °C for charging and −20–60 °C for discharging.

Parameter Value
Cell type INR18650-26E cylindrical ternary lithium-ion cell
Nominal voltage 3.65 V
Nominal capacity 2.6 Ah at 0.2 C
Charge cutoff voltage 4.2 V
Discharge cutoff voltage 2.75 V
Standard discharge current 1 C
Maximum discharge current 3 C
Operating temperature for charging 0–50 °C
Operating temperature for discharging −20–60 °C

For the experiments, I use a battery test system to charge and discharge the lithium-ion cell and to record voltage and current data. The voltage and current control accuracy is within ±0.05% of full scale. A temperature recorder is used to monitor the ambient temperature with a range of −270 °C to 400 °C and an accuracy of ±0.1 °C. A thermal chamber provides a constant testing temperature for the lithium-ion cell. The chamber temperature range is −50 °C to 150 °C, and the temperature deviation is ±2 °C. EIS measurements are performed at multiple SOC levels, cycle numbers, and temperatures. The frequency range of interest for feature extraction is 1 Hz to 3000 Hz, and 12 frequency points are analyzed. The temperature of the lithium-ion cell is recorded after a long rest period so that the measured surface temperature is stable and representative of the cell body.

After feature extraction, I use the XGBoost algorithm to learn the mapping from the EIS features to the temperature of the lithium-ion cell. XGBoost is an ensemble learning method based on gradient boosting. It builds a sequence of regression trees, where each tree is a new function that fits the residual of the previous prediction. The final prediction is the sum of all trees. For a dataset \( D = \{(x_i, y_i)\} \), where \( x_i \) is the feature vector of the \( i \)-th sample and \( y_i \) is the true temperature of the lithium-ion cell, the XGBoost model can be written as:

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

where \( f(x_i; \theta_m) \) is the \( m \)-th regression tree and \( \theta_m \) is its parameter set. The objective function of XGBoost combines a loss function and a regularization term:

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

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

Here, \( l \) is the loss function that measures the error between the estimated temperature \( \hat{y}_i \) and the true temperature \( y_i \) of the lithium-ion cell. \( \Omega(f_m) \) is the regularization term, \( \gamma \) controls the complexity of each leaf, \( T \) is the number of leaves in a tree, \( \lambda \) is the penalty parameter, and \( \omega \) is the weight of a leaf node. During training, new trees are added to minimize the objective. When \( m \) trees have been generated, the temperature estimate is updated as:

$$ \hat{y}_{i,m} = \hat{y}_{i,m-1} + f_m(x_i) $$

where \( \hat{y}_{i,m-1} \) is the estimate from the previous iteration. The objective at the \( m \)-th iteration is:

$$ L^{(m)} = \sum_{i=1}^{m} l[y_i, \hat{y}_{i,m-1} + f_m(x_i)] + \Omega(f_m) $$

To optimize the objective efficiently, I use a second-order Taylor approximation:

$$ L^{(m)} \approx \sum_{i=1}^{m} \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-order derivatives of the loss function with respect to the previous estimate. When the number of trees reaches the maximum iteration number \( Max \), the final XGBoost model for the lithium-ion cell temperature is:

$$ \hat{y}_{i,Max} = F_{Max}(x_i) = \sum_{m=1}^{Max} f(x_i; \theta_m) $$

XGBoost has several hyperparameters that must be set before training. These hyperparameters control the complexity, learning speed, and regularization of the model. A suitable combination of hyperparameters is essential for accurate temperature estimation of a lithium-ion cell. The main hyperparameters and their ranges are listed in the following table.

Hyperparameter Meaning Range
num_trees Number of decision trees, i.e., number of iterations. A larger value increases learning ability but may cause overfitting. [1, +∞)
max_depth Maximum depth of each tree. A large value may cause overfitting. [1, +∞)
eta Learning rate that controls the weight reduction at each iteration. A small value makes learning slower but more stable. [0, 1]
min_child_weight Minimum sum of instance weight in a child node. A larger value prevents overfitting but reduces model complexity. [0, +∞)
subsample Fraction of samples used to train each tree. A smaller value prevents overfitting but increases variance. (0, 1]
colsample_bytree Fraction of features used to train each tree. A smaller value prevents overfitting. (0, 1]

Manually tuning these hyperparameters for a lithium-ion cell temperature model is time-consuming and may lead to a local optimum. I therefore use the dung beetle optimizer to search for the optimal hyperparameter combination. DBO is a heuristic optimization algorithm inspired by the rolling, dancing, breeding, foraging, and stealing behaviors of dung beetles. It divides the population into five subpopulations, each performing a different search behavior. This diversity enhances the exploration of the search space and reduces the risk of premature convergence.

In the DBO algorithm, each dung beetle represents a candidate hyperparameter set for the XGBoost model. The fitness function is the root mean square error (RMSE) of the temperature estimation for the lithium-ion cell:

$$ fitness = RMSE $$

A smaller RMSE indicates a more accurate temperature estimate for the lithium-ion cell. The position of each individual is updated according to its behavior. For the rolling behavior, when a dung beetle rolls a ball without obstacles, the position is updated as:

$$ x_i^{t+1} = x_i^t + \alpha \cdot k \cdot x_i^{t-1} + b \cdot \|x_i^t – x_{worst}^t\| $$

where \( t \) is the current iteration, \( x_i^t \) is the candidate hyperparameter combination, \( x_{worst}^t \) is the worst position in the current iteration, \( \alpha = \pm 1 \) is a natural deflection coefficient, \( k \in (0, 0.2] \) is a deflection coefficient, and \( b \in (0,1) \) is a constant. For the dancing behavior, when a dung beetle encounters an obstacle, it dances to find a new direction:

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

where \( \theta \in [0, \pi] \) is the deflection angle. For the breeding behavior, female dung beetles choose a safe area to lay eggs. The lower and upper boundaries of this area are:

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

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

where \( R = 1 – t/T \), \( Lb \) and \( Ub \) are the global lower and upper bounds, and \( x_{gbest}^t \) is the current global best position. For the foraging behavior, the boundaries are set as:

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

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

where \( x_{lbest}^t \) is the current local best position. The position of a foraging individual is updated as:

$$ x_i^{t+1} = x_i^t + C_1 \cdot (x_i^t – Lb’) + C_2 \cdot (x_i^t – Ub’) $$

where \( C_1, C_2 \in (0,1) \) are random numbers following a normal distribution. For the stealing behavior, some individuals steal food from others and update their positions as:

$$ x_i^{t+1} = x_{lbest}^t + S \cdot g \cdot (\|x_i^t – x_{gbest}^t\| + \|x_i^t – x_{lbest}^t\|) $$

where \( S \) is a constant and \( g \) is a random vector following a normal distribution. After the DBO iterations, the global best position \( x_{gbest} \) corresponds to the optimal hyperparameter combination for the XGBoost temperature model. The DBO algorithm thus improves both the fitting accuracy and the generalization ability of the lithium-ion cell temperature estimation.

The overall workflow of my DBO-XGBoost method for lithium-ion cell temperature estimation is as follows. First, I perform EIS tests on lithium-ion cells and analyze the correlation between EIS features and SOC, cycle number, and temperature. Second, I extract the features at the selected frequencies and build a sample dataset. Third, I split the dataset into a training set and a test set, and I further divide the training set into training and validation folds using k-fold cross-validation. Fourth, I input the training and validation data into the XGBoost algorithm and use DBO to search for the optimal hyperparameters. Fifth, I train the final XGBoost model with the optimized hyperparameters. Finally, I input the test set into the trained model and estimate the temperature of the lithium-ion cell. This procedure is repeated to evaluate the stability of the method.

To quantify the accuracy of the temperature estimation for a lithium-ion cell, I use four evaluation metrics: root mean square error, mean absolute error, mean bias error, and coefficient of determination. These metrics are defined as:

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

$$ MAE = \frac{1}{N}\sum_{i=1}^{N}|\hat{Y}_i – Y_i| $$

$$ MBE = \frac{1}{N}\sum_{i=1}^{N}(\hat{Y}_i – Y_i) $$

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

Here, \( N \) is the number of samples, \( \hat{Y}_i \) is the estimated temperature of the lithium-ion cell, \( Y_i \) is the true temperature, and \( \bar{Y} \) is the mean of the true temperatures. RMSE is sensitive to large errors and penalizes them more heavily. MAE gives the average absolute error. MBE indicates the average bias of the estimates. \( R^2 \) measures how well the model explains the variance of the observations. A value close to 1 indicates a better fit.

For the DBO-XGBoost model, I set the population size to 10 and the maximum number of iterations to 100. The fitness value, which is the RMSE of the training data, converges to 1.108 in fewer than 20 iterations. This fast convergence shows that DBO has strong search capability for optimizing the hyperparameters of the XGBoost model for lithium-ion cell temperature estimation. The optimized hyperparameters are summarized in the following table.

Hyperparameter Search range Optimized value
num_trees [50, 200) integer 182
max_depth [4, 8] integer 4
eta (0, 0.5] 0.028249
min_child_weight (0, 5] 3.282668
subsample [0.5, 1] 0.483561
colsample_bytree [0.5, 1] 0.873652

After the hyperparameters are optimized, I train the XGBoost model on the training set and evaluate it on the test set. I compare the DBO-XGBoost method with three other models: a particle swarm optimization XGBoost model (PSO-XGBoost), a standard XGBoost model, and a random forest (RF) model. All models use the same EIS features and the same data split. The test set performance is shown in the following table.

Model RMSE MAE MBE \( R^2 \)
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
RF 2.80 2.15 −0.37 0.90

The DBO-XGBoost method has the smallest RMSE among the four methods. Compared with the PSO-XGBoost, standard XGBoost, and RF models, the RMSE of my method is reduced by approximately 9.4%, 18.3%, and 48.9%, respectively. The \( R^2 \) of the DBO-XGBoost method is also the largest among the four models. Compared with the standard XGBoost and PSO-XGBoost models, the \( R^2 \) is increased by about 0.6% and 1.4%, respectively. The RF model has the poorest temperature estimation performance for the lithium-ion cell. These results show that the combination of EIS features and DBO-XGBoost provides accurate temperature estimation for a lithium-ion cell.

To reduce the influence of random initialization and data splitting, I repeat the training and validation ten times while keeping the model parameters and dataset allocation unchanged. After each run, I estimate the temperature of the lithium-ion cell and record the evaluation metrics. The maximum, minimum, and average values of RMSE, MAE, MBE, and \( R^2 \) over the ten runs are listed in the following table.

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

Over the ten repeated experiments, the DBO-XGBoost method achieves the best average RMSE, MAE, and \( R^2 \) among the four methods. The maximum RMSE of my method is 1.75, the minimum is 1.26, and the average estimation error is 1.21%. In contrast, the maximum RMSE of the PSO-XGBoost and standard XGBoost methods is above 2 °C, and the minimum RMSE of the RF method is 2.64 °C. Although the MBE of my method is not the smallest among all methods, MBE is not the core metric for model performance. The overall results confirm that the proposed EIS-based DBO-XGBoost method provides reliable and accurate temperature estimation for a lithium-ion cell.

The advantage of my method comes from three aspects. First, the EIS features are selected by PCC analysis so that they are strongly correlated with temperature and weakly correlated with SOC and cycle number. This reduces the confounding effect of SOC and aging when estimating the temperature of a lithium-ion cell. Second, XGBoost captures nonlinear relationships between EIS features and temperature, which is important because the electrochemical processes in a lithium-ion cell are nonlinear and coupled. Third, DBO optimizes the XGBoost hyperparameters globally, which avoids tedious manual tuning and improves the generalization ability of the lithium-ion cell temperature model.

From an implementation perspective, the method requires EIS measurement capability in the battery management system or in an external diagnostic unit. Because only two frequencies are used for feature extraction, the measurement time can be kept short. This is an important consideration for online temperature estimation of a lithium-ion cell. The method does not require a temperature sensor on every lithium-ion cell, so it can reduce hardware cost and wiring complexity in large battery packs. It can also provide virtual temperature sensing for lithium-ion cells that are not directly instrumented.

There are several directions for future work. I plan to extend the method to a wider temperature range and to different lithium-ion cell chemistries, such as lithium iron phosphate and nickel-rich layered oxide cells. I also plan to investigate the robustness of the EIS features under dynamic load profiles, because real-world lithium-ion cell operation rarely occurs at a steady state. Another direction is to integrate the temperature estimator with SOC and SOH estimators so that the lithium-ion cell management system can perform joint state estimation. Finally, I intend to reduce the computational cost of the DBO-XGBoost model for embedded implementation in a lithium-ion cell management system.

In summary, I have proposed an EIS-based temperature estimation method for a lithium-ion cell. I analyzed the correlation between EIS parameters and SOC, cycle number, and temperature, and I selected characteristic frequencies at 794.3 Hz and 398.1 Hz. I used the real and imaginary parts of the impedance at these frequencies as input features. I built an XGBoost model to map the EIS features to the temperature of a lithium-ion cell, and I used DBO to optimize the hyperparameters. The experimental results show that the proposed DBO-XGBoost method achieves an average estimation error of 1.21%. Compared with PSO-XGBoost, standard XGBoost, and RF models, the proposed method reduces RMSE by approximately 9.4%, 18.3%, and 48.9%, respectively. The method provides a practical solution for temperature monitoring of a lithium-ion cell when hardware sensors cannot cover every cell. I believe that EIS-based temperature estimation will become an important component of advanced battery management systems for lithium-ion cell packs.

Scroll to Top