An energy storage battery electric thermal state selective correction method, system, device and medium

By constructing a state correction method for energy storage batteries, candidate branches are generated using electrothermal models and physical constraints, and comprehensive scoring and training label selection are performed. This solves the problem of difficulty in determining the correction direction in energy storage battery state estimation, and achieves high-efficiency state estimation accuracy and reliability.

CN123176558APending Publication Date: 2026-11-27ZHONGSHAN POWER SUPPLY BUREAU OF GUANGDONG POWER GRID
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611685184.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-29
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing energy storage battery state estimation methods fail to effectively utilize predicted outputs in the future time domain for evaluation and selection of corrective actions, making it difficult to reasonably determine the necessity and direction of corrections, thus affecting the accuracy and reliability of state estimation.

Method used

By acquiring measurement data from the energy storage battery and external input data, an original state correction quantity is constructed. Based on the electrothermal model, projection and physical constraints are applied to generate multiple candidate branches. Voltage and temperature prediction errors are used for comprehensive scoring. Selected branches are chosen as training labels, and a branch determination model is trained to determine the corrected output state.

Benefits of technology

Under limited external measurement conditions, it can effectively distinguish between electrochemical state deviation and thermal boundary error, reduce online computation, maintain the accuracy and reliability of state estimation, and is suitable for practical engineering conditions with limited sensor configuration and complex operating conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123176558A_ABST
    Figure CN123176558A_ABST
Patent Text Reader

Abstract

The application discloses an energy storage battery electric heating state selective correction method, system, device and medium, and relates to the technical field of electrochemical energy storage systems. Measurement data and external input data at the current decision time are obtained, and the posterior state at the previous time is advanced to the prior state at the current time; an original state correction amount is constructed based on measurement residuals; the original state correction amount is projected and physical constraints are applied to generate multiple candidate branches; the voltage prediction error and the temperature prediction error of each candidate branch are determined by taking each candidate state as an initial state and performing open-loop propagation using preset historical measured operation data; the prediction errors are comprehensively scored based on the prediction errors, and a selected branch is selected from the candidate branches as a training label; a branch determination model is trained using the training label, and the corrected output state is determined through the trained branch determination model. Through the training model, branch reasoning is completed according to the current and historical information in the online stage, and the state estimation accuracy and reliability under limited measurement conditions are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electrochemical energy storage system technology, and in particular to a method, system, device and medium for selectively correcting the electrothermal state of an energy storage battery. Background Technology

[0002] During the operation of energy storage batteries, the external quantities that the Battery Management System (BMS) can directly acquire are typically limited to terminal voltage, surface temperature, charge / discharge current, and ambient temperature. However, internal states such as solid-phase lithium concentration distribution, polarization voltage, and core temperature cannot be directly measured by sensors. When factors such as model errors, sensor biases, or uncertain heat transfer boundary conditions exist, different concentration states, polarization states, and thermal states may produce similar terminal voltage and surface temperature outputs. This many-to-one mapping relationship makes it difficult to uniquely determine the true internal state of the battery by relying solely on external measurements such as voltage and temperature, and also brings considerable difficulty to how to correctly allocate correction amounts during state correction.

[0003] Existing state estimation methods, when correcting the state using measurement residuals, typically allocate correction amounts point-by-point according to state coordinates or distribute correction amounts among different state variables according to empirical weights. This correction method may disrupt fundamental physical laws such as the conservation of active lithium, electrode concentration relationships, or thermal energy balance. As a result, although the corrected state may be numerically closer to the current measurement, it may be physically infeasible, thus affecting the reliability of subsequent state predictions. Meanwhile, some existing methods introduce multi-branch or multi-model architectures, selecting the optimal branch or model by comparing the output errors of each branch. However, such methods usually only select branches based on voltage errors, failing to fully utilize temperature information to distinguish between electrochemical state deviations and thermal boundary errors. When there are deviations in ambient temperature measurements or inaccurate cooling conditions, thermal boundary errors may be misjudged as electrochemical state deviations, leading to incorrect corrections of concentration or polarization states.

[0004] Furthermore, existing state estimation methods typically perform state corrections at every sampling time, lacking selective identification of whether corrections should be performed and in which direction. They fail to compare the predicted output of the corrected state in the future time domain with measured operational data to evaluate and select the optimal correction action. In cases of insufficient current excitation, missing temperature measurement points, or poor data quality, it is difficult to distinguish different types of state deviations from the measured data. Performing corrections in the established manner under these conditions may cause the internal state to be corrected in the wrong direction, thus affecting the degree to which the state estimation results closely match the actual state. Summary of the Invention

[0005] This invention provides a method, system, device, and medium for selective correction of the electrothermal state of energy storage batteries. It solves the technical problem that in existing energy storage battery state estimation, the correction action is not evaluated and optimized based on the predicted output in the future time domain, which makes it difficult to reasonably determine the necessity and direction of the correction, thus leading to a decrease in the accuracy and reliability of state estimation.

[0006] The first aspect of this invention provides a method for selectively correcting the electrothermal state of an energy storage battery, comprising: Acquire measurement data and external input data of the energy storage battery at the current decision moment, and advance the previous posterior state of the energy storage battery to the current prior state based on the external input data; Based on the residual between the measured data and the predicted output data of the prior state at the current moment, the original state correction amount is constructed. Projecting the original state correction amount and applying corresponding physical constraints respectively generates multiple candidate branches, including update branches and non-update branches. Using the candidate state of each candidate branch as the initial state, the preset historical measured operation data corresponding to the initial state is used to perform open-loop state propagation on each candidate branch to determine the voltage prediction error and temperature prediction error of each candidate branch in the preset future time domain. The candidate branches are comprehensively scored based on the voltage prediction error and the temperature prediction error, and a selected branch is chosen as the training label from the candidate branches according to the comprehensive score. The training labels are used to train the branch decision model, and the corrected output state is determined by the trained branch decision model.

[0007] Optionally, the step of constructing the original state correction based on the residual between the measured data and the predicted output data of the prior state at the current time includes: The electrothermal model uses the previous auxiliary posterior state and the corresponding external input data at the current time to predict the state and generate the current auxiliary prior state. The electrothermal model is used to measure and predict the current time's auxiliary prior state and the corresponding external input data to generate the predicted output data of the current time's prior state. Based on the difference between the measurement data at the current moment and the predicted output data, a measurement residual is generated; The Kalman gain is solved using the covariance matrix of the state prediction output, the observation Jacobian matrix of the measurement prediction output, and the preset noise covariance parameter. By using a finite-memory extended Kalman observer, the posterior state of the finite-memory extended Kalman observer at the current moment is obtained by recursion based on the Kalman gain and measurement residual corresponding to each historical moment within a preset historical window. The difference between the posterior state at the current time and the prior state at the current time is calculated to obtain the original state correction amount.

[0008] Optionally, the step of projecting the original state correction and applying corresponding physical constraints to generate multiple candidate branches includes: The original state correction amount is projected along the set of correctable directions defined by the physical conservation constraints corresponding to the update branch, and the correction coefficients corresponding to the update branch are solved. The correction coefficients are mapped to a projected state correction vector of the same dimension as the prior state at the current moment through the direction basis corresponding to the set of correctable directions. The projected state correction vector is superimposed onto the prior state at the current time, and the superposition result is numerically pruned by applying state boundary constraints to generate candidate states corresponding to the update branch. The current prior state is used as a candidate state for the non-updated branch, and the updated branch and the non-updated branch are used together to form multiple candidate branches.

[0009] Optionally, the step of using the candidate states of each candidate branch as initial states, and employing preset historical measured operating data corresponding to the initial states to perform open-loop state propagation on each candidate branch to determine the voltage prediction error and temperature prediction error of each candidate branch in a preset future time domain includes: The measured current, ambient temperature, and cooling status within the same time period after the current decision moment are used as the measured operating data shared by all the candidate branches. Using the candidate states of each candidate branch as the initial state, the measured operating data is used to perform open-loop state propagation through the electrothermal model to obtain the predicted state of each candidate branch at each time in the preset future time domain. Based on the predicted state and the corresponding measured operating data, the electrothermal model is used to perform measurement and prediction, generating the voltage and temperature prediction values ​​of each candidate branch in the preset future time domain. Based on the differences between the predicted voltage and temperature values ​​and their corresponding measured values, the voltage prediction error and temperature prediction error of each candidate branch in the preset future time domain are determined.

[0010] Optionally, the step of comprehensively scoring each candidate branch based on the voltage prediction error and the temperature prediction error includes: The difference between the predicted voltage value and the corresponding measured voltage value of each candidate branch at each time point in the preset future time domain is calculated to generate the voltage prediction error corresponding to the candidate branch. The temperature prediction value and the corresponding measured temperature value of each candidate branch at each time in the preset future time domain are calculated respectively to generate the temperature prediction error corresponding to the candidate branch. Based on the voltage prediction error and temperature prediction error corresponding to each candidate branch, normalized voltage score and normalized temperature score are calculated respectively according to multiple preset playback durations. The normalized voltage score and the normalized temperature score are weighted and combined, and combined with the preset physical constraint cost and the preset numerical stability cost, to generate a comprehensive score for each candidate branch.

[0011] Optionally, the step of selecting a chosen branch as a training label from the candidate branches based on the comprehensive score includes: Based on the comprehensive score of each update branch, the update branch with the best comprehensive score and the update branch with the second best comprehensive score are selected as the first update branch and the second update branch, respectively. Calculate the overall score improvement of the first updated branch relative to the non-updated branch, and calculate the score difference between the first updated branch and the second updated branch; If the improvement in the overall score is not less than a preset improvement threshold, the score difference is not less than a preset score difference threshold, the identifiability quantification index of the first updated branch is not less than a preset identifiability threshold, and the score improvement distribution of the first updated branch relative to the non-updated branch in each output type meets the preset multi-output evaluation validity conditions, then the first updated branch is selected as the branch. Otherwise, the branch that is not updated is selected as the branch; The selected branch is used as the training label.

[0012] Optionally, the step of training the branch decision model using the training labels and determining the corrected output state using the trained branch decision model includes: The selected branch is used as the supervision label, and the measurement data and external input data corresponding to the initial state are used as training samples to train the branch decision model. The measurement data and external input data at the current decision moment are input into the trained branch decision model to obtain the output probability of each candidate branch; If the highest output probability in the output probabilities is not lower than the preset confidence threshold and the safety conditions are met, then the candidate state of the candidate branch corresponding to the highest output probability is used as the corrected state output. Otherwise, the current prior state is output as the corrected state, and a rejection indication is output.

[0013] A second aspect of the present invention provides a selective correction system for the electrothermal state of an energy storage battery, comprising: The data acquisition module is used to acquire the measurement data and external input data of the energy storage battery at the current decision moment, and advance the previous posterior state of the energy storage battery to the current prior state based on the external input data. The correction quantity construction module is used to construct the original state correction quantity based on the residual between the measurement data and the predicted output data of the prior state at the current time. The candidate generation module is used to project the original state correction amount and apply corresponding physical constraints to generate multiple candidate branches, including update branches and non-update branches. An open-loop propagation module is used to propagate the open-loop state of each candidate branch using the candidate state of each candidate branch as the initial state and the preset historical measured operation data corresponding to the initial state, so as to determine the voltage prediction error and temperature prediction error of each candidate branch in a preset future time domain. The label generation module is used to comprehensively score each candidate branch based on the voltage prediction error and the temperature prediction error, and select a selected branch from the candidate branches as a training label according to the comprehensive score. The model training and output module is used to train the branch decision model using the training labels and to determine the corrected output state using the trained branch decision model.

[0014] A third aspect of the present invention provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of the selective correction method for the electrothermal state of an energy storage battery as described above.

[0015] The fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed, it implements the selective correction method for the electrothermal state of an energy storage battery as described above.

[0016] As can be seen from the above technical solutions, the present invention has the following advantages: This invention acquires measurement data and external input data of the energy storage battery at the current decision-making moment, and advances the posterior state of the previous moment to the prior state of the current moment based on the external input data. This allows the internal state estimation to obtain a model prediction benchmark without waiting for future measurement data, providing a comparable reference baseline for determining the subsequent correction direction. An original state correction quantity is constructed based on the residual between the measurement data and the prior state prediction output, transforming two types of external measurement information—voltage and surface temperature—into a unified state adjustment direction. This ensures that the original correction quantity retains complete residual information before subsequent projection, avoiding premature information filtering that could lead to the loss of the correction direction. The original state correction quantity is projected onto multiple candidate branches, and corresponding physical constraints are applied to each, generating multiple candidate branches, including updated and non-updated branches. This decomposes the original correction quantity into candidate correction directions with clear physical meanings under the constraints of different physical conservation laws. The three types of constraints—active lithium conservation, constant electrode average concentration, and thermal balance—correspond to feasible correction spaces for different physical processes, helping to solve the technical challenge of identifying correction directions under limited external measurement conditions. Using the candidate states of each candidate branch as the initial state, the measured current, ambient temperature, and cooling status within the same time period after the current decision time are used to perform open-loop state propagation on all candidate branches. This allows for a fair comparison of the prediction capabilities of each branch under the same set of subsequent external input conditions. Simultaneous voltage and surface temperature are only used for scoring and do not participate in state correction. This ensures that the candidate comparison is not affected by assimilation updates and truly reflects the evolution effect of each correction direction under the same future operating conditions.

[0017] Based on voltage and temperature prediction errors, each candidate branch is comprehensively scored, and a selected branch is used as a training label. This ensures that the prediction accuracy of both voltage and temperature outputs at different playback durations participates in the branch evaluation. The joint scoring of voltage and temperature can effectively distinguish between electrochemical state deviations and thermal boundary errors, avoiding misjudging deviations in ambient temperature or cooling conditions as correction requirements for concentration or polarization states. Simultaneously, identifiability quantification indicators are used to eliminate erroneous corrections when current measurement data is insufficient to distinguish candidate branches, effectively solving the problem of difficulty in determining the necessity of corrections. The branch decision model is trained using training labels, and the corrected output state is determined through the trained branch decision model. This ensures that the high-quality training labels generated through open-loop playback and comprehensive scoring in the offline phase are embedded into a lightweight classification model. During online operation, complex open-loop playback and scoring calculations are not required; only current and historically available information needs to be input into the model to obtain the probability distribution of each candidate branch. When the confidence level is insufficient or the safety conditions are not met, the model reverts to not updating the branch and outputs the rejection reason, keeping the online computational load within the tolerance range of the embedded BMS while retaining a safety fallback capability for insufficient data or unmet conditions.

[0018] This method, in the offline phase, compares candidate branches subject to physical constraints with normalized error scores for voltage and temperature over multiple time periods to generate updated or unupdated training labels and trains an online branch decision model, embedding the offline scoring logic into lightweight model parameters. In the online phase, it selects the corrected branch or does not update based solely on currently available and historical information through model inference. Subsequent observations are only used for offline scoring and do not participate in online correction, significantly reducing online computational load and eliminating reliance on future data. Furthermore, online deployment does not require additional permanent hardware and can run directly on existing BMS hardware platforms. It outputs rejection reasons when confidence levels are insufficient or safety conditions are not met, enabling energy storage battery electrothermal state estimation to maintain a dynamic balance between accuracy and reliability with low online computational overhead, even under practical engineering conditions with limited sensor configuration and complex, variable operating conditions. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 A flowchart illustrating the steps of a selective correction method for the electrothermal state of an energy storage battery provided in an embodiment of the present invention; Figure 2 This is a diagram illustrating the overall architecture of the selective correction method for the electrothermal state of an energy storage battery provided in an embodiment of the present invention. Figure 3 A flowchart illustrating the implementation of the selective correction method for the electrothermal state of an energy storage battery provided in this embodiment of the invention; Figure 4 A structural block diagram of a selective correction system for the electrothermal state of an energy storage battery provided in an embodiment of the present invention; Figure 5 This is a structural block diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0021] This invention provides a method, system, device, and medium for selectively correcting the electrothermal state of energy storage batteries. It addresses the technical problem that existing energy storage battery state estimation methods do not evaluate and select correction actions based on predicted outputs in the future time domain, making it difficult to reasonably determine the necessity and direction of correction, which in turn leads to a decrease in the accuracy and reliability of state estimation.

[0022] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0023] Please see Figure 1 , Figure 1 A flowchart illustrating the steps of a selective correction method for the electrothermal state of an energy storage battery provided in an embodiment of the present invention.

[0024] The present invention provides a method for selectively correcting the electrothermal state of an energy storage battery, comprising: Step 101: Obtain the measurement data and external input data of the energy storage battery at the current decision time, and advance the posterior state of the energy storage battery corresponding to the previous time to the prior state at the current time based on the external input data.

[0025] It should be noted that the measurement data refers to the voltage and surface temperature measurements directly acquired by the battery management system at the current decision-making moment. External input data. This refers to the external inputs required for model calculation, such as current, ambient temperature, and cooling conditions. The current decision moment refers to the discrete-time index. i This refers to the moment when the online system determines whether to correct the internal state. The previous time step's posterior state. This refers to the final internal state written back after the branch decision in the previous time step, including the final prior state retained when choosing not to update. Current prior state. This refers to the internal state estimate obtained solely through state propagation, without being corrected using current measurement data.

[0026] Based on external input data Through the electrothermal state propagation function The posterior state of the previous moment Proceed to the prior state at the current moment That is, according to Perform state propagation. Among these, This represents the prior state at the current moment; This is the posterior state of the previous moment; The external input data from the previous moment (including current, ambient temperature, and cooling status); Let be the propagation function of the electrothermal state; For model parameters fixed at the same decision point, no adjustment is made during candidate generation and replay. The next-time prediction for the formal state is based solely on the final written-back formal posterior state from the previous time step, without using unselected auxiliary posterior states. The state vector is: ; in, The normalized average solid lithium concentrations of the negative and positive electrodes are dimensionless, ranging from 0 to 1. These are the fast and slow polarization states (in the dimension of voltage). These are the core temperature and surface temperature of the battery cell, respectively (in °C or K). The equivalent heat generation bias (in power dimensions) is slowly varying. The electrothermal state propagation and measurable output model is as follows: , ; in, This is the current state vector; This is the state vector for the next time step; The current external input data (including current, ambient temperature, and cooling status); For model parameters, Let be the propagation function of the electrothermal state; For measuring the prediction function (output model); This refers to the voltage and surface temperature vectors predicted by the model.

[0027] In this embodiment of the invention, the method is applicable to individual cells, modules, and battery clusters in energy storage systems. State is maintained separately for each object and time; different objects must not share states or statistics. Inputs include current, voltage, surface temperature, ambient temperature inside the chamber or cabinet, cooling status, timestamp, battery object, hierarchical relationship between individual cells / modules / battery clusters, and data validity markers indicating missing, abnormal, or invalid data. The basic models include electrochemical and thermal models. The former can use a single-particle model, SPMe, or other reduced-order models, while the latter can use a two-node or POD reduced-order model to calculate SOC, concentration, polarization, heat generation, and temperature. Candidates at the same decision time share the same model, parameters, prior states, and current measurements; no parameter tuning occurs during candidate generation and playback. The observer operates based on the current decision time. i Using the right endpoint, the data from the most recent 60 seconds is processed recursively with a 1-second sampling period, using only... i It reads previous current, voltage, and surface temperature data, but does not read future data.

[0028] Step 102: Based on the residual between the measured data and the predicted output data of the prior state at the current moment, construct the original state correction quantity.

[0029] It should be noted that the predicted output This refers to the predicted voltage and predicted surface temperature calculated by the electrothermal model from the prior states at the current moment. Residual This refers to the difference between the measured data and the predicted output. Original state correction. This refers to the state adjustment quantity to be projected, obtained by the difference between the posterior state of the finite-memory extended Kalman observer at the current moment and the current formal prior state after recursion within a preset history window. The preset history window is a time window formed by backtracking a preset number of historical sampling moments with the current decision moment as the right endpoint. The preset history window contains measurement data from each historical moment, external input data, and intermediate states and covariances obtained by recursion from the finite-memory extended Kalman observer. The length of the preset history window can be set according to the observer's memory length, sampling period, and computational resources; for example, taking the most recent 60 seconds with a sampling period of 1 second, for a total of 60 sampling moments. Each time a preset history window is established, the auxiliary state and auxiliary covariance need to be initialized: the auxiliary state at the window's starting point is taken as the formal prior state at that moment, and the auxiliary covariance is taken as the set initial covariance; subsequently, recursion is only performed in the auxiliary sequence. The finite-memory extended Kalman observer iterates step-by-step within a preset historical window. Measurements at the clearly defined starting point of the window participate in the update process from the residual calculation and Kalman gain calculation at that moment, avoiding the omission or duplication of the first sampling point. After the window ends, the auxiliary posterior state at the current moment is obtained. In the observer formulas below, both the capped prior and posterior states belong to the auxiliary sequence; the state propagation Jacobian is calculated at the auxiliary posterior state at the previous moment, and the observation Jacobian is calculated at the current auxiliary prior state.

[0030] In this embodiment of the invention, the basic embodiment employs a finite-memory extended Kalman observer. The finite-memory extended Kalman observer uses the current decision time... i Using the right endpoint, the data from the most recent 60 seconds is processed recursively with a 1-second sampling period, using only... i It reads previous current, voltage, and surface temperature data, but not future data. Let be the vector of the measured voltage and surface temperature at the current moment. The state prediction is... Measurement prediction is The measurement residual is , The Jacobian matrix is ​​used for state propagation; The voltage-surface temperature observation Jacobian matrix is ​​given. The prior state covariance is... Innovation covariance is Kalman gain is ,in, For process noise covariance; To measure the noise covariance.

[0031] Within a preset historical window, the Kalman gain and measurement residual are calculated for each historical moment within the window. Based on the Kalman gain and measurement residual for each historical moment, a finite-memory extended Kalman observer is recursively used to obtain the posterior state of the finite-memory extended Kalman observer at the current moment. The original state correction amount is determined by the following formula: ; The measurement update increment at the current moment can be expressed as: However, the original state correction amount It also includes the impact of previous observation corrections propagating to the current moment within the historical window, therefore it cannot be included. Directly equivalent to .

[0032] The basic implementation requires that the voltage and surface temperature within the required window be original, valid observations without any causal forward hold-up points; if any measurement is invalid, no formal correction is generated at that moment. A downgraded observation method that retains only a single measurement component is an optional extension; when used, it requires retraining and calibration with the same missing caliber. After the window ends, the original correction to be projected is obtained by subtracting the current formal prior state from the auxiliary posterior state. It should be noted that auxiliary states do not directly replace formal states. The output of this step is only used as the original correction value to be projected. It will be sent to the subsequent conservation branch projection step and still needs to undergo physical boundary checks and online branch determination. It cannot be directly written into the formal state.

[0033] Further, step 102 includes the following sub-steps: S11. Using the electrothermal model, the auxiliary posterior state of the previous moment and the corresponding external input data of the current moment are used to predict the state and generate the auxiliary prior state of the current moment.

[0034] It should be noted that state prediction refers to the electrothermal state propagation model. The process of recursively deriving the auxiliary prior state at the current time step from the auxiliary posterior state at the previous time step in the auxiliary sequence. S11 to S15 are used for auxiliary observer recursion within the historical window, where the capped states are all auxiliary states and do not represent the formal state in step 101. The residuals are directly calculated and updated at the beginning of the window using the aforementioned initialization method; the state prediction in S11 is only performed for sampling times after the beginning of the window. Each historical time step uses the input, measurement, and matrix of the corresponding time step, and the auxiliary posterior state at the current decision time step is taken at the end of the window.

[0035] In this embodiment of the invention, according to Complete state prediction, among which, It serves as an auxiliary posterior state for the previous moment. The state propagation Jacobian matrix is ​​used, and the state dimension is determined by the selected electrothermal model. The basic embodiment employs a two-node thermal model consisting of a core temperature node and a surface temperature node: heat generation is input to the core node, and the surface temperature is measured by the BMS. Extended embodiments can use SPMe (Single Particle Model with electrolyte) and POD (Proper Orthogonal Decomposition) thermal field reduction models. The core temperature measurement and reference electrode are only used for laboratory verification and are not essential hardware.

[0036] S12. Using the electrothermal model, the current time auxiliary prior state and the corresponding external input data are used for measurement and prediction to generate the prediction output data of the current time prior state.

[0037] It should be noted that measurement prediction refers to prediction based on the output model. Based on the current auxiliary prior state and external input at the current moment The computational model predicts the voltage and surface temperature; predicts the output data. The model prediction output generated in this step includes predicted voltage and predicted surface temperature.

[0038] In this embodiment of the invention, the current auxiliary prior state is... External input at the current moment The output model substituted into the electrothermal model The model-predicted voltage and model-predicted surface temperature are directly calculated and combined as the prediction output data. residual For actual output With predicted output data The difference between them is used to solve for the subsequent observer correction. This is the Jacobian matrix for voltage-surface temperature observation. The temperature field or hot spot is only output when the temperature measurement points are sufficient to distinguish the thermal state.

[0039] S13. Generate measurement residuals based on the difference between the current measurement data and the predicted output data.

[0040] In this embodiment of the invention, according to Calculate the measurement residuals, where, The measurement data at the current moment includes the measured voltage and surface temperature vector at the current moment; This is the measured voltage; This is the measured surface temperature.

[0041] S14. Solve for the Kalman gain using the covariance matrix of the state prediction output, the observation Jacobian matrix of the measurement prediction output, and the preset noise covariance parameters.

[0042] It should be noted that the covariance matrix of the state prediction output is the prior state covariance, the observation Jacobian matrix of the measurement prediction output is the observation matrix, and the preset noise covariance parameter includes the process noise covariance and the measurement noise covariance. The innovation covariance is calculated based on the above data, and then the Kalman gain is solved by combining the prior state covariance and the observation matrix.

[0043] In this embodiment of the invention, according to Calculate the Kalman gain, where, The covariance matrix of the state prediction output is the prior state covariance. To measure the observed Jacobian matrix of the predicted output To innovate the covariance, it is calculated from the prior state covariance, the observation Jacobian matrix, and the measurement noise covariance. The Kalman gain is calculated solely based on the matrices obtained from state prediction and measurement prediction, and preset noise parameters, without relying on the measurement residuals.

[0044] S15. Using a finite-memory extended Kalman observer, the posterior state of the finite-memory extended Kalman observer at the current moment is obtained by recursively calculating the Kalman gain and measurement residual corresponding to each historical moment within a preset historical window.

[0045] It should be noted that the posterior state of the finite-memory extended Kalman observer at the current time step is the auxiliary posterior state at the current time step. This refers to the posterior state obtained by the finite-memory extended Kalman observer through time-by-time iterations within a preset history window, which is distinct from the final, officially written posterior state after subsequent online correction. To distinguish between the current decision-making moment and the historical replay moment, this step uses the following convention: subscript i Indicates the current decision-making moment; subscript t Indicates the index of the sampling time within the preset history window ( , N (where the window length is).

[0046] In this embodiment of the invention, each time a preset historical window is established, the initialization method of the auxiliary state and auxiliary covariance is clearly defined: the auxiliary state at the starting point of the window is taken as the formal prior state at that moment, and the auxiliary covariance is taken as the set initial covariance. Within the preset historical window, starting from the starting point of the window, it is clear that the measurement at that starting point participates in the update from the residual calculation and Kalman gain calculation at the current moment, avoiding the omission or duplication of the first sampling point. Subsequently, it is only recursively performed moment by moment in the auxiliary sequence, and state prediction, measurement residual calculation, Kalman gain calculation, posterior state update, and posterior state covariance update are performed for each historical moment within the window. Among them, the posterior state covariance matrix is ​​calculated according to the following formula: ; This represents the uncertainty of the state estimate after correction based on measurements at the corresponding historical time. The posterior state covariance of each historical time within the window is used to calculate the prior covariance of the next historical time, and participates in obtaining the posterior state of the finite-memory extended Kalman observer at the current time after the window ends. That is, the finite-memory extended Kalman observer iterates step by step within a preset history window, and obtains the posterior state at the current time after the window ends.

[0047] S16. Calculate the difference between the posterior state at the current time and the prior state at the current time to obtain the original state correction amount.

[0048] In this embodiment of the invention, the original state correction amount is calculated according to... calculate. It is only used as the original correction value to be projected and cannot be directly written into the formal state. It will be input into the subsequent conservation branch projection steps for constraint processing.

[0049] Step 103: Project the original state correction amount and apply the corresponding physical constraints to generate multiple candidate branches.

[0050] It should be noted that projection is a correction of the original state. The decomposition is performed along the directions of each physical conservation constraint, ensuring that the correction values ​​of each decomposed branch fall into the state subspace allowed by the corresponding constraint. Physical constraints are conservation relations and state boundaries. Multiple candidate branches refer to a set of candidates composed of updated and non-updated branches, where each updated branch corresponds to a correction direction category (concentration / SOC, polarization, thermal, or electrothermal combination). Each candidate branch, after projection and constraint processing, yields a corresponding candidate corrected state. Non-updated branches do not apply any correction; they directly use the current prior state as the candidate state, serving as a benchmark for comparison with each updated branch.

[0051] In this embodiment of the invention, five candidate branches are generated: concentration / SOC, polarization, thermal, combined electrothermal, and no update. These branches satisfy the following conditions: active lithium conservation, constant average concentration, thermal balance, recalculation of heat generation after correction of electrochemical state, and retention of only model-predicted state. For each candidate branch, the state variables such as SOC, stoichiometry, concentration, and temperature are first checked for exceeding limits, and constraints such as thermal balance are verified. If they exceed limits, adjustments are made according to the constraints. If they still exceed limits after adjustment or the adjustment direction deviates from the original correction amount by more than a threshold, they are discarded. The multiple candidate branches output in this step will be sent to the subsequent open-loop replay and scoring steps.

[0052] Furthermore, step 103 includes the following sub-steps: S21. Project the original state correction amount along the set of correctable directions limited by the physical conservation constraints corresponding to the update branch, and solve for the correction coefficients corresponding to the update branch.

[0053] It should be noted that the set of correctable directions refers to the state direction base corresponding to each update branch. Each column is linearly independent, and the number of columns represents the degree of freedom of that branch. The correction coefficient refers to the representation coefficient of the original state correction amount on the orientation basis; the projected state correction vector refers to the state correction vector with the same dimension as the prior state at the current time, obtained by mapping the correction coefficient through the orientation basis.

[0054] In this embodiment of the invention, for each update branch, the branch correction coefficient is obtained by solving the weighted minimum distance problem, thus completing the original state correction. The projection onto the set of correctable directions of this branch. Specifically, for K is the total number of update branches, calculated using the weighted minimum distance: ; in, This is a positive definite weight matrix set according to the state scale; For branches The correction coefficients are calculated. Each directional basis satisfies the corresponding conservation constraints. The concentration / SOC correction branch is taken as follows: , ,in, , , For the effective volume of the two poles, This represents the volume fraction of the solid phase. For the maximum solid-phase lithium concentration, It has the physical meaning of equivalent lithium capacity; ,along During correction, the concentrations at both electrodes are inversely linked according to capacity weights to maintain a constant total amount of active lithium. Polarization correction branch. Only the fast and slow polarization states are corrected. When correcting Unchanged, no change to the electrode volume average concentration. Thermal correction branching. , , ,in, Equivalent heat capacity of core and surface; The equivalent memory time constant for heat generation bias; ; , This indicates a linkage correction between the core temperature and surface temperature to satisfy an equivalent heat capacity weighted balance. This indicates a linkage correction between the core temperature and the equivalent heat generation bias to satisfy the defined short-term thermal balance. The electrothermal joint correction branch is taken as follows: .

[0055] S22. Using the direction basis corresponding to the set of correctable directions, the correction coefficients are mapped to the projected state correction vector with the same dimension as the prior state at the current time.

[0056] It should be noted that the projected state correction vector is It has the same dimension as the prior state at the current moment and can be directly superimposed on the prior state at the current moment; correction coefficient These are the representation coefficients on the direction basis and cannot be directly superimposed onto the prior state at the current time.

[0057] In this embodiment of the invention, for each update branch k , will the direction base With correction factor Multiplying them yields the projected state correction vector for that branch. .

[0058] S23. Superimpose the projected state correction vector onto the prior state at the current time step, and apply state boundary constraints to the superposition result for numerical pruning to generate candidate states corresponding to the update branch.

[0059] It should be noted that state boundary constraints refer to the physically feasible region defined by upper and lower limits of the state, conservation relations, and thermal energy balance. C Numerical clipping involves mapping the superimposed pre-corrected states to the physical feasible region. C Feasible domain projection operation This operation differs from the projection performed on the branch-correctable direction basis in S21. Candidate state This refers to the posterior state corresponding to each update branch after projection and boundary clipping.

[0060] In this embodiment of the invention, the candidate state is... Generate, where, This is the projected correction value obtained from solving S22. After pruning, check whether the candidate state falls within the physical feasible region; if the pruned state still exceeds the feasible region, or the correction direction is relative to the original state correction value. If the deviation exceeds a preset threshold, the update branch is discarded. When the state definition, normalization method, or electrothermal model is changed, Its parameters should be recalibrated according to the same conservation relationship.

[0061] S24. Take the current prior state as a candidate state for the non-updated branch, and use the updated branch and the non-updated branch together to form multiple candidate branches.

[0062] It should be noted that "no-update branch" refers to candidate branches that do not introduce any state corrections and only retain the model's predicted states. The "no-update branch" retains... This serves as the benchmark branch for subsequent comprehensive scoring and branch comparison. This sub-step outputs all retained candidate branches and their corresponding candidate states, which are then fed into step 104 to perform open-loop state propagation.

[0063] Step 104: Using the candidate state of each candidate branch as the initial state, use the preset historical measured operation data corresponding to the initial state to perform open-loop state propagation on each candidate branch, and determine the voltage prediction error and temperature prediction error of each candidate branch in the preset future time domain.

[0064] It should be noted that open-loop propagation refers to propagation without introducing new measurement corrections, using only a given external input for forward computation. The preset future time domain refers to the replay window used to evaluate the prediction performance of each candidate branch. express, H This represents the total number of steps in the playback window. Voltage prediction error and temperature prediction error refer to the sequence of differences between the predicted and measured values ​​at different times within the playback window.

[0065] In this embodiment of the invention, the offline stage uses the measured current, ambient temperature, and cooling status after the current decision time as the replay external input shared by all candidate branches, and the measured voltage and measured surface temperature at the same time are used for scoring calculation. The online inference stage only uses data acquired at the current decision time and before that time, and does not access information from future times. When temperature, ambient temperature, or cooling boundary data is missing, no training label corresponding to thermal or electrothermal joint calculation is generated, and the temperature evaluation weight must not be directly set to zero before continuing joint decision-making. The voltage prediction error and temperature prediction error obtained from each candidate branch are used as inputs for the comprehensive scoring in subsequent steps.

[0066] Furthermore, step 104 includes the following sub-steps: S31. The measured current, ambient temperature, and cooling status within the same time period after the current decision moment are used as the measured operating data for all candidate branches.

[0067] It should be noted that the actual test data refers to the subsequent external input shared by all candidate branches within the replay window.

[0068] In this embodiment of the invention, each candidate branch uses the exact same subsequent current, ambient temperature and cooling state for open-loop calculation, ensuring that the only difference between different candidate branches is the initial candidate state, and the replay evaluation conditions are consistent.

[0069] S32. Using the candidate states of each candidate branch as the initial state, the predicted state of each candidate branch at each time in the preset future time domain is obtained by using the measured operating data through the electrothermal model for open-loop state propagation.

[0070] It should be noted that the predicted state It refers to the internal state estimation corresponding to each moment within the replay window during open-loop propagation; k Represents the candidate branch index. j This represents the time step index within the playback window.

[0071] In this embodiment of the invention, for Each candidate branch starts from its own candidate state and proceeds according to... An open-loop recursion is performed to obtain the predicted state at each time point within the playback window. During the open-loop state propagation, only external excitation input is used, and the candidate states of each candidate branch do not introduce any measurement corrections.

[0072] S33. Based on the predicted state and corresponding measured operating data, the electrothermal model is used to perform measurement and prediction, and generate the voltage prediction value and temperature prediction value of each candidate branch in the preset future time domain.

[0073] It should be noted that the voltage prediction value and the temperature prediction value... This refers to the model prediction output of each candidate branch at each time point within the replay window, with the subscript... q Used to distinguish output types, including voltage. V ,temperature T .

[0074] In this embodiment of the invention, the output model h Based on the predicted state and measured operational data at each time point, according to Calculate the predicted voltage and surface temperature values ​​for subsequent comparison with the measured voltage and surface temperature. The voltage and surface temperature obtained during the playback period are only used for scoring calculations and do not participate in the correction and update of candidate states.

[0075] S34. Based on the differences between the voltage prediction value and the temperature prediction value and the corresponding measured value, determine the voltage prediction error and temperature prediction error of each candidate branch in the preset future time domain.

[0076] It should be noted that voltage prediction error and temperature prediction error refer to the predicted output within the playback window. Compared with the measured output The difference sequence corresponding to time point, where, .

[0077] In this embodiment of the invention, the voltage prediction value is compared with the measured voltage and the temperature prediction value with the measured surface temperature at each time point within the playback window to form the voltage prediction error sequence and temperature prediction error sequence of each candidate branch. The error sequences corresponding to all candidate branches are sent to step 105 for multi-playback duration normalization score calculation.

[0078] Step 105: Calculate a comprehensive score for each candidate branch based on the voltage prediction error and temperature prediction error, and select the chosen branch as the training label from the candidate branches according to the comprehensive score.

[0079] It should be noted that the overall score This refers to the weighted summation of voltage and temperature prediction errors after normalization across multiple playback durations, taking into account physical constraint costs. The cost of numerical stability The smaller the overall evaluation value, the better the branch performance; training labels It refers to the supervision annotation generated in the offline phase for each current decision moment, indicating whether to perform the state update or not, and the corresponding update branch.

[0080] In this embodiment of the invention, updates are only made when no updates are required, and candidates must reduce voltage and temperature errors and meet physical constraints; updates are only made when the difference between the optimal and second-best scores meets the threshold and existing measurements can distinguish between them. Parameters and thresholds are determined by the training and validation sets, and the test set is evaluated only once. Statistics must not be mixed across sites, battery objects, or data partitions.

[0081] Furthermore, step 105 includes the following sub-steps: S41. Calculate the difference between the predicted voltage value and the corresponding measured voltage value of each candidate branch at each time in the preset future time domain, and generate the voltage prediction error corresponding to the candidate branch.

[0082] It should be noted that voltage prediction error refers to the time-by-time difference between the predicted voltage value and the measured voltage within the playback window.

[0083] In this embodiment of the invention, according to the playback step jThe difference between the predicted and measured voltages is calculated at each time step to obtain the voltage prediction error sequence for that candidate branch, which is then used to set the voltage playback duration. Normalized scores are used below.

[0084] S42. Calculate the difference between the predicted temperature value and the corresponding measured temperature value of each candidate branch at each time in the preset future time domain, and generate the temperature prediction error corresponding to the candidate branch.

[0085] It should be noted that temperature prediction error refers to the time-by-time difference between the predicted surface temperature and the measured surface temperature within the playback window.

[0086] In this embodiment of the invention, according to the playback step j The difference between the predicted and measured surface temperatures is calculated at each time step to obtain the temperature prediction error sequence for that candidate branch, which is then used to set the temperature playback duration. Normalized scores are used below.

[0087] S43. Based on the voltage prediction error and temperature prediction error corresponding to each candidate branch, calculate the normalized voltage score and normalized temperature score according to multiple preset playback durations.

[0088] It should be noted that the normalized voltage score and the normalized temperature score... It refers to the non-negative evaluation value calculated based on the respective set of playback durations, combined with the measurement or prediction uncertainty scale and robust loss function.

[0089] In this embodiment of the invention, according to Calculate, where, For output type q A set of replay durations; For replay duration h The weights (non-negative and normalized); For robust loss functions, Huber loss function, Tukey loss function, or quantile loss can be used. To measure the output uncertainty, a positive lower limit is set based on sensor accuracy, statistical analysis of operating residuals, or predicted covariance. (Voltage playback duration set) Candidate durations are determined from the training set based on the response time scale and selected from the validation set, used to evaluate short-time voltage responses and slower polarization and concentration responses, respectively. Temperature playback duration set. Determined by thermal inertia, sampling period, and continuous temperature length, it is used to evaluate the temperature rise process and heat dissipation process respectively.

[0090] S44. The normalized voltage score and normalized temperature score are weighted and combined, and combined with the preset physical constraint cost and preset numerical stability cost, to generate a comprehensive score for each candidate branch.

[0091] It should be noted that the cost of physical constraints Candidate state Deviation from the physical feasible region C The resulting non-negative cost is... Calculations are used to penalize candidates that violate physical boundaries; Let be the distance function from the state vector to the feasible region set. Numerical stability cost. This refers to state transitions The non-negative penalty term for filtering divergence and long-term drift risk is used to penalize candidates with unstable values.

[0092] In this embodiment of the invention, according to Calculate the overall score for each candidate branch, where, The voltage and temperature evaluation weights are calibrated based on the error update cost and the validation set, instead of directly adding the original dimensions. The weights for physical constraint cost and numerical stability cost, The calibration is based on the cost of candidate violations of physical boundaries and the required adjustment ratio; Calibrated based on state transition, filter divergence, and long-term drift risk. Overall score. Smaller is better.

[0093] Furthermore, step 105 also includes the following sub-steps: S51. Based on the comprehensive score of each update branch, select the update branch with the best comprehensive score and the update branch with the second best comprehensive score as the first update branch and the second update branch, respectively.

[0094] It should be noted that the first update branch This refers to the total evaluation value in the valid update branch that passes the physical constraint check. The smallest; the second update branch This refers to the second smallest effective update branch in terms of overall evaluation value.

[0095] In this embodiment of the invention, filtering is only performed on valid update branches that pass the physical constraint check; valid update branches are candidate branches that satisfy the physical constraint check; if the number of valid update branches is less than two, it is directly determined that the update condition is not met. The predicted voltage and surface temperature within the playback window are arranged into a time sequence. Calculate the sensitivity matrix of the sequence to the branch correction coefficient. and weighted according to measurement uncertainty ,in, The measurement uncertainty matrix for the playback window (estimated by voltage and temperature sensor noise and correlation, and regularized if necessary to ensure positive definiteness); For branches k The measurement weighted sensitivity matrix (positive semi-definite). The distinguishability index is calculated based on the total sensitivity and the degree of distinguishability in different correction directions.

[0096] S52. Calculate the overall score improvement of the first updated branch relative to the non-updated branch, and calculate the score difference between the first updated branch and the second updated branch.

[0097] It should be noted that the overall score improvement amount This represents the improvement in replay quality between the first updated branch and the non-updated branch. (Score difference) It refers to the difference in total evaluation value between the second update branch and the first update branch, and is non-negative.

[0098] In this embodiment of the invention, the overall score improvement is the overall score of the unupdated branch minus the overall score of the first updated branch; the score difference is the overall score of the second updated branch minus the overall score of the first updated branch. The overall score improvement is used to determine whether a candidate is significantly better than the unupdated baseline, and the score difference is used to exclude candidate branches with similar or indistinguishable scores, avoiding ambiguous labels generated by offline annotation. The candidate score difference threshold is determined based on the stability of the optimal branch after perturbation and its confusion rate with the suboptimal branch.

[0099] S53. If the improvement in the overall score is not less than the preset improvement threshold, the score difference is not less than the preset score difference threshold, the identifiability quantification index of the first updated branch is not less than the preset identifiability threshold, and the score improvement distribution of the first updated branch relative to the non-updated branch in each output type meets the preset multi-output evaluation validity conditions, then the first updated branch will be selected as the branch.

[0100] In this embodiment of the invention, the identifiability quantification index is used to determine whether existing observation conditions can effectively distinguish different correction directions; the multi-output evaluation validity condition is used to constrain voltage and temperature outputs from exhibiting significant degradation in any single type. Identifiability quantification index This indicator balances the overall sensitivity magnitude with the distinguishability of parameter correction direction, avoiding the shortcomings of sufficient total sensitivity but degraded eigenvalues ​​and unidentifiable parameters. The first item... Indicates overall sensitivity; the second item Indicates the degree of distinguishability of the correction direction; and The distinguishability regularization parameter (both are positive numbers, the former has the same dimension as the matrix trace, and the latter has the same dimension as the matrix eigenvalue). For matrix trace, and These are the minimum and maximum eigenvalues ​​of the matrix, respectively. The effective condition for multi-output evaluation is that the evaluations of voltage and temperature outputs are consistent, meaning the combined improvement of voltage and temperature evaluations reaches the combined improvement threshold. And the degradation of any output type does not exceed the allowable degradation amount. , .definition For branches k Compared to not updating branches in the output q The amount of improvement in the evaluation, among which, , To avoid updating the branch in the output q The rating value on the platform.

[0101] All of the above conditions must be met simultaneously for the first update branch to be selected. , , , , and When the first update branch is selected, then, For branches The improvement in voltage output compared to not updating the branch; For branches The improvement in temperature output compared to not updating the branch; These are the evaluation values ​​for voltage and temperature outputs when the branch is not updated; Branches Evaluation values ​​for voltage and temperature output; The sum of these two values ​​represents the sum of the improvement in both voltage and temperature outputs, used to determine whether the total improvement reaches the total improvement threshold. Each threshold is determined from validation data: minimum improvement threshold. Minimum score difference threshold Identifiability threshold (Greater than 0 and not exceeding 1, stratified calibration by branch degrees of freedom if necessary), total improvement threshold Allowable degradation of single output and If there are fewer than two valid update branches, the update condition is not met.

[0102] S54. Otherwise, the branch will not be updated as the selected branch.

[0103] In this embodiment of the invention, selecting the "no update" branch indicates insufficient observational evidence at the current moment, and therefore no state correction is performed. If any one of the following conditions—comprehensive score improvement, score difference, identifiability, or multi-output evaluation—is not met, the "no update" branch is selected. Similarly, in cases of insufficient stimulus, missing data, out-of-order or interrupted flow, unreliable thermal boundaries, close scores, conflicting voltage and temperature evaluations, failed constraint adjustment, insufficient samples, constant sequences, near-zero denominators, or singular weighted sensitivity matrices, the "no update" branch is also selected, and the rejection reason is recorded for subsequent dataset cleaning and anomaly tracing.

[0104] S55. Select the branch as the training label.

[0105] It should be noted that the training labels are used for offline supervised training of the branch decision model; the labels record the index of the selected branch, marking whether the update should be made or rejected at the current moment.

[0106] In this embodiment of the invention, training labels corresponding to the current decision-making moment are generated, and the labels are written as follows: ,in This is an indicator of whether the offline update conditions are met (1 if all conditions are met, 0 otherwise). This is the optimal branch index. When When indicates not to update or to refuse, hour The value represents the index of the selected update branch.

[0107] Subsequent voltage and surface temperature measurements are only used for offline scoring, generating either updated or unupdated labels when direct measurements of the internal state are lacking. If conditions are not met, an unupdated label is generated and the reason is recorded. Five candidate branches are generated at each current decision point, and labels are generated after constraint checks and subsequent playback. Historical data is divided by battery object and time. Parameters and thresholds are determined by the training and validation sets; the test set is evaluated only once; statistics must not be mixed across sites, battery objects, or data partitions. The training labels output from this sub-step, along with the corresponding measurement data and external input data used when generating the labels, are used as training samples and fed into step 106 for branch decision model training.

[0108] In this embodiment of the invention, the thresholds and weight parameters involved in the above determination process are set as follows: Voltage playback duration collection and temperature playback duration set Candidate durations are determined based on both response time and thermal inertia, and selected from the validation set; the uncertainty scale is output. The lower limit of positive values ​​is determined and set by the sensor accuracy, statistical analysis of operating condition residuals, or prediction covariance.

[0109] Minimum overall improvement threshold Minimum score difference threshold Identifiability threshold Total improvement threshold Allowable degradation of single output and All determined by validation data. State-scale weight matrix The measurement uncertainty matrix is ​​set according to the physical scale and allowable variation range of each state. R Estimated from voltage and temperature sensor noise and correlation, and regularized if necessary.

[0110] Step 106: Train the branch decision model using training labels, and determine the corrected output state using the trained branch decision model.

[0111] It should be noted that the branch decision model This refers to a classification model that outputs the probability of each candidate branch based on information available online. For model parameters; correct output state This refers to the formal internal state that has been modified by a selected branch or written after preserving prior knowledge.

[0112] In this embodiment of the invention, the branch decision model can employ logistic regression, a tree model, or a neural network, with logistic regression or gradient boosting trees being preferred. Temporal networks are evaluated only when sufficient samples are available. Online decision-making uses only current and historical information. The branch with the highest probability and meeting safety conditions is selected; no updates are made when confidence is low, input exceeds the training data coverage, temperature measurement or cooling is abnormal, or computation times out. This method compares physically constrained candidates offline and trains the online model, then selects and corrects the branch online or does not update. Subsequent observations are only used for offline scoring; online processing does not require additional permanent hardware and outputs rejection reasons.

[0113] Furthermore, step 106 also includes the following sub-steps: S61. Select the branch as the supervision label, and use the measurement data corresponding to the initial state and the external input data as training samples to train the branch decision model.

[0114] It should be noted that the supervision label refers to the selected branch generated offline. Training samples refer to the input features of the branch decision model. All decisions are made at the current time. i For the right endpoint, use only i And previous data. For ease of explanation, the upper and lower limits of summation are omitted in the following statistical formulas, and the subscripts in the formulas are... i Used only as a local summation loop variable. In actual operation, each summation operator ∑ represents the sampling time within a preset history window. t Perform summation (i.e.) , N (where is the window length), in the following formula Corresponding to each traversal time in the window t eigenvalues Furthermore, in the least squares slope formula... This represents the absolute time label for each sampling moment within the window. This represents the average of the time stamps within the window. This represents the above mean. ,in,W This indicates the historical statistical window on which the calculation is based.

[0115] In this embodiment of the invention, a total of 63 input features are included: 13 voltage residuals (current value and mean, overall standard deviation, RMSE, and least squares slope for 10 / 30 / 60s windows), 9 surface temperature residuals, 15 current and operating conditions (current current and mean, overall standard deviation, RMS, maximum absolute value, net Ah, discharge sample ratio, and charging sample ratio for 30 / 60s windows), and 9 temperature changes (current surface temperature, ambient temperature, and the difference between the two, surface temperature slope for each window, and the difference between the first and last values). The data quality and safety gates consist of 2 items (proportion of original valid observations within the window, whether a causal forward hold-up point appears), 3 items (posterior state covariance trace, voltage innovation variance, surface temperature innovation variance), and 12 items (for each of the four candidate branches, the Frobenius norm, maximum singular value, and minimum singular value are calculated; the minimum singular value is obtained by returning the last item of the sequence through singular value decomposition, and is 0 when rank is deficient). The sampling period is 1 second, and the length is... N window sequence Calculate the mean Overall standard deviation , and least squares slope The sum of the above groups is 63. Two data quality fields are prioritized for security gates: the basic implementation first excludes events containing causal forward hold-forward points or with insufficient original valid observation ratios. Therefore, for events entering the classification model, the two fields are fixed at 1 and 0 respectively, used only for interface consistency and auditing, and are not considered to have branch discrimination contributions. That is, the basic implementation rejects unqualified events based on these two fields before classification. Short-term charge / discharge power commands issued by the Energy Management System (EMS) can be used as optional inputs in addition to the 63 items; the model version is only used for safety compatibility checks and is not used as a physical observation feature.

[0116] S62. Input the measurement data and external input data at the current decision moment into the trained branch decision model to obtain the output probability of each candidate branch.

[0117] It should be noted that the output probability This refers to the probability given by the model for each candidate branch belonging to that branch, where... For branches k The output probability takes a value from 0 to 1, and the sum of the probabilities of each branch is 1.

[0118] In this embodiment of the invention, after calculating the prior state and the original correction amount online, the model outputs the candidate probability of each candidate branch. Each updated branch satisfies the requirements of active lithium conservation, constant average concentration, thermal balance, or recalculated heat generation. Online branch determination model. The parameters are Input feature vector It includes the current decision-making moment and previously available online information.

[0119] S63. If the highest output probability in the output probability is not lower than the preset confidence threshold and the safety condition is met, then the candidate state of the candidate branch corresponding to the highest output probability is used as the corrected state output.

[0120] It should be noted that a pre-set reliability threshold is used. This refers to the minimum confidence level determined by validation set probability calibration, error update rate, and non-update ratio; security conditions. This includes data validity checks, input coverage checks, model version checks, physical boundary checks, and computation time limit checks; the corrected state. This refers to the final official status that is written after online branching.

[0121] In this embodiment of the invention, the probability of the highest branch is unique and not lower than... And when the data is valid, the input is within the training data coverage, the model version is compatible, and the physical boundary and computation time limit checks are all passed (i.e. ),make Write the candidate state of the candidate branch corresponding to the highest probability as the formal posterior state: When the branch not to be updated is selected (branch index is 0), the candidate state of that branch is written back, that is, the current formal prior state is retained; when the branch to be updated is selected, the corresponding candidate state that has been generated in step 103 and passed the constraint check is written back directly, and the projection is not repeated.

[0122] S64. Otherwise, output the current prior state as the corrected state and output a rejection indication.

[0123] It should be noted that "otherwise branch" refers to the backoff strategy when the highest probability is not unique, falls below the confidence threshold, or any security condition is not met; "rejection indication" refers to the rejection reason output when the confidence is insufficient or the security condition is not met.

[0124] In an embodiment of the present invention, when season The method does not update the branch and preserves the prediction state. When there is low probability, missing temperature measurements, abnormal cooling, failed constraint adjustment, input exceeding the training data coverage, or computation timeout, the branch is not updated, and the prior state at the current moment is retained. No correction is made for insufficient samples, constant sequences, non-numerical (Not a Number, NaN), infinite (Infinity, Inf), near-zero denominators, or singular weighted sensitivity matrices; instead, "Insufficient data" or "Unidentifiable" is reported. The final output includes the internal state, corrected branch, confidence level, and rejection reason.

[0125] like Figure 2 As shown, the selective correction method for the electrothermal state of energy storage batteries provided by this invention consists of three main parts: a state estimation main chain, offline label construction, and online selective correction. The state estimation main chain takes current, voltage, and surface temperature with data validity labels as input, passes through the electrothermal model state propagation and observer processing sequentially, and outputs the original correction amount. The offline label construction part first limits the correctable state directions according to conservation relationships, generates candidate states, and retains branches that are not updated. Then, through open-loop replay of multiple branches under the same subsequent input, it compares the voltage and temperature errors of each branch at various durations. Combining score differences, identifiability, and voltage / temperature result conflict checks, it generates branches that are allowed to be updated or labels that are not updated. The online selective correction part trains and publishes an online branch decision model, determines online whether to update and which branches to update, corrects according to branches, and checks conservation constraints and physical boundaries. Finally, it outputs the internal state, selected branches, and confidence scores, along with data validity, identifiability, and rejection reasons.

[0126] like Figure 3 As shown, the selective correction method for the electrothermal state of energy storage batteries provided by this invention consists of two paths: offline label construction and online selective correction. The offline label construction path proceeds sequentially: establishing objects and time windows and checking data validity; propagating the electrothermal prior state; calculating observation residuals and the original correction amount; generating candidate states subject to conservation constraints; adjusting the candidates and checking the physical response. It then determines whether to execute offline label construction; if not, it jumps to online selective correction; if so, it continues: multi-branch open-loop playback under the same subsequent input, comparing voltage and temperature errors over multiple durations, checking score differences, identifiability, and conflicts between the two types of outputs, and generating an updated branch or not updating the label accordingly. After offline label construction is completed, the online branch decision model is trained. In the online selective correction path, during online runtime, it predicts whether to update and the updated branch, judging by confidence and safety conditions: if successful, the state is corrected according to the selected branch; otherwise, it reverts to not updating, finally outputting the state, selected branch, confidence level, and rejection reason.

[0127] This invention constructs multiple candidate posterior states using the same model, parameters, prior states, and current observations, and sets a non-updating branch as a comparison benchmark. It defines the correctable directions for each state based on the conservation of active lithium, constant electrode average concentration, and thermal balance, and adjusts the candidate states to the physically feasible region. Through multi-branch open-loop playback under the same subsequent inputs and comparison of voltage and temperature normalization errors over multiple durations, it determines whether to update based on physical constraint costs, the difference between optimal and suboptimal scores, conflicts between the two types of outputs, and identifiability. The online model only uses currently available and historical information, and when confidence is insufficient or safety conditions are not met, it reverts to the non-updating branch and outputs a rejection reason.

[0128] In practical implementation, historical data is categorized by battery type and time. An electrochemical reduction model is used to calculate SOC, average concentration, and polarization. The thermal model employs a two-node model with core and surface temperatures. Branch decision-making prioritizes logistic regression or gradient boosting trees. During online correction, each updated branch satisfies requirements such as active lithium conservation, constant average concentration, thermal balance, or recalculation of heat generation. Branches are not updated when there is low probability, missing temperature measurements, abnormal cooling, or input exceeding the training data coverage. The basic embodiment uses a two-node thermal model, while extended embodiments may use SPMe and POD thermal field reduction models. Core temperature measurement and reference electrodes are used only for laboratory verification and are not essential hardware.

[0129] Please see Figure 4 , Figure 4 This is a structural block diagram of a selective correction system for the electrothermal state of an energy storage battery provided in an embodiment of the present invention.

[0130] The present invention provides a selective correction system for the electrothermal state of an energy storage battery, comprising: The data acquisition module 401 is used to acquire the measurement data and external input data of the energy storage battery at the current decision moment, and advance the previous posterior state of the energy storage battery to the current prior state based on the external input data. The correction quantity construction module 402 is used to construct the original state correction quantity based on the residual between the measurement data and the predicted output data of the prior state at the current time. The candidate generation module 403 is used to project based on the original state correction amount and apply corresponding physical constraints to generate multiple candidate branches, including update branches and non-update branches. The open-loop propagation module 404 is used to propagate the open-loop state of each candidate branch with the candidate state of each candidate branch as the initial state and the preset historical measured operation data corresponding to the initial state, so as to determine the voltage prediction error and temperature prediction error of each candidate branch in the preset future time domain. The label generation module 405 is used to comprehensively score each candidate branch based on voltage prediction error and temperature prediction error, and select the selected branch as the training label from the candidate branches according to the comprehensive score. The model training and output module 406 is used to train the branch decision model using training labels and to determine the corrected output state through the trained branch decision model.

[0131] Please see Figure 5 , Figure 5 This is a structural block diagram of an electronic device provided in an embodiment of the present invention.

[0132] An electronic device according to an embodiment of the present invention includes: a memory 501 and a processor 502. The memory 501 stores a computer program. When the computer program is executed by the processor 502, the processor 502 executes the selective correction method for the thermal state of the energy storage battery as described in any of the above embodiments.

[0133] Memory 501 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Memory 501 has storage space 503 for program code 513 for performing any of the method steps described above. For example, storage space 503 for program code may include various program codes 513 for implementing the various steps in the methods described above. This program code can be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, CDs, memory cards, or floppy disks. The program code may be compressed, for example, in a suitable form. When run by a computing processing device, this code causes the computing processing device to perform the various steps in the methods described above. This program code can be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, CDs, memory cards, or floppy disks. The program code may be compressed, for example, in a suitable form. When this code is run by a computing device, it causes the computing device to perform the various steps in the selective correction method for the thermal state of energy storage batteries described above.

[0134] This invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the selective correction method for the electrothermal state of an energy storage battery as described in any of the above embodiments.

[0135] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0136] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, or indirect coupling or communication connection between apparatuses or units, and may be electrical, mechanical, or other forms.

[0137] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0138] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0139] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0140] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for selectively correcting the electrothermal state of an energy storage battery, characterized in that, include: Acquire measurement data and external input data of the energy storage battery at the current decision moment, and advance the previous posterior state of the energy storage battery to the current prior state based on the external input data; Based on the residual between the measured data and the predicted output data of the prior state at the current moment, the original state correction amount is constructed. Projecting the original state correction amount and applying corresponding physical constraints respectively generates multiple candidate branches, including update branches and non-update branches. Using the candidate state of each candidate branch as the initial state, the preset historical measured operation data corresponding to the initial state is used to perform open-loop state propagation on each candidate branch to determine the voltage prediction error and temperature prediction error of each candidate branch in the preset future time domain. The candidate branches are comprehensively scored based on the voltage prediction error and the temperature prediction error, and a selected branch is chosen as the training label from the candidate branches according to the comprehensive score. The training labels are used to train the branch decision model, and the corrected output state is determined by the trained branch decision model.

2. The selective correction method for the electrothermal state of an energy storage battery according to claim 1, characterized in that, The step of constructing the original state correction amount based on the residual between the measured data and the predicted output data of the prior state at the current time includes: The electrothermal model uses the previous auxiliary posterior state and the corresponding external input data at the current time to predict the state and generate the current auxiliary prior state. The electrothermal model is used to measure and predict the current time's auxiliary prior state and the corresponding external input data to generate the predicted output data of the current time's prior state. Based on the difference between the measurement data at the current moment and the predicted output data, a measurement residual is generated; The Kalman gain is solved using the covariance matrix of the state prediction output, the observation Jacobian matrix of the measurement prediction output, and the preset noise covariance parameter. By using a finite-memory extended Kalman observer, the posterior state of the finite-memory extended Kalman observer at the current moment is obtained by recursion based on the Kalman gain and measurement residual corresponding to each historical moment within a preset historical window. The difference between the posterior state at the current time and the prior state at the current time is calculated to obtain the original state correction amount.

3. The selective correction method for the electrothermal state of an energy storage battery according to claim 1, characterized in that, The step of projecting the original state correction amount and applying corresponding physical constraints to generate multiple candidate branches includes: The original state correction amount is projected along the set of correctable directions defined by the physical conservation constraints corresponding to the update branch, and the correction coefficients corresponding to the update branch are solved. The correction coefficients are mapped to a projected state correction vector of the same dimension as the prior state at the current moment through the direction basis corresponding to the set of correctable directions. The projected state correction vector is superimposed onto the prior state at the current time, and the superposition result is numerically pruned by applying state boundary constraints to generate candidate states corresponding to the update branch. The current prior state is used as a candidate state for the non-updated branch, and the updated branch and the non-updated branch are used together to form multiple candidate branches.

4. The selective correction method for the electrothermal state of an energy storage battery according to claim 1, characterized in that, The step of using the candidate states of each candidate branch as initial states, and employing preset historical measured operating data corresponding to the initial states to perform open-loop state propagation on each candidate branch to determine the voltage prediction error and temperature prediction error of each candidate branch in a preset future time domain includes: The measured current, ambient temperature, and cooling status within the same time period after the current decision moment are used as the measured operating data shared by all the candidate branches. Using the candidate states of each candidate branch as the initial state, the measured operating data is used to perform open-loop state propagation through the electrothermal model to obtain the predicted state of each candidate branch at each time in the preset future time domain. Based on the predicted state and the corresponding measured operating data, the electrothermal model is used to perform measurement and prediction, generating the voltage and temperature prediction values ​​of each candidate branch in the preset future time domain. Based on the differences between the predicted voltage and temperature values ​​and their corresponding measured values, the voltage prediction error and temperature prediction error of each candidate branch in the preset future time domain are determined.

5. The selective correction method for the electrothermal state of an energy storage battery according to claim 1, characterized in that, The step of comprehensively scoring each candidate branch based on the voltage prediction error and the temperature prediction error includes: The difference between the predicted voltage value and the corresponding measured voltage value of each candidate branch at each time point in the preset future time domain is calculated to generate the voltage prediction error corresponding to the candidate branch. The temperature prediction value and the corresponding measured temperature value of each candidate branch at each time in the preset future time domain are calculated respectively to generate the temperature prediction error corresponding to the candidate branch. Based on the voltage prediction error and temperature prediction error corresponding to each candidate branch, normalized voltage score and normalized temperature score are calculated respectively according to multiple preset playback durations. The normalized voltage score and the normalized temperature score are weighted and combined, and combined with the preset physical constraint cost and the preset numerical stability cost, to generate a comprehensive score for each candidate branch.

6. The selective correction method for the electrothermal state of an energy storage battery according to claim 1, characterized in that, The step of selecting a chosen branch as a training label from the candidate branches based on the comprehensive score includes: Based on the comprehensive score of each update branch, the update branch with the best comprehensive score and the update branch with the second best comprehensive score are selected as the first update branch and the second update branch, respectively. Calculate the overall score improvement of the first updated branch relative to the non-updated branch, and calculate the score difference between the first updated branch and the second updated branch; If the improvement in the overall score is not less than a preset improvement threshold, the score difference is not less than a preset score difference threshold, the identifiability quantification index of the first updated branch is not less than a preset identifiability threshold, and the score improvement distribution of the first updated branch relative to the non-updated branch in each output type meets the preset multi-output evaluation validity conditions, then the first updated branch is selected as the branch. Otherwise, the branch that is not updated is selected as the branch; The selected branch is used as the training label.

7. The selective correction method for the electrothermal state of an energy storage battery according to any one of claims 1-6, characterized in that, The step of training a branch decision model using the training labels and determining the corrected output state using the trained branch decision model includes: The selected branch is used as the supervision label, and the measurement data and external input data corresponding to the initial state are used as training samples to train the branch decision model. The measurement data and external input data at the current decision moment are input into the trained branch decision model to obtain the output probability of each candidate branch; If the highest output probability in the output probabilities is not lower than the preset confidence threshold and the safety conditions are met, then the candidate state of the candidate branch corresponding to the highest output probability is used as the corrected state output. Otherwise, the current prior state is output as the corrected state, and a rejection indication is output.

8. A selective correction system for the electrothermal state of an energy storage battery, characterized in that, include: The data acquisition module is used to acquire the measurement data and external input data of the energy storage battery at the current decision moment, and advance the previous posterior state of the energy storage battery to the current prior state based on the external input data. The correction quantity construction module is used to construct the original state correction quantity based on the residual between the measurement data and the predicted output data of the prior state at the current time. The candidate generation module is used to project the original state correction amount and apply corresponding physical constraints to generate multiple candidate branches, including update branches and non-update branches. An open-loop propagation module is used to propagate the open-loop state of each candidate branch using the candidate state of each candidate branch as the initial state and the preset historical measured operation data corresponding to the initial state, so as to determine the voltage prediction error and temperature prediction error of each candidate branch in a preset future time domain. The label generation module is used to comprehensively score each candidate branch based on the voltage prediction error and the temperature prediction error, and select a selected branch from the candidate branches as a training label according to the comprehensive score. The model training and output module is used to train the branch decision model using the training labels and to determine the corrected output state using the trained branch decision model.

9. An electronic device, characterized in that, The device includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor causes the processor to perform the steps of the selective correction method for the electrothermal state of an energy storage battery as described in any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed, it implements the selective correction method for the electrothermal state of an energy storage battery as described in any one of claims 1-7.