Battery health state estimation method and system based on EIS data and XGBoost algorithm

By combining EIS data and the XGBoost algorithm, hybrid hyperparameter tuning and principal component analysis technology are used to solve the problem of low battery health estimation accuracy and achieve higher accuracy and efficiency.

CN118655480AInactive Publication Date: 2024-09-17CHINA SOUTHERN POWER GRID INTERNET SERVICE CO LTD

Patent Information

Application Number
CN202410666568.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-09-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Battery health state estimation methods in the existing technology rely on physical models and empirical rules, with low accuracy, making it difficult to accurately evaluate battery capacity and remaining life.

Method used

A battery health state estimation method based on EIS data and the XGBoost algorithm is adopted, hyperparameter optimization is performed through hybrid random search and grid search, feature dimensionality reduction is combined with the principal component analysis method, and the XGBoost algorithm is used to estimate the battery health state, preventing the model from Overfitting.

Benefits of technology

It improves the accuracy and efficiency of battery health status estimation, solves the problem of low accuracy in traditional methods, and has higher accuracy and scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118655480A
    Figure CN118655480A
Patent Text Reader

Abstract

The invention discloses a battery health state estimation method and system based on EIS data and an XGBoost algorithm, and relates to the technical field of battery health state estimation. The problem that in the prior art, a battery health state estimation method mainly depends on a physical model and empirical rules, and the accuracy is low is solved. According to the technical scheme provided by the invention, the method comprises the following steps: S1, collecting EIS data of a battery needing to be subjected to health state estimation; s2, performing hyper-parameter optimization on the machine learning model by adopting a mixed random search and grid search algorithm; s3, performing feature dimension reduction on the EIS data acquired in the step S1 by using a principal component analysis method, and estimating the health state of the battery by using an XGBoost algorithm on the machine learning model optimized in the step S2; and S4, evaluating the estimation data obtained in the step S3. The system is realized based on the method, and the method is also suitable for the field of verifying the battery health state estimation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of battery health state estimation. Background Art

[0002] Lithium-ion batteries are widely used in devices such as electric vehicles and smartphones due to their long life and high energy density. However, over time, lithium-ion batteries will degrade due to factors such as electrode material degradation, lithium loss, lithium metal plating, and chemical breakdown. The battery state of health (SoH) is the ratio of the measured charge capacity of the battery divided by the rated capacity listed by the manufacturer. However, due to its nonlinear and complex behavior, it is difficult for the system to accurately estimate the battery SoH in real time. Accurate SoH information can improve battery maintenance and extend its service life. The vehicle energy management system can detect faults, prevent failures, predict life, and improve consumption. However, in practical applications, monitoring the battery state of health (SoH) is often not the top priority, which hinders the assessment of the battery status. Although lithium batteries themselves can provide up to 400 discharge cycles, the low priority of lithium battery SoH estimation still jeopardizes the safety and reliability of the battery.

[0003] Currently, battery management systems (BMS) are used to estimate the state of health (SoH) of batteries. BMS devices monitor the voltage, current, and temperature of batteries through battery sensors and predict SoH based on the data obtained. However, such devices cannot accurately evaluate the battery capacity and remaining life, and estimating SoH requires a lot of time and resources. Therefore, effective methods such as electrochemical impedance spectroscopy (EIS) or data-driven models have been proposed.

[0004] EIS is a promising technique for characterizing battery behavior due to its non-invasive and rapid detection technology. It measures the battery impedance by applying a sinusoidal frequency or voltage and analyzing the corresponding response signal in the time and frequency domains. When an AC voltage is applied to the electrochemical cell, the impedance V(ω) / I(ω) is measured by monitoring the current response. The impedance is represented by the various circuit elements that make up the total impedance in the circuit. The battery system contains various circuit elements in different combinations, making the impedance a good representation of the electrochemical system. Since EIS is combined with an equivalent circuit model (ECM), it can provide deep insights into the characteristics of the battery. This combination is simple, requires minimal parameters, and can be combined with different algorithms to achieve SoH estimation. However, its robustness is limited by ignoring aging mechanisms and operating environment. Summary of the invention

[0005] The present invention aims to solve the problem that the battery health status estimation method in the prior art mainly relies on physical models and empirical rules, and has low accuracy. To solve the above technical problems, the present invention is implemented through the following technical solutions:

[0006] Solution 1: The present invention proposes a battery health state estimation method based on EIS data and XGBoost algorithm, the method comprising the following steps:

[0007] S1. Collect EIS data for the battery that needs health status estimation;

[0008] S2, using a hybrid random search and grid search algorithm to optimize the hyperparameters of the machine learning model;

[0009] S3, using principal component analysis to reduce the feature dimension of the EIS data collected by S1, and using the XGBoost algorithm to estimate the battery health status of the machine learning model optimized by S2;

[0010] S4. Evaluate the estimated data obtained in S3.

[0011] Furthermore, a preferred embodiment is provided, wherein S1 also includes a step of preprocessing the collected EIS data.

[0012] Furthermore, a preferred implementation is provided, in which S3 also includes a step of preventing the machine learning model from overfitting.

[0013] Furthermore, a preferred implementation is provided, in which S3 prevents overfitting of the machine learning model by adopting a nested cross-validation method.

[0014] Furthermore, a preferred implementation is provided, in which the EIS data collected by S1 is subjected to feature dimensionality reduction using principal component analysis, and the dimensionality is reduced to three features.

[0015] Furthermore, a preferred implementation is provided, wherein the evaluation method in S4 includes accuracy, precision, root mean square error, and confidence interval.

[0016] Solution 2: A battery health status estimation system based on EIS data and XGBoost algorithm, the system comprising:

[0017] A data acquisition module is used to collect EIS data for batteries that need health status estimation;

[0018] Hyperparameter optimization module, which is used to optimize the hyperparameters of machine learning models using a hybrid random search and grid search algorithm;

[0019] The feature dimension reduction module is used to perform feature dimension reduction on the EIS data collected by the data acquisition module using the principal component analysis method, and to estimate the battery health status using the XGBoost algorithm on the machine learning model optimized by the hyperparameter optimization module;

[0020] The evaluation module is used to evaluate the estimated data obtained by the feature dimension reduction module.

[0021] Solution three: A computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes any one of the methods described in Solution one.

[0022] Solution 4: A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the method described in any one of Solution 1.

[0023] The present invention is beneficial in that:

[0024] The present invention solves the problem of low accuracy of traditional battery health state estimation. Traditional battery health state estimation methods mainly rely on physical models and empirical rules, and have low accuracy. The EIS data and XGBoost algorithm used in the present invention can effectively handle problems such as feature selection, missing value processing, cross-validation, etc., and have high accuracy and scalability, thereby improving the accuracy and efficiency of estimation.

[0025] The present invention introduces a hybrid hyperparameter tuning method, which uses a combination of random search and grid search to perform hyperparameter tuning to find the optimal model parameter settings. This hybrid tuning method can better optimize the data-driven battery health state estimation method.

[0026] The present invention uses principal component analysis (PCA) to perform feature dimensionality reduction: Since battery health status estimation involves a large number of features, in order to avoid overly complex models and low computational efficiency, the present invention uses principal component analysis (PCA) to reduce the features to the three most influential features, thereby improving the efficiency and accuracy of the model.

[0027] The present invention is also applicable to the field of verifying battery health status estimation. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 A schematic diagram of the flow of the XGBoost algorithm in a battery health state estimation method based on EIS data and the XGBoost algorithm described in Implementation Method 1.

[0029] Figure 2 This is a schematic diagram of cross-validation in a battery health state estimation method based on EIS data and XGBoost algorithm described in Implementation Method 4. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solutions and advantages of the implementation methods of the present application clearer, the technical solutions in the implementation methods of the present application will be clearly and completely described below in conjunction with the drawings in the implementation methods of the present application. Obviously, the described implementation methods are only part of the implementation methods of the present application, not all of the implementation methods.

[0031] Embodiment 1: This embodiment provides a battery health state estimation method based on EIS data and XGBoost algorithm, and the method includes the following steps:

[0032] S1. Collect EIS data for the battery that needs health status estimation;

[0033] S2, using a hybrid random search and grid search algorithm to optimize the hyperparameters of the machine learning model;

[0034] S3, using principal component analysis to reduce the feature dimension of the EIS data collected by S1, and using the XGBoost algorithm to estimate the battery health status of the machine learning model optimized by S2;

[0035] S4. Evaluate the estimated data obtained in S3.

[0036] Implementation method 2: This implementation method further limits the battery health state estimation method based on EIS data and XGBoost algorithm described in implementation method 1, and S1 also includes a step of preprocessing the collected EIS data.

[0037] Implementation method three: This implementation method further limits the battery health status estimation method based on EIS data and XGBoost algorithm described in implementation method one, and S3 also includes a step of preventing overfitting of the machine learning model.

[0038] Implementation method 4: This implementation method further limits the battery health state estimation method based on EIS data and XGBoost algorithm described in implementation method 3. In S3, a nested cross-validation method is adopted to prevent overfitting of the machine learning model.

[0039] Implementation method five: This implementation method further limits the battery health status estimation method based on EIS data and XGBoost algorithm described in implementation method one. The EIS data collected by S1 is subjected to feature dimensionality reduction using principal component analysis to reduce the dimensionality into three features.

[0040] Implementation method six: This implementation method further limits the battery health state estimation method based on EIS data and XGBoost algorithm described in implementation method one. The evaluation method in S4 includes accuracy, precision, root mean square error, and confidence interval.

[0041] Embodiment 7: This embodiment proposes a battery health state estimation system based on EIS data and XGBoost algorithm, and the system includes:

[0042] A data acquisition module is used to collect EIS data for batteries that need health status estimation;

[0043] Hyperparameter optimization module, which is used to optimize the hyperparameters of machine learning models using a hybrid random search and grid search algorithm;

[0044] The feature dimension reduction module is used to perform feature dimension reduction on the EIS data collected by the data acquisition module using the principal component analysis method, and to estimate the battery health status using the XGBoost algorithm on the machine learning model optimized by the hyperparameter optimization module;

[0045] The evaluation module is used to evaluate the estimated data obtained by the feature dimension reduction module.

[0046] Embodiment 8: A computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the method described in any one of embodiments 1 to 6.

[0047] Embodiment 9: A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in any one of embodiments 1 to 6 are implemented.

[0048] Embodiment 10: This embodiment provides an example, which is used to explain the above embodiments 1 to 10. The specific example is as follows:

[0049] See also Figure 1 and Figure 2 To illustrate this embodiment, this embodiment proposes a method for estimating SoH of a lithium-ion battery using an extreme gradient boosted tree (XGBoost) algorithm and EIS data. The algorithm flow and functional structure of the method are summarized as follows: Figure 1As shown. XGBoost has low training cost, advanced regularization, does not require high processing power, can be suitable for complex data like neural networks, and is less affected by problems such as poor scalability, large memory requirements, large training data requirements, and a high probability of getting stuck in local minima. This embodiment uses the electrochemical impedance spectroscopy (EIS) method to test different batteries at different frequencies to collect the required data points and feature points. After preprocessing the collected data to extract useful data points, the XGBoost algorithm is selected as the machine learning model for training, testing and verification. Before training, the algorithm is hyper-tuned to improve model performance, and the final training results are cross-validated and performance evaluated.

[0050] When a sine wave sin(2πft) with an amplitude of α and a frequency of f passes through a linear time-invariant system, the resulting sine wave is still the original sine wave with a phase shift of Φ. Φ The polar coordinates of sin(2πft+Φ) and It will be converted into real ZZcosφ and imaginary ZZsinφ of Cartesian coordinates, which are then used to extract feature points from the data within the selected frequency range, including phase, resistance, frequency, etc.

[0051] After obtaining the required data and feature points, since the learning rate, maximum depth of the tree, minimum child weight and other hyperparameters of the machine learning model must be selected before training, a tuner is introduced to tune the hyperparameters before starting training. This method uses a mixture of random and grid search algorithms for hyperparameter optimization. The algorithm uses sparse grid search to identify the best performing hyperparameters, which are then used as the starting point for a pseudo-random search in this hyperparameter space area.

[0052] After completing the hyperparameter tuning, the extreme gradient boosting tree (XGBoost) is used as the machine learning algorithm to estimate the health status of the battery. Since the data source usually contains a lot of feature points, creating a model to utilize all these features will make the model too large and too long, reducing the efficiency of the model and failing to obtain a satisfactory model. Therefore, this method uses principal component analysis (PCA) to simplify the feature points, and the features of the data are simplified to only the three most influential features.

[0053] The method described in this embodiment adopts a variety of proven methods to prevent model overfitting, including: data retention, cross-validation (K-fold, nested K-flod, feature selection, early stopping). Then, the PCA-processed data is divided into 3 groups using the scikit-learn library: training, testing, and validation. Since the validation set is completely invisible during the training process, the validation set serves as a substitute for the real-world data of the model. Pre-pruning or early stopping methods are used to optimize the branches of the model, and then the model is trained and cross-validated. As mentioned above, two cross-validation methods are implemented to check the accuracy and confidence in accuracy. The first method, K-fold is performed using the training set and the test set, while the nested K-fold is performed using all three sets. Figure 2 The green and orange sets in the figure are used for K-fold cross validation, and the black set is used for nested K-fold cross validation. The second form of cross validation essentially repeats the first method n times and checks whether the performance of the model for all training / test separation combinations is equal, and finally verifies it using the validation set. The evaluation indicators of the method described in this embodiment include accuracy, precision, root mean square error (RMSE), confidence interval, etc.

[0054] First, accuracy

[0055] Measures the number of correct predictions made and calculated by Formula 1, where (x) is the indicator function and y) i and i are the predicted and true values ​​of SoH respectively.

[0056]

[0057] Second, accuracy

[0058] The ratio of correct results to all returned results is calculated by using Equation 2.

[0059]

[0060] Third, RMSE or regression error

[0061] The expected value of the sum of the quadratic errors is calculated using Equation 3.

[0062]

[0063] Fourth, confidence interval

[0064] A confidence interval is a range of values ​​that provides an estimate of the true value of a parameter based on a sample of data. It is calculated by taking into account the sample size, the variability of the data, and the desired confidence level, as shown in Expression 4. Where z determines the width of the interval and represents the chosen confidence level. Commonly used confidence levels are 90%, 95%, and 99%.

[0065]

[0066] Based on the above process, the battery state of health (SoH) can be evaluated accurately and efficiently.

[0067] This embodiment combines the data and feature points extracted by electrochemical impedance spectroscopy (EIS) with the XGBoost algorithm in machine learning to perform SoH estimation, and introduces a hybrid hyperparameter tuning method and principal component analysis (PCA) technology in feature dimensionality reduction technology to improve the accuracy and efficiency of battery SoH estimation.

[0068] Figure 1Any process or method description in the flowchart described in or otherwise described herein can be understood as representing a module, fragment or portion of a code including one or more executable instructions for implementing the steps of a custom logic function or process, and the scope of the preferred embodiment of the present invention includes other implementations, in which the functions may be performed in a substantially simultaneous manner or in a reverse order according to the functions involved, which should be understood by a person skilled in the art of the present invention. The logic and / or steps represented in the flowchart or otherwise described herein illustrate the possible implementation architecture, functions and operations of the apparatus and methods according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for implementing the specified logic function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It is also noted that each block in the block diagram or flowchart, and combinations of blocks in the block diagram or flowchart, may be implemented by a dedicated hardware-based system that performs the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions. For example, what may be considered as an ordered list of executable instructions for implementing a logical function may be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other system that can fetch instructions from and execute instructions in an instruction execution system, apparatus, or device).

[0069] For the purposes of the present specification, "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use with an instruction execution system, device or equipment or in conjunction with these instruction execution systems, devices or equipment. More specific examples of computer-readable media (non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and editable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program may be printed, because the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting or processing in other suitable ways as necessary, and then stored in a computer memory. It should be understood that the various parts of the present invention may be implemented in hardware, software, firmware or a combination thereof. In the above embodiments, the N steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0070] Those skilled in the art will appreciate that the above are only preferred embodiments of the present invention, and the various embodiments of the present disclosure and / or the features described in the claims may be combined or combined in various ways, even if such combinations or combinations are not explicitly described in the present disclosure. It is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art may still modify the technical solutions described in the aforementioned embodiments, or perform equivalent substitutions on some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection scope of the present invention.

[0071] Although preferred embodiments of the present invention have been described, additional changes and modifications may be made to these embodiments by those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention. Obviously, those skilled in the art may make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A battery health status estimation method based on EIS data and XGBoost algorithm, characterized in that: The method comprises the following steps: S1. Collect EIS data for the battery that needs health status estimation; S2, using a hybrid random search and grid search algorithm to optimize the hyperparameters of the machine learning model; S3, using principal component analysis to reduce the feature dimension of the EIS data collected by S1, and using the XGBoost algorithm to estimate the battery health status of the machine learning model optimized by S2; S4. Evaluate the estimated data obtained in S3.

2. The battery health state estimation method based on EIS data and XGBoost algorithm according to claim 1, characterized in that: S1 also includes the step of preprocessing the collected EIS data.

3. The battery health state estimation method based on EIS data and XGBoost algorithm according to claim 1, characterized in that: S3 also includes steps to prevent overfitting of machine learning models.

4. The battery health state estimation method based on EIS data and XGBoost algorithm according to claim 3, characterized in that: S3 uses nested cross-validation to prevent overfitting of machine learning models.

5. The battery health state estimation method based on EIS data and XGBoost algorithm according to claim 1, characterized in that: The principal component analysis method was used to reduce the feature dimension of the EIS data collected by S1 into three features.

6. The battery health state estimation method based on EIS data and XGBoost algorithm according to claim 1, characterized in that: The evaluation methods in S4 include accuracy, precision, root mean square error, and confidence interval.

7. A battery health status estimation system based on EIS data and XGBoost algorithm, characterized in that: The system comprises: A data acquisition module is used to collect EIS data for batteries that need health status estimation; Hyperparameter optimization module, which is used to optimize the hyperparameters of machine learning models using a hybrid random search and grid search algorithm; The feature dimension reduction module is used to perform feature dimension reduction on the EIS data collected by the data acquisition module using the principal component analysis method, and to estimate the battery health status using the XGBoost algorithm on the machine learning model optimized by the hyperparameter optimization module; The evaluation module is used to evaluate the estimated data obtained by the feature dimension reduction module.

8. A computer device comprising a memory and a processor, characterized in that A computer program is stored in the memory. When the processor runs the computer program stored in the memory, the processor executes the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Method and system for jointly estimating state of health of battery based on XGB-AKF

    CN117269817A

  • Lithium battery local voltage segment health state diagnosis method based on data driving

    CN117406097A

  • Method and system for estimating state of health of energy storage battery based on deep learning in combination with EIS data

    CN117686931A

  • Safety apparatus of massage chair system and massage chair system

    KR102406576B1

  • Method and apparatus for estimating SOH of lithium battery

    WO2024016496A1

Cited By

  • Battery BMS intelligent detection and identification system based on reinforcement learning

    CN121978546A