Battery monomer self-discharge detection method and system, electronic equipment and readable medium
Through the battery cell self-discharge detection method based on regression algorithm and machine learning algorithm, the problem of false alarms and low accuracy in electric vehicle power battery self-discharge detection is solved, fast and accurate self-discharge detection and early warning are achieved, and the battery is ensured. System security and stability.
Patent Information
- Application Number
- CN202411043744.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-01
AI Technical Summary
The existing technology has false alarm problems and low early warning accuracy in self-discharge detection of electric vehicle power batteries, making it difficult to detect abnormal battery behavior in a timely manner, which may lead to safety accidents.
The battery cell self-discharge detection method based on regression algorithm and machine learning algorithm is used to obtain the voltage data of the battery cell, calculate the voltage characteristic value, fit the voltage change trend, and combine with the self-discharge probability prediction model to determine the battery cell's The self-discharge performance is abnormal, and the response to voltage change trend and self-discharge probability are within the preset range.
It can quickly and accurately detect the self-discharge of battery cells, improving the accuracy and reliability of detection. There is no need to add hardware equipment or rely on electrochemical models. It can monitor and warn in real time to ensure the safety and stability of the battery system.
Smart Images

Figure CN118731694A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of safety early warning of electric vehicle power batteries, and in particular to a battery monomer self-discharge detection method, system, electronic equipment and readable medium. Background Art
[0002] With the global pursuit of environmentally friendly and low-carbon travel, electric vehicles have gradually become an important part of urban transportation. As the "heart" of electric vehicles, the performance and safety of power batteries are directly related to the overall performance of electric vehicles and the user's driving experience. In the use of power batteries, self-discharge is an inevitable link.
[0003] Self-discharge refers to the phenomenon that the battery's power gradually decreases due to internal chemical reactions during storage, even if there is no external power supply or load connection. However, a high self-discharge rate will not only affect the battery's range and service life, but may also cause battery safety issues such as overheating, swelling, and even explosion. It is of great significance to accurately and efficiently warn and manage the self-discharge phenomenon of power batteries, promptly detect abnormal behavior of battery self-discharge, and issue early warning signals to remind users or maintenance personnel to take corresponding measures to prevent safety accidents.
[0004] Patent publication number CN116413618A provides a self-discharge detection method for lithium iron phosphate batteries, an electronic device, and a readable storage medium. First, the acquired voltage data is sorted to determine whether each battery data in the sliding window meets the preset conditions, and the data that meets the conditions is selected to calculate the sum of the voltage difference between the highest voltage and the lowest voltage corresponding to each battery data in the sliding window. If the set voltage difference threshold is exceeded, the self-discharge is determined to be abnormal. This solution is prone to false alarms due to voltage noise problems, affecting the detection results.
[0005] Patent publication number CN117825967A provides a power battery safety warning method based on voltage anomaly, which establishes a single cell voltage prediction model and an abnormal cell identification model by organically combining the GBDT algorithm, the isolation forest algorithm and the box plot method. Model-based safety warnings rely heavily on the high accuracy of the model, otherwise the accuracy of the battery warning is not high and it is difficult to set the threshold; during the operation of the algorithm, due to the influence of battery aging, accidents, etc., the model is not dynamically trained, which will also reduce the algorithm prediction accuracy; for vehicles with real self-discharge, if the self-discharge is not handled in time, the self-discharge situation will further deteriorate, which may cause battery safety problems, such as overheating, expansion and even explosion. Summary of the invention
[0006] The object of the present invention is to provide a battery cell self-discharge detection method, system, electronic device and readable medium, which can quickly and accurately detect the self-discharge of the battery cell.
[0007] In order to achieve the above object, the technical solution adopted by the present invention is as follows:
[0008] In a first aspect, the present invention provides a method for detecting self-discharge of a battery cell, the method comprising:
[0009] Obtaining voltage data of battery cells within a continuous time period;
[0010] Calculate and obtain the voltage characteristic value of the battery cell within the set time window;
[0011] The voltage characteristic value is used as input, and the time variation trend of the voltage characteristic value of the battery cell within the set time window is calculated based on the regression algorithm;
[0012] The voltage feature values are aggregated and reduced in dimension, and then input into the self-discharge probability prediction model based on the machine learning algorithm to obtain the self-discharge probability of the battery cell;
[0013] In response to the voltage variation trend of the battery cell being within a first preset range and the self-discharge probability being within a second preset range, it is determined that the self-discharge performance of the battery cell is abnormal.
[0014] Further, the voltage characteristic value includes at least one of a mean voltage, a median voltage, a battery cell voltage difference, a battery cell voltage difference change rate, a battery cell voltage difference to mean voltage ratio, a battery cell voltage difference to median voltage ratio, and a battery cell voltage difference to mean voltage ratio change rate of the battery cell within a set time window;
[0015] The preset time period is discretized to obtain m discrete time points, and the number of battery cells in the battery pack is recorded as i;
[0016] The mean voltage V 均 is the average voltage of all battery cells in the battery pack at the nth discrete time point, V nj is the voltage of the jth battery cell at the nth discrete time point, 1≤n≤m, 1≤j≤i;
[0017] The median voltage V 中 is the number in the middle of the voltages of all battery cells in the battery pack corresponding to the nth discrete time point;
[0018] The voltage difference ΔV of the jth battery cell at the nth discrete time point nj =V nj —V 中 ;
[0019]
[0020] V pj is the voltage of the jth battery cell at the pth discrete time point, V nj is the voltage of the jth battery cell at the nth discrete time point;
[0021] r pj is the ratio of the voltage difference of the jth battery cell at the pth discrete time point to the mean voltage, r nj is the ratio of the voltage difference of the jth battery cell at the nth discrete time point to the mean voltage.
[0022] Furthermore, the temporal variation trend of the voltage characteristic value is the slope and correlation coefficient of the fitting curve, and the fitting curve is a temporal variation curve of the voltage characteristic value of the battery cell within a set time window obtained by fitting based on a regression algorithm.
[0023] Furthermore, after acquiring the voltage data of the battery cells in the continuous time period, the method further includes:
[0024] The voltage data is cleaned, and the data cleaning process includes missing value processing, data obvious error value deletion processing, default value removal processing and abnormal value replacement processing.
[0025] Furthermore, after determining that the self-discharge performance of the battery cell is abnormal, the method further includes: dividing the self-discharge warning level according to the self-discharge probability of the battery cell according to a preset rule, and executing a response action based on the obtained self-discharge warning level.
[0026] Furthermore, in response to the self-discharge warning level being within the third preset range, the battery cells are disassembled to confirm the actual self-discharge risk level, and the corresponding voltage characteristic values and the labels assigned according to the actual self-discharge risk level are used as training sets for a self-discharge probability prediction model based on a machine algorithm to retrain the self-discharge probability prediction model.
[0027] Furthermore, the regression algorithm is a linear regression algorithm, a ridge regression algorithm or a Lasso regression algorithm.
[0028] And / or, the machine algorithm is a random forest algorithm, a naive Bayes algorithm, a decision tree algorithm, a K nearest neighbor algorithm, a support vector machine algorithm, a gradient boosting tree algorithm or an XGboost algorithm.
[0029] In a second aspect, the present invention provides a battery cell self-discharge detection system, comprising:
[0030] An acquisition module, used to receive voltage data of battery cells within a continuous time period reported by the vehicle;
[0031] A voltage characteristic value calculation module is used to calculate the voltage characteristic value of the battery cell within a set time window;
[0032] A regression algorithm module is used to take the voltage characteristic value as input and calculate the time variation trend of the voltage characteristic value of the battery cell within a set time window based on the regression algorithm;
[0033] The prediction module is used to aggregate and reduce the voltage feature values, and then input them into the self-discharge probability prediction model based on the machine learning algorithm to obtain the self-discharge probability of the battery cell;
[0034] The evaluation module determines that the self-discharge performance of the battery cell is abnormal in response to the voltage variation trend of the battery cell being within a first preset range and the self-discharge probability being within a second preset range.
[0035] In a third aspect, the present invention provides an electronic device, comprising: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the battery cell self-discharge detection method as described above.
[0036] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the battery cell self-discharge detection method as described above.
[0037] Beneficial effects of the present invention: The present invention obtains the voltage change trend of the battery cell within a set time window based on a regression algorithm and the self-discharge probability prediction model based on a machine learning algorithm to obtain the self-discharge probability of the battery cell, comprehensively determines whether the self-discharge performance of the battery cell is abnormal, and determines that the self-discharge performance of the battery cell is abnormal in response to the voltage change trend of the battery cell being within a first preset range and the self-discharge probability being within a second preset range. The battery cell self-discharge detection method according to the embodiment of the present disclosure can be deployed in a battery management system on the vehicle side or in the cloud to perform self-discharge anomaly detection, without the need to add additional hardware equipment, and without the need to rely on prior knowledge such as electrochemical models and SOC-OCV correspondence tables, nor does it need to perform electrochemical parameter calibration, but is based on the analysis of the voltage data of the battery cell within the preset time period obtained, and can quickly and accurately detect the self-discharge of the battery cell. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention.
[0039] Figure 1A flow chart of a battery cell self-discharge detection method provided by an embodiment of the present invention is shown.
[0040] Figure 2 The figure shows a schematic diagram of the structure of a battery cell self-discharge detection system provided by an embodiment of the present invention.
[0041] Figure 3 A hardware entity schematic diagram of an electronic device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0042] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.
[0043] In one embodiment, see Figure 1 As shown, the present invention provides a method for detecting self-discharge of a battery cell, the method comprising:
[0044] Obtaining voltage data of battery cells within a continuous time period;
[0045] The voltage characteristic value of the battery cell within the set time window is calculated, that is, the voltage fluctuation is quantified by the voltage characteristic value.
[0046] The voltage characteristic value is used as input, and the time trend of the voltage characteristic value of the battery cell in the set time window is calculated based on the regression algorithm; the voltage data is fitted using the regression algorithm to predict the change trend of the voltage characteristic value of the battery cell in the future.
[0047] The voltage characteristic values are aggregated and reduced in dimension, and then input into the self-discharge probability prediction model based on the machine learning algorithm to obtain the self-discharge probability of the battery cell. The self-discharge probability prediction model based on the machine learning algorithm can learn the complex relationship between the voltage characteristic value and the self-discharge probability by training a large amount of historical data. The voltage characteristic value in the current time window is input into the self-discharge probability prediction model to obtain the predicted probability of the current self-discharge of the battery cell.
[0048] In response to the voltage change trend of the battery cell being within the first preset range and the self-discharge probability being within the second preset range, it is determined that the self-discharge performance of the battery cell is abnormal. According to actual needs and experience, a reasonable voltage change trend range (first preset range) and self-discharge probability threshold (second preset range) are set. When the voltage change trend and the self-discharge probability meet these conditions at the same time, it is determined that the battery cell has abnormal self-discharge performance. This dual judgment mechanism improves the accuracy and reliability of detection.
[0049] The present invention obtains the voltage change trend of the battery cell within a set time window based on a regression algorithm and the self-discharge probability prediction model based on a machine learning algorithm to obtain the self-discharge probability of the battery cell, comprehensively determines whether the self-discharge performance of the battery cell is abnormal, and determines that the self-discharge performance of the battery cell is abnormal in response to the voltage change trend of the battery cell being within a first preset range and the self-discharge probability being within a second preset range. The battery cell self-discharge detection method according to the embodiment of the present disclosure can be deployed in a battery management system on the vehicle side or in the cloud to perform self-discharge anomaly detection, without the need to add additional hardware equipment, and without the need to rely on prior knowledge such as electrochemical models and SOC-OCV correspondence tables, nor does it need to perform electrochemical parameter calibration, but is based on the analysis of the voltage data of the battery cell within the preset time period obtained, and can quickly and accurately detect the self-discharge of the battery cell.
[0050] In a preferred embodiment, the voltage characteristic value includes at least one of the mean voltage, median voltage, battery cell voltage difference, battery cell voltage difference change rate, battery cell voltage difference to mean voltage ratio, battery cell voltage difference to median voltage ratio, and battery cell voltage difference to mean voltage ratio change rate of the battery cell. By comprehensively considering these characteristic values, it is possible to more accurately identify whether the battery cell has abnormal self-discharge performance, and then take corresponding maintenance or replacement measures to ensure the overall performance and safety of the battery system.
[0051] The preset time period is discretized to obtain m discrete time points, and the number of battery cells in the battery pack is recorded as i.
[0052] The mean voltage reflects the average performance level of the battery within a set time window. 均 is the average voltage of all battery cells in the battery pack at the i-th discrete time point, V nj is the voltage of the jth battery cell at the nth discrete time point, 1≤n≤m, 1≤j≤i.
[0053] The median voltage is the voltage value in the middle after all the battery cell voltage values in the battery pack at a discrete time point in the set time window are sorted from small to large. The median voltage is useful for evaluating the symmetry of voltage distribution, especially when there are extreme values. The median voltage V 中 It is the number in the middle position among the voltages of all battery cells in the battery pack corresponding to the nth discrete time point.
[0054] The voltage difference of battery cells is an important indicator for evaluating the stability and consistency of battery cells. The voltage difference ΔV of the jth battery cell at the nth discrete time point is nj =V nj —V 中 .
[0055] The ratio of the battery cell voltage difference to the mean voltage eliminates the influence of the mean voltage itself on the voltage difference assessment and more directly reflects the relative size of the voltage fluctuation.
[0056] The ratio of the battery cell voltage difference to the median voltage is similar to the ratio of the battery cell voltage difference to the mean voltage, but uses the median voltage as the denominator, further taking into account the symmetry of the voltage distribution, which may provide a more accurate assessment in some cases.
[0057] The rate of change of the battery cell voltage difference reflects the changing trend of the voltage fluctuation range over time, which helps to identify whether the voltage fluctuation is intensifying or easing. V pj is the voltage of the jth battery cell at the pth discrete time point, V nj is the voltage of the jth battery cell at the nth discrete time point.
[0058] The rate of change of the ratio of the battery cell voltage difference to the mean voltage combines the relative size and change trend of the voltage fluctuation, providing more information for identifying potential voltage anomalies. r pj is the ratio of the voltage difference of the jth battery cell at the pth discrete time point to the mean voltage, r nj is the ratio of the voltage difference of the jth battery cell at the nth discrete time point to the mean voltage.
[0059] In a preferred embodiment, the temporal variation trend of the voltage characteristic value of the battery cell is the slope and correlation coefficient of the fitting curve, and the fitting curve is a temporal variation curve of the voltage characteristic value of the battery cell within a set time window obtained by fitting based on a regression algorithm.
[0060] The fitting curve is a curve obtained by fitting the voltage characteristic values of the battery cells within the set time window based on the regression algorithm. This curve attempts to best describe the change pattern of the voltage characteristic value over time by minimizing the error (such as the residual sum of squares). The fitting curve can smooth out the random noise in the original data and highlight the overall trend of the change of the voltage characteristic value. This is crucial for subsequent trend analysis and anomaly detection.
[0061] The slope of the fitting curve indicates the rate at which the voltage characteristic value changes over time. In a two-dimensional coordinate system, the slope is the tangent slope of the curve, which reflects the speed and direction of the change of the voltage characteristic value. The size and positive and negative of the slope can directly reflect the change trend of the voltage characteristic value of the battery cell. For example, a positive slope indicates that the voltage characteristic value is rising, and a negative slope indicates that the voltage characteristic value is falling. The size of the slope reflects the severity of the change in the voltage characteristic value.
[0062] The correlation coefficient is a statistic that measures the strength and direction of the linear relationship between two variables (here, time and voltage characteristic values). The Pearson correlation coefficient is commonly used, and its value ranges from -1 to 1. When the correlation coefficient is close to 1 or -1, it indicates that there is a strong linear relationship between the two variables; when it is close to 0, it indicates that the linear relationship is weak. In the trend analysis of the voltage characteristic value of a battery cell, a high correlation coefficient value means that the change of the voltage characteristic value over time is highly consistent, that is, the trend is obvious; a low correlation coefficient value may indicate that the change of the voltage characteristic value is affected by a variety of complex factors, the trend is not obvious or there is noise.
[0063] Using the slope and correlation coefficient of the fitting curve as quantitative indicators of the voltage characteristic value change trend can more comprehensively evaluate the changes in the voltage characteristic values of the battery cells.
[0064] In a preferred embodiment, after obtaining the voltage data of the battery cells in a continuous time period, the method further includes: performing data cleaning processing on the voltage data, wherein the data cleaning processing includes missing value processing, data obvious error value deletion processing, default value removal processing and abnormal value replacement processing.
[0065] Missing value processing: In the actual data collection process, voltage data may be missing due to various reasons (such as sensor failure, communication interruption, etc.). Missing value processing is the process of filling or deleting these missing data. Common processing methods include: 1) Deleting records with missing values: If the missing values are small and have little impact on the overall data, the records with missing values can be directly deleted. 2) Interpolation filling: Use data from previous and subsequent time points or statistical values within the entire time window (such as mean, median, linear interpolation, etc.) to fill in missing values. 3) Model prediction: If the amount of data is sufficient and the missing value pattern is regular, a machine learning model can be used to predict and fill in missing values.
[0066] Deletion of obviously erroneous data values: During data collection and transmission, data values that are obviously beyond the normal range or do not conform to physical laws (such as negative voltage, abnormally high voltage values, etc.) may be generated. These data values need to be identified and deleted to avoid interference with subsequent analysis.
[0067] Remove default value processing: In some cases, the data acquisition system may assign a default value (such as 0, NaN, etc.) to the data that is not received. These default values do not represent the true voltage value, so they need to be identified and the median voltage is used instead of the default value.
[0068] Outlier replacement processing: Outliers are data points that deviate significantly from most observations. Although they may be real observations, they may be caused by special reasons (such as transient faults, extreme conditions, etc.). In battery cell voltage data, outliers may distort the overall distribution and trend of the data. Therefore, outliers need to be identified and processed. Common processing methods include: 1) Deleting outliers: If the number of outliers is small and does not affect the overall analysis, they can be deleted directly. 2) Replace with statistical values: Replace outliers with statistical values such as the mean, median or mode within the entire time window. 3) Use robust statistical methods: In the process of data analysis and modeling, use robust statistical methods that are insensitive to outliers.
[0069] Through the above data cleaning and processing steps, the quality of battery cell voltage data can be significantly improved, providing a reliable data basis for subsequent eigenvalue calculation, trend analysis and machine learning model prediction.
[0070] In a preferred embodiment, after determining that the self-discharge performance of the battery cell is abnormal, the method further includes: dividing the self-discharge warning level according to the self-discharge probability of the battery cell according to a preset rule, and performing a response action based on the obtained self-discharge warning level.
[0071] First, different warning level standards need to be set according to the self-discharge probability of battery cells. These standards can be formulated based on factors such as the specific type of battery, usage scenario, and safety requirements. For example, the self-discharge probability can be divided into three levels: low, medium, and high, or more finely divided into five levels (such as very low, low, medium, high, and very high).
[0072] Calculate the self-discharge probability: Calculate the self-discharge probability of each battery cell through machine learning models or other statistical methods. This probability value reflects the possibility of a self-discharge event occurring in a battery cell within a given period of time.
[0073] Classification of warning levels: Compare the calculated self-discharge probability with the preset warning level standard to determine the corresponding warning level for each battery cell. This process is automated and can be implemented through programming to quickly and accurately complete the warning level classification of a large number of battery cells.
[0074] Formulate response strategies: formulate corresponding response strategies for different self-discharge warning levels. These strategies may include but are not limited to:
[0075] Low Alert Level: Routine monitoring and maintenance may be required, with no special measures required.
[0076] Medium warning level: Increase monitoring frequency, regularly check the status of battery cells, and prepare necessary maintenance parts.
[0077] High warning level: Take immediate action, such as replacing battery cells, adjusting battery pack configuration, limiting battery use, etc., to prevent potential safety risks.
[0078] Execute response actions: According to the self-discharge warning level obtained by classification, automatically or manually execute corresponding response actions. These actions may involve configuration changes of the battery management system, scheduling of maintenance personnel, formulation of battery replacement plans, etc.
[0079] Feedback and adjustment: After executing the response action, feedback information needs to be collected to evaluate the effectiveness of the warning and response. Based on the evaluation results, necessary adjustments and optimizations are made to the warning level standards and response strategies to improve the accuracy of the warning and the effectiveness of the response.
[0080] Through the above steps, real-time monitoring, early warning and response of the self-discharge performance of battery cells can be achieved to ensure the safe and stable operation of the battery system. At the same time, this early warning and response mechanism based on self-discharge probability also provides a more scientific and efficient method for battery maintenance and management.
[0081] In a preferred embodiment, in response to the self-discharge warning level being within the third preset range, the battery cells are disassembled to confirm the actual self-discharge risk level, and the corresponding voltage characteristic values and the labels assigned according to the actual self-discharge risk level are used as training sets for a self-discharge probability prediction model based on a machine algorithm to retrain the self-discharge probability prediction model.
[0082] The actual self-discharge risk level data obtained by disassembling the battery cells is matched and integrated with the previous prediction data (i.e. the self-discharge probability prediction value based on the machine algorithm). This newly constructed training set not only contains the original prediction data, but also adds real data that has been verified in practice, thereby improving the diversity and accuracy of the training set.
[0083] The self-discharge probability prediction model is retrained using the newly constructed training set. During the training process, the model adjusts its internal parameters and structure based on the actual data to better fit the patterns and features in the data. Through multiple iterations and optimizations, the model will be able to more accurately predict the self-discharge probability of battery cells.
[0084] After retraining, use an independent test set to verify and evaluate the model. By comparing the model's predicted results with the actual results, the effect and performance of the model improvement are evaluated. If the model performance meets expectations, it can be deployed in actual applications; if there are still deficiencies, continue to iterate and optimize.
[0085] Through the above process, a closed-loop improvement mechanism is formed. In this mechanism, the self-discharge probability prediction model can continuously learn and optimize from actual data to improve its own prediction accuracy and reliability. When a new battery cell has a self-discharge warning, the self-discharge probability prediction model can more accurately determine its self-discharge probability and take corresponding treatment measures. At the same time, through continuous disassembly verification and model training, the self-discharge probability prediction model can also continuously adapt to new battery types and working environments, maintaining the advancement and effectiveness of its prediction capabilities.
[0086] In a preferred embodiment, the regression algorithm is a linear regression algorithm, a ridge regression algorithm or a Lasso regression algorithm. The machine algorithm is a random forest algorithm, a naive Bayes algorithm, a decision tree algorithm, a K nearest neighbor algorithm, a support vector machine algorithm, a gradient boosting tree algorithm or an XGboost algorithm.
[0087] Linear regression algorithm: simple and easy to implement, but may not accurately describe complex nonlinear relationships.
[0088] Ridge Regression: Based on linear regression, it introduces a regularization term (L2 norm) to avoid overfitting. It is particularly suitable for situations where the number of features is greater than the number of samples, or when there is multicollinearity between features.
[0089] Lasso regression algorithm (Least Absolute Shrinkage and Selection Operator): Similar to ridge regression, but uses L1 norm as regularization term. In addition to avoiding overfitting, Lasso can also achieve automatic feature selection, that is, it can compress some unimportant feature coefficients to 0.
[0090] Random Forest Algorithm: An ensemble learning method based on decision trees that improves prediction accuracy and stability by building multiple decision trees and outputting their average or majority voting results. It can handle high-dimensional data, is not prone to overfitting, and can provide feature importance assessment.
[0091] Naive Bayes algorithm: A classification method based on Bayes' theorem and the assumption of conditional independence of features. It is suitable for situations where features are relatively independent and has a fast calculation speed, but may not work well when there is a strong correlation between features.
[0092] Decision Tree Algorithm: By recursively selecting the optimal features for segmentation, a tree-structured classification or regression model is constructed. It is easy to understand and explain, but it may be prone to overfitting and requires pruning.
[0093] K-Nearest Neighbors (KNN): An instance-based learning method that performs classification or regression by measuring the distance between different data points. It is simple and intuitive, but computationally intensive and sensitive to data distribution and outliers.
[0094] Support Vector Machine (SVM): It searches for an optimal hyperplane in the feature space to separate samples of different categories. It is suitable for small sample learning in high-dimensional space and has good generalization ability, but it has high computational complexity and is sensitive to the selection of parameters and kernel functions.
[0095] Gradient Boosting Decision Tree (GBDT): It iteratively builds multiple weak learners (usually decision trees) and trains the current learner using the residual of the previous learner as the learning target. It has high prediction accuracy and can handle nonlinear relationships and complex interactions, but it has high computational complexity and requires a long training time.
[0096] XGboost algorithm: is an efficient implementation of GBDT, which improves computational efficiency and prediction accuracy by optimizing algorithms and system design. It supports multiple types of loss functions and regularization terms, can automatically handle missing values, and provides support for distributed computing.
[0097] In practical applications, the appropriate algorithm can be selected according to the specific situation of the data and the prediction requirements. At the same time, we can also try to combine the advantages of multiple algorithms and improve the performance of the self-discharge probability prediction model through methods such as ensemble learning.
[0098] In one embodiment, see Figure 2As shown, the present invention provides a battery cell self-discharge detection system, and the battery cell self-discharge detection system 100 includes an acquisition module 101, a voltage characteristic value calculation module 102, a regression algorithm module 103, a prediction module 104 and an evaluation module. The acquisition module 101 is used to receive the voltage data of the battery cell in a continuous time period reported by the vehicle. The voltage characteristic value calculation module 102 is used to calculate the voltage characteristic value of the battery cell in a set time window. The regression algorithm module 103 is used to use the voltage characteristic value as input, and calculate the time change trend of the voltage characteristic value of the battery cell in the set time window based on the regression algorithm. The prediction module 104 is used to aggregate and reduce the voltage characteristic value, and then input it into the self-discharge probability prediction model based on the machine learning algorithm to obtain the self-discharge probability of the battery cell. The evaluation module 105 can determine that the self-discharge performance of the battery cell is abnormal in response to the voltage change trend of the battery cell being within a first preset range and the self-discharge probability being within a second preset range.
[0099] In a preferred embodiment, see Figure 3 As shown, the battery cell self-discharge detection system is deployed in a cloud-based battery management system. It does not require the addition of additional hardware equipment, nor does it require the use of prior knowledge such as electrochemical models and SOC-OCV correspondence tables. It also does not require electrochemical parameter calibration. Instead, it is based on analyzing the voltage data of the battery cells within a preset time period, and can quickly and accurately detect the self-discharge of the battery cells.
[0100] In one embodiment, the present invention provides an electronic device, comprising: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the battery cell self-discharge detection method as described above.
[0101] In one embodiment, the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the above-mentioned battery cell self-discharge detection method is implemented.
[0102] The following is an explanation with reference to specific examples.
[0103] A method for detecting self-discharge of a battery cell, the method comprising the following steps:
[0104] S1, the acquisition module of the battery cell self-discharge detection system deployed in the cloud collects and acquires the voltage data of the battery cells on the vehicle side in real time within a continuous time period. The voltage data of the battery cells collected by the vehicle side is uploaded to the cloud big data system for storage through the controller, so as to realize the cumulative storage and dynamic update of the data of the whole life cycle.
[0105] After acquiring the voltage data of the battery cells in a continuous time period, the method further includes: performing data cleaning processing on the voltage data, wherein the data cleaning processing includes missing value processing, data obvious error value deletion processing, default value removal processing and abnormal value replacement processing.
[0106] S2, in the cloud-based battery cell self-discharge detection system, determines whether the battery cell has self-discharge based on historical accumulated data through a regression algorithm and a self-discharge probability prediction model of multi-classification machine learning.
[0107] S21, voltage data is processed by time to obtain sliding window: three months are selected as a sliding window according to time, and the time and voltage data form an a1×b1 matrix, where a1 is the sliding window length, representing the time length, and b1 is the sliding window width, representing the number of time columns + the number of battery cells. The preset time period is discretized to obtain m discrete time points, and the number of battery cells in the battery pack is recorded as n. The matrix composed of time and voltage data is shown in Table 1.
[0108] Table 1 Matrix composed of time and voltage data
[0109] 1 2 …… m 1 <![CDATA[V 11 ]]> <![CDATA[V 21 ]]> …… <![CDATA[V m1 ]]> 2 <![CDATA[V 12 ]]> <![CDATA[V 22 ]]> …… <![CDATA[V m2 ]]> …… …… …… …… …… n <![CDATA[V 1n ]]> <![CDATA[V 2n ]]> …… <![CDATA[V mn ]]>
[0110] S22, calculating and obtaining voltage characteristic values of the battery cells within a set time window, and using the calculated voltage characteristic values as inputs to a regression algorithm and a self-discharge probability prediction model based on a machine learning algorithm.
[0111] In this example, the voltage characteristic values include a mean voltage, a median voltage, a battery cell voltage difference, and a ratio of the battery cell voltage difference to the mean voltage.
[0112] Set a time period sliding window to correspond to an id sequence value, generate a time series data with a specific id, and thus calculate the sliding window composed of the voltage characteristic values of the battery cells at different times. See Table 2, at this time, the sliding window is an a2×b2 matrix, a2 is the sliding window length, representing the time length, a1=a2, b2 is the sliding window width, representing the number of voltage characteristic values.
[0113] Table 2 Sliding window matrix of voltage eigenvalues of the jth battery cell
[0114]
[0115] The voltage eigenvalues are aggregated and dimensionally reduced, as shown in Table 3, to form a 1×b2 sliding window feature matrix, where b2 is the sliding window width, representing the number of voltage eigenvalues. The obtained sliding window feature matrix is used as the input of the self-discharge probability prediction model.
[0116] Table 3 Sliding window matrix after aggregation and dimensionality reduction of voltage eigenvalues of the jth battery cell
[0117]
[0118] The aggregation dimensionality reduction methods include: average value, median, maximum value, minimum value, difference between maximum value and minimum value or rate of change.
[0119] It should be noted that the average value refers to the sum average value of the corresponding voltage characteristic values at all discrete time points, that is:
[0120] Where W i is the voltage characteristic value at the i-th discrete time point.
[0121] The median refers to the median of the corresponding voltage characteristic values at all discrete time points.
[0122] The maximum value refers to the maximum value among the corresponding voltage characteristic values at all discrete time points.
[0123] The minimum value refers to the minimum value among the corresponding voltage characteristic values at all discrete time points.
[0124] The rate of change refers to the rate of change of the end time compared to the start time, which is:
[0125] S23, algorithm selection. For regression algorithms, the present invention uses a linear regression algorithm to calculate the voltage variation trend of a single battery cell within the sliding window.
[0126] Specifically, the battery cell voltage difference in Table 2 is used as the input of the regression algorithm, and a linear regression algorithm is used to fit a fitting curve of the battery cell voltage difference changing with time.
[0127] The slope of the fitting curve Correlation coefficient of the fitted curve
[0128] In the formula, m is the number of discrete points, b is the intercept of the fitting curve, ΔV nj is the voltage difference of the jth battery cell at the nth discrete time point, is the average voltage difference of the jth battery cell at all discrete time points, x n ∈[1,m],
[0129] For multi-classification machine learning algorithms: Use algorithms such as XGBoost to build a suitable self-discharge probability prediction model. The sliding window composed of the time series features of a specific ID is used as the model input, and the result of the self-discharge risk probability is used as the model output.
[0130] Training and testing of the self-discharge probability prediction model: The historical self-discharge data stored in the cloud is randomly divided into a training set and a test set in a 6:4 ratio. Use the training set data to train the model, and use the test set to evaluate the trained model, and calculate evaluation indicators such as accuracy, recall, and F1 score. Analyze the performance of the model on different types of data and find possible improvements. Optimize the model based on the evaluation results, such as adjusting hyperparameters, trying different algorithms, or performing feature selection. Repeat the training and evaluation process until the model performance reaches a satisfactory level. The training set and test set are dynamically updated with the results of the risk cell disassembly.
[0131] S3, in response to the voltage variation trend of the battery cell being within the first preset range and the self-discharge probability being within the second preset range, determining that the self-discharge performance of the battery cell is abnormal. In this example, if the slope k of the linear regression algorithm is ≤ -3 and the correlation coefficient R 2 ≥0.7, when the self-discharge probability output by the multi-classification machine learning algorithm is not 0, it is determined that the self-discharge performance of the battery cell is abnormal.
[0132] In response to abnormal self-discharge performance of a battery cell, different thresholds are set for risk level classification. If the self-discharge risk probability is ≥90%, it is determined as risk level one; if 90%> self-discharge risk probability ≥50%, it is determined as risk level two; if 50%> self-discharge risk probability ≥10%, it is determined as risk level three.
[0133] See also Figure 3 As shown, for risk level one, the cloud will push warning information directly to the user, including but not limited to telephone notifications, in-vehicle voice playback, SMS notifications, etc., to remind users not to move the vehicle temporarily; at the same time, it will directly push information such as the vehicle location and battery self-discharge to after-sales personnel, and the after-sales staff will accurately locate the risk cells and send people to the site to check the battery problems and replace the batteries in time.
[0134] For risk level two, the cloud will push warning information to users, including but not limited to phone notifications, in-car voice playback, SMS notifications, etc., to remind users to go to the station and check the battery problem on their own.
[0135] For risk level three, no push will be made, and cloud computing can be continued and observation can be continued every day.
[0136] According to the disassembly of the risk cells with the first and second warning levels, the risk level is confirmed again, and the corresponding voltage characteristic values and actual self-discharge risk levels are used as the training set of the self-discharge probability prediction model based on the machine algorithm, and the self-discharge probability prediction model is retrained to increase the accuracy of the model and improve the overall algorithm prediction accuracy.
[0137] The above embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Any equivalent substitution or change made by a person skilled in the art based on the present invention is within the protection scope of the present invention.
Claims
1. A method for detecting self-discharge of a battery cell, characterized in that: The method comprises: Obtaining voltage data of battery cells within a continuous time period; Calculate and obtain the voltage characteristic value of the battery cell within the set time window; The voltage characteristic value is used as input, and the time variation trend of the voltage characteristic value of the battery cell within the set time window is calculated based on the regression algorithm; The voltage feature values are aggregated and reduced in dimension, and then input into the self-discharge probability prediction model based on the machine learning algorithm to obtain the self-discharge probability of the battery cell; In response to the voltage variation trend of the battery cell being within a first preset range and the self-discharge probability being within a second preset range, it is determined that the self-discharge performance of the battery cell is abnormal.
2. The battery monomer self-discharge detection method according to claim 1, characterized in that: The voltage characteristic value includes at least one of the mean voltage, median voltage, battery cell voltage difference, battery cell voltage difference change rate, battery cell voltage difference to mean voltage ratio, battery cell voltage difference to median voltage ratio, and battery cell voltage difference to mean voltage ratio change rate of the battery cell within a set time window; The preset time period is discretized to obtain m discrete time points, and the number of battery cells in the battery pack is recorded as i; The mean voltage V 均 is the average voltage of all battery cells in the battery pack at the nth discrete time point, V nj is the voltage of the jth battery cell at the nth discrete time point, 1≤n≤m, 1≤j≤i; The median voltage V 中 is the number in the middle of the voltages of all battery cells in the battery pack corresponding to the nth discrete time point; The voltage difference ΔV of the jth battery cell at the nth discrete time point nj =V nj —V 中 ; The voltage difference and mean voltage of the jth battery cell at the nth discrete time point The voltage difference and median voltage of the jth battery cell at the nth discrete time point The voltage difference of the jth battery cell V pj is the voltage of the jth battery cell at the pth discrete time point, V nj is the voltage of the jth battery cell at the nth discrete time point; The ratio of the voltage difference of the jth battery cell to the mean voltage r pj is the ratio of the voltage difference of the jth battery cell at the pth discrete time point to the mean voltage, r nj is the ratio of the voltage difference of the jth battery cell at the nth discrete time point to the mean voltage.
3. The battery monomer self-discharge detection method according to claim 1, characterized in that: The temporal variation trend of the voltage characteristic value is the slope and correlation coefficient of the fitting curve, and the fitting curve is a temporal variation curve of the voltage characteristic value of the battery cell within a set time window obtained by fitting based on a regression algorithm.
4. The battery monomer self-discharge detection method according to claim 1, characterized in that: After acquiring the voltage data of the battery cells in the continuous time period, the method further includes: The voltage data is cleaned, and the data cleaning process includes missing value processing, data obvious error value deletion processing, default value removal processing and abnormal value replacement processing.
5. The battery monomer self-discharge detection method according to claim 1, characterized in that: After determining that the self-discharge performance of the battery cell is abnormal, the method further includes: dividing the self-discharge warning level according to the self-discharge probability of the battery cell according to a preset rule, and executing a response action based on the obtained self-discharge warning level.
6. The battery monomer self-discharge detection method according to claim 5, characterized in that: In response to the self-discharge warning level being within the third preset range, the battery cells are disassembled to confirm the actual self-discharge risk level, and the corresponding voltage characteristic values and the labels given according to the actual self-discharge risk level are used as training sets for the self-discharge probability prediction model based on the machine algorithm to retrain the self-discharge probability prediction model.
7. The battery monomer self-discharge detection method according to claim 1, characterized in that: The regression algorithm is a linear regression algorithm, a ridge regression algorithm or a Lasso regression algorithm, And / or, the machine algorithm is a random forest algorithm, a naive Bayes algorithm, a decision tree algorithm, a K nearest neighbor algorithm, a support vector machine algorithm, a gradient boosting tree algorithm or an XGboost algorithm.
8. A battery cell self-discharge detection system, characterized in that: include: An acquisition module, used to receive voltage data of battery cells within a continuous time period reported by the vehicle; A voltage characteristic value calculation module is used to calculate the voltage characteristic value of the battery cell within a set time window; A regression algorithm module is used to take the voltage characteristic value as input and calculate the time variation trend of the voltage characteristic value of the battery cell within a set time window based on the regression algorithm; The prediction module is used to aggregate and reduce the voltage feature values, and then input them into the self-discharge probability prediction model based on the machine learning algorithm to obtain the self-discharge probability of the battery cell; The evaluation module determines that the self-discharge performance of the battery cell is abnormal in response to the voltage variation trend of the battery cell being within a first preset range and the self-discharge probability being within a second preset range.
9. An electronic device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the battery cell self-discharge detection method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the program is executed by a processor, the battery monomer self-discharge detection method as claimed in any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Operation monitoring method and system for electric energy meter
CN119355626A
Battery module early-stage internal short circuit fault diagnosis method based on BO-XGBoost
CN120559463A
Method and system for assessing the quality of a battery cell in a battery-cell-manufacturing process
WO2026093266A1
