A lithium battery residual life prediction method and system for a leasing scenario
By utilizing a reference capacity-calibrated observation model and energy replenishment observations in a leasing scenario, combined with energy conservation and voltage response constraints, the capacity sequence is backtracked and corrected, and the network state is reconstructed. This solves the problem of prediction bias during the handover of lithium battery leasing, and achieves accuracy and consistency in the prediction of the remaining life of lithium batteries.
Patent Information
- Application Number
- CN202611676204.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-28
- Publication Date
- 2026-11-27
AI Technical Summary
In leasing scenarios, during the electrical observation and handover of lithium batteries, transient factors in capacity recording affect the state update of the long short-term memory network, causing prediction bias to propagate continuously. Existing technologies cannot synchronously update the network state and capacity history, resulting in inconsistent prediction results.
By utilizing the observation model calibrated with reference capacity, electrical observations are converted into capacity sequences. Combined with post-handover replenishment observations, capacity and transient state are estimated under constraints of energy conservation and voltage response. The capacity sequence is then backtracked and corrected, and the network state is reconstructed using the saved network parameters to predict the subsequent capacity trajectory and determine the remaining lifetime.
It effectively reduces the impact of transient capacity deviation on remaining lifetime estimation, maintains consistency between capacity detection results and historical information, avoids direct merging of multiple candidate capacity histories, and ensures the accuracy of prediction results.
Smart Images

Figure CN123176586A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of lithium battery electrical state detection and remaining life prediction technology, and discloses a method and system for predicting the remaining life of lithium batteries for leasing scenarios. Background Technology
[0002] In rental scenarios, lithium batteries are typically rotated between different users, undergoing operational phases such as load discharge, return for decommissioning, and recharging. Voltage, current, and temperature records generated at each phase characterize their electrical state. Remaining life prediction usually uses the usable capacity under specified testing conditions as a health indicator. Based on the capacity change trend during service, the usable time or number of cycles before the capacity reaches the end-of-life condition is estimated. Battery management equipment stores operational records according to battery identification. Testing equipment obtains a reference capacity through complete charge-discharge cycles, or estimates the capacity based on current integrals and voltage responses using an observation model calibrated with the reference capacity. For partial charge-discharge records, the current integral represents the change in charge in the corresponding segment. The capacity needs to be calculated by combining changes in state of charge and testing conditions, and a capacity sequence is formed according to the acquisition time, serving as input for subsequent life prediction.
[0003] Capacity sequence-based prediction methods typically employ Long Short-Term Memory (LSTM) networks to learn the battery degradation process. During model training, historical capacity records of the same type of battery are sorted chronologically and normalized. Training samples are constructed using the correspondence between continuous capacity windows and subsequent capacities, enabling the network to establish a temporal mapping of capacity changes. In application, recent capacity records of the target battery are sequentially input into the network. Hidden and memory states are used to inherit previous records, and subsequent capacity trajectories are recursively generated. The remaining lifespan is calculated by the intersection of the capacity trajectory and the end-of-life capacity. Existing methods for handling capacity fluctuations caused by temperature changes or resting conditions include smoothing, compensating, or separating the capacity data before prediction. In rolling prediction methods that preserve network states, the prediction program continues to input new data along the existing state, or updates the prediction starting point using the re-estimated current capacity, and updates the remaining lifespan result accordingly.
[0004] During lease handover, polarization changes after discharge and temperature variations during downtime alter the voltage response used for capacity estimation, introducing transient factors into the capacity records near the handover point. Some transient factors require subsequent power replenishment or reference capacity detection to distinguish from capacity decay. However, before these observations arrive, the relevant capacity records may have already participated in the state update of the Long Short-Term Memory (LSTM) network. In cases where capacity records have been corrected based on subsequent observations, but the network still uses the pre-correction memory state, the temporal information formed by previous capacity offsets may remain in the hidden and memory states, causing future capacity trajectories to continue to be affected by these offsets. Consequently, the update of capacity records is not consistent with the update of the network's internal degradation characteristics, and prediction bias may propagate across the lease handover process. The challenge lies in how to simultaneously update the network state formed by these records when subsequent electrical observations correct historical capacity records, ensuring consistency between subsequent lifetime estimations and the corrected capacity history. Summary of the Invention
[0005] The purpose of this invention is to provide a method and system for predicting the remaining life of lithium batteries for leasing scenarios, which can effectively solve the problems mentioned in the background art.
[0006] To achieve the above objectives, the technical solution adopted by the present invention is as follows: A method for predicting the remaining life of lithium batteries for leasing scenarios includes: using an observation model calibrated with a reference capacity, converting electrical observations of the same lithium battery before and after the lease handover into a capacity sequence, saving the network state of the capacity sequence before inputting it into a long short-term memory network, and performing sequence inference; After the handover, the replenishment observation is obtained, and the electrical observation and the replenishment observation are input into the observation model. Under the constraints of energy conservation and voltage response, the capacity state and transient state are jointly estimated, and the capacity sequence is backtracked and corrected. Starting from the saved network state, using the network parameters at the time of saving, the corrected capacity sequence is re-input into the Long Short-Term Memory network according to the observation time sequence, the network state is reconstructed and the subsequent capacity trajectory is predicted, and the remaining lifetime is determined by the difference between the time point when the capacity trajectory reaches the end-of-life capacity and the current time point.
[0007] Preferably, the electrical observation is a voltage and current record with the acquisition time and temperature, and the energy replenishment observation includes the voltage record during the charging process and after the charging is stopped. The transient state includes the state of charge and polarization voltage. The observation model uses the current integral and the capacity state to constrain the change of the state of charge. The open-circuit voltage is determined based on the state of charge and temperature. The terminal voltage is reconstructed by combining the polarization voltage and the ohmic voltage drop. The capacity state and the transient state are jointly corrected based on the difference between the reconstructed terminal voltage and the measured terminal voltage.
[0008] Preferably, the backtracking correction includes: using the reference capacity detection results and their measurement time before the handover as front-end observation constraints, and using the energy replenishment observation as back-end observation constraints, to determine the backtracking segment between the two; Based on the actual elapsed time and the capacity state of the electric flux propagation within the backtracking section, and based on the transient state of the current change propagation, the capacity state and the transient state at each observation time are jointly solved under the front-end observation constraints and the back-end observation constraints. The obtained capacity status is written into the capacity sequence according to the corresponding acquisition time, the correspondence between the acquisition time and the original electrical observation is retained, and the rewritten capacity record and its corresponding supplementary energy observation are recorded.
[0009] Preferably, the hidden state and memory state before each capacity record is input are saved respectively, and stored in association with the input record sequence number and network version; After backtracking and correction, locate the earliest rewritten capacity record, read the network state saved before its input, and use the long short-term memory network corresponding to the network version to continuously replay the capacity sequence between the earliest rewritten capacity record and the current record.
[0010] Preferably, the charging capacity is integrated and normalized using the reference capacity detection results, and a correspondence between the state of charge and the open-circuit voltage at different temperatures is established by combining the open-circuit voltage when charging is stopped. Extract the voltage relaxation records after the charging segment stops charging in the energy replenishment observation, subtract the polarization voltage, and determine the state of charge at both ends based on the corresponding relationship; Select a charging segment where the corresponding relationship has a unique state of charge solution at both ends and the states of charge at both ends are different. Divide the current integral corrected for charging efficiency by the difference in states of charge at both ends to obtain the segment capacity observation. The capacity state is constrained by the segment capacity observation. The voltage at the reconstructed end is reconstructed using the voltage record that did not participate in the segment capacity observation calculation during the same energy replenishment process. The transient state is updated based on the difference between the reconstructed end voltage and the measured end voltage.
[0011] Preferably, when the front-end observation constraints and the back-end observation constraints correspond to multiple state solutions, the capacity trajectory and transient trajectory corresponding to each state solution are saved respectively; Based on the observation error distribution determined by the calibration record, the observation likelihood of each state solution to the electrical observation and the energy replenishment observation is calculated, and the trajectory weight is obtained by normalization. Each capacity trajectory is written into a candidate copy of the capacity sequence, and the correspondence between the candidate copy and the trajectory weight is preserved.
[0012] Preferably, when the backtracking segments corresponding to different supplementary energy observations overlap, the backtracking segments are merged, and the constraints corresponding to each supplementary energy observation are jointly applied to the capacity status at the same acquisition time. Select the network state saved before the earliest capacity record that was overwritten after merging, use the network parameters corresponding to the network version, and input the correction records and unwritten records in the merged segment in sequence, and continue inputting to the current record; The original network state associated with the corresponding input record number is replaced with the network state generated by the replay.
[0013] Preferably, when obtaining the reference capacity detection result after the energy replenishment observation, each capacity trajectory is propagated to the reference capacity detection time based on the actual operation record during the period, and converted into a capacity value under the reference capacity detection conditions; The observed likelihood of the capacity value corresponding to the reference capacity detection result is calculated, and the observed likelihood is multiplied by the trajectory weight and normalized. Starting from the network state saved before the earliest correction record shared by all candidate replicas, each candidate replica is replayed using the same long short-term memory network, the network state corresponding to each candidate replica is saved, and the subsequent capacity trajectory is predicted separately. The remaining lifetime is determined based on each subsequent capacity trajectory, and the remaining lifetime distribution is constructed according to the updated trajectory weights.
[0014] Preferably, the temporal input of the Long Short-Term Memory Network consists of a capacity value and the capacity change rate of adjacent capacity records, wherein the capacity change rate is the ratio of the difference between adjacent capacity values to the difference between the corresponding acquisition times. After merging the backtracking segments, for the record whose capacity value has been rewritten and the record that follows it, the capacity change rate is recalculated using the corrected adjacent capacity value, while retaining the original acquisition time and power flux correspondence of each record; Starting from the network state saved before the earliest capacity record was rewritten after the merger, the reconstructed time sequence input is continuously input, and the corresponding hidden state and memory state are saved after each input, replacing the association between the original network state and the input record number.
[0015] A lithium battery remaining life prediction system for leasing scenarios includes a memory and a processor. When the processor executes the program stored in the memory, it uses an observation model calibrated with a reference capacity to convert electrical observations before and after the handover of the same lithium battery leasing into a capacity sequence, saves the network state before the capacity sequence is input into a long short-term memory network, and performs sequence inference. After the handover, the replenishment observation is obtained. The electrical observation and the replenishment observation are input into the observation model. Under the constraints of energy conservation and voltage response, the capacity state and transient state are jointly estimated, and the capacity sequence is backtracked and corrected. Starting from the saved network state, using the network parameters at the time of saving, the corrected capacity sequence is re-input into the Long Short-Term Memory network according to the observation time sequence, the network state is reconstructed and the subsequent capacity trajectory is predicted, and the remaining lifetime is determined by the difference between the time point when the capacity trajectory reaches the end-of-life capacity and the current time point.
[0016] Compared with the prior art, the beneficial effects of the present invention are as follows: 1. Electrical observations and post-handover replenishment observations jointly participate in capacity and transient state estimation using the same observation model. The correspondence between charge conservation constraints on capacity and state of charge changes, and transient components such as voltage response constraints on polarization, are used. The state estimation results supported by subsequent measurements are used to retrospectively correct historical capacity records. The prediction process begins with the network state saved before the correction segment, re-inputting the corrected capacity sequence using the network parameters at the time of saving, causing the hidden and memory states to be recalculated based on the corrected input. Historical capacity correction provides the measurement basis for reconstructing the time-series state, while state replay propagates the correction to subsequent capacity extrapolation. Both processes together reduce the possibility of corrected transient capacity biases continuing to affect the remaining lifetime estimation. Compared to simply replacing the current capacity value, the process simultaneously updates the prediction starting point and the time-series representation formed by previous capacity changes, maintaining the correspondence between the capacity detection results and the historical information upon which lifetime prediction is based.
[0017] 2. For situations where electrical observations still correspond to multiple state interpretations, capacity trajectories and their corresponding transient trajectories are retained separately, and the network state after independent replay is saved for each candidate capacity sequence. This allows the prediction differences corresponding to different capacity histories to be preserved in the lifetime output. Subsequent reference capacity detection updates the trajectory weights through observational likelihood, adjusting the remaining lifetime distribution with new measured evidence, avoiding the direct merging of multiple candidate capacity histories into a single sequence during the input phase. For cases where multiple backtracking segments overlap, supplementary energy observation constraints are applied together at the same acquisition time, and corrected and unrewritten records are continuously replayed, ensuring that overlapping segments use a consistent capacity state and time sequence. After rewriting the capacity records, adjacent rates of change are recalculated, while retaining the original acquisition time and the correspondence between electrical flux. This ensures that the updates to capacity values, rates of change, and network states remain consistent, avoiding the mixing of time-series inputs before and after correction. Attached Figure Description
[0018] Figure 1 This is a flowchart of the lease handover capacity retrospective correction and network memory reconstruction process of the present invention; Figure 2 This is a diagram of the discrete integral and interval state trajectory of the charged state according to the present invention; Figure 3 The terminal voltage residual and error in the joint constraint target of the present invention are shown in the figure; Figure 4 This is a diagram showing the cumulative capacity contribution and identification capacity of the energy replenishment segment in this invention. Figure 5 This is a flowchart of the candidate capacity history replay and remaining lifetime distribution update process of the present invention. Figure 6 This is a graph showing the inclusion of new detection evidence and the update of candidate weights in this invention. Detailed Implementation
[0019] Please refer to Figure 1 In one embodiment, the following method is adopted: A method for predicting the remaining life of lithium batteries for leasing scenarios, comprising: using an observation model calibrated with a reference capacity, converting electrical observations before and after the handover of the same lithium battery leasing into a capacity sequence, saving the network state before the capacity sequence is input into a long short-term memory network and performing sequence inference; obtaining the replenishment observations after the handover, inputting the electrical observations and replenishment observations into the observation model together, jointly estimating the capacity state and transient state under the constraints of energy conservation and voltage response, and backtracking to correct the capacity sequence; starting from the saved network state, using the network parameters at the time of saving, re-inputting the corrected capacity sequence into the long short-term memory network according to the observation time sequence, reconstructing the network state and predicting the subsequent capacity trajectory, and determining the remaining life by the difference between the time point when the capacity trajectory reaches the end-of-life capacity and the current time point.
[0020] In this embodiment, the implementation carrier corresponding to the above method adopts the following system scheme: a lithium battery remaining life prediction system for leasing scenarios, including a memory and a processor. When the processor executes the program stored in the memory: using an observation model calibrated with a reference capacity, the electrical observations before and after the handover of the same lithium battery leasing are converted into a capacity sequence, the network state before the capacity sequence is input into the long short-term memory network is saved and sequence inference is performed; the replenishment observations after the handover are obtained, the electrical observations and replenishment observations are jointly input into the observation model, and the capacity state and transient state are jointly estimated under the constraints of energy conservation and voltage response, and the capacity sequence is backtracked and corrected; starting from the saved network state, using the network parameters at the time of saving, the corrected capacity sequence is re-input into the long short-term memory network according to the observation time sequence, the network state is reconstructed and the subsequent capacity trajectory is predicted, and the remaining life is determined by the difference between the time point when the capacity trajectory reaches the end-of-life capacity and the current time point.
[0021] In this embodiment, the processing object is a leased lithium battery with a continuous identity identifier. The identity identifier remains unchanged as the battery is turned over. The start of the lease, the end of the lease, and the return for energy replenishment constitute data association events. The operation records formed by the same battery at different users are included in the same battery file. The lease events are only used to determine the time relationship between the observation records and are not directly used as the number of charge and discharge cycles. When the battery is a battery pack, the capacity processed is the available capacity under the corresponding port and cutoff conditions. Voltage recording and reference capacity detection both use the same object level to avoid mixing the battery pack port capacity and the individual cell capacity into the prediction process.
[0022] In this embodiment, the capacity status is uniformly expressed as the available capacity under reference testing conditions. The reference testing conditions are determined by existing capacity testing procedures and stored as data attributes. Online estimated capacity, reference testing results, and end-of-life capacity are all converted to this capacity benchmark. The short-term releaseable charge at actual temperature is treated as a conditional response in the observation model and does not directly replace the reference capacity status. The state of charge represents the proportion of stored charge relative to the capacity benchmark, and the polarization voltage represents the terminal voltage component that decays over time after load changes. The capacity status and transient status are stored separately, thereby allowing the voltage response to change without the reference capacity changing by the same magnitude.
[0023] Specifically, each original record includes battery identifier, acquisition time, terminal voltage, port current and temperature, along with data source identifier and charging, discharging or deactivation status. The current is uniformly defined as positive in the charging direction and negative in the discharging direction. Records from battery management devices and charging devices are associated through battery identifiers. Acquisition times are sorted according to the time of event occurrence. The upload time is only saved as a receiving attribute and does not replace the acquisition time. Charging records that arrive late after being returned can be inserted into their corresponding historical observation positions. Each record retains its original value and processed version, and capacity correction will not overwrite the original measurement.
[0024] In a preferred embodiment, the processor performs source verification on repeated records at the same acquisition time. Records with the same source and identical content retain only one observation contribution, while records with different sources retain their respective error descriptions and are jointly constrained to the same state. For records with inverted time, inconsistent units, or uncorresponding identifiers, their inclusion in capacity estimation is paused. Current integration is only calculated within segments with time boundaries and current records. Short intervals in continuous records use adjacent current interpolation. When crossing missing segments, the uncertain range of charge change is retained, and unknown currents are not replaced by zero current.
[0025] In this embodiment, the reference capacity calibration uses complete capacity test records formed by the same type of battery at different aging stages. Each calibration sample is associated with the test capacity, the operation records before and after the test, and the voltage change after charging is stopped. The current integral of the complete discharge process provides the reference capacity. Repeated tests form capacity measurement error samples. The calibration data is divided into fitting data and test data according to the battery. The records of adjacent times of the same battery are not simultaneously dispersed into independent test groups. After the observation model is fitted, the residual is reconstructed by checking the terminal voltage of the battery that did not participate in the fitting, and the residual distribution is saved with the model version.
[0026] Specifically, the cross-segment propagation of capacity status is calibrated by the change records between reference capacity detection intervals. The processor calculates the actual elapsed time, cumulative charge throughput, and temperature exposure distribution for each detection interval, uses the reference capacity difference as the corresponding capacity change sample, and establishes the relationship between capacity change and operational exposure using piecewise linear regression. During online propagation, the operational exposure records of the same segment of the target battery are read, and the capacity change prediction and its residual range are calculated. The capacity change item corresponding to the actual elapsed time is still retained for the deactivated segment. Short-term capacity recovery is interpreted through transient response and is not directly recorded as a reverse increase in capacity status.
[0027] In this embodiment, the charge conservation adopts a discrete integral form to connect the charge states at adjacent observation times. The current within the observation interval uses the average current of the interval, the time interval is converted to hours, and the capacity is expressed in ampere-hours. The capacity state within a single integration interval uses the estimated value of the interval's starting point. When the record contains obvious current state switching, the integration interval is divided according to the switching time in the existing record. The capacity propagation and charge integral of the long-term inactive record are calculated separately. The local propagation of the charge state is expressed by the following formula.
[0028]
[0029] Where k represents the index of the observation interval sorted by the acquisition time. and Let represent the charge states at the start and end points of the interval, respectively; both are dimensionless quantities. This represents the average current over a given period, expressed in amperes. Indicates the duration of the interval, in hours. Indicates the reference capacity status at the starting point of the interval, in ampere-hours. This represents the coefficient used to convert port power into changes in stored power. The charging range uses the calibrated charging efficiency, while the discharging range is set to 1 when using the available port capacity as a reference. The product represents the change in stored power in that range, and dividing by the capacity yields the state of charge increment.
[0030] Please refer to Figure 2 The horizontal axis represents the sampling sequence as start, first segment, middle segment, last segment, and last segment, while the vertical axis represents the dimensionless state of charge. The solid line represents the release status. The dotted line indicates the order. Interval start capacity The computational endpoint of step propagation The dashed lines with squares and the dotted lines with triangles represent the calculated lowest and highest states within the same interval, respectively. The horizontal positions are arranged at equal intervals according to the sampling order and do not represent the actual elapsed time. Figure 2The initial state of most records gradually decreased from approximately 0.60 to approximately 0.49, with the calculation endpoint close to the solid line, indicating that the corresponding current integral results are basically compatible with the publication point. The lowest state in the interval mostly ranged from approximately 0.25 to 0.37 in these records, reflecting the low-state history within the interval and cannot be considered as a statistical confidence lower bound. A low-state record of approximately 0.054 appeared at the end, followed by continuous energy replenishment that raised the state to approximately 0.27; this change should be verified in conjunction with the current direction, acquisition time, and source of evidence, and cannot be simply interpreted as a statistical confidence lower bound. Figure 2 The time required to calculate the equidistant positions on the surface.
[0031] As a calculation example, the average current of a certain segment of collected charging records is 2 amps, the duration is 0.25 hours, the charging efficiency is 0.98, the reference capacity at the beginning of the interval is 2.45 amp-hours, and the starting state of charge is 0.30. Then, the efficiency-corrected charging capacity is 0.49 amp-hours, corresponding to a state of charge increment of 0.20, and the ending state of charge is 0.50. The above values are calculated from the observation records. After calculation, the processor continues to use the ending voltage to check whether the state is compatible with the measured response. If different capacity values can explain the ending response, the corresponding candidate state is retained, instead of determining the capacity solely based on current integration.
[0032] In this embodiment, the open-circuit voltage mapping is established by charging records with known reference capacity. The processor starts from the initial state corresponding to the capacity detection, accumulates the charging capacity after efficiency correction and converts it into the state of charge. The asymptotic voltage estimated by the charging relaxation curve is associated with the state of charge and temperature. The mapping table is interpolated within the temperature range with observation support, and the data relationship between the charging direction and the discharging direction is saved respectively. The online record adopts the relationship corresponding to its recent running direction. When the voltage platform makes multiple states of charge correspond to approximate voltages, the mapping returns to the compatible state range and does not force the return of a unique value.
[0033] In a preferred embodiment, the observation model uses an equivalent circuit containing one polarization branch to represent the voltage response. The terminal voltage is obtained by adding the open-circuit voltage, ohmic voltage drop, and polarization voltage. The ohmic voltage drop is obtained by multiplying the current by the calibration resistor. The polarization voltage is calculated by combining the decay of the previous polarization state and the current excitation in the current interval. The decay coefficient is the negative natural exponent of the ratio of the actual elapsed time to the calibration relaxation time. The current excitation is the product of the polarization resistance and the interval current, multiplied by 1 and subtracted from the decay coefficient. The relevant resistance and relaxation time are fitted through calibration records and belong to the data of the observation model, not the hardware operating parameter settings.
[0034] Specifically, when the current is zero after charging stops, the ohmic voltage drop in the observation model disappears, and the polarization voltage continues to change according to the calibrated decay relationship. The processor uses continuous relaxation records to estimate its asymptotic voltage, and the terminal voltage at the moment of charging stop is not directly used as the open circuit voltage. When the target battery is connected for the first time, the initial capacity value is generated from the reference capacity detection or compatibility history record, the initial state of charge value is generated according to the voltage mapping, the initial polarization value is generated according to the relaxation response after the load ends, and then the continuous current record is used to propagate forward and compare the reconstructed voltage to form the initial capacity sequence and its observation source relationship.
[0035] In this embodiment, the training samples of the Long Short-Term Memory Network consist of reference capacity records and verified capacity estimation records. Each sample contains an input window arranged chronologically and its subsequent capacity label. The capacity is normalized by dividing by the initial reference capacity of the corresponding battery, and the normalization benchmark is saved with the battery profile. The basic implementation uses the capacity value as the chronological input, the training label is associated with the agreed capacity assessment time interval, the actual time of the historical record is kept traceable, missing labels are not replaced by the network's own prediction value, training and verification are divided by battery, and the verification process only uses records obtained before the prediction time.
[0036] Specifically, each iteration of the network concatenates the current input vector with the previous hidden vector, multiplies it by the matrices corresponding to the forget gate, input gate, output gate, and candidate memory, and adds a bias. The linear outputs of the three gates are mapped to the range of 0 to 1 by a logistic function. The candidate memory is processed by the hyperbolic tangent function. The previous memory is multiplied element-wise by the forget gate, and the candidate memory is multiplied element-wise by the input gate. The two are added together to form the current memory. The current memory is processed by the hyperbolic tangent and then multiplied element-wise by the output gate to form the current hidden state. The capacity output is calculated from the current hidden state through a linear regression layer.
[0037] In this embodiment, the number of columns in the matrix is the same as the length of the concatenated vector, and the number of rows is the same as the length of the corresponding hidden vector. The multiplication in the gating operation is the multiplication between elements at the same position. The regression layer maps the hidden vector to the subsequent normalized capacity. During training, the squared residual between the predicted capacity and the observed labels is accumulated. The gradient of the network parameters is calculated through backpropagation along the time expansion, and then the gradient is used to update the network parameters. The residual on the test data does not participate in the parameter update. The selected network parameters, the order of the input fields, and the normalized benchmark together form the model version. Online sequence inference does not continue to perform parameter training.
[0038] In this embodiment, the processor saves the current hidden state and memory state before each capacity record enters the network. After the capacity record enters, it obtains the updated state and subsequent capacity prediction. The prediction result includes the cutoff position of the input record and the model version. When subsequent capacity supplementation observations have not yet been obtained, the current capacity estimate is used as a temporary record for inference. The original observations and temporary attributes are retained at the same time. When subsequent evidence supports capacity correction, the network input segment that needs to be reconstructed is located according to the source relationship of the capacity records. The temporary record will not be transferred to the confirmed reference capacity training label set without label.
[0039] Specifically, lifetime extrapolation is performed under the assumption of subsequent use that is compatible with the applicable conditions of the training data. The basic implementation recursively extrapolates the capacity assessment time interval corresponding to the training label and saves the time interval and the corresponding operational exposure as conditional attributes of the prediction result. After each new capacity prediction is obtained, it is used as the input for subsequent extrapolation and the corresponding network state is updated to form a capacity trajectory arranged according to future time points. The lifetime termination capacity uses a detection benchmark consistent with the reference capacity. The processor finds the position where the trajectory first reaches the capacity. A single discharge voltage reaching the cutoff condition is not directly regarded as a battery service life termination event.
[0040] As an example of lifetime calculation, the predicted capacities for 30 days and 60 days after the current moment are 2.03 Ah and 1.97 Ah, respectively. The lifetime termination capacity corresponding to the existing usage requirements is 2.00 Ah. The processor performs linear interpolation between adjacent prediction points to obtain a remaining lifetime of 45 days. If the current reference capacity has already reached the lifetime termination capacity, the output remaining lifetime is zero. If there is no intersection within the calculated extrapolation interval, the output remaining lifetime is greater than the length of the interval and the corresponding prediction conditions. This example only illustrates the calculation of trajectory intersections and is not considered as actual battery detection results.
[0041] Preferably, the electrical observations are voltage and current records with the acquisition time and temperature, and the energy replenishment observations include voltage records during the charging process and after the charging is stopped; the transient state includes the state of charge and polarization voltage. The observation model uses current integral and capacity state to jointly constrain the change of state of charge, determines the open circuit voltage based on the state of charge and temperature, and reconstructs the terminal voltage by combining the polarization voltage and ohmic voltage drop. The capacity state and transient state are jointly corrected based on the difference between the reconstructed terminal voltage and the measured terminal voltage.
[0042] In the above embodiments, the change in the state of charge corresponding to the same current record is constrained by the capacity state, while the terminal voltage under the same state of charge is also affected by temperature and polarization. Therefore, the processor correlates the response during load change with the relaxation response after charging is stopped to solve the problem. A small capacity will increase the range of the state of charge corresponding to a given charge flux, and the polarization change is mainly manifested as the voltage shift during current switching and resting. The connection between these observations is maintained through continuous state propagation to avoid obtaining incompatible capacity estimates by fitting each voltage point separately. Multiple solution exits are retained when the observation coverage is insufficient.
[0043] Preferably, the backtracking correction includes: using the reference capacity detection results and their measurement times before handover as front-end observation constraints, and the supplementary energy observation as back-end observation constraints, to determine the backtracking section between the two; according to the actual elapsed time and the propagation capacity state of the electric flux within the backtracking section, and according to the propagation transient state of the current change, jointly solving the capacity state and transient state at each observation time under the front-end observation constraints and the back-end observation constraints; writing the obtained capacity state into the capacity sequence according to the corresponding acquisition time, retaining the correspondence between the acquisition time and the original electrical observation, and recording the rewritten capacity record and its corresponding supplementary energy observation.
[0044] Specifically, the measurement time of the front-end reference capacity detection can be different from the handover time. The processor uses the existing running records between the two to propagate the capacity state, retaining the reference capacity constraint at the actual detection time, and does not directly copy the value as the capacity at the handover time. The back-end replenishment observation is added to the same state sequence according to the actual occurrence time. The load response during replenishment and the relaxation response after stopping replenishment constrain the state at the corresponding time. The idle time during the lease period is included in the backtracking segment through the capacity propagation relationship. The actual capacity change and the transient change near the handover are represented separately in the same solution process.
[0045] In this embodiment, constrained smoothing is achieved by minimizing the standardized observation residuals and state propagation residuals. Voltage records are scaled according to their calibration errors, reference capacity detection is scaled according to the corresponding detection errors, and state differences between adjacent time points are scaled according to the errors of the capacity and transient propagation model. The same measurement is only included once in the objective function. When the reference capacity has been added as a front-end observation, it is no longer independently copied as another prior observation. The state sequence of the backtracking segment is evaluated using the following objective function.
[0046]
[0047] in, This represents the dimensionless residual evaluation value. This represents the state sequence from the start to the end within the backtracking segment. Each state includes a reference capacity, state of charge, and polarization voltage. K represents the index of the segment's end. This represents the set of times with voltage observations. This represents the set of times with reference capacity detection. and These represent the measured terminal voltage and the reconstructed terminal voltage, respectively, in volts. This represents the standard deviation of the corresponding voltage observation error. Indicates the reference capacity detection value. This represents the standard deviation of the corresponding capacity observation error; both of these are in ampere-hours. This represents the propagation residual vector between adjacent states, formed by subtracting the predicted state obtained from the propagation model of the state at the previous time step from the state to be estimated at the next time step. This represents the covariance matrix of the propagation residual. The expression represents transpose, and the expression for -1 power represents matrix inversion. The capacity residual, charge state residual, and polarization residual each have their own dimensions. The covariance matrix preserves the corresponding scale and correlation. The quadratic form operation combines them into a dimensionless evaluation term. Each summation operation represents the accumulation of observations or state connections of the included segments.
[0048] Please refer to Figure 3 , Figure 3 This corresponds to the terminal voltage observation item in the joint constraint objective. The horizontal axis represents the sampling process, and the vertical axis represents the terminal voltage residual, in volts. The solid black line records the difference between the measured and reconstructed values. The dotted line with circles and the dotted line with triangles represent the positive and negative references for the standard deviation of the calibration error, respectively. The dotted line with squares indicates zero residual. The two horizontal references are located at approximately ±0.035 volts, indicating that the graph uses the same calibration version of the voltage error scale, rather than the capacity change. Observing the solid line, it can be seen that most residuals fluctuate around zero. Among approximately 130 sampling points, four exceed the above positive and negative references, including one positive peak of approximately 0.0367 volts and three negative exceedances, with the lowest being approximately -0.0478 volts. Exceedance points will increase the contribution of the standardized residuals in the corresponding observation, but a single peak value cannot determine capacity decay or equipment failure. The time alignment of the current direction, temperature, polarization state, and voltage records at the same time should be checked. The complete graph also includes the cumulative reference capacity detection item and the adjacent state propagation item. Figure 3 Only the voltage difference term is plotted according to the sampling time; the other two terms are not plotted as voltage curves. The positive and negative references are based on a calibration error scale, not automatic processing thresholds or confidence intervals.
[0049] Specifically, the processor uses the previously estimated state sequence as the initial solution, reconstructs the voltage at each time step using the observation model, calculates the capacity observation residual and the propagation residual of adjacent states, and then linearizes the rate of change of the residuals relative to the state variables. The linearization matrix can be obtained by changing the state components one by one and recalculating the residuals. The scale of change is determined according to the calibration error of the corresponding variables. Then, the weighted least squares increment is solved, and the increment is updated with constraints that satisfy the positive capacity and the state of charge being within the physical range. The complete objective function is recalculated until the state update and residual change satisfy the convergence conditions stored in the computation configuration.
[0050] In this embodiment, the calculation process solves for compatible initial values with different initial capacities and polarization states. If different initial values converge to different compatible trajectories, they are retained as candidate solutions. The elapsed time term in the capacity propagation relationship is used to represent the aging changes during the shutdown period, and the power flux term is used to represent the capacity changes during the operation period. The transient propagation is calculated according to the actual observation interval. During the solution process, each capacity observation is not forced to be adjusted into a monotonically decreasing sequence. Instead, the measurement fluctuations, recovery phenomena and continuous degradation are distinguished by the constraints between the capacity state and the voltage response.
[0051] As an example of objective function calculation, if the measured voltage differs from the reconstructed voltage by 0.01 volts at a certain moment, and the corresponding voltage error standard deviation is 0.02 volts, then the voltage residual term is 0.25. If the reference capacity differs from the estimated capacity by 0.02 ampere-hours, and the capacity error standard deviation is 0.04 ampere-hours, then the corresponding capacity residual term is also 0.25. Therefore, the two residual terms participate in the solution on the same dimensionless scale. If changing the polarization state can reduce the voltage residual in the relaxation segment without changing the capacity reference residual, the solution process retains this adjustment in the transient component and does not convert all voltage offsets into capacity reduction.
[0052] Specifically, after the solution is completed, the processor compares the new capacity state with the original capacity sequence according to the record identifier, writes the changed capacity value into the new sequence version, and saves the original value, new value, acquisition time and the supplementary energy observation identifier that supports the correction at the same time; the actual time of the capacity record is not changed due to the backtracking operation, and subsequent measurement correction of historical capacity will not rewrite the subsequent detection time as the historical time. The relationship between the correction record and the original measurement remains traceable. The processor locates the earliest affected network input based on this, instead of using the upload time of the supplementary energy record as the replay starting point.
[0053] Preferably, the hidden state and memory state of each capacity record before input are saved separately and associated with the input record number and network version. After backtracking correction, the earliest modified capacity record is located, its network state saved before input is read, and the capacity sequence between the earliest modified capacity record and the current record is continuously replayed using the long short-term memory network corresponding to the network version.
[0054] In this embodiment, the network state record is also associated with the capacity normalization benchmark, input field order, and time benchmark. The weight matrix, bias, and regression layer data corresponding to the network version are also archived. When the processor restores the state, it checks these associated information. Only network parameters consistent with the saved state participate in the replay. The random deactivation used in the training phase is turned off in the replay phase. The same input in the capacity sequence generates the same state recursion under the same version. The model upgrade adopts the complete historical reconstruction of the independent version and does not directly use the memory vector of the old version as the initial state of the new version network.
[0055] As an example of the replay range, the capacity value of input record number 120 is corrected by subsequent energy supplementation observations, and the current processing has reached number 137. Then, the state saved before inputting number 120 is read, and records from number 120 to 137 are continuously input into the same network. Some capacity values from number 121 to 136 need to participate in the replay even if they have not changed, because the preceding hidden state and memory state they received have changed. The processor generates a new state record after each input until the current input position, and then extrapolates the subsequent capacity trajectory based on the new current state.
[0056] In this embodiment, backtracking correction and replay are performed in separate data versions. The newly generated capacity sequence and the new network state are first saved in the pending release record. After continuous input ends and the input cutoff position is consistent, the current prediction is then directed to this version. If a later running record is received during replay, it is first kept in the incremental queue. After the replay reaches the original cutoff position, input continues according to the acquisition time. The capacity version and the network state version are switched together to avoid a mixed state where the current capacity has been updated but the current memory still references the old sequence.
[0057] Preferably, when the backtracking segments corresponding to different supplementary energy observations overlap, the backtracking segments are merged, and the constraints corresponding to each supplementary energy observation are jointly applied to the capacity state at the same acquisition time; the network state saved before the earliest rewritten capacity record after merging is selected, the network parameters corresponding to the network version are used, the correction records and unrewritten records in the merged segment are input sequentially, and input continues to the current record; the original network state associated with the corresponding input record number is replaced with the network state generated by replay.
[0058] Specifically, when a supplementary energy observation forms a backtracking segment covering records 90 to 125, and another supplementary energy observation forms a backtracking segment covering records 115 to 140, the processor establishes a common state sequence covering records 90 to 140, and uses the capacity and transient state corresponding to records 115 to 125 as shared variables. Measurements from the same source within the two segments are only counted once, and observations from different sources retain their error relationships. The reference capacity detection is based on the constraint state at the actual time, and the earliest record where the capacity rewriting actually occurred is determined after joint solution. The replay starting point is selected based on the rewriting position, without mechanically using the position with the smaller segment number.
[0059] Preferably, the temporal input of the Long Short-Term Memory (LSTM) network consists of capacity values and capacity change rates of adjacent capacity records. The capacity change rate is the ratio of the difference between adjacent capacity values to the difference between the corresponding acquisition times. After merging backtracking segments, for records whose capacity values have been rewritten and their subsequent records, the capacity change rate is recalculated using the corrected adjacent capacity values, preserving the original acquisition times and electrical flux correspondences of each record. Starting from the network state saved before the earliest rewritten capacity record after merging, the reconstructed temporal input is continuously input, and the corresponding hidden state and memory state are saved after each input, replacing the association between the original network state and the input record number.
[0060] In the above embodiments, the capacity change rate adopts backward difference. When the capacity of a certain record is rewritten, the change rate between the record and the previous record needs to be recalculated, and the change rate between the subsequent record and the record also needs to be recalculated. For example, if adjacent records are located on the 10th, 13th and 15th days, and the intermediate capacity is corrected from 2.28 amp-hours to 2.32 amp-hours, then the two change rates involving the intermediate records are recalculated using the actual intervals of 3 days and 2 days, respectively. The difference in record number cannot be used uniformly. Multiple source observations at the same time are first estimated to be in the same capacity state, and no change rate with a denominator of zero is generated.
[0061] Preferably, the charging capacity is integrated and normalized using the reference capacity detection results, and a correspondence between the state of charge and the open-circuit voltage at different temperatures is established by combining the open-circuit voltage after charging is stopped. Voltage relaxation records after charging is stopped at both ends of the charging segment in the energy replenishment observation are extracted, and the polarization voltage is subtracted. The state of charge at both ends is determined according to the correspondence. Charging segments with unique state of charge solutions at both ends and different state of charge at both ends are selected. The current integral corrected for charging efficiency is divided by the difference in state of charge at both ends to obtain the segment capacity observation. The capacity state is constrained by the segment capacity observation. The terminal voltage is reconstructed using the voltage records that did not participate in the segment capacity observation calculation during the same energy replenishment process. The transient state is updated according to the difference between the reconstructed terminal voltage and the measured terminal voltage.
[0062] In this embodiment, the calibration of the relationship between state of charge and open-circuit voltage uses a charging process with capacity reference. The processor takes the initial state of charge determined by the reference detection as the starting point, divides the accumulated stored capacity by the reference capacity to obtain the state of charge increment, and associates it with the asymptotic voltage at the corresponding time of charging stop. Data at different temperatures are mapped separately, and then interpolated within the existing temperature range. The charging efficiency is determined according to the ratio of the stored capacity change to the port charging capacity in the corresponding calibration segment. The capacity reference, efficiency record and voltage mapping use the same calibration version to avoid systematic deviation caused by mixing calibration versions.
[0063] Specifically, when both the beginning and end of a charging segment have relaxation records after charging is stopped, the processor uses the polarization propagation relationship to subtract the remaining polarization voltage and then looks up the open-circuit voltage mapping that matches the temperature. When the endpoint voltage corresponds to multiple state of charge solutions, the segment is not directly used for unique capacity calculation. When the endpoint state of charge is the same or its difference falls within the endpoint identification error range, a definite capacity value is not formed based on this. Only segments with non-zero and identifiable state of charge spans enter the capacity constraint, while the remaining segments can still provide voltage response and transient change information.
[0064] In this embodiment, the charging segment involved in capacity calculation should be located in a continuous charging segment where the capacity state can be approximated as constant. Records before and after long-term shutdown are not directly spliced into a single integration segment. The processor integrates the current within the segment interval by interval and uses the charging efficiency corresponding to each interval to convert it into stored energy. The terminal charge state and the integration adopt the same start and end times. The segment capacity is calculated according to the following formula.
[0065] in, This indicates the capacity observation formed during the charging segment, expressed in ampere-hours. This represents the set of integration intervals contained in the segment, where a and b represent the observation indices of the start and end points, respectively. and The state of charge at the two endpoints is represented; the summation operation yields the cumulative stored charge within the segment, the denominator represents the state of charge span corresponding to that charge, and the numerator divided by the denominator yields the capacity observation corresponding to the reference capacity benchmark.
[0066] Please refer to Figure 4The process of forming segment capacity can be identified: the horizontal axis represents the sampling process of this continuous energy replenishment, and the vertical axis represents the corresponding capacity, in ampere-hours (Ahs). The solid line with triangular markings progressively accumulates the corrected values of each interval and converts them into the cumulative capacity contribution up to that point according to the state of charge span of the complete segment endpoint, i.e., the difference between the two. The cumulative contribution starts from zero and monotonically increases to about 2.414 Ahs through 9 acquisition nodes; the final identified capacity is consistent with this endpoint, and the capacity released at the same time is about 2.306 Ahs, with a difference of about 0.108 Ahs. The uncertainty at the endpoint is about 0.178 Ahs, and the aforementioned difference is less than this amount. Each point in the process is only a cumulative contribution to the same final result and cannot be interpreted as an independent capacity detection completed every 15 minutes. The values and must be determined by the endpoint with evidence of charging relaxation, and the difference between the two must be greater than the endpoint identification error; the charging efficiency is only included once in the current integral. Records with gaps, temperatures exceeding the calibration range, or endpoint solutions that are not unique should not be forced to generate a definite value.
[0067] As an example of segment capacity calculation, the cumulative stored capacity of a certain energy replenishment record after charging efficiency correction is 1.08 AH. The initial state of charge is 0.25 and the final state of charge is 0.70, so the state of charge span is 0.45, and the calculated segment capacity is 2.40 AH. If the original current integral is still 1.08 AH and the charging efficiency has not yet been taken into account, the processor will first perform efficiency conversion and then perform capacity calculation. The original port capacity and the corrected capacity cannot be reused. The calculation shows that the local charging capacity needs to be converted through the state of charge span, and the local capacity itself is not equal to the battery capacity.
[0068] In a preferred embodiment, the processor, based on the uncertainty of the segment capacity propagated by the endpoint voltage mapping error and the current integration error, specifically generates compatible values of endpoint state and integrated charge within the calibration residual distribution, and then calculates the corresponding capacity one by one to form a capacity observation range. When the state of charge span is small, the same endpoint error will correspond to a wider capacity range. The processor constrains the capacity state according to this range, does not take the segment capacity as the error-free true value, and retains the original record of the segment when the temperature change exceeds the coverage range of the mapping data, waiting for the reference detection with corresponding conditions to provide supplementary constraints.
[0069] In this embodiment, the segment capacity is derived from the endpoint voltage, polarization estimation, and current integral. The processor saves all source record identifiers for it and incorporates the segment capacity using an algebraic constraint method in the joint estimation. It also uses voltage records that are not involved in the capacity calculation to check the transient state. If it is necessary to include the segment capacity and its source observations in the statistical solution at the same time, a joint error description containing the correlation of common measurement errors is used. The two cannot be treated as independent measurements and their likelihoods are repeatedly accumulated. When merging back-tracking segments, duplicate observations are also checked through source identifiers.
[0070] Specifically, voltage records not involved in fragment capacity calculation can be selected from other continuous charging positions or relaxed positions outside the endpoints during the same energy replenishment process. The processor propagates the state of charge under fragment capacity constraints, reconstructs the terminal voltage using these records, and adjusts the polarization state corresponding to its residual. If changing only the polarization state can make the additional voltage records compatible with the model, then the fragment capacity constraints are maintained. If both capacity and transients need to be adjusted, then the fragment capacity is re-solved jointly within the allowable range. The additional voltage records maintain an independent source relationship and are no longer returned to participate in the repeated weighting of the already formed capacity observations.
[0071] Please refer to Figure 5 Preferably, when the front-end observation constraints and the back-end observation constraints correspond to multiple state solutions, the capacity trajectory and transient trajectory corresponding to each state solution are saved respectively; based on the observation error distribution determined by the calibration record, the observation likelihood of each state solution to the electrical observation and the supplementary energy observation is calculated and normalized to obtain the trajectory weight; each capacity trajectory is written into the candidate copy of the capacity sequence, and the correspondence between the candidate copy and the trajectory weight is retained.
[0072] In this embodiment, candidate state solutions are generated through a set of compatible initial values. The initial capacity value comes from the error range of the front-end reference capacity, the initial state of charge value comes from the state range allowed by the temperature-dependent voltage mapping, and the initial polarization value comes from the fitting range of the resting response. The processor performs the same constraint smoothing on each initial value, excludes solutions that violate the continuity of charge or the range of physical states, merges and saves the source information of repeated solutions that converge to the same trajectory, and establishes candidate copies for solutions that still have different capacity histories. The candidate copies retain the capacity record of the entire affected section, rather than just the current capacity value.
[0073] Specifically, the observation likelihood is calculated from the residuals between the measured values and the predicted values of the candidate states. When the calibration residuals are approximately symmetrical and do not have obvious multimodalities, the normal error distribution corresponding to the calibration standard deviation can be used. When the residuals have other distribution forms, the empirical density formed by the calibration samples is used. When calculating the joint contribution of multiple observations, the error correlation relationship is processed according to the saved relationship. The contribution of continuous observations is accumulated in logarithmic form, and then the largest logarithmic value in the candidates is subtracted before the natural exponent is calculated and normalized to avoid numerical underflow caused by the multiplication of long-sequence likelihoods. The sum of the weights of each candidate is kept to be 1.
[0074] Preferably, when obtaining the reference capacity detection result after the supplementary energy observation, each capacity trajectory is propagated to the reference capacity detection time based on the actual operation record during the period, and converted into a capacity value under the reference capacity detection condition; the observation likelihood corresponding to the capacity value and the reference capacity detection result is calculated, and the observation likelihood is multiplied by the trajectory weight and normalized; starting from the network state saved before the earliest correction record common to each candidate replica, each candidate replica is replayed using the same long short-term memory network, the network state corresponding to each candidate replica is saved, and subsequent capacity trajectories are predicted respectively; the corresponding remaining lifetime is determined according to each subsequent capacity trajectory, and the remaining lifetime distribution is constructed according to the updated trajectory weight.
[0075] In the above embodiments, a new lease and deactivation process may occur between the newly added reference capacity detection and the previous power replenishment. The processor reads the actual elapsed time, temperature record and power flux during this period, propagates each candidate trajectory to the new detection time, and then compares it with the measured capacity through the capacity mapping corresponding to the detection conditions. The new measurement is only updated as new evidence when it arrives. Records that have already participated in the weight calculation are not multiplied independently again. If the new detection conditions are the same as the unified reference conditions, the reference capacity is directly compared. If the conditions are different, the conversion process and its error source are retained.
[0076] In a preferred embodiment, each candidate state has the same standard deviation of measurement error for the detection of the new reference capacity. When the normal error is used, the proportionality factor common to each candidate in the observation density is canceled out during the normalization process, and the weight update is performed using the following formula. The new standard deviation of measurement error comes from the calibration residual under the same detection conditions. The difference between candidate states is represented by their respective predicted capacity, and candidates are not excluded by arbitrarily reducing the measurement error.
[0077] Where m represents the candidate trajectory index to be updated. This indicates the candidate index used for normalized summation, and M represents the number of candidate trajectories. and These represent the trajectory weights before and after the new measurement arrival, respectively. The superscript minus and plus signs indicate before and after the update, not the positive or negative value. y represents the newly added reference capacity detection value. This represents the capacity prediction value after the m-th trajectory has been propagated to the detection time and converted to the detection conditions. Representing candidate trajectories Trajectory weights, Indicates the first The trajectory is propagated to the detection time and converted into the capacity prediction value after considering the detection conditions. The standard deviation of the measurement error for the newly added capacity is represented by ampere-hours (AH). exp represents the exponential operation with the natural constant as the base, and the denominator is the sum of the weighted observation contributions of all candidates.
[0078] Please refer to Figure 6 The horizontal axis lists the three stages: before update, evidence inclusion, and after update. The vertical axis represents the weight or unnormalized evidence contribution, all expressed proportionally. The legend only shows candidate A, corresponding to the currently retained single main trajectory. The first point is the original weight; the middle point compares the newly added reference capacity detection value with the capacity of the trajectory propagated to the detection time, then combines the standard deviation of the measurement error to obtain the compatibility and multiplies it by the previous weight; the last point is the weight after normalization based on all candidate contributions. In this record, candidate A's weight before update is 1.000, the unnormalized contribution after evidence inclusion is approximately 0.996456, and the weight after normalization remains 1.000. The middle point is slightly lower than the two ends, indicating a small difference between the newly added detection and the propagation capacity; its standardized deviation absolute value is approximately 0.0843. The middle value cannot be directly used as the final weight, because the final weight also needs to be divided by the sum of all candidate contributions under the same detection. When there is only one candidate, the denominator is the same as the candidate contribution, so the weights before and after are both one. The data presented is a single candidate record, which cannot be used to determine which trajectory is more compatible, nor can the unchanged weights be interpreted as indicating that the newly detected data has no information. If multiple candidates are retained in the future, the intermediate contribution of each curve will be formed by the same newly detected value and their respective values, and then they will all participate in the normalization.
[0079] As an example of weight update, the prediction capacities of the two candidate trajectories at the new detection time are 2.10 amp-hours and 2.16 amp-hours, respectively, with original weights of 0.60 and 0.40. The new detection value is 2.12 amp-hours, and the standard deviation of the measurement error is 0.04 amp-hours. The corresponding exponential terms are approximately 0.8825 and 0.6065, which, after multiplying by the original weights, are approximately 0.5295 and 0.2426, respectively. After normalization, the weights are approximately 0.686 and 0.314. This calculation gives a larger relative weight to the candidate that is more compatible with the new detection, while retaining the other candidate. The weight change does not change the original measurement value.
[0080] In this embodiment, each candidate capacity history is replayed starting from the network state saved before the common correction segment. The processor copies the initial hidden state and the memory state, inputs them into each candidate copy, and saves an independent current network state for each candidate. Even if the candidates have the same capacity at the current moment, their network memories may still be different as long as the previous capacity change paths are different. Therefore, the average of the candidate capacity history is not calculated before performing single network inference. Subsequent capacity extrapolation uses the state generated by each replay. The candidate identifier runs through the capacity trajectory, network state, and lifetime result.
[0081] Specifically, the remaining lifetime distribution consists of each candidate lifetime value and its weight. The processor sorts the lifetime values and accumulates the weights to form the corresponding cumulative distribution. Then, it outputs the lifetime distribution position and upper and lower bounds as needed. For example, if two candidates have remaining lifetimes of 40 days and 70 days respectively under the same subsequent usage conditions, then the two lifetime values will each bear their candidate weights. The 40-day and 70-day values will not be simply averaged as the only result. The prediction error of the network itself can be propagated separately based on the independent test residuals and stored separately from the uncertainty source of the current state candidate.
[0082] In this embodiment, for candidates that have not yet reached their end-of-life capacity within the prediction interval, the constraint that their lifetime is greater than the predicted interval and the corresponding weight are retained, and the candidate is not forcibly placed at the end of the interval when constructing the lifetime distribution; for candidates that have reached their end-of-life capacity, their lifetime is set to zero and the measurement source is retained. When the subsequent usage conditions change, the processor re-executes the extrapolation under the corresponding conditions based on the same current state. The uncertainty of the current state and the difference between the subsequent usage assumptions are recorded separately. The newly added capacity detection is only used to update the state interpretation that can be supported by the current measurement.
[0083] In a preferred embodiment, when all candidate pairs show residuals exceeding the calibration error range for newly added reference capacity detection, the processor records this situation as incompatibility between the observation model and existing candidates, and checks the battery identification, detection conditions, and unit conversion relationships. After confirming the validity of the record, the processor re-expands the initial state value range from the earlier reference detection position and performs joint solution, adds the newly generated compatible trajectory to the candidate set, and calculates the weights using observations that are not reused. The numerical implementation adopts log-likelihood normalization and does not forcibly generate a definite lifetime result with all-zero weights.
[0084] In this embodiment, the memory stores the original observation archive, capacity sequence version, observation model version, and network status archive according to the battery identifier. When the processor receives a new running record, it performs forward estimation. When it receives a late replenishment observation, it performs historical segment location and backtracking solution. When it obtains the reference capacity detection, it performs corresponding state constraints or candidate weight updates. Each processing entry uses the same record identifier system. The electrical estimation result is associated with the network input position through the capacity record. The conversion from data to state to lifetime result during system operation retains the corresponding relationship without changing the mechanical structure of the battery or replenishment equipment.
[0085] In one application embodiment, the target battery experiences continuous load before being returned, stops discharging after being returned, and waits for recharging. The original voltage response is affected by load polarization and temperature changes. The capacity estimate formed by early observations is input into the network and the corresponding state is saved. After recharging begins, the current integral and the state of charge span provide new capacity constraints. The relaxation record after the charging is stopped supplements the transient identification information. The processor solves these records together with the data before the return. If the solution supports the correction of the capacity record near the handover, the affected input is located, continuously replayed to the current record, and a new lifetime prediction version is generated.
[0086] In the above application embodiment, the constructed capacity record is 2.42 amp-hours before the handover, the temporary estimate near the handover is 2.30 amp-hours, and the reference evidence after the power replenishment supports correcting the historical record to 2.39 amp-hours. The processor retains the original estimate of 2.30 amp-hours and its observation source, and writes 2.39 amp-hours into the correction sequence. The actual backtracking result still allows for capacity decay during the handover, and the capacity is not directly restored to 2.42 amp-hours. Instead, the state before the temporary estimate input is replayed, so that the historical input contribution formed by 2.30 amp-hours is no longer directly used. The above capacity value is an example of the construction of the processing logic.
[0087] Furthermore, if subsequent energy replenishment records simultaneously support two capacity histories, one attributing more voltage offsets to polarization and the other attributing some of the offsets to capacity changes, then the charge state and polarization trajectory compatible with them are retained respectively. After the new reference capacity detection arrives, the processor propagates the two trajectories to the detection time according to the actual operation during the period and updates their respective weights. Then, the network memory is reconstructed respectively. The capacity record, transient record, and lifetime prediction always correspond to the candidate identifier. The current capacity cannot be taken from one candidate and the memory state of the other candidate cannot be used.
[0088] In this embodiment, the normalization process uses the initial reference capacity in the battery archive as a benchmark. When correcting historical records, only the corresponding capacity value is changed, and the normalization denominator is not reselected according to the correction result. The time unit of the capacity change rate is also consistent with the training version. If the initial reference capacity in the previous archive is confirmed to need to be revised through independent detection, the revision is treated as a version change affecting all related inputs. The input is reconstructed and replayed from the position where the normalization benchmark was first used, avoiding the use of the old scale for some historical records and the use of the new scale for subsequent records. The scale used for replay and the network version are saved at the same time.
[0089] In this embodiment, the remaining lifetime output is used to characterize the time when the reference capacity reaches the service termination criterion. The fault prediction object is the performance failure caused by capacity degradation. The instantaneous overcurrent, communication interruption or connection anomaly recorded by the battery management device is processed as observation validity information and is not directly converted into capacity lifetime. The original data of the section where such events occur can be retained and the generation of capacity tags can be temporarily suspended. The estimation will continue after the observation is complete. The capacity lifetime prediction result and the instantaneous protection record are saved separately. Subsequent health status updates only refer to the capacity information with corresponding electrical basis.
[0090] In a preferred embodiment, when a long recording gap occurs during the rental period, the processor uses the measured state before and after the gap as the boundary, limits the intermediate state changes based on the available cumulative power and temperature records, and retains multiple compatible propagation results for the unrecorded operation process; when subsequent power replenishment and reference capacity measurement reduce the set of compatible states, the affected historical capacity is corrected, and the unknown process within the gap is not disguised as continuous measurement. During the replay process, the input records corresponding to each candidate history are used, and the source attribute of the capacity segment formed by estimation is saved in the output.
[0091] In this embodiment, the software verification uses historical electrical records with known reference capacity to replay the operation process. Some supplementary energy observations are delayed to check the backtracking trigger position, and capacity records near the handover are replaced with constructed offsets to check the location of the earliest affected input. During verification, it is checked whether the original measurements before and after correction remain unchanged, whether the same observation is counted repeatedly, whether the replay covers unrewritten records in the middle, and whether the candidate history corresponds to an independent network state. The detection results are used to confirm the processing logic, and the calculation differences of the constructed records are not used to replace the actual battery prediction performance test.
[0092] In this embodiment, each lifetime result is saved along with the current capacity sequence version, observation cutoff time, and network version, and is associated with the detection benchmark and extrapolation conditions of the lifetime termination capacity. When there are candidate distributions, the candidate identifier, normalized weight, and corresponding lifetime value are also saved. When historical correction occurs, the version relationship between the old result and the new result is retained. After the processor completes the capacity record update, network state reconstruction, and lifetime calculation, a new result index is uniformly released, and subsequent running records continue to be processed from the state corresponding to this index.
Claims
1. A method for predicting the remaining lifespan of lithium batteries for leasing scenarios, characterized in that, include: Using an observation model calibrated with reference capacity, electrical observations before and after the handover of the same lithium battery rental are converted into a capacity sequence. The network state before the capacity sequence is input into the long short-term memory network is saved and sequence inference is performed. After the handover, the replenishment observation is obtained, and the electrical observation and the replenishment observation are input into the observation model. Under the constraints of energy conservation and voltage response, the capacity state and transient state are jointly estimated, and the capacity sequence is backtracked and corrected. Starting from the saved network state, using the network parameters at the time of saving, the corrected capacity sequence is re-input into the Long Short-Term Memory network according to the observation time sequence, the network state is reconstructed and the subsequent capacity trajectory is predicted, and the remaining lifetime is determined by the difference between the time point when the capacity trajectory reaches the end-of-life capacity and the current time point. The electrical observations are voltage and current records with the acquisition time and temperature, and the energy replenishment observations include voltage records during the charging process and after charging is stopped. The transient state includes the state of charge and polarization voltage. The observation model uses the current integral and the capacity state to constrain the change of the state of charge. The open-circuit voltage is determined based on the state of charge and temperature. The terminal voltage is reconstructed by combining the polarization voltage and the ohmic voltage drop. The capacity state and the transient state are jointly corrected based on the difference between the reconstructed terminal voltage and the measured terminal voltage. Backtracking correction includes: using the reference capacity detection results and their measurement time before handover as front-end observation constraints, and using the energy replenishment observation as back-end observation constraints to determine the backtracking section between the two; Based on the actual elapsed time and the capacity state of the electric flux propagation within the backtracking section, and based on the transient state of the current change propagation, the capacity state and the transient state at each observation time are jointly solved under the front-end observation constraints and the back-end observation constraints. The obtained capacity status is written into the capacity sequence according to the corresponding acquisition time, the correspondence between the acquisition time and the original electrical observation is retained, and the rewritten capacity record and its corresponding supplementary energy observation are recorded.
2. The method for predicting the remaining life of lithium batteries for leasing scenarios according to claim 1, characterized in that, Each capacity record's hidden state and memory state before input are saved separately, and stored in association with the input record number and network version. After backtracking and correction, locate the earliest rewritten capacity record, read the network state saved before its input, and use the long short-term memory network corresponding to the network version to continuously replay the capacity sequence between the earliest rewritten capacity record and the current record.
3. The method for predicting the remaining life of lithium batteries for leasing scenarios according to claim 2, characterized in that, The charging capacity is integrated and normalized using the reference capacity detection results, and the open-circuit voltage at the charging stop is combined to establish the correspondence between the state of charge and the open-circuit voltage at different temperatures. Extract the voltage relaxation records after charging stops at both ends of the charging segment in the energy replenishment observation, subtract the polarization voltage, and determine the state of charge at both ends based on the corresponding relationship; Select a charging segment where the corresponding relationship has a unique state of charge solution at both ends and the states of charge at both ends are different. Divide the current integral corrected for charging efficiency by the difference in states of charge at both ends to obtain the segment capacity observation. The capacity state is constrained by the segment capacity observation. The voltage at the reconstructed end is reconstructed using the voltage record that did not participate in the segment capacity observation calculation during the same energy replenishment process. The transient state is updated based on the difference between the reconstructed end voltage and the measured end voltage.
4. The method for predicting the remaining life of lithium batteries for leasing scenarios according to claim 3, characterized in that, When the front-end observation constraints and the back-end observation constraints correspond to multiple state solutions, the capacity trajectory and transient trajectory corresponding to each state solution are saved respectively. Based on the observation error distribution determined by the calibration record, the observation likelihood of each state solution to the electrical observation and the energy replenishment observation is calculated, and the trajectory weight is obtained by normalization. Each capacity trajectory is written into a candidate copy of the capacity sequence, and the correspondence between the candidate copy and the trajectory weight is preserved.
5. The method for predicting the remaining life of lithium batteries for leasing scenarios according to claim 4, characterized in that, When the backtracking segments corresponding to different supplementary energy observations overlap, the backtracking segments are merged, and the constraints corresponding to each supplementary energy observation are jointly applied to the capacity status at the same acquisition time. Select the network state saved before the earliest capacity record that was overwritten after merging, use the network parameters corresponding to the network version, and input the correction records and unwritten records in the merged segment in sequence, and continue inputting to the current record; The original network state associated with the corresponding input record number is replaced with the network state generated by the replay.
6. The method for predicting the remaining life of lithium batteries for leasing scenarios according to claim 5, characterized in that, When obtaining the reference capacity detection results after the energy replenishment observation, each capacity trajectory is propagated to the reference capacity detection time based on the actual operation records during the period, and converted into a capacity value under the reference capacity detection conditions; The observed likelihood of the capacity value corresponding to the reference capacity detection result is calculated, and the observed likelihood is multiplied by the trajectory weight and normalized. Starting from the network state saved before the earliest correction record shared by all candidate replicas, each candidate replica is replayed using the same long short-term memory network, the network state corresponding to each candidate replica is saved, and the subsequent capacity trajectory is predicted separately. The remaining lifetime is determined based on each subsequent capacity trajectory, and the remaining lifetime distribution is constructed according to the updated trajectory weights.
7. The method for predicting the remaining life of lithium batteries for leasing scenarios according to claim 6, characterized in that, The temporal input of the Long Short-Term Memory Network consists of a capacity value and the capacity change rate of adjacent capacity records, wherein the capacity change rate is the ratio of the difference between adjacent capacity values to the difference between the corresponding acquisition times. After merging the backtracking segments, for the record whose capacity value has been rewritten and the record that follows it, the capacity change rate is recalculated using the corrected adjacent capacity value, while retaining the original acquisition time and power flux correspondence of each record; Starting from the network state saved before the earliest capacity record was rewritten after the merger, the reconstructed time sequence input is continuously input, and the corresponding hidden state and memory state are saved after each input, replacing the association between the original network state and the input record number.
8. A lithium battery remaining life prediction system for leasing scenarios, characterized in that, For implementing the method of any one of claims 1 to 7, the system includes a memory and a processor, wherein when the processor executes the program stored in the memory: using an observation model calibrated with a reference capacity, it converts electrical observations before and after the handover of the same lithium battery rental into a capacity sequence, saves the network state before the capacity sequence is input into the long short-term memory network, and performs sequence inference; After the handover, the replenishment observation is obtained. The electrical observation and the replenishment observation are input into the observation model. Under the constraints of energy conservation and voltage response, the capacity state and transient state are jointly estimated, and the capacity sequence is backtracked and corrected. Starting from the saved network state, using the network parameters at the time of saving, the corrected capacity sequence is re-input into the Long Short-Term Memory network according to the observation time sequence, the network state is reconstructed and the subsequent capacity trajectory is predicted, and the remaining lifetime is determined by the difference between the time point when the capacity trajectory reaches the end-of-life capacity and the current time point.
