Energy storage battery state of charge estimation method based on a hybrid framework of physical model and machine learning
By combining a hybrid framework of ampere-hour integral model, gated cyclic cell network and extreme gradient boosting model, the accuracy and robustness of SOC estimation for energy storage batteries under complex operating conditions are solved, and high-precision and adaptive SOC estimation is achieved.
Patent Information
- Application Number
- CN202611206237.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-10
- Publication Date
- 2026-11-20
AI Technical Summary
Existing SOC estimation methods lack sufficient estimation accuracy and robustness under complex nonlinear and time-varying operating conditions, making it difficult to balance estimation accuracy, robustness, and life-cycle adaptability.
A hybrid estimation method for the state of charge of energy storage batteries based on a physical model and machine learning framework is adopted. By combining the ampere-hour integral model, gated recurrent unit network, extreme gradient boosting model and unscented Kalman filter, a hybrid estimation framework is constructed to achieve the fusion of state prediction and data-driven observation.
It significantly improves the accuracy and robustness of SOC estimation, enhances the adaptability to nonlinear and time-varying operating conditions, reduces accumulated errors, and ensures adaptability and estimation stability throughout the entire life cycle.
Smart Images

Figure CN123136431A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power energy storage technology, and specifically to a method for estimating the state of charge of energy storage batteries based on a hybrid framework of physical models and machine learning. Background Technology
[0002] With the continuous advancement of the construction of new power systems, the grid integration and consumption of a high proportion of new energy sources has become a core task in the development of power systems. The reliance of the integrated "source-grid-load-storage" architecture on large-scale energy storage systems is increasing daily. As the core energy carrier of energy storage systems, the accurate perception of the operating status of energy storage batteries is the foundation for ensuring the safe, flexible, and efficient operation of the power grid. The State of Charge (SOC) is used to characterize the remaining available power of a battery. Its accurate estimation is not only crucial for the battery management system to implement charge and discharge control and energy dispatch, but also a prerequisite for assessing the battery's health status, achieving safety early warning, and optimal control. However, SOC cannot be directly measured by sensors and can only be indirectly estimated based on measurable parameters such as voltage, current, and temperature. At the same time, the strong volatility of new energy power generation and the randomness of load cause energy storage batteries to operate under complex and variable conditions for a long time. Their internal electrochemical reactions exhibit significant nonlinear and time-varying characteristics, and battery performance continuously degrades over time, posing a severe challenge to the accurate estimation of SOC.
[0003] Currently, commonly used SOC estimation methods mainly include the ampere-hour integration method, the open-circuit voltage method, model-based filtering estimation methods, and data-driven methods.
[0004] Reference [1] systematically analyzes the principles and applicability of various SOC estimation methods. Among them, the ampere-hour integration method obtains the SOC change by integrating the charging and discharging current over time. It is simple in principle and easy to implement online. However, its estimation accuracy depends on the accurate calibration of the initial SOC. The measurement error of the current sensor will accumulate over time and it is difficult to account for the influence of factors such as temperature, aging, and self-discharge. The estimation error increases significantly after long-term operation. The open-circuit voltage method estimates the SOC by utilizing the correspondence between the open-circuit voltage and the SOC. However, it requires the battery to be left to stand still for a long time to reach a steady state before it can be measured, which cannot meet the needs of online real-time estimation for energy storage systems.
[0005] Model-based filtering estimation methods establish equivalent circuit models or electrochemical models and combine Kalman filtering algorithms to perform closed-loop correction of SOC. Reference [2] uses the Extended Kalman Filter (EKF) method to estimate the SOC of lithium iron phosphate batteries. This type of method requires first-order linearization of the battery nonlinear model, which introduces truncation error. The calculation of the Jacobian matrix increases the implementation complexity, and the estimation accuracy decreases under strong nonlinear conditions. Reference [3] points out that the Unscented Kalman Filter (UKF) avoids linearization error by processing the nonlinear propagation of state variables through unscented transformation. However, its filtering performance still depends on the accuracy of the system model and noise statistics. Reference [4] uses a sliding mode observer to estimate the state of charge of lithium batteries. This type of method has a certain robustness to model uncertainty, but it has inherent chattering problems. Its estimation accuracy is also constrained by the accuracy of model parameters.
[0006] Overall, the estimation methods based on simplified physical models and filtering algorithms described above have model parameters that change with battery temperature, aging state, and operating conditions. When the model is mismatched, the estimation accuracy decreases or even causes the filter to diverge. When faced with the complex nonlinear and time-varying dynamic characteristics of real systems, the estimation accuracy and robustness are both insufficient.
[0007] Data-driven methods, represented by machine learning algorithms such as neural networks, directly learn the mapping relationship between measurable parameters and SOC from battery operation data without the need to accurately establish a battery physical model. However, reference [1] points out that the estimation performance of this type of method is highly dependent on the quantity and quality of training data. When the actual operating conditions exceed the coverage of the training samples, its generalization ability is limited, the estimation error increases, and it lacks physical interpretability, making it difficult to guarantee the physical consistency of the estimation results.
[0008] In summary, existing physical model-based estimation methods and data-driven estimation methods each have their limitations and exhibit significant complementarity. Estimation methods employing a single framework struggle to simultaneously achieve estimation accuracy, robustness, and lifecycle adaptability. Therefore, developing a high-precision, highly adaptive SOC estimation technology that deeply integrates the battery's intrinsic mechanisms with actual operational data has become an urgent need to improve the reliability, safety, and economy of energy storage assets in new power systems.
[0009] References: Reference [1]: Lin Chengtao, Wang Junping, Chen Quanshi. Principle and application of SOC estimation method for electric vehicles [J]. Battery, 2004, 34(5): 376-378. Reference [2]: Shi Wei, Jiang Jiuchun, Li Suoyu. Research on SOC estimation method of lithium iron phosphate battery [J]. Journal of Electronic Measurement and Instrumentation, 2010, 24(8): 769-774. Reference [3]: Pan Quan, Yang Feng, Ye Liang, et al. A review of a class of nonlinear filters - UKF [J]. Control and Decision, 2005, 20(5): 481-489. Reference [4]: Sun Dong, Chen Xikun. Estimation of state of charge of lithium battery based on discrete sliding mode observer [J]. Proceedings of the CSEE, 2015, 35(1): 185-191. Summary of the Invention To address the shortcomings of existing SOC estimation methods in terms of accuracy and robustness under complex nonlinear and time-varying operating conditions, this invention provides a method for estimating the state of charge (SOC) of energy storage batteries based on a hybrid framework of physical models and machine learning. This method effectively suppresses accumulated errors and significantly improves the accuracy, robustness, and life-cycle adaptability of SOC estimation by constructing a hybrid estimation framework that integrates ampere-hour integral physical model state prediction, PSR-GRU-XGBoost data-driven observation, and UKF optimal fusion.
[0010] The technical solution adopted in this invention is as follows: The method for estimating the state of charge of energy storage batteries based on a hybrid framework of physical models and machine learning includes the following steps: S1: Collect the voltage and current of the energy storage battery during operation, and use the ampere-hour integral model to obtain the estimated value of the state of charge (SOC) of the energy storage battery. S2: Reconstruct the phase space of the SOC time series estimate, extract its nonlinear dynamic features, and generate the reconstruction feature matrix; S3: A gated recurrent unit network is used to extract high-order timing features from the reconstructed voltage and current timing data; S4: After fusing the original features with the high-order time series features, input them into the extreme gradient boosting model for nonlinear regression to generate data-driven SOC observations. The original features include voltage, current, and SOC time series estimates. S5: Using the ampere-hour integral model as the state predictor and the SOC observation value as the measurement value, the state prediction value output by the state predictor is corrected by the unscented Kalman filter fusion algorithm, and the SOC estimate value of the energy storage battery is output.
[0011] S1 includes: S1.1: Real-time acquisition of instantaneous current and voltage during the charging and discharging process of the energy storage battery, and calibration of the battery's initial charge and current maximum usable capacity; S1.2: Based on the ampere-hour integral model, the SOC value at the current sampling moment is calculated using the instantaneous current collected in S1.1: ; In the formula: SOC represents the remaining battery power; Indicates the initial battery charge; express The instantaneous current of the battery at any given moment; Indicates the time interval between adjacent sampling times; Indicates the current maximum available capacity; This represents the capacity-related attenuation factor. S1.3: Arrange the SOC values at each sampling time obtained from S1.2 in chronological order to construct the SOC time series estimate.
[0012] S2 includes: S2.1: The SOC time series estimate constructed in S1.3 is used as a univariate time series under a nonlinear dynamic system. ,in: Indicates the first SOC time series estimates at each sampling time point; Indicates the total number of samples; Indicates the sequence number of the sampling time. =1,2,…, ; S2.2: Set the phase space embedding dimension Phase space reconstruction was performed on the univariate time series S2.1 to convert the continuous time series into a continuous phase space. The values at each sampling time point constitute a reconstructed state vector, which is then slid sequentially along the time axis to generate a reconstructed feature matrix: ; In the formula: Indicates the embedding dimension of the phase space; They represent the 1st to the 1st. A reconstructed state vector; the first row of the reconstructed feature matrix consists of the first to the second row of the univariate time series. The values at each sampling time are constituted, and the second row consists of values from the 2nd to the 3rd. The values at sampling time +1 constitute the total, and so on, up to the 1st sampling time. Line by number To the The values are composed of -1 sampling times.
[0013] S3 includes: S3.1: Using the reconstructed voltage and current timing data as input to the gated recurrent unit network, calculate the reset gate and update gate: ; ; In the formula: Indicates that the door is being reset; Indicates an update to the door; This represents the Sigmoid activation function; , These represent resetting the gate weight matrix and updating the gate weight matrix, respectively. , These represent resetting the door offset and updating the door offset, respectively. express Time of the first The hidden state of each sampling point; express Time of the first The input features of each sampling point include the reconstructed voltage and current; Indicates time; Indicates the sequence number of the sampling point; Indicates the concatenation of vectors; S3.2: Using the reset door pair obtained in S3.1 Filter the hidden states at each time step and calculate candidate hidden states: ; In the formula: express The candidate hidden state at each moment; Represents the hyperbolic tangent activation function; Represents the candidate state weight matrix; Represents the Hadamard product; Indicates the candidate state bias term; S3.3: Using the update gate obtained in S3.1, for... The hidden state at time step S3.2 is weighted and fused with the candidate hidden states obtained in S3.2 to obtain the hidden state at the current time step:
[0014] In the formula: express Time of the first The hidden state of each sampling point.
[0015] S3 further includes: S3.4: The reconstructed voltage and current timing data are sequentially processed through a first-level gated loop unit and a second-level gated loop unit for two-stage timing feature extraction. ; ; In the formula: , These represent the operations of the first and second layer gated loop units, respectively; , These represent the first and second layer gated loop units respectively. The hidden state at any given moment; This indicates that the first-level gated loop unit is in The hidden state at any given moment; This indicates that the second-level gated loop unit is in The hidden state at any given time; the superscripts (1) and (2) represent the layer identifiers of the first and second layers, respectively; S3.5: The second-level gated loop unit obtained in S3.4 is... By linearly projecting the hidden states at each time step, higher-order temporal features are obtained: ; In the formula: Represents higher-order temporal characteristics; This represents the output projection weight matrix; This indicates the output projection bias term.
[0016] S4 further includes: S4.1: Concatenate the original features with the higher-order temporal features obtained in S3.5 to form a fused feature vector; S4.2: Using the fused feature vector constructed in S4.1 as input and the true SOC value as label, train the extreme gradient boosting model. During training, add a regression tree in each round to fit the residual of the previous round's prediction in order to minimize the objective function. ; ; In the formula: Represent the objective function; Indicates model parameters; Represents the loss function; Indicates the number of training samples; Indicates the sequence number of the training sample. =1,2,…, ; Indicates the first The true SOC value of each training sample; Indicates the first The predicted SOC value of each training sample; This represents the total number of regression trees; Indicates the index of the regression tree. =1,2,…, ; Indicates the first A regression tree; Indicates the first The complexity of a regression tree is determined by the regularization term. S4.3: Using the extreme gradient boosting model trained in S4.2, perform nonlinear regression on the fused feature vectors acquired online to output SOC observations.
[0017] S4.2 includes: S4.2.1: Construct a regularization term consisting of a leaf node number penalty term and a leaf node weight regularization term: ; In the formula: Indicates the first The number of leaf nodes in the regression tree; Indicates the index of the leaf node. =1,2,…, ; Indicates the first The weight of each leaf node; This represents the regularization parameter used to adjust the complexity of the tree; This represents the regularization parameter used to adjust the smoothness of the leaf node weights; S4.2.2: Perform a second-order Taylor expansion on the objective function, and solve for the optimal weights of each leaf node using the extremum conditions of the expansion: ; In the formula: Indicates the first The optimal weight of each leaf node, with the superscript * indicating optimal; , They respectively represent belonging to the first The sum of the first and second derivatives of the loss function for all training samples at each leaf node; S4.2.3: Substitute the optimal weights obtained in S4.2.2 into the objective function, and determine the structure of the regression tree based on minimizing the objective function value.
[0018] S5 includes: S5.1: When When =0, construct the initial values of the state vector using the initial SOC value, initial current value, and initial voltage value, and initialize the state error covariance matrix: ; ; In the formula: Indicates the sampling time; This represents the initial value of the state vector; Indicates the initial SOC value; Indicates the initial current value; Indicates the initial voltage value; superscript Indicates transpose; Represents the initial state error covariance matrix; , , These represent the standard deviations of SOC estimation error, current noise, and voltage noise, respectively.
[0019] The S5 also includes: S5.2: For Singular value decomposition of the state error covariance matrix at time t: ; In the formula: express The state error covariance matrix at time t; express The left singular vector matrix at time t; Represents a singular value diagonal matrix; express The right singular vector matrix at time t; S5.3: Calculation of 2 based on the singular value decomposition results of S5.2 +1 Sigma point, forming the Sigma point set: ; ; In the formula: express The first moment One Sigma point; express The optimal posterior state estimate at time t; Indicates the first The offset of each Sigma point; Indicates the scaling factor; Describes the first singular vector matrix of the left. List; Describes the first singular valued diagonal matrix. One diagonal element; The dimension of the state vector; Indicates the index of the Sigma point; S5.4: Calculate the mean weight and covariance weight of each Sigma point in the Sigma point set obtained in S5.3: ; ; ; In the formula: , They represent the first The mean weight and covariance weight of each Sigma point, superscript , These are identifiers for the mean and covariance, respectively. Indicates the scaling factor; This represents the scaling parameter that determines the range of the Sigma point distribution; Indicates the secondary sampling factor; This represents the prior distribution parameters of the state variables, when the state variables follow a Gaussian distribution. Take 2.
[0020] The S5 also includes: S5.5: Using the ampere-hour integral model as the state transition equation, propagate the Sigma points obtained in S5.3 to obtain the state prediction values: ; In the formula: Indicates the first The predicted state value corresponding to each Sigma point; Represents the state transition function determined by the ampere-hour integral model; subscript Indicates by Information about time Make predictions at any time; S5.6: Using the weights obtained in S5.4, the state prediction values obtained in S5.5 are weighted to obtain the predicted state estimate and the predicted covariance: ; ; In the formula: express Predicted state estimation at time; Indicates the predicted covariance; Represents the process noise covariance matrix; S5.7: Using a cascaded model consisting of a gated recurrent unit network and an extreme gradient boosting model as the observation equation, the predicted values of each state obtained in S5.5 are propagated to obtain the observed predicted values: ; In the formula: Indicates the first The observed and predicted values corresponding to each Sigma point; This represents the observation function determined by the cascaded model; S5.8: Using the weights obtained in S5.4, the observed predictions obtained in S5.7 are weighted to obtain the observed estimates, observed autocovariance, and cross-covariance between state and observation: ; ; ; In the formula: express The observed estimate at time; Indicates the observed autocovariance; Represents the cross-covariance between the state and the observation; Represents the observation noise covariance matrix; S5.9: Calculate the Kalman gain based on the cross-covariance and observed autocovariance obtained in S5.8, and correct the predicted state estimate obtained in S5.6 using the measured values, then output the result. SOC estimate at time: ; ; ; In the formula: express Kalman gain at time step; express The measured value at time, the measured value is the SOC observation value; express The estimated SOC value at time t; express The updated state error covariance matrix at time step; superscript This represents finding the inverse of a matrix.
[0021] This invention provides a method for estimating the state of charge of energy storage batteries based on a hybrid framework of physical models and machine learning. The technical advantages are as follows: 1) Effectively suppresses accumulated error and improves SOC estimation accuracy: To address the issues of current measurement error accumulating over time in the ampere-hour integration method and its reliance on accurate initial charge calibration, this invention uses the ampere-hour integration model as a state predictor to provide state prediction values, and uses the SOC observation values output by the extreme gradient boosting model as measurement values. A continuous closed-loop correction of the state prediction values is performed using an unscented Kalman filter fusion algorithm, ensuring that the accumulated error generated by the simple ampere-hour integration open-circuit calculation is corrected by the measurement values at every sampling moment. Compared with existing ampere-hour integration methods, this significantly reduces SOC estimation error and improves estimation accuracy.
[0022] 2) Deeply explore the nonlinear dynamic characteristics of batteries to enhance their adaptability to complex and varying operating conditions: To address the problem that the electrochemical reactions inside energy storage batteries exhibit significant nonlinear and time-varying characteristics that are difficult to characterize using traditional methods, this invention reconstructs the phase space of the SOC time-series estimate, mapping the one-dimensional time series to a high-dimensional phase space to reveal the implicit dynamic trajectory characteristics. This enables subsequent feature extraction to fully capture the dynamic evolution of the battery under complex and variable operating conditions. Compared with existing methods based on simplified physical models, this invention enhances the adaptability to nonlinear and time-varying operating states.
[0023] 3) Fully extract charge-discharge time-dependent features to improve feature representation capabilities: This invention employs a gated recurrent unit network to extract high-order time-series features from reconstructed voltage and current time-series data. Its gate mechanism of reset and update gates can selectively retain or forget historical information, effectively capturing long-term time-series dependencies during battery charging and discharging. Compared with existing methods that only use measurement data at the current moment for estimation, it improves the expressive power of features and provides a more complete feature foundation for accurate regression.
[0024] 4) Balancing accuracy and generalization ability in nonlinear regression: To address the limitation of generalization ability of data-driven methods by the coverage of training samples, this invention employs an extreme gradient boosting model for nonlinear regression. By adding regression trees in each round to fit the residuals, it gradually approximates the apparent true mapping relationship. Regularization terms are used to control model complexity and prevent overfitting. Compared with existing single neural network-based data-driven methods, this invention improves generalization ability while maintaining strong nonlinear fitting ability and reduces estimation errors when operating conditions change.
[0025] 5) Achieve deep integration of physical mechanisms and operational data, taking into account estimation accuracy, robustness and adaptability throughout the entire life cycle.
[0026] To address the dual contradictions of model-based methods (model mismatch) and data-driven methods (lack of physical interpretability), this invention constructs a hybrid framework of physical model and machine learning: the ampere-hour integral model provides state predictions consistent with battery physics, and the cascaded model composed of a gated recurrent unit network and an extreme gradient boosting model generates observations from actual operating data. The two are optimally fused within the state-space framework through unscented Kalman filtering, ensuring that the estimation results are both constrained by physical laws and corrected online by actual data. Compared with existing single-framework estimation methods, this simultaneously improves estimation accuracy and robustness, achieving adaptive improvement and stable maintenance of SOC estimation accuracy throughout the battery's entire life cycle.
[0027] 6) Improve the stability of the filter values and avoid filter divergence: To address the issue of decreased estimation accuracy and even filter divergence caused by model mismatch, this invention introduces singular value decomposition to calculate the Sigma point in unscented Kalman filtering. This avoids the situation where directly taking the square root of the state error covariance matrix produces invalid values, ensuring the positive definiteness and effectiveness of the covariance matrix during the filtering recursion process. Compared with existing unscented Kalman filtering implementations, this invention improves the numerical stability and operational reliability of filtering calculations, and ensures the continuous stability of the estimation process. Attached Figure Description
[0028] The present invention will be further described below with reference to the accompanying drawings and examples; Figure 1 This is a schematic diagram of the battery testing experimental equipment platform in an embodiment of the present invention.
[0029] Figure 2 This is a flowchart illustrating the charging and discharging test of an energy storage battery in an embodiment of the present invention.
[0030] Figure 3 This is a flowchart of the energy storage battery state-of-charge estimation method based on a hybrid framework of physical model and machine learning according to the present invention.
[0031] Figure 4 This is a schematic diagram of the structure of the cascaded model composed of a gated recurrent unit network and an extreme gradient boosting model in an embodiment of the present invention.
[0032] Figure 5 This is a flowchart of the unscented Kalman filter fusion algorithm in an embodiment of the present invention.
[0033] Figure 6 This is a graph showing the simulation operating conditions.
[0034] Figure 7 Comparison chart of SOC estimation results.
[0035] Figure 8 A comparison chart of SOC estimation errors. Detailed Implementation
[0036] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments.
[0037] The overall technical concept of this invention is as follows: First, the voltage and current during the operation of the energy storage battery are collected, and the state of charge (SOC) time-series estimate of the energy storage battery is obtained using an ampere-hour integral model. Then, the SOC time-series estimate is reconstructed in phase space, and its nonlinear dynamic features are extracted to generate a reconstructed feature matrix. Next, a gated recurrent unit network is used to extract higher-order time-series features from the reconstructed voltage and current time-series data. Then, the original features and higher-order time-series features are fused and input into an extreme gradient boosting model for nonlinear regression to generate data-driven SOC observations. Finally, using the ampere-hour integral model as the state predictor and the SOC observations as the measurement values, the state prediction output by the state predictor is corrected using an unscented Kalman filter fusion algorithm to output the SOC estimate of the energy storage battery.
[0038] The principle behind the above concept is as follows: the ampere-hour integral model is built on the principle of charge conservation and has a clear physical meaning. It can provide state predictions that conform to the intrinsic mechanism of the battery for SOC estimation, but there is a problem of error accumulation over time; the data-driven model can extract complex nonlinear mapping relationships from actual operating data, but it lacks physical constraints; this invention organically integrates the two through a state-space framework, so that the physical mechanism and operating data complement and correct each other, thereby overcoming the inherent limitations of a single method.
[0039] Example 1: (I) Experimental Platform and Data Acquisition: like Figure 1 As shown, the battery testing experimental equipment platform in this embodiment includes a battery testing cabinet, a constant temperature chamber, a voltage and current acquisition unit, and a host computer. The battery testing cabinet is used to perform charge and discharge conditions on the energy storage battery; the constant temperature chamber is used to provide a constant ambient temperature for the energy storage battery; the voltage and current acquisition unit is used to collect the voltage and current of the energy storage battery in real time during the charge and discharge process; the host computer is communicatively connected to the battery testing cabinet and the voltage and current acquisition unit, and is used to issue test condition commands, store the collected data, and run the state of charge estimation method of this invention.
[0040] like Figure 2 As shown, the test procedure for charging and discharging energy storage batteries is as follows: The energy storage battery is placed in a constant temperature chamber and connected to a test circuit; the energy storage battery is fully charged and discharged to calibrate its capacity and obtain the current maximum usable capacity; the energy storage battery is subjected to cyclic testing according to preset dynamic charging and discharging conditions; during the test, the voltage and current of the energy storage battery are synchronously collected at fixed sampling time intervals to form a test dataset containing voltage, current, and time information; the test dataset is divided into a training set and a test set in chronological order, with the training set used for model training and the test set used for online estimation verification.
[0041] (II) Specific implementation of each step: like Figure 3 As shown, the energy storage battery state of charge estimation method based on a hybrid framework of physical model and machine learning in this embodiment is executed in sequence according to the following steps.
[0042] Step S1: Obtain the SOC time series estimate using the ampere-hour integral model.
[0043] An ampere-hour integral model is used to integrate the current to preliminarily estimate the state of charge (SOC) time series value of the energy storage battery, laying the foundation for subsequent unscented Kalman filter fusion to construct the state equation. The principle is as follows: the charging and discharging process of a battery is essentially a charge transfer process; by integrating the instantaneous current over time, the change in charge can be obtained, thus recursively estimating the current remaining charge from the initial charge. This model does not rely on precise modeling of the complex electrochemical processes inside the battery, providing the physical basis for online SOC estimation.
[0044] Real-time acquisition of instantaneous current and voltage during the charging and discharging process of the energy storage battery, and calibration of the battery's initial charge and current maximum usable capacity; calculation of the SOC value at the current sampling moment based on the ampere-hour integral model: (1); In the formula: SOC represents the remaining battery power; Indicates the initial battery charge; express The instantaneous current of the battery is recorded at all times, taking a positive value during discharge and a negative value during charging; This represents the time interval between adjacent sampling moments. In this embodiment, the value is 1 s, but in application scenarios with drastic fluctuations in operating conditions, it can be 0.1 s. This represents the current maximum available capacity, obtained through capacity calibration experiments. This represents the capacity-related attenuation factor.
[0045] Furthermore, the attenuation factor Determine as follows: The value is the current maximum available capacity. With the battery's factory rated capacity The ratio. The principle is that as the number of battery cycles increases, the active materials inside the battery are lost, the internal resistance increases, and the actual release capacity gradually decreases. By introducing a capacity-related decay factor, the ampere-hour integral model can adaptively track the aging state of the battery throughout its entire life cycle, avoiding systematic estimation bias caused by fixed capacity parameters. Initial battery capacity. The open-circuit voltage method can be used for calibration at the beginning of the test. Specifically, after the battery has been left to stand for a sufficient time, the open-circuit voltage is measured, and then the correspondence between open-circuit voltage and SOC is obtained from the table.
[0046] The calculated SOC values at each sampling time are arranged in chronological order to construct the SOC time-series estimate. It should be noted that, due to the measurement error of the current sensor, which accumulates over time, a simple ampere-hour integration estimate will produce a cumulative error. The SOC time-series estimate obtained in this step serves only as state prediction information provided by the physical model, and its cumulative error will be corrected by the measurement closed-loop in step S5. This is precisely why the ampere-hour integration model is placed within a fusion framework rather than used independently in this invention.
[0047] Step S2: Reconstruct the phase space of the SOC time series estimate to generate the reconstructed feature matrix: The nonlinear features of the State of Charge (SOC) are extracted using the phase space reconstruction method, and the reconstructed SOC feature matrix is output to reveal its dynamic trajectory characteristics. The phase space reconstruction method, abbreviated as PSR, works as follows: An energy storage battery is a typical nonlinear dynamic system, where electrochemical reactions, polarization effects, and diffusion processes are coupled. The single-variable observation sequence contains the evolutionary information of all system state variables. According to Takens' embedding theorem, by appropriately delaying the embedding reconstruction of the single-variable time series, the phase space trajectory of the original dynamic system can be recovered in a topologically equivalent sense. This makes the nonlinear dynamic features implicit in the one-dimensional sequence explicit, providing more discriminative feature inputs for subsequent gated cyclic unit networks.
[0048] The SOC time series estimate constructed in step S1 is used as a univariate time series under a nonlinear dynamic system. , In the formula: Let represent the SOC time series estimate at the i-th sampling time; Indicates the total number of samples; Indicates the sequence number of the sampling time. =1,2,…, .
[0049] Set the phase space embedding dimension The univariate time series is reconstructed in phase space to convert the continuous time series into a continuous time series. The values at each sampling time point constitute a reconstructed state vector, which is then slid sequentially along the time axis to generate a reconstructed feature matrix: (2); In the formula: Indicates the embedding dimension of the phase space; They represent the 1st to the 1st. A reconstructed state vector; the first row of the reconstructed feature matrix consists of the first to the second row of the univariate time series. The values at each sampling time are constituted, and the second row consists of values from the 2nd to the 3rd. The values at sampling time +1 constitute the total, and so on, up to the 1st sampling time. Line by number To the The values are composed of -1 sampling times.
[0050] As a preferred embodiment, the phase space embedding dimension The spurious nearest neighbor method is used to determine the candidate embedding dimension: the candidate embedding dimension is gradually increased, and the proportion of spurious nearest neighbors in the reconstructed phase space is statistically analyzed. When this proportion decreases below a preset threshold or tends to stabilize as the dimension increases, the corresponding candidate embedding dimension is determined. The criterion for identifying false nearest neighbors is: (3); In the formula: , They represent The first in 3D phase space Each reconstructed state vector and its nearest neighbor vector; , These represent the increase in dimension to... The vector corresponding to +1 dimension; Indicates Euclidean distance; The threshold value represents the decision threshold, which in this embodiment is between 10 and 15. The principle behind this criterion is that if the embedding dimension is insufficient, points that are far apart in the original phase space will form false nearest neighbor relationships due to projection overlap. As the dimension increases, these near neighbor points are separated. When the proportion of false nearest neighbors is sufficiently low, it indicates that the reconstructed phase space has fully unfolded the dynamic structure of the system. In this embodiment, the reconstruction delay time is one sampling time interval, meaning that each row of the matrix consists of adjacent consecutive... It consists of a number of sampled values.
[0051] Similarly, the acquired voltage and current time-series data are processed using the same embedding dimension. Phase space reconstruction is performed to obtain the reconstructed voltage and current timing data.
[0052] Step S3: Extract high-order temporal features using a gated recurrent unit network: Gated Recurrent Unit (GRU) networks are specifically designed to extract the temporal dependencies of battery charging and discharging. The principle behind this network is that the battery's terminal voltage response depends not only on the current charging / discharging current but also on historical charging / discharging paths. For example, the establishment and decay of polarization voltage exhibits a significant time-cumulative effect. Therefore, SOC estimation needs to capture long-term dependencies. GRU networks, through their reset and update gates, can selectively forget or retain historical information, mitigating the gradient vanishing problem in recurrent neural networks while achieving effective modeling of long-term dependencies with a relatively simple structure.
[0053] like Figure 4 As shown, the gated recurrent unit network and the extreme gradient boosting model form a cascaded model, in which the gated recurrent unit network is a two-layer stacked structure.
[0054] First, the reconstructed voltage and current timing data are used as input to the gated recurrent unit network to calculate the reset gate and update gate: (4); (5); In the formula: This represents the reset gate, with a value between 0 and 1. It controls the degree to which historical hidden states are forgotten; the smaller the value, the more historical information is forgotten. This represents the update gate, used to control the extent to which historical hidden states are preserved; This represents the Sigmoid activation function, whose function expression is: This is used to compress the gating signal to between 0 and 1 to achieve soft gating; , These represent resetting the gate weight matrix and updating the gate weight matrix, respectively. , These represent resetting the door offset and updating the door offset, respectively. express Time of the first The hidden state of each sampling point; express Time of the first The input features of each sampling point include the reconstructed voltage and current; Indicates time; Indicates the sequence number of the sampling point; This indicates the concatenation of vectors.
[0055] Then, using the reset door pair Filter the hidden states at each time step and calculate candidate hidden states: (6); In the formula: express The candidate hidden state at any given moment, that is, the candidate memory content generated after combining the current input with the filtered historical information; The hyperbolic tangent activation function is expressed as follows: ; Represents the candidate state weight matrix; This represents the Hadamard product, which is the element-wise multiplication of a matrix or vector. This represents the candidate state bias term.
[0056] Furthermore, by utilizing the updated door pairs The hidden state at time step is weighted and fused with the candidate hidden states to obtain the hidden state at the current time step: (7); In the formula: express Time of the first The hidden state of each sampling point. The mechanism is as follows: when updating the gate... When the update gate approaches 1, the current hidden state adopts more new information from the candidate hidden states; when the update gate approaches 0, the historical hidden states are preserved and passed on more, thus forming a cross-time information channel in the recursive process, enabling the network to remember early charging and discharging information related to the current SOC.
[0057] The reconstructed voltage and current time-series data are sequentially processed through a first-level gated loop unit and a second-level gated loop unit for two-stage time-series feature extraction. (8); (9); In the formula: , These represent the operations of the first and second layer gated loop units, respectively. Each layer's operation is performed according to the above calculation formulas for the reset gate, update gate, candidate hidden state, and hidden state. , These represent the first and second layer gated loop units respectively. The hidden state at any given moment; This indicates that the first-level gated loop unit is in The hidden state at any given moment; This indicates that the second-level gated loop unit is in The hidden state at any given time; the superscripts 1 and 2 represent the layer identifiers of the first and second layers, respectively. The reason for adopting a two-layer stacked structure is that the first-layer gated recurrent unit extracts shallow local time-series patterns from the original time series, such as short-term voltage fluctuation features; the second-layer gated recurrent unit further extracts deep global time-series dependent features based on the shallow features, such as long-term charging and discharging trend features. The cascading of the two layers can significantly improve the hierarchical representation capability of the features.
[0058] Finally, for the second-level gated loop unit in The higher-order temporal features are obtained by linearly projecting the hidden states at each time step: (10); In the formula: This represents the higher-order temporal features; This represents the output projection weight matrix; This represents the output projection bias term. The purpose of linear projection is to map the hidden state to a feature dimension that matches the subsequent regression task.
[0059] The gated recurrent unit network is trained using the Adam optimization algorithm, with the mean square error between the predicted SOC and the actual SOC as the training loss function. The weight matrices and bias terms are updated by backpropagation of the error over time. The training samples are the training set, and the actual SOC value is obtained by high-precision ampere-hour measurement during the training phase combined with open-circuit voltage correction during the resting period.
[0060] Step S4: Feature fusion and extreme gradient boosting model nonlinear regression: The extreme gradient boosting model is responsible for nonlinear regression prediction and outputs the reconstructed SOC value. The full name of the extreme gradient boosting model is eXtreme Gradient Boosting, abbreviated as XGBoost. Figure 4 As shown, the cascaded model is connected as follows: the hidden state output of the last time step of the gated recurrent unit network is used as a feature vector and directly input into the extreme gradient boosting model for regression prediction, thus forming an end-to-end cascaded structure of temporal feature extraction and nonlinear mapping. The design principle of this cascaded structure is that the gated recurrent unit network is good at temporal feature extraction but has limited regression accuracy, while the extreme gradient boosting model is good at nonlinear regression of static features but lacks temporal modeling capabilities. After the two are cascaded, the features output by the former have gathered temporal information, which precisely makes up for the shortcomings of the latter, realizing the complementary functions of temporal feature extraction and nonlinear mapping.
[0061] Specifically, the original features are concatenated with the higher-order time-series features obtained in step S3 to form a fused feature vector. The original features include the voltage, the current, and the SOC time-series estimate, i.e., shallow features not extracted by the gated recurrent unit network. The purpose of inputting both the original features and the higher-order time-series features into the regression model is that the original features retain direct physical information about the battery's operating state, such as the magnitude and direction of the instantaneous current and the preliminary estimate of the ampere-hour integral, while the higher-order time-series features carry deeper information about historical dynamics. The fusion of these two features allows the regression model to utilize both shallow physical information and deep time-series information simultaneously, avoiding the loss of effective information during the deep extraction process.
[0062] The extreme gradient boosting model is trained using the fused feature vector as input and the true SOC value as the label. During training, a regression tree is added in each round to fit the residual of the previous prediction in order to minimize the objective function. (11); (12); In the formula: Represent the objective function; Indicates model parameters; Represents the loss function; Indicates the number of training samples; Indicates the sequence number of the training sample. =1,2,…, ; Indicates the first The true SOC value of each training sample; Indicates the first The predicted SOC value of each training sample; This represents the total number of regression trees; Indicates the index of the regression tree. =1,2,…, ; Indicates the first A regression tree; Indicates the first The complexity regularization term of the regression trees. Its training principle is forward stepwise optimization under the additive model: each newly added regression tree does not directly fit the true value, but fits the residual between the current model prediction value and the true value. By accumulating the outputs of multiple trees, it gradually approximates the true nonlinear mapping relationship, so that the estimated value is closer to the true value.
[0063] The regularization term consists of a leaf node number penalty term and a leaf node weight regularization term: (13); In the formula: Indicates the first The number of leaf nodes in the regression tree; Indicates the index of the leaf node. =1,2,…,T'; Indicates the first The weight of each leaf node; This represents the regularization parameter used to adjust the complexity of the tree; This represents the regularization parameter used to adjust the smoothness of leaf node weights. The purpose of introducing the regularization term is to penalize excessive tree structure with leaf nodes and compress the magnitude of leaf weights, thereby suppressing the model's overfitting to training sample noise and improving the model's generalization ability under conditions exceeding the coverage of the training samples.
[0064] Furthermore, a second-order Taylor expansion is performed on the objective function. Let the... During rounds of iteration, the model is in the first round. The output under -1 tree is Then the objective function is approximately: (14); In the formula: Indicates the first The fused feature vector of each training sample; , Represent the loss function pairs respectively The first and second derivatives; for the above squared loss function, , The principle behind using the second-order Taylor approximation is that by simultaneously utilizing the first and second derivative information of the loss function, the local shape of the objective function after the addition of a new tree can be more accurately characterized, thereby accelerating convergence and improving the accuracy of tree structure learning.
[0065] After merging samples belonging to the same leaf node, the optimal weights of each leaf node are solved using the extremum condition of the expansion: (15); In the formula: Indicates the first The optimal weight of each leaf node, with the superscript * indicating optimal; , They respectively represent belonging to the first The sum of the first and second derivatives of the loss function for all training samples at each leaf node.
[0066] Substitute the optimal weights into the objective function, and determine the structure of the regression tree based on minimizing the objective function value; the splitting of regression tree nodes is determined according to the following splitting gain: (16); In the formula: Indicates split gain; , Let represent the sum of the first and second derivatives of the samples of the left child node after the split, respectively; , Let represent the sum of the first and second derivatives of the samples in the right child node after the split, respectively. When the split gain... If the value is greater than 0, the split is performed; otherwise, the split is stopped. The principle is that if the decrease in the objective function value before and after the split is insufficient to offset the complexity penalty brought by the addition of leaf nodes, the split will not be effective. If the split does not provide any net benefit to the model performance, it should be pruned to achieve adaptive complexity control of the tree structure.
[0067] After training, the extreme gradient boosting model is used to perform nonlinear regression on the online-acquired fused feature vectors to output data-driven SOC observations.
[0068] Step S5: Cooperative optimization of the unscented Kalman filter fusion algorithm: An ampere-hour integral model is used as the state predictor, and the output of a cascaded model consisting of the gated recurrent unit network and the extreme gradient boosting model is used as the observation model. Optimal fusion of the two is achieved through a state-space framework. Specifically, the ampere-hour integral model performs state prediction in the state equation, providing state prediction values consistent with battery physics; the cascaded model performs measurement in the observation equation, with its output SOC observation value serving as the measurement value; the unscented Kalman filter, through a recursive prediction and correction mechanism, uses the measurement value to perform closed-loop correction of the state prediction value, thereby synergistically optimizing the state value provided by the ampere-hour integral model and the observation value output by the extreme gradient boosting model, effectively suppressing accumulated errors and significantly improving estimation accuracy and robustness. The unscented Kalman filter (UKF) handles the nonlinear propagation of state variables through unscented transformation, eliminating the need for linearization approximation of the nonlinear model and avoiding truncation errors.
[0069] like Figure 5 As shown, the specific steps include the following: Step S5.1: Initialization: when When =0, construct the initial values of the state vector using the initial SOC value, initial current value, and initial voltage value, and initialize the state error covariance matrix: (17); (18); In the formula: Indicates the sampling time; This represents the initial value of the state vector; Indicates the initial SOC value; Indicates the initial current value; Indicates the initial voltage value; superscript Indicates transpose; Represents the initial state error covariance matrix; , , These represent the standard deviations of SOC estimation error, current noise, and voltage noise, respectively, set according to the sensor's accuracy specifications and initial calibration error. Setting the initial state error covariance matrix as a diagonal matrix means that the estimation errors between the state components at the initial moment are considered uncorrelated.
[0070] Step S5.2: Singular Value Decomposition: Traditional unscented Kalman filtering requires a square root operation on the state error covariance matrix when calculating the Sigma point. When the covariance matrix loses its positive definiteness due to accumulated rounding errors, the square root operation will produce invalid values, leading to filter divergence. To address this problem, this embodiment... Singular value decomposition of the state error covariance matrix at time t: (19); In the formula: express The state error covariance matrix at time t; express The left singular vector matrix at time t; Represents a singular value diagonal matrix; express The right singular vector matrix at time t.
[0071] Step S5.3: Sigma point calculation: Based on the singular value decomposition results, calculate 2L'+1 Sigma points to form the Sigma point set: (20); (twenty one); In the formula: express The first moment One Sigma point; express The optimal posterior state estimate at time t; Indicates the first The offset of each Sigma point; Indicates the scaling factor; Describes the first singular vector matrix of the left. List; Describes the first singular valued diagonal matrix. One diagonal element; L' represents the dimension of the state vector; in this embodiment, L' is 3. This represents the index of the Sigma point. The improvement principle is that singular value decomposition exists for any real matrix and is numerically stable. The Sigma point is constructed by replacing the square root of the state error covariance matrix with the product of the left singular vector and the square root of the singular value. This avoids the ill-conditioned problem of directly taking the square root of the covariance matrix from the algorithm level and ensures the long-term numerical stability of the filtering recursion.
[0072] Step S5.4: Weight Calculation: Calculate the mean weight and covariance weight for each Sigma point: (twenty two); (twenty three); (twenty four); In the formula: , They represent the first The mean weight and covariance weight of each Sigma point, superscript , These are identifiers for the mean and covariance, respectively. Indicates the scaling factor; This represents the scaling parameter that determines the range of the Sigma point distribution; its value range is not less than... And not greater than 1; This represents the secondary sampling factor, which is either 0 or 3 minus the difference of L'. This represents the prior distribution parameters of the state variables, when the state variables follow a Gaussian distribution. We choose 2. The Sigma point with index 0 is located at the state mean and has the strongest statistical representativeness, so it is given a larger weight. The other Sigma points are symmetrically distributed on both sides of the mean and are weighted equally to ensure the unbiasedness of the mean and covariance estimates.
[0073] Step S5.5: Time Update: Using the ampere-hour integral model as the state transition equation, the predicted state values are obtained by propagating the equations to each Sigma point: (26); In the formula: Indicates the first The predicted state value corresponding to each Sigma point; This represents the state transition function determined by the ampere-hour integral model, i.e., according to the ampere-hour integral model... Time-state recursion Time status; subscript Indicates by Information about time Each step involves a prediction. This sub-step, namely the ampere-hour integral model, serves as the algorithmic embodiment of the state predictor: the time propagation of the state is entirely driven by the physical model, ensuring that the prediction results naturally satisfy the physical constraint of charge conservation.
[0074] Step S5.6: Prediction weighting: By weighting the predicted state values using the aforementioned weights, we obtain the predicted state estimate and the predicted covariance: (27); (28); In the formula: express Predicted state estimation at time; Indicates the predicted covariance; The process noise covariance matrix is defined based on the modeling uncertainty of the ampere-hour integral model, and its value reflects the prior assessment of the prediction error of the physical model.
[0075] Step S5.7: Measurement Update: Using the cascaded model consisting of the gated recurrent unit network and the extreme gradient boosting model as the observation equation, the predicted values of each state are propagated to obtain the observed predicted values: (29); In the formula: Indicates the first The observed and predicted values corresponding to each Sigma point; This represents the observation function determined by the cascaded model, which is a nonlinear mapping achieved by reconstructing the voltage and current components at the Sigma point through phase space and then sequentially passing them through a gated recurrent unit network, feature fusion, and an extreme gradient boosting model. This sub-step, where the output of the cascaded model serves as the algorithmic embodiment of the observation model, eliminates the reliance on an explicitly established battery equivalent circuit model. Instead, the data-driven cascaded model acts as the equation, thus avoiding the observation mismatch problem caused by the drift of equivalent circuit model parameters with temperature and aging.
[0076] Step S5.8: Observation weighting: We weight the observed predictions to obtain the observed estimates, the observed autocovariance, and the cross-covariance between the state and the observations: (30); (31); (32); In the formula: express The observed estimate at time; Indicates the observed autocovariance; It represents the cross-covariance between state and observation, and its physical meaning is the degree of correlation between state prediction error and observation prediction error. It is a statistical bridge for establishing a measurement-corrected state channel. This represents the observation noise covariance matrix, which is set based on the regression error statistics of the extreme gradient boosting model on the validation samples. Its value reflects the prior assessment of the uncertainty of the data-driven measurement.
[0077] Step S5.9: Gain Calculation and State Correction: Calculate the Kalman gain and correct the predicted state estimate using the measured value, then output the result. SOC estimate at time: (33); (34); (35); In the formula: express Kalman gain at time step; express The measured value at time point, wherein the measured value is the SOC observation value, that is, the regression output of the extreme gradient boosting model on the online fused feature vector in step S4; express The estimated SOC value at time t; express The updated state error covariance matrix is used as the input to sub-step S5.2 at the next sampling time and participates in the recursion; superscript This represents finding the inverse of a matrix.
[0078] The adaptive adjustment mechanism of fusion can be seen from the calculation formulas of Kalman gain and state correction: Kalman gain The gain is determined by the ratio of cross-covariance to observation autocovariance. When the prediction covariance of the physical model is large, i.e., the reliability of the physical model decreases, the gain increases, and the correction relies more on data-driven measurements. When the observation autocovariance of the cascaded model is large, i.e., the reliability of data-driven measurements decreases, the gain decreases, and the correction relies more on the physical model prediction. Thus, the physical constraints of the ampere-hour integral model and the data-driven information of the cascaded model are dynamically weighted and fused according to reliability at each sampling time. This is the core mechanism by which this invention can collaboratively optimize the state values provided by the ampere-hour integral model and the observation values output by the extreme gradient, thereby achieving adaptive improvement and stable maintenance of SOC estimation accuracy throughout the battery's entire life cycle.
[0079] (III) Model Parameter Settings: The main parameter settings for each model in this embodiment are shown in Tables 1 to 3 below:
[0080]
[0081]
[0082] (iv) Simulation verification: Figure 6 This is a graph showing the simulation operating conditions. Figure 6 The figure above shows a comparison between the true value of the dynamic charging and discharging current and the measured value with noise. Figure 6 The figure below shows the corresponding terminal voltage response curve. This figure indicates that the simulation conditions cover various dynamic characteristics such as fluctuations and pulses, and there is a continuous bias error in the measured current, which is the root cause of the cumulative error of the ampere-hour integration method.
[0083] Figure 7 A comparison chart of SOC estimation results. Figure 7 The paper presents the actual SOC curve, the ampere-hour integral estimation curve, the cascaded model observation curve, and the fusion estimation curve of this invention, with the training and testing segments divided by vertical dashed lines. Figure 7 It can be observed that: 1) The ampere-hour integral estimation curve deviates from the true value from the initial time, and the deviation continues to increase unidirectionally with time, showing typical cumulative error characteristics. By the end of the simulation, the deviation has exceeded 4%. 2) The observed curves of the cascaded model fluctuate around the true value without a unidirectional drift trend, but there are instantaneous noise spikes, which reflects the characteristics of the data-driven method: "no cumulative error but insufficient smoothness". 3) The fusion estimation curve of this invention smoothly fits the true value in both the training and testing segments, which not only suppresses the cumulative drift of the ampere-hour integral but also filters out the instantaneous spikes of data-driven observations, thus verifying the adaptive weighting mechanism of Kalman gain for physical model prediction and data-driven measurement.
[0084] Figure 8 This is a comparison chart of SOC estimation errors, comparing the ampere-hour integration error with the fusion estimation error of this invention. From... Figure 8 It can be observed that the ampere-hour integration error grows approximately linearly; the fusion estimation error of this invention always converges to a small range near zero, and the root mean square error of the test segment remains stable at a level much smaller than that of the ampere-hour integration method. The specific values are based on the actual output of the code. This indicates that the method of this invention is significantly better than the single method in terms of estimation accuracy and long-term stability, and the estimation performance does not deteriorate with running time. This is consistent with the beneficial effects of effectively suppressing accumulated errors and achieving adaptive improvement and stable maintenance of estimation accuracy throughout the entire life cycle.
[0085] Example 2: The difference between this embodiment and Embodiment 1 is that the method of the present invention is applied to energy storage batteries at different aging stages. Specifically, energy storage batteries of the same model with cycle counts at the initial, middle, and final stages are selected and processed according to... Figure 2 The test procedure shown recalibrates the capacity to obtain the current maximum available capacity for each. And update the attenuation factor accordingly. The remaining steps are the same as in Example 1. Since the decay factor in the ampere-hour integral model is adaptively updated with battery aging, and the measurements in the fusion framework are driven by actual operating data and the trust weights are dynamically adjusted by the Kalman gain, the method of this invention can maintain stable estimation accuracy at different aging stages throughout the battery's lifespan, without requiring recalibration of all parameters of the physical model.
Claims
1. A method for estimating the state of charge of energy storage batteries based on a hybrid framework of physical models and machine learning, characterized in that... Includes the following steps: S1: Collect the voltage and current of the energy storage battery during operation, and use the ampere-hour integral model to obtain the estimated value of the state of charge (SOC) of the energy storage battery. S2: Reconstruct the phase space of the SOC time series estimate, extract its nonlinear dynamic features, and generate the reconstruction feature matrix; S3: A gated recurrent unit network is used to extract high-order timing features from the reconstructed voltage and current timing data; S4: After fusing the original features with the high-order time series features, input them into the extreme gradient boosting model for nonlinear regression to generate data-driven SOC observations. The original features include voltage, current, and SOC time series estimates. S5: Using the ampere-hour integral model as the state predictor and the SOC observation value as the measurement value, the state prediction value output by the state predictor is corrected by the unscented Kalman filter fusion algorithm, and the SOC estimate value of the energy storage battery is output.
2. The method for estimating the state of charge of an energy storage battery based on a hybrid framework of physical model and machine learning as described in claim 1, characterized in that: S1 includes: S1.1: Real-time acquisition of instantaneous current and voltage during the charging and discharging process of the energy storage battery, and calibration of the battery's initial charge and current maximum usable capacity; S1.2: Based on the ampere-hour integral model, the SOC value at the current sampling moment is calculated using the instantaneous current collected in S1.1: ; In the formula: SOC represents the remaining battery power; Indicates the initial battery charge; express The instantaneous current of the battery at any given moment; Indicates the time interval between adjacent sampling times; Indicates the current maximum available capacity; This represents the capacity-related attenuation factor. S1.3: Arrange the SOC values at each sampling time obtained from S1.2 in chronological order to construct the SOC time series estimate.
3. The method for estimating the state of charge of energy storage batteries based on a hybrid framework of physical models and machine learning as described in claim 2, characterized in that: S2 includes: S2.1: The SOC time series estimate constructed in S1.3 is used as a univariate time series under a nonlinear dynamic system. ,in: Indicates the first SOC time series estimates at each sampling time point; Indicates the total number of samples; Indicates the sequence number of the sampling time. =1,2,…, ; S2.2: Define the phase space embedding dimension Phase space reconstruction was performed on the univariate time series S2.1 to convert the continuous... The values at each sampling time point constitute a reconstructed state vector, which is then slid sequentially along the time axis to generate a reconstructed feature matrix: ; In the formula: Indicates the embedding dimension of the phase space; They represent the 1st to the 1st. A reconstructed state vector; the first row of the reconstructed feature matrix consists of the first to the second row of the univariate time series. The values at each sampling time are constituted, and the second row consists of values from the 2nd to the 3rd. The values at sampling time +1 constitute the total, and so on, up to the 1st sampling time. Line by the To the The values are composed of -1 sampling times.
4. The method for estimating the state of charge of energy storage batteries based on a hybrid framework of physical models and machine learning as described in claim 3, characterized in that: S3 includes: S3.1: Using the reconstructed voltage and current timing data as input to the gated recurrent unit network, calculate the reset gate and update gate: ; ; In the formula: Indicates that the door is being reset; Indicates an update to the door; This represents the Sigmoid activation function; , These represent resetting the gate weight matrix and updating the gate weight matrix, respectively. , These represent resetting the door offset and updating the door offset, respectively. express Time of the first The hidden state of each sampling point; express Time of the first The input features of each sampling point include the reconstructed voltage and current; Indicates time; Indicates the sequence number of the sampling point; Indicates the concatenation of vectors; S3.2: Using the reset door pair obtained in S3.1 Filter the hidden states at each time step and calculate candidate hidden states: ; In the formula: express The candidate hidden state at each moment; Represents the hyperbolic tangent activation function; Represents the candidate state weight matrix; Represents the Hadamard product; Indicates the candidate state bias term; S3.3: Using the update gate obtained in S3.1, perform... The hidden state at time step S3.2 is weighted and fused with the candidate hidden states obtained in S3.2 to obtain the hidden state at the current time step: In the formula: express Time of the first The hidden state of each sampling point.
5. The method for estimating the state of charge of energy storage batteries based on a hybrid framework of physical models and machine learning as described in claim 4, characterized in that: S3 further includes: S3.4: The reconstructed voltage and current timing data are sequentially processed through a first-level gated loop unit and a second-level gated loop unit for two-stage timing feature extraction. ; ; In the formula: , These represent the operations of the first and second layer gated loop units, respectively; , These represent the first and second layer gated loop units respectively. The hidden state at any given moment; This indicates that the first-level gated loop unit is in The hidden state at any given moment; This indicates that the second-level gated loop unit is in The hidden state at any given time; the superscripts (1) and (2) represent the layer identifiers of the first and second layers, respectively; S3.5: The second-level gated loop unit obtained in S3.4 is... By linearly projecting the hidden states at each time step, higher-order temporal features are obtained: ; In the formula: Represents higher-order temporal characteristics; This represents the output projection weight matrix; This indicates the output projection bias term.
6. The method for estimating the state of charge of an energy storage battery based on a hybrid framework of physical model and machine learning as described in claim 5, characterized in that: S4 further includes: S4.1: Concatenate the original features with the higher-order temporal features obtained in S3.5 to form a fused feature vector; S4.2: Using the fused feature vector constructed in S4.1 as input and the true SOC value as label, train the extreme gradient boosting model. During training, add a regression tree in each round to fit the residual of the previous round's prediction in order to minimize the objective function. ; ; In the formula: Represent the objective function; Indicates model parameters; Represents the loss function; Indicates the number of training samples; Indicates the sequence number of the training sample. =1,2,…, ; Indicates the first The true SOC value of each training sample; Indicates the first The predicted SOC value of each training sample; This represents the total number of regression trees; Indicates the index of the regression tree. =1,2,…, ; Indicates the first A regression tree; Indicates the first The complexity of a regression tree is determined by the regularization term. S4.3: Using the extreme gradient boosting model trained in S4.2, perform nonlinear regression on the fused feature vectors acquired online to output SOC observations.
7. The method for estimating the state of charge of an energy storage battery based on a hybrid framework of physical model and machine learning as described in claim 6, characterized in that: S4.2 includes: S4.2.1: Construct a regularization term consisting of a leaf node number penalty term and a leaf node weight regularization term: ; In the formula: Indicates the first The number of leaf nodes in the regression tree; Indicates the index of the leaf node. =1,2,…, ; Indicates the first The weight of each leaf node; This represents the regularization parameter used to adjust the complexity of the tree; This represents the regularization parameter used to adjust the smoothness of the leaf node weights; S4.2.2: Perform a second-order Taylor expansion on the objective function, and solve for the optimal weights of each leaf node using the extremum conditions of the expansion: ; In the formula: Indicates the first The optimal weight of each leaf node, with the superscript * indicating optimal; , They respectively represent belonging to the first The sum of the first and second derivatives of the loss function for all training samples at each leaf node; S4.2.3: Substitute the optimal weights obtained in S4.2.2 into the objective function, and determine the structure of the regression tree based on minimizing the objective function value.
8. The method for estimating the state of charge of an energy storage battery based on a hybrid framework of physical model and machine learning as described in claim 7, characterized in that: S5 includes: S5.1: When When =0, construct the initial values of the state vector using the initial SOC value, initial current value, and initial voltage value, and initialize the state error covariance matrix: ; ; In the formula: Indicates the sampling time; This represents the initial value of the state vector; Indicates the initial SOC value; Indicates the initial current value; Indicates the initial voltage value; superscript Indicates transpose; Represents the initial state error covariance matrix; , , These represent the standard deviations of SOC estimation error, current noise, and voltage noise, respectively.
9. The method for estimating the state of charge of an energy storage battery based on a hybrid framework of physical model and machine learning as described in claim 8, characterized in that: The S5 also includes: S5.2: For Singular value decomposition of the state error covariance matrix at time t: ; In the formula: express The state error covariance matrix at time t; express The left singular vector matrix at time t; Represents a singular value diagonal matrix; express The right singular vector matrix at time t; S5.3: Calculation of 2 based on the singular value decomposition results of S5.2 +1 Sigma point, forming the Sigma point set: ; ; In the formula: express The first moment One Sigma point; express The optimal posterior state estimate at time t; Indicates the first The offset of each Sigma point; Indicates the scaling factor; Describes the first singular vector matrix of the left. List; Describes the first singular valued diagonal matrix. One diagonal element; The dimension of the state vector; Indicates the index of the Sigma point; S5.4: Calculate the mean weight and covariance weight of each Sigma point in the Sigma point set obtained in S5.3: ; ; ; In the formula: , They represent the first The mean weight and covariance weight of each Sigma point, superscript , These are identifiers for the mean and covariance, respectively. Indicates the scaling factor; This represents the scaling parameter that determines the range of the Sigma point distribution; Indicates the secondary sampling factor; This represents the prior distribution parameters of the state variables.
10. The method for estimating the state of charge of an energy storage battery based on a hybrid framework of physical model and machine learning as described in claim 9, characterized in that: The S5 also includes: S5.5: Using the ampere-hour integral model as the state transition equation, propagate the Sigma points obtained in S5.3 to obtain the state prediction values: ; In the formula: Indicates the first The predicted state value corresponding to each Sigma point; Represents the state transition function determined by the ampere-hour integral model; subscript Indicates by Information about time Make predictions at any time; S5.6: Using the weights obtained in S5.4, the state prediction values obtained in S5.5 are weighted to obtain the predicted state estimate and the predicted covariance: ; ; In the formula: express Predicted state estimation at time; Indicates the predicted covariance; Represents the process noise covariance matrix; S5.7: Using a cascaded model consisting of a gated recurrent unit network and an extreme gradient boosting model as the observation equation, the predicted values of each state obtained in S5.5 are propagated to obtain the observed predicted values: ; In the formula: Indicates the first The observed and predicted values corresponding to each Sigma point; This represents the observation function determined by the cascaded model; S5.8: Using the weights obtained in S5.4, the observed predictions obtained in S5.7 are weighted to obtain the observed estimates, observed autocovariance, and cross-covariance between state and observation: ; ; ; In the formula: express The observed estimate at time; Indicates the observed autocovariance; Represents the cross-covariance between the state and the observation; Represents the observation noise covariance matrix; S5.9: Calculate the Kalman gain based on the cross-covariance and observed autocovariance obtained in S5.8, and correct the predicted state estimate obtained in S5.6 using the measured values, then output the result. SOC estimate at time: ; ; ; In the formula: express Kalman gain at time step; express The measured value at time, the measured value is the SOC observation value; express The estimated SOC value at time t; express The updated state error covariance matrix at time step; superscript This represents finding the inverse of a matrix.
