An e-bike battery health degree evaluation method and system based on digital twinning
By combining digital twin models with extended Kalman filters, the problems of low accuracy and insufficient fault identification in electric bicycle battery health assessment are solved, enabling dynamic and accurate assessment of battery health status and safety early warning, adapting to complex riding conditions.
Patent Information
- Application Number
- CN202611321562.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-28
- Publication Date
- 2026-11-20
AI Technical Summary
Existing methods for assessing the health of electric bicycle batteries cannot accurately simulate complex riding conditions, ignore thermoelectric coupling characteristics, have low assessment accuracy, and are difficult to identify early minor aging and latent faults in batteries, thus failing to meet the needs for high-precision health monitoring and safety early warning.
A battery health assessment method based on digital twins is adopted. By deploying voltage, current and temperature sensors, a thermal-electrical bidirectional coupled battery digital twin model is established. Combined with extended Kalman filter to correct internal resistance parameters, multi-dimensional fusion of internal resistance and capacity decay indicators is performed to quantify them, thereby realizing dynamic operating condition excitation and latent aging characteristics mining.
It enables dynamic, accurate, and comprehensive assessment of battery health status, improves fault prediction capabilities and battery safety, adapts to complex charging and discharging conditions, and provides data support for model iteration and optimization.
Smart Images

Figure CN123136407A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of digital twins, and in particular to a method and system for assessing the health of electric bicycle batteries based on digital twins. Background Technology
[0002] With the continuous growth in the number of electric bicycles, lithium-ion batteries have become a core power component. Safety incidents such as fires and sudden drops in range caused by battery aging are frequent, making battery health assessment a crucial step in risk control and secondary utilization. Existing onboard BMS hardware has limited computing power and often uses equivalent circuit models to estimate health, which fails to fully reflect the nonlinear aging characteristics caused by complex riding conditions, temperature fluctuations, and poor charging and discharging habits. Offline capacity testing is cumbersome and cannot meet the needs of large-scale online assessment.
[0003] Current mainstream electric bicycle battery health assessment methods mostly rely on traditional, simplified BMS algorithms and static parameter detection. These methods generally suffer from limitations such as single-model approaches and neglect of thermoelectric coupling characteristics, failing to accurately simulate the battery's true dynamic operating state. Most of these methods rely solely on fixed internal resistance and cycle count for rough assessments, lacking dynamic operating condition stimulation and the discovery of latent aging characteristics. They struggle to distinguish between polarization aging and capacity decay, resulting in low assessment accuracy and large errors. Furthermore, their parameter correction capabilities are weak, unable to adjust model parameters in real-time based on temperature and rate changes, making them extremely unsuitable for the complex and varied riding conditions of electric bicycles. Traditional assessments often rely on single-indicator judgments, failing to achieve multi-dimensional aging parameter weighting and fusion. This results in insufficient ability to identify early-stage minor aging and latent faults, leading to one-sided and general health level determinations that are prone to misjudgment and omissions, thus failing to meet the practical needs for high-precision battery health monitoring and safety warnings. Summary of the Invention
[0004] To improve existing methods and systems, this paper presents a digital twin-based method and system for assessing the health of electric bicycle batteries. This method relies on a thermal-electrical bidirectional coupling battery digital twin model and extended Kalman filtering to accurately correct internal resistance parameters. It also combines dynamic operating conditions to uncover hidden aging characteristics and integrates internal resistance and capacity decay indicators from multiple dimensions to quantify battery health.
[0005] To achieve the above objectives, the technical solution adopted by the present invention is as follows:
[0006] A method for assessing the health of electric bicycle batteries based on digital twins, comprising:
[0007] Voltage, current, and temperature sensors are deployed at each individual cell in the battery pack to collect terminal voltage, current, and electrode temperature during the charging and discharging process, and the timing data is transmitted to the edge computing terminal.
[0008] A battery digital twin model is established within an edge computing terminal. The battery digital twin model consists of an equivalent circuit sub-model and a thermal coupling sub-model. The equivalent circuit sub-model outputs the simulated terminal voltage based on the state of charge and temperature, while the thermal coupling sub-model outputs the simulated temperature based on the current and internal resistance. The two sub-models are linked bidirectionally through the temperature correction coefficient of the internal resistance.
[0009] The measured terminal voltage and temperature are compared with the simulated values at each time step. When the deviation exceeds the preset threshold, the extended Kalman filter is used to reverse the ohmic internal resistance and polarization internal resistance in the equivalent circuit sub-model until the root mean square error of the simulation and the actual measurement both fall within the preset range. The internal resistance value after correction and convergence is used as the current internal resistance evaluation value.
[0010] After the model converges, a preset dynamic operating condition excitation current sequence is applied to the model. The sequence includes constant current discharge segments with different rates and pulse discharge segments with different pulse widths. The dynamic response curve of the terminal voltage is recorded. The voltage rise slope of the polarization voltage recovery stage and the voltage drop amplitude at the moment the pulse ends are extracted from the curve. Based on these two features, the pre-built aging feature mapping table is queried to obtain the current available capacity decay rate and DC internal resistance growth rate.
[0011] The obtained internal resistance assessment value, capacity decay rate and internal resistance growth rate are weighted and comprehensively calculated to obtain the battery health percentage value, which is then compared with the preset grading threshold to generate a health level label.
[0012] Preferably, the acquisition of terminal voltage, current, and electrode temperature during the charging and discharging process specifically includes:
[0013] Voltage sensors are installed at the positive and negative terminals of each individual cell, current sensors are Hall effect type and connected to the positive terminal lead of the battery pack, and temperature sensors are attached to the side of the root of each cell terminal.
[0014] The sampling trigger signals of all sensors are generated uniformly by the system clock of the edge computing terminal. At the beginning of each sampling period, the edge computing terminal synchronously sends rising edge trigger pulses to each sensor.
[0015] Upon receiving the trigger pulse, each sensor simultaneously initiates analog-to-digital conversion. After conversion, the data is packaged according to the agreed frame format, with each frame containing the sensor address, timestamp, and conversion value.
[0016] After the data frame is transmitted to the edge computing terminal via the bus, the terminal stores the voltage, current and temperature data into a circular buffer queue according to the timestamp alignment method.
[0017] Preferably, the construction and bidirectional association of the battery digital twin model specifically includes:
[0018] The equivalent circuit sub-model adopts a second-order RC topology, where the first RC network represents electrochemical polarization, and its resistance and capacitance change with the state of charge; the second RC network represents concentration polarization, and its resistance and capacitance change together with the state of charge and temperature.
[0019] The thermally coupled sub-model uses a lumped-parameter thermal balance equation, with the product of the battery internal resistance and the square of the current as the heat generation term, and the product of the natural convection heat transfer coefficient, surface area and temperature difference as the heat dissipation term, to obtain the simulated battery temperature value.
[0020] The thermally coupled sub-model feeds back the calculated temperature to the resistance temperature correction coefficient input of each RC network in the equivalent circuit sub-model in real time, and the equivalent circuit sub-model feeds back the calculated internal resistance to the heat generation power calculation input of the thermally coupled sub-model in real time, forming a two-way closed-loop coupling between temperature and internal resistance.
[0021] Preferably, the inverse correction of the ohmic internal resistance and polarization internal resistance in the equivalent circuit sub-model using extended Kalman filtering specifically includes:
[0022] The ohmic internal resistance, the polarization internal resistance of the first RC network, and the polarization internal resistance of the second RC network are collectively augmented into the state vector of the extended Kalman filter. The state equation and observation equation are established with the measured terminal voltage as the observation.
[0023] The state equations assume that the changes in each internal resistance at adjacent time intervals follow zero-mean Gaussian white noise, and the observation equations predict the terminal voltage based on the current state vector from the equivalent circuit model.
[0024] The filtering process involves time-based and measurement-based update recursion. During the measurement update phase, the Kalman gain is calculated using the residual between the measured and predicted values, and the gain is used to weight and correct the predicted state vector values.
[0025] The process is repeated until the trace of the covariance matrix of the observed residuals is less than the preset convergence threshold for five consecutive sampling periods. The model is then considered to have converged, and the ohmic internal resistance and polarization internal resistance in the converged state vector are used as the current internal resistance evaluation values.
[0026] Preferably, the preset dynamic operating condition excitation current sequence specifically includes:
[0027] The edge computing terminal reads the current state of charge of the battery. If it is lower than the first state of charge threshold, it will charge the battery to the threshold first; otherwise, it will directly start applying the excitation sequence.
[0028] The excitation sequence in chronological order is as follows: first-rate constant current discharge segment, first rest segment, second-rate constant current discharge segment greater than the first rate, second rest segment, pulse sequence segment consisting of multiple current pulses with increasing pulse width and the same amplitude, and recovery rest segment;
[0029] The duration of each discharge and resting phase, as well as the amplitude of the pulse, are read by the edge computing terminal from the pre-stored configuration table based on the battery's rated capacity and current temperature.
[0030] During the recovery and rest period, the edge computing terminal continuously collects the terminal voltage of each cell at a rate higher than the sampling frequency, which is used to extract the subsequent recovery slope.
[0031] Preferably, the voltage rise slope during the polarization voltage recovery phase and the voltage drop amplitude at the moment of pulse termination specifically include:
[0032] Starting from the beginning of the restoring period, until the difference between the terminal voltage and the open circuit voltage is less than the preset voltage difference threshold, the terminal voltage values at each sampling time within this period are used to form a recovery sequence. The sequence is fitted with first-order linear least squares, and the slope of the resulting straight line is the voltage recovery slope.
[0033] For each current pulse in the pulse sequence segment, the voltage value of the last sampling point before the pulse starts and the voltage value of the first sampling point after the pulse ends are taken respectively, and the difference between the two is taken as the single drop amplitude of the pulse.
[0034] The final voltage drop amplitude is obtained by weighting the single drop amplitude of all pulses by the pulse width.
[0035] The recovery slope and the drop amplitude are used as two input features and are input to an aging feature mapping table pre-constructed using historical experimental data. The mapping table outputs the corresponding capacity decay rate and internal resistance growth rate in a two-dimensional interpolation manner.
[0036] Preferably, the weighted comprehensive calculation of the obtained internal resistance assessment value, capacity decay rate, and internal resistance growth rate specifically includes:
[0037] Divide the internal resistance assessment value by the factory nominal internal resistance to obtain the internal resistance ratio. Then subtract the reference internal resistance ratio from the internal resistance ratio to obtain the internal resistance offset. Substitute the offset into the first normalization function to obtain the internal resistance health component.
[0038] The current available capacity decay rate is converted into the capacity retention rate, and the retention rate is substituted into the second normalization function to obtain the capacity health component.
[0039] Divide the current DC internal resistance growth rate by the standard growth rate of the factory nominal internal resistance under the same operating conditions to obtain the growth rate ratio. Substitute this ratio into the third normalization function to obtain the healthy growth component.
[0040] The internal resistance health component, capacity health component, and growth health component are multiplied by the first, second, and third weighting coefficients, respectively, and then summed. The sum of these weighting coefficients is then multiplied by a percentage coefficient to obtain the percentage health value. The sum of the three weighting coefficients is 1, and the capacity health component has the largest weighting coefficient.
[0041] Preferably, the step of comparing with a preset grading threshold to generate a health level identifier specifically includes:
[0042] A first health threshold and a second health threshold are preset, with the first threshold being greater than the second threshold;
[0043] When the health percentage value is greater than or equal to the first threshold, the first level is generated and a green indicator signal is output.
[0044] When the first threshold is greater than the health percentage value and is greater than or equal to the second threshold, a second level is generated and a yellow indicator signal is output.
[0045] When the health percentage value is less than the second threshold, the third level is generated and a red indicator signal is output.
[0046] After each level is generated, the current health percentage and state of charge are stored in the non-volatile memory of the edge computing terminal as historical records, which can be used as a reference for the prior estimate of internal resistance during the next model initialization.
[0047] Furthermore, a digital twin-based electric bicycle battery health assessment system is proposed, including:
[0048] Data acquisition module: Deploys voltage, current, and temperature sensors, performs unified time-series synchronous sampling, and aligns and caches raw data frames;
[0049] Digital twin modeling module: Constructs a second-order RC equivalent circuit and a thermally coupled twin model to achieve bidirectional closed-loop coupling of internal resistance and temperature, and accurately simulates the dynamic changes of battery terminal voltage and temperature;
[0050] Model calibration module: Based on extended Kalman filter, corrects ohmic and polarization internal resistance, and outputs accurate internal resistance evaluation value after iterative convergence;
[0051] Operating condition excitation and feature extraction module: Adaptive output of multi-rate and pulse excitation conditions. Extracts two core aging features: voltage rise slope and voltage drop amplitude;
[0052] Health calculation module: Obtain capacity decay rate and internal resistance growth rate through aging mapping table, and calculate battery health value by weighted fusion of internal resistance, capacity and internal resistance growth indicators;
[0053] Level determination module: Divides health into three levels based on thresholds and outputs corresponding indicator light signals, stores historical data, and provides prior information for model iteration initialization.
[0054] Compared with the prior art, the advantages of the present invention are:
[0055] By employing multi-sensor time-series synchronous sampling to ensure accurate and consistent raw data, and relying on a digital twin model coupled with a second-order RC equivalent circuit and a thermally coupled bidirectional closed-loop system, the dynamic characteristics of battery voltage and temperature are accurately replicated, overcoming the drawbacks of large simulation deviations in traditional single-model simulations. Simultaneously, an extended Kalman filter is introduced to achieve dynamic and accurate correction of internal resistance, significantly improving the accuracy of battery parameter evaluation. Hidden aging characteristics of the battery are uncovered through multi-rate and pulse composite operating condition excitation, and capacity and internal resistance aging parameters are accurately obtained by combining an aging characteristic mapping table. Finally, the health status is calculated through multi-dimensional weighted fusion of indicators, with an emphasis on core performance indicators such as capacity. Coupled with a three-level graded early warning and historical data storage mechanism, this system can adapt to the complex charging and discharging conditions of electric bicycles, achieving dynamic, accurate, and comprehensive evaluation of battery health status. It also provides data support for model iteration and optimization, effectively improving battery fault prediction capabilities and the safety of electric vehicle battery use. Attached Figure Description
[0056] Figure 1 This is a schematic diagram of a digital twin-based method for assessing the health of electric bicycle batteries proposed in this invention.
[0057] Figure 2 This is a schematic diagram illustrating the construction and bidirectional association of the battery digital twin model proposed in this invention;
[0058] Figure 3 This is a schematic diagram of the reverse correction of ohmic internal resistance and polarization internal resistance proposed in this invention. Detailed Implementation
[0059] The following description is intended to disclose the invention and enable those skilled in the art to implement it. The preferred embodiments described below are merely examples, and other obvious variations will occur to those skilled in the art.
[0060] A digital twin-based electric bicycle battery health assessment system includes:
[0061] Data acquisition module: Deploys voltage, current, and temperature sensors, performs unified time-series synchronous sampling, and aligns and caches raw data frames;
[0062] Digital twin modeling module: Constructs a second-order RC equivalent circuit and a thermally coupled twin model to achieve bidirectional closed-loop coupling of internal resistance and temperature, and accurately simulates the dynamic changes of battery terminal voltage and temperature;
[0063] Model calibration module: Based on extended Kalman filter, corrects ohmic and polarization internal resistance, and outputs accurate internal resistance evaluation value after iterative convergence;
[0064] Operating condition excitation and feature extraction module: Adaptive output of multi-rate and pulse excitation conditions. Extracts two core aging features: voltage rise slope and voltage drop amplitude;
[0065] Health calculation module: Obtain capacity decay rate and internal resistance growth rate through aging mapping table, and calculate battery health value by weighted fusion of internal resistance, capacity and internal resistance growth indicators;
[0066] Level determination module: Divides health into three levels based on thresholds and outputs corresponding indicator light signals, stores historical data, and provides prior information for model iteration initialization.
[0067] See Figure 1 As shown, a method for assessing the health of electric bicycle batteries based on digital twins includes:
[0068] Voltage, current, and temperature sensors are deployed at each individual cell in the battery pack to collect terminal voltage, current, and electrode temperature during the charging and discharging process, and the timing data is transmitted to the edge computing terminal.
[0069] A battery digital twin model is established within an edge computing terminal. The battery digital twin model consists of an equivalent circuit sub-model and a thermal coupling sub-model. The equivalent circuit sub-model outputs the simulated terminal voltage based on the state of charge and temperature, while the thermal coupling sub-model outputs the simulated temperature based on the current and internal resistance. The two sub-models are linked bidirectionally through the temperature correction coefficient of the internal resistance.
[0070] The measured terminal voltage and temperature are compared with the simulated values at each time step. When the deviation exceeds the preset threshold, the extended Kalman filter is used to reverse the ohmic internal resistance and polarization internal resistance in the equivalent circuit sub-model until the root mean square error of the simulation and the actual measurement both fall within the preset range. The internal resistance value after correction and convergence is used as the current internal resistance evaluation value.
[0071] After the model converges, a preset dynamic operating condition excitation current sequence is applied to the model. The sequence includes constant current discharge segments with different rates and pulse discharge segments with different pulse widths. The dynamic response curve of the terminal voltage is recorded. The voltage rise slope of the polarization voltage recovery stage and the voltage drop amplitude at the moment the pulse ends are extracted from the curve. Based on these two features, the pre-built aging feature mapping table is queried to obtain the current available capacity decay rate and DC internal resistance growth rate.
[0072] The obtained internal resistance assessment value, capacity decay rate and internal resistance growth rate are weighted and comprehensively calculated to obtain the battery health percentage value, which is then compared with the preset grading threshold to generate a health level label.
[0073] Specifically, the voltage sensor is a differential isolation type, with its positive and negative input terminals connected to the positive and negative terminals of each individual cell via wires to eliminate common-mode voltage interference; the current sensor is an open-loop Hall effect type, with its magnetic ring fitted onto the main positive lead of the battery pack, and its output is an analog voltage signal proportional to the main circuit current; the temperature sensor is a negative temperature coefficient thermistor type, with its sensing surface attached to the side of the root of each cell terminal with thermally conductive silicone grease, and the resistance change is converted into a voltage output through a voltage divider circuit. The analog output terminals of all sensors are connected to the front end of the multi-channel synchronous sampling analog-to-digital converter of the edge computing terminal.
[0074] The edge computing terminal is equipped with a high-precision system clock with a frequency stability better than ±50ppm. At the beginning of each sampling period, the system clock generates a rising edge trigger pulse, which is simultaneously sent to the sample-and-hold control terminals of each sensor via a synchronization signal distribution circuit. This ensures that all sensors sample and hold the analog signal at the same time, thereby eliminating sampling timing deviations between channels. After sample-and-hold, the analog-to-digital converter converts the analog signal to a 12-bit digital signal using a successive approximation method, with a fixed conversion time of 10μs. Each sensor packages the digital signal, its own address identifier, and the current timestamp provided by the system clock into a data frame according to the CAN extended frame format. The frame length is 13 bytes, with the timestamp occupying 4 bytes in microseconds. The edge computing terminal calculates the single-frame transmission delay τ based on the CAN bus baud rate of 500kbps, expressed as:
[0075]
[0076] Where LL is the total number of bits in the data frame, here L = 13 × 8 + 47 = 151 bits, and B is the CAN bus baud rate, calculated to be τ ≈ 302 μs. After receiving the complete data frame, the edge computing terminal extracts the timestamp from the frame. And correct the actual sampling time to:
[0077]
[0078] This correction value compensates for the fixed delay caused by bus transmission, ensuring that data frames from different sensors are aligned to the same time base. After alignment, the terminal stores the voltage, current, and temperature data in chronological order into a pre-allocated circular buffer queue. This queue uses a first-in, first-out (FIFO) structure, and the write pointer W is updated as follows:
[0079]
[0080] Where N is the queue depth, which automatically overwrites the oldest data when the write pointer wraps around, to ensure efficient memory utilization.
[0081] See Figure 2As shown, the equivalent circuit sub-model adopts a second-order RC equivalent circuit topology, and its structure is as follows: Ohmic internal resistance It is connected in series with the first RC network and the second RC network in sequence. The first RC network consists of a polarization resistor. and polarization capacitor Parallel configuration, used to characterize electrochemical polarization effects, wherein and The value of is dynamically obtained through a one-dimensional interpolation table as the battery state of charge changes; the second RC network consists of polarization resistors. and polarization capacitor Parallel configuration, used to characterize concentration polarization effect, wherein and The values of are dynamically retrieved from a two-dimensional interpolation table as they change with SOC and battery temperature T. During model execution, the corresponding RC parameters are read from the interpolation table based on the current SOC and temperature values, and combined with the measured current I as input, the polarization voltages of the two RC networks are calculated recursively. and Therefore, the simulated output voltage value The calculation relationship is given by Kirchhoff's voltage law:
[0082] ;
[0083] in, The mapping function of open-circuit voltage with respect to SOC is obtained by prior calibration through a small current discharge experiment.
[0084] The thermally coupled sub-model employs a lumped-parameter thermal balance equation, treating the battery as a lumped-mass body with a uniform temperature distribution. This model uses the battery's internal resistance... (Pick , , The product of the sum of the currents (I and I) and the square of the current is used as the Joule heat production term. The natural convection heat transfer coefficient h, the battery casing surface area A, and the battery temperature T versus the ambient temperature were used as the basis for the calculation. The product of the differences is used as the heat dissipation term. Then the rate of change of battery temperature satisfies:
[0085]
[0086] Where m is the mass of a single battery cell and c is the specific heat capacity of the battery. In the discrete domain, the edge computing terminal performs a forward Euler recursion on the above equation with a sampling period Δt to obtain the simulated battery temperature at the current moment. .
[0087] The thermally coupled sub-model calculates the simulated temperature value at the current moment. The parameter lookup table for each RC network in the equivalent circuit sub-model is output in real time, and the equivalent circuit sub-model adjusts the parameters based on this temperature value. , , Temperature correction is applied by multiplying the original SOC lookup value by a temperature correction factor α(T), where α(T) is a piecewise linear function based on 25℃, ranging from 0.8 to 1.5. After calculating the simulated terminal voltage values, the equivalent circuit sub-model further adjusts the current voltage... , , Summing gives the total internal resistance of the battery. The data is fed back in real time to the heat generation term input of the thermally coupled sub-model to update the heat generation power calculation for the next time step. This closed-loop coupling is executed sequentially once per sampling period: first, the equivalent circuit parameters are corrected based on the current temperature and the terminal voltage is calculated; then, the heat generation power is calculated based on the updated internal resistance and the temperature for the next time step is recursively calculated; finally, the temperature is fed back to the next period. This interdependence and recursive cycle-by-cycle simulation achieves dynamic co-simulation of electrical and thermal characteristics, ensuring that the output of the digital twin model's terminal voltage and temperature under charging and discharging conditions follows the actual battery's coupled physical behavior.
[0088] See Figure 3 As shown, the edge computing terminal will generate the measured terminal voltage value obtained in step one within each sampling period. Measured values of electrode temperature These are respectively compared with the simulated terminal voltage values currently output by the digital twin model. and temperature simulation values By subtracting the values, we obtain the voltage residual. and temperature residual When the absolute value of ΔV exceeds a preset voltage threshold for three consecutive sampling periods, or the absolute value of ΔT exceeds a preset temperature threshold for three consecutive sampling periods, the model calibration process is triggered. The calibration process only applies to the internal resistance parameters in the equivalent circuit sub-model; the parameters of the thermally coupled sub-model remain unchanged.
[0089] The correction process employs an extended Kalman filter algorithm to adjust the ohmic internal resistance to be corrected. Polarization internal resistance of the first RC network Polarization internal resistance of the second RC network Common augmentation into a three-dimensional state vector The state equation adopts a random walk model, meaning the current state vector equals the previous state vector plus process noise. Its discrete form is:
[0090]
[0091] Where the subscript k represents the sampling time number, The vector is a zero-mean Gaussian white noise, and its covariance matrix Q is a diagonal matrix. The diagonal elements are empirically set based on the maximum change in internal resistance parameters under normal aging rates. The observation equation uses the measured terminal voltage. For the observable, the equivalent circuit model is based on the current state vector and the current input current. State of charge The predicted terminal voltage is expressed as a nonlinear function:
[0092]
[0093] Where h is specifically the terminal voltage output function of the aforementioned second-order RC equivalent circuit, that is, the open-circuit voltage minus the ohmic voltage drop and the voltage across the two polarized capacitors. This function is derived according to... , , The current value is calculated in real time; To observe the noise, it follows a zero-mean Gaussian distribution, and its variance R is obtained from the accuracy calibration of the voltage sensor.
[0094] The extended Kalman filter performs time updates and measurement updates sequentially within each sampling period after triggering. During the time update phase, the state prediction value... Equal to the posterior estimate of the previous time step Covariance predicted value In the measurement update phase, the Jacobian matrix of the observation equation with respect to the state vector is first calculated. That is, in The partial derivative with respect to h is taken; this partial derivative reflects the sensitivity of the terminal voltage to changes in internal resistance. Then, the Kalman gain is calculated using the standard extended Kalman filter formula:
[0095]
[0096] The state prediction is weighted and corrected using this gain to obtain the posterior estimate. Simultaneously update the covariance matrix. After each measurement update, the covariance matrix of the observed residuals is calculated. And seek its traces. .when If the value is less than the preset convergence threshold for five consecutive sampling periods, the model correction is considered converged, and the recursion is stopped. In This serves as the current estimated value of the battery's internal resistance. If convergence is not achieved within the predetermined maximum number of iterations, the current posterior estimate is used as the evaluation value, and a correction failure log is recorded. Subsequent sampling cycles will continue to trigger correction until convergence.
[0097] The edge computing terminal reads the current state of charge. If it is below a first charge threshold, it controls the charger to pre-charge at a constant current of 0.2C to the threshold before entering the excitation phase. If it is not below the threshold, excitation begins directly. The terminal internally stores a configuration table indexed by rated capacity and ambient temperature, containing the current ratio, duration, and pulse parameters for each stage. Based on this, the terminal loads the parameters and applies them sequentially: a first-rate constant current discharge stage, a first rest stage, a second-rate constant current discharge stage, a second rest stage, a pulse sequence segment consisting of multiple current pulses with increasing pulse widths and the same amplitude, and a recovery rest stage. During the recovery rest stage, the sampling frequency is increased to 5 times the frequency of step one, and the terminal voltage is continuously sampled.
[0098] The recovery slope extraction is set at the start time of the recovery static segment. The terminal voltage is V(t), and the open-circuit voltage is ,from From If the value is less than the preset threshold for the first time, take M sampling points within that time period. The first-order linear least squares fitted line is V = a⋅t + b, where the slope a is the rising slope, and the calculation formula is:
[0099]
[0100] Where M is the number of sampling points. For relative time offset, The corresponding terminal voltage is 'a', with units of V / s.
[0101] Drop amplitude extraction: For each pulse j in the pulse sequence segment, extract the voltage at the last point before the pulse starts. and the first voltage point after the end Single drop amplitude According to pulse width The weighted average yields the final drop magnitude:
[0102]
[0103] Where N is the total number of pulses. Let be the width of the j-th pulse.
[0104] The upward slope 'a' and the downward magnitude Input the aging feature mapping table. This table is constructed from historical experimental data, using a two-dimensional grid structure. The horizontal axis represents the recovery slope range, and the vertical axis represents the drop amplitude range, along with the node storage capacity decay rate and internal resistance growth rate. The terminal locates the grid where the current feature is located and outputs the capacity decay rate D using bilinear interpolation.
[0105]
[0106] Where x and y represent the current upward slope and the downward magnitude, respectively. , For grid boundaries, The storage value is for four nodes. The internal resistance growth rate uses the same interpolation method, only the stored value is replaced with the corresponding node data.
[0107] Edge computing terminal obtains internal resistance assessment value Obtain the capacity decay rate D and the internal resistance growth rate G. First, calculate the internal resistance ratio. ,in This is the factory-specified internal resistance. The terminal has a pre-stored reference internal resistance ratio. This value is the statistical average of the internal resistance ratios obtained from testing new batteries under the same temperature and operating conditions. The internal resistance offset is then calculated. .Will Substitute into the first normalization function ,in The preset adjustment coefficient is set to 2-5 to obtain the healthy component of internal resistance. ∈(0,1], The larger The smaller.
[0108] The capacity decay rate D is converted to the capacity retention rate η = 1 − D, where a larger η indicates better capacity retention. η is then substituted into the second normalization function. To obtain a healthy portion of volume The value range is [0,1].
[0109] Divide the internal resistance growth rate G by the standard growth rate of the nominal internal resistance under the same operating conditions. The growth rate was higher than that. Substituting γ into the third normalization function To obtain a healthy increase The larger γ is, the better The smaller.
[0110] The three health components are multiplied by the first weighting coefficient. Second weighting coefficient Third weighting coefficient Then sum them up, and multiply by the percentage factor of 100% to get the battery health percentage value. :
[0111] ;
[0112] The three weighting coefficients satisfy + + =1, and > , > The preferred value range is: ∈[0.5,0.7], ∈[0.15,0.25], ∈[0.15,0.25] to highlight the dominant contribution of capacity retention to battery health.
[0113] The terminal has a preset first health threshold. Second health threshold ,and .when At that time, a first health level indicator is generated, and the green LED indicator on the dashboard is kept constantly lit via the general input / output interface. At this time, a second health level indicator is generated, driving the yellow LED indicator to stay on, and simultaneously sending a maintenance reminder message to the dashboard via Bluetooth communication. At this time, a third health level identifier is generated, driving the red LED indicator to flash, and a replacement reminder message is sent via Bluetooth. After each level identifier is generated, the terminal will display the current... The health value and the corresponding state of charge value at that time are packaged and written into the last record area of the non-volatile memory, which is managed in a circular queue. The next time the edge computing terminal starts and builds a digital twin model, it automatically reads the most recent health value in this historical record, converts its corresponding internal resistance value according to an empirical ratio, and uses it as the initial prior estimate of the extended Kalman filter state vector x0x0 to shorten the model correction convergence time.
[0114] It should be noted that the order of the above embodiments of the present invention is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. Furthermore, the above description focuses on specific embodiments of this specification. Additionally, the processes depicted in the accompanying drawings do not necessarily require a specific or sequential order to achieve the desired results. In some embodiments, multitasking and parallel processing are possible or may be advantageous.
[0115] The various embodiments in this specification are described in a progressive manner. The same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on describing the differences from other embodiments.
[0116] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for assessing the health of electric bicycle batteries based on digital twins, characterized in that, include: Voltage, current, and temperature sensors are deployed at each individual cell in the battery pack to collect terminal voltage, current, and electrode temperature during the charging and discharging process, and the timing data is transmitted to the edge computing terminal. A battery digital twin model is established within an edge computing terminal. The battery digital twin model consists of an equivalent circuit sub-model and a thermal coupling sub-model. The equivalent circuit sub-model outputs the simulated terminal voltage based on the state of charge and temperature, while the thermal coupling sub-model outputs the simulated temperature based on the current and internal resistance. The two sub-models are linked bidirectionally through the temperature correction coefficient of the internal resistance. The measured terminal voltage and temperature are compared with the simulated values at each time step. When the deviation exceeds the preset threshold, the extended Kalman filter is used to reverse the ohmic internal resistance and polarization internal resistance in the equivalent circuit sub-model until the root mean square error of the simulation and the actual measurement both fall within the preset range. The internal resistance value after correction and convergence is used as the current internal resistance evaluation value. After the model converges, a preset dynamic operating condition excitation current sequence is applied to the model. The sequence includes constant current discharge segments with different rates and pulse discharge segments with different pulse widths. The dynamic response curve of the terminal voltage is recorded. The voltage rise slope of the polarization voltage recovery stage and the voltage drop amplitude at the moment the pulse ends are extracted from the curve. Based on these two features, the pre-built aging feature mapping table is queried to obtain the current available capacity decay rate and DC internal resistance growth rate. The obtained internal resistance assessment value, capacity decay rate and internal resistance growth rate are weighted and comprehensively calculated to obtain the battery health percentage value, which is then compared with the preset grading threshold to generate a health level label.
2. The method for assessing the health of electric bicycle batteries based on digital twins according to claim 1, characterized in that, The acquisition of terminal voltage, current, and electrode temperature during the charging and discharging process specifically includes: Voltage sensors are installed at the positive and negative terminals of each individual cell, current sensors are Hall effect type and connected to the positive terminal lead of the battery pack, and temperature sensors are attached to the side of the root of each cell terminal. The sampling trigger signals of all sensors are generated uniformly by the system clock of the edge computing terminal. At the beginning of each sampling period, the edge computing terminal synchronously sends rising edge trigger pulses to each sensor. Upon receiving the trigger pulse, each sensor simultaneously initiates analog-to-digital conversion. After conversion, the data is packaged according to the agreed frame format, with each frame containing the sensor address, timestamp, and conversion value. After the data frame is transmitted to the edge computing terminal via the bus, the terminal stores the voltage, current and temperature data into a circular buffer queue according to the timestamp alignment method.
3. The method for assessing the health of electric bicycle batteries based on digital twins according to claim 1, characterized in that, The construction and bidirectional association of the battery digital twin model specifically include: The equivalent circuit sub-model adopts a second-order RC topology, where the first RC network represents electrochemical polarization, and its resistance and capacitance change with the state of charge; the second RC network represents concentration polarization, and its resistance and capacitance change together with the state of charge and temperature. The thermally coupled sub-model uses a lumped-parameter thermal balance equation, with the product of the battery internal resistance and the square of the current as the heat generation term, and the product of the natural convection heat transfer coefficient, surface area and temperature difference as the heat dissipation term, to obtain the simulated battery temperature value. The thermally coupled sub-model feeds back the calculated temperature to the resistance temperature correction coefficient input of each RC network in the equivalent circuit sub-model in real time, and the equivalent circuit sub-model feeds back the calculated internal resistance to the heat generation power calculation input of the thermally coupled sub-model in real time, forming a two-way closed-loop coupling between temperature and internal resistance.
4. The method for assessing the health of electric bicycle batteries based on digital twins according to claim 1, characterized in that, The reverse correction of the ohmic resistance and polarization resistance in the equivalent circuit sub-model using extended Kalman filtering specifically includes: The ohmic internal resistance, the polarization internal resistance of the first RC network, and the polarization internal resistance of the second RC network are collectively augmented into the state vector of the extended Kalman filter. The state equation and observation equation are established with the measured terminal voltage as the observation. The state equations assume that the changes in each internal resistance at adjacent time intervals follow zero-mean Gaussian white noise, and the observation equations predict the terminal voltage based on the current state vector from the equivalent circuit model. The filtering process involves time-based and measurement-based update recursion. During the measurement update phase, the Kalman gain is calculated using the residual between the measured and predicted values, and the gain is used to weight and correct the predicted state vector values. The process is repeated until the trace of the covariance matrix of the observed residuals is less than the preset convergence threshold for five consecutive sampling periods. The model is then considered to have converged, and the ohmic internal resistance and polarization internal resistance in the converged state vector are used as the current internal resistance evaluation values.
5. The method for assessing the health of electric bicycle batteries based on digital twins according to claim 1, characterized in that, The preset dynamic operating condition excitation current sequence specifically includes: The edge computing terminal reads the current state of charge of the battery. If it is lower than the first state of charge threshold, it will charge the battery to the threshold first; otherwise, it will directly start applying the excitation sequence. The excitation sequence in chronological order is as follows: first-rate constant current discharge segment, first rest segment, second-rate constant current discharge segment greater than the first rate, second rest segment, pulse sequence segment consisting of multiple current pulses with increasing pulse width and the same amplitude, and recovery rest segment; The duration of each discharge and resting phase, as well as the amplitude of the pulse, are read by the edge computing terminal from the pre-stored configuration table based on the battery's rated capacity and current temperature. During the recovery and rest period, the edge computing terminal continuously collects the terminal voltage of each cell at a rate higher than the sampling frequency, which is used to extract the subsequent recovery slope.
6. The method for assessing the health of electric bicycle batteries based on digital twins according to claim 1, characterized in that, The voltage rise slope and voltage drop amplitude at the moment of pulse end during the extracted polarization voltage recovery phase specifically include: Starting from the beginning of the restoring period, until the difference between the terminal voltage and the open circuit voltage is less than the preset voltage difference threshold, the terminal voltage values at each sampling time within this period are used to form a recovery sequence. The sequence is fitted with first-order linear least squares, and the slope of the resulting straight line is the voltage recovery slope. For each current pulse in the pulse sequence segment, the voltage value of the last sampling point before the pulse starts and the voltage value of the first sampling point after the pulse ends are taken respectively, and the difference between the two is taken as the single drop amplitude of the pulse. The final voltage drop amplitude is obtained by weighting the single drop amplitude of all pulses by the pulse width. The recovery slope and the drop amplitude are used as two input features and are input to an aging feature mapping table pre-constructed using historical experimental data. The mapping table outputs the corresponding capacity decay rate and internal resistance growth rate in a two-dimensional interpolation manner.
7. The method for assessing the health of electric bicycle batteries based on digital twins according to claim 1, characterized in that, The weighted comprehensive calculation of the obtained internal resistance assessment value, capacity decay rate, and internal resistance growth rate specifically includes: Divide the internal resistance assessment value by the factory nominal internal resistance to obtain the internal resistance ratio. Then subtract the reference internal resistance ratio from the internal resistance ratio to obtain the internal resistance offset. Substitute the offset into the first normalization function to obtain the internal resistance health component. The current available capacity decay rate is converted into the capacity retention rate, and the retention rate is substituted into the second normalization function to obtain the capacity health component. Divide the current DC internal resistance growth rate by the standard growth rate of the factory nominal internal resistance under the same operating conditions to obtain the growth rate ratio. Substitute this ratio into the third normalization function to obtain the healthy growth component. The internal resistance health component, capacity health component, and growth health component are multiplied by the first, second, and third weighting coefficients, respectively, and then summed. The sum of these weighting coefficients is then multiplied by a percentage coefficient to obtain the percentage health value. The sum of the three weighting coefficients is 1, and the capacity health component has the largest weighting coefficient.
8. The method for assessing the health of electric bicycle batteries based on digital twins according to claim 1, characterized in that, The comparison with the preset grading threshold to generate a health level identifier specifically includes: A first health threshold and a second health threshold are preset, with the first threshold being greater than the second threshold; When the health percentage value is greater than or equal to the first threshold, the first level is generated and a green indicator signal is output. When the first threshold is greater than the health percentage value and is greater than or equal to the second threshold, a second level is generated and a yellow indicator signal is output. When the health percentage value is less than the second threshold, the third level is generated and a red indicator signal is output. After each level is generated, the current health percentage and state of charge are stored in the non-volatile memory of the edge computing terminal as historical records, which can be used as a reference for the prior estimate of internal resistance during the next model initialization.
9. A digital twin-based electric bicycle battery health assessment system, used to implement the digital twin-based electric bicycle battery health assessment method as described in any one of claims 1-8, characterized in that, include: Data acquisition module: Deploys voltage, current, and temperature sensors, performs unified time-series synchronous sampling, and aligns and caches raw data frames; Digital twin modeling module: Constructs a second-order RC equivalent circuit and a thermally coupled twin model to achieve bidirectional closed-loop coupling of internal resistance and temperature, and accurately simulates the dynamic changes of battery terminal voltage and temperature; Model calibration module: Based on extended Kalman filter, corrects ohmic and polarization internal resistance, and outputs accurate internal resistance evaluation value after iterative convergence; Operating condition excitation and feature extraction module: Adaptively outputs multiple rate and pulse excitation conditions, extracts two core aging features: voltage recovery slope and voltage drop amplitude; Health calculation module: Obtain capacity decay rate and internal resistance growth rate through aging mapping table, and calculate battery health value by weighted fusion of internal resistance, capacity and internal resistance growth indicators; Level determination module: Divides health into three levels based on thresholds and outputs corresponding indicator light signals, stores historical data, and provides prior information for model iteration initialization.
