A battery state of health prediction method based on feature compression

By using principal component analysis and t-distribution random neighbor embedding for feature compression, combined with ordered density clustering and genetic algorithm-support vector regression, the redundancy and noise problems in lithium-ion battery health status prediction are solved, improving prediction accuracy and efficiency and preventing overfitting.

CN117368784BActive Publication Date: 2026-11-24JILIN UNIVERSITY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311600386.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-28
Publication Date
2026-11-24
Estimated Expiration
2043-11-28

AI Technical Summary

Technical Problem

Existing methods for predicting the health status of lithium-ion batteries suffer from redundant information and the curse of dimensionality caused by high-dimensional features. Noise interference affects prediction performance, and machine learning algorithms lack automatic feature selection, resulting in low prediction efficiency and the risk of overfitting.

Method used

Principal component analysis and t-distribution random nearest neighbor embedding algorithm are used for feature compression. Combined with ordered density clustering and genetic algorithm-support vector regression, the most relevant features are automatically selected for battery health status prediction.

Benefits of technology

It effectively reduces data dimensionality, removes redundant and noisy features, improves the accuracy and efficiency of the prediction model, prevents overfitting, and achieves more accurate battery capacity estimation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117368784B_ABST
    Figure CN117368784B_ABST
Patent Text Reader

Abstract

This invention provides a battery health state prediction method based on feature compression. First, based on test data from the battery dataset used, aging features related to current and voltage during battery degradation are extracted and standardized. Then, principal component analysis is used to determine the compression valence, and t-distributed random nearest neighbor embedding is used to compress the high-dimensional data into a low-dimensional form. Next, ordered density clustering is used to denoise the compressed data and restore the data. Finally, support vector regression optimized by a genetic algorithm is used to predict the battery capacity. This method not only preserves the global structure between aging data during data compression but also reveals the feature relationships within the high-dimensional data. During the denoising process after compression, the main structure of the data is preserved, making the battery capacity prediction more accurate. Through iterative optimization using a genetic algorithm, the most informative battery aging features are selected, while irrelevant features are excluded, improving the model's generalization ability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power battery technology for new energy vehicles, and specifically proposes a battery health state prediction method based on feature compression. Background Technology

[0002] In the global decarbonization process, renewable energy and electric vehicle technologies are receiving increasing attention. Lithium-ion batteries, due to their high energy density, long cycle life, and low self-discharge rate, have become the preferred energy storage component in these fields. To ensure the safe operation and high efficiency of the battery system, the Battery Management System (BMS) plays a crucial role in modern electric vehicles. The BMS monitors various internal states of the battery, such as State of Charge (SOC) and State of Health (SOH), enabling comprehensive management and monitoring of the battery system. Based on the battery's state of health estimation process, the BMS can assess the degree of capacity degradation and changes in internal resistance to accurately predict the battery's lifespan and performance degradation trends. This helps users maintain and replace batteries in a timely manner, ensuring the economy, reliability, and safety of electric vehicles.

[0003] Traditional methods for predicting the health status of lithium-ion batteries primarily rely on physical models or data-driven models. However, these methods have limitations, such as redundant information in the measured feature data and the curse of dimensionality in high-dimensional features. To address these issues, feature compression technology has been introduced into lithium-ion battery health status estimation. This involves extracting key features from the aging process of lithium-ion batteries, such as charge / discharge time, capacity decay rate, and internal resistance. However, these features contain redundant information such as sampling bias and outliers, thus requiring compression and standardization to optimize the battery aging characteristics. Feature compression transforms high-dimensional battery features into low-dimensional representations, extracting more representative information and removing redundant and noisy features. This helps users understand the battery's health status in advance before taking maintenance measures, extending battery life and improving the safety and reliability of electric vehicle systems. The application of feature compression technology will bring more efficient and accurate battery life prediction methods to the fields of lithium-ion battery management and energy storage.

[0004] In battery health state estimation, noise interference is a common problem when processing large amounts of feature data. To reduce noise impact, denoising techniques such as filtering algorithms and wavelet transforms are standard practices. However, even after denoising the original data, irrelevant features still exist, reducing prediction performance, and the large dimensionality of the original data complicates denoising calculations. To address this issue, denoising of the compressed battery aging feature data is necessary. Data compression makes the denoising process more efficient and avoids the risk of overfitting. Secondly, compressed data is easier to visualize, facilitating observation and evaluation of the denoising effect. Furthermore, data compression preserves the main structure and patterns of the data, making the denoising process more accurate, rather than removing all aging features. By combining compression and denoising techniques, accurate estimation of lithium battery capacity can be achieved.

[0005] Furthermore, when using a large amount of feature data for prediction, not all features in battery aging data have a significant impact on battery capacity estimation, and too many features may degrade prediction performance. To address this issue, automatic feature selection, evaluation, and ranking are used to determine the most relevant features, reducing data dimensionality to improve the accuracy and efficiency of the battery capacity prediction model and prevent overfitting. Summary of the Invention

[0006] To address the shortcomings of existing technologies, this invention provides a battery health state prediction method based on feature compression. First, based on test data from the battery dataset used, the impact of aging on internal parameters is analyzed, and aging characteristics related to temperature, time, current, and voltage during battery degradation are extracted and standardized. However, the battery aging process is typically affected by complex internal physical changes and chemical reactions, such as cathode material degradation, electrolyte degradation, and solid electrolyte interface formation. Each aging mechanism leads to different performance degradation and has different aging characteristics, resulting in a large number of feature data types, which are excessively numerous and have high dimensionality. Therefore, this invention employs Principal Components Analysis (PCA) to determine the compression valence of battery aging features based on the data variance and the proportion of feature valences. The similarity between feature samples is calculated using the t-Distributed Stochastic Neighbor Embedding (t-SNE) algorithm, mapping samples with high similarity to closer locations in the low-dimensional space, and mapping samples with low similarity to farther locations. This preserves the local and global structure between samples while compressing high-dimensional data to low-dimensionality. However, since the original battery aging feature data contains noise, the compressed data still contains noise. Therefore, this invention uses Ordering Points To Identify the Clustering Structure (OPTICS) to reduce noise in the compressed data and then reconstructs the data. The reconstructed data eliminates redundant and irrelevant features from the original data, has lower data dimensionality, making the dataset more compact and improving the training speed and prediction efficiency of the model. Finally, a genetic algorithm (GA) is used to optimize the support vector regression (SVR) machine for predicting battery capacity.

[0007] This invention is achieved using the following technical solution:

[0008] A battery health state prediction method based on feature compression is applicable to the prediction process of lithium-ion battery aging under any charge and discharge conditions. The specific steps are as follows:

[0009] The first step is to extract battery aging feature data and perform feature compression.

[0010] First, the test conditions of the battery dataset are analyzed using the CALCE battery dataset. Based on different charging and discharging processes, battery capacity degradation-related features are extracted, including constant current charging time, constant voltage charging time, battery internal resistance, and multi-dimensional battery aging feature data of capacity change from 3.8V to 3.4V. Since importing the multi-dimensional battery aging feature data is time-consuming, it is compressed before being input into the prediction model. This method uses principal component analysis to determine the compression valence. By mapping the multi-dimensional battery aging feature data to a new coordinate system, the feature with the largest variance is selected as the basis vector of the new coordinate system. Specifically, the principal component analysis process is as follows:

[0011] Process 1): The multidimensional battery aging feature data is centered, that is, the value of each battery aging feature data is reduced by the average value of the corresponding battery aging feature, and the battery aging features do not affect each other.

[0012] Let x be the m×n dimensional matrix of the original multidimensional battery aging feature data, where m represents the number of battery samples and n represents the number of battery aging features, and both m and n are positive integers. The standardized data matrix is ​​as follows:

[0013]

[0014] Where, x std The standardized battery aging feature data has the same dimensions as the original multidimensional battery aging feature data; μ is the mean of the corresponding battery aging feature sample; σ is the standard deviation of the battery aging feature sample.

[0015] Step 2): Calculate the covariance matrix of the standardized battery aging characteristic data. The covariance matrix reflects the correlation between various battery aging characteristics, i.e.:

[0016]

[0017] Where C is an n×n dimensional covariance matrix; X is the standardized battery aging feature data matrix; and N is the number of feature samples. It is the mean vector, and T is the matrix transpose;

[0018] Process 3): Perform eigenvalue decomposition on C. First, calculate the eigenvalues, then solve for the eigenvector corresponding to each eigenvalue, and finally standardize the eigenvectors to unit vectors. This yields the eigenvalues ​​and corresponding eigenvectors. The eigenvalues ​​represent the variance of the standardized battery aging feature data along the eigenvector direction, while the eigenvectors are the projections of the battery aging feature data onto each feature direction. This results in the diagonal matrix Λ, i.e.:

[0019] C = VΛV T (3)

[0020] Where V is the eigenvector matrix; Λ is a diagonal matrix, the elements of which are eigenvalues; and T is the transpose of the matrix.

[0021] Step 4): Select the first s eigenvectors as principal components according to the magnitude of the eigenvalues, where s is the compressed dimension and s < n;

[0022] Step 5): Combine the selected principal components into a projection matrix P, where the column vectors of this matrix are the selected principal components, i.e.:

[0023] P = [ν1,ν2,…,ν] s (4)

[0024] Where, ν i It is the i-th selected feature vector, where i = 1, 2, ..., s;

[0025] Process 6): Multiply X by P to convert the multidimensional battery aging feature data x into a low-dimensional matrix Y;

[0026] Y = X * P (5)

[0027] Through the principal component analysis processes 1)-6) above, a new feature space can be obtained, in which the features are the original features after recombination. These new features are the principal components; let λ1, λ2, ..., λ p The eigenvalues ​​of the principal components are arranged in descending order, where p represents the number of eigenvalues ​​and p < s, and s is the number of eigenvectors. A 95% threshold for the total variance is defined, meaning 95% of the total variance is retained. The cumulative variance contribution rate R is calculated. l Where l represents the cumulative variance contribution rate when retaining the first l principal components:

[0028]

[0029] Where l1 is a natural number from 1 to l, and l2 is a natural number from 1 to p, and l1 ≠ l2;

[0030] Then, choose the smallest l such that R l If the threshold is greater than or equal to 95%, then this l is the required number of principal components, which is the compression valence of the most suitable high-dimensional battery aging feature data.

[0031] Next, the high-dimensional battery aging feature data is compressed into low-dimensional form using the t-distribution neighborhood embedding algorithm. The specific steps are as follows:

[0032] Process 1): Calculate the similarity between each high-dimensional data point.

[0033] For a given high-dimensional dataset, the first step is to calculate the similarity between data points. A commonly used similarity metric is the Gaussian kernel, which measures the similarity between data points. A larger Gaussian kernel value indicates higher similarity. The probability distribution of Gaussian kernel similarity is as follows:

[0034]

[0035] Where, p ij Represents battery aging characteristic data point x i and battery aging characteristic data points x j The similarity probability between them, where i and j are indices of battery aging feature data points, used to uniquely identify different data points in the battery dataset. The values ​​of i and j are both between 1 and the number of battery samples m, and i ≠ j; σ i Is with x i The relevant variance parameter, small σ i A higher σ value will cause the similarity between data points to decrease more quickly, while a larger σ value will cause the similarity between data points to decrease more quickly. i The value σ makes the similarity decrease more slowly. i Take a positive real number, i.e., σ i >0;

[0036] Step 2): Constructing conditional probability distributions using similarity measures

[0037] This involves mapping the similarity of high-dimensional data to similarity in a low-dimensional space. In this low-dimensional space, a similarity transformation is defined using a t-distribution, making the similarity more sparse. The definition of the similarity transformation is:

[0038]

[0039] Where, q ij Represents the battery aging characteristic data point y in low-dimensional space. i and battery aging characteristic data points y j The similarity probability between them; i and j are the indices of the battery aging feature data points, and the values ​​of i and j are both between 1 and the number of battery samples m;

[0040] Process 3): Minimize the Kullback-Leibler divergence

[0041] By minimizing the Kullback-Leibler divergence, the similarity of battery aging feature data in low-dimensional space is made as close as possible to the similarity in high-dimensional space. The Kullback-Leibler divergence is defined as follows:

[0042]

[0043] Wherein, KL(P′||Q) represents the difference in similarity between aging feature data in high-dimensional space and low-dimensional space; P′ represents the probability distribution corresponding to battery aging feature data points in high-dimensional space; and Q represents the probability distribution corresponding to battery aging feature data points in low-dimensional space.

[0044] Process 4): Gradient Descent Optimization

[0045] The gradient descent optimization method is used to minimize the Kullback-Leibler divergence, adjusting the positions of points in the low-dimensional space to make them more similar. The gradient descent update formula is as follows:

[0046]

[0047] Among them, y (t) η is the low-dimensional matrix after mapping the high-order data points, t is the number of iterations, and η is the learning rate, which ranges from 0.1 to 0.001. It is the gradient of the Kullback-Leibler divergence with respect to the data point y;

[0048] Process 5): Iterative optimization

[0049] To determine if the optimization has converged, the algorithm is considered to have converged when the Kullback-Leibler divergence is sufficiently small and close to zero. If the optimization has converged, the aging feature data points in the low-dimensional space reach stable positions, and the loop ends. Stable positions mean that their coordinates no longer change significantly after dimensionality reduction, and their positions tend to stabilize and no longer change significantly after many iterations. If the optimization has not converged, the optimization of minimizing the Kullback-Leibler divergence and gradient descent is re-executed.

[0050] Through the t-distribution neighborhood embedding algorithm, processes 1)-5) continuously adjust the positions of high-dimensional battery aging feature data points in the low-dimensional space. Once the algorithm converges, each high-dimensional battery aging feature data point x D In low-dimensional space, there is always a final coordinate x. d This coordinate is the low-dimensional representation of the high-dimensional battery aging characteristic data:

[0051] x D ∈R D (11)

[0052] x d ∈R d (12)

[0053] Where D is the dimension of the high-dimensional space, d is the dimension of the low-dimensional space, and R... D Defined as a high-dimensional spatial representation of D dimensions generated by the standard normal distribution, where D > 3, Rd Defined as a low-dimensional space of dimension d generated by the standard normal distribution, where 2≤d≤3;

[0054] By using coordinates x in a low-dimensional representation d We construct a compressed dataset X′ and create a visualization plot, which is a scatter plot, to visualize the compressed data and observe its distribution and structure in a low-dimensional space.

[0055] The second step is to denoise the compressed feature data and reconstruct the data.

[0056] Because the original feature data contains noise, the compressed data also contains noise. Therefore, noise reduction is performed on the data before estimating the battery SOH. This method uses a density clustering algorithm that identifies cluster structures by point sorting. The specific process is as follows:

[0057] Process 1): Given a database containing M battery aging feature data, select an unvisited battery aging feature data point as the current battery aging feature data point and set the neighborhood radius ε and the minimum number of points MinPts;

[0058] Process 2): Calculate the core distance

[0059] For the current battery aging feature data point, calculate the distance from each battery aging feature data point in its ε-neighborhood to the current battery aging feature data point, and sort them in ascending order. The distance from the MinPts-1th battery aging feature data point is taken as the core distance of the current battery aging feature data point. The core distance is defined as:

[0060]

[0061] Where cd(x) represents the core distance of battery aging feature data point x, which is a value calculated for each data point, representing the distance between that point and its nearest neighbor; d(x,y) represents the distance between battery aging feature data point x and battery aging feature data point y; N ε (x) indicates that the core is the battery aging characteristic data point x; N represents ε (x) is the i-th point closest to the battery aging characteristic data point x;

[0062] Process 3): Update reachability distance and reachable objects

[0063] For each neighboring point of the current battery aging feature data point, calculate its distance to the current battery aging feature data point and use it as the reachable distance. If the reachable distance of a neighboring point is less than or equal to its core distance, mark it as a reachable object. The reachable distance is expressed as:

[0064]

[0065] Where rd(y,x) represents the reachability distance between battery aging characteristic data point x and battery aging characteristic data y;

[0066] Process 4): Find the next unvisited core point

[0067] Continuously select the next unvisited core point x s As the current point, proceed through step 3) of this process to calculate the core distance to that point and update the reachable distances and reachable objects, until the core point x... s radius ε s neighborhood The iteration terminates when there are no unvisited data points:

[0068]

[0069] Among them, P p It is a set of low-dimensional feature data points, visited(x) p ) represents data point x p The status flag indicating whether the data point has been accessed is usually initialized to False; False indicates that the data point has not been accessed, and True indicates that the data point has been accessed.

[0070] Process 5): Construct an ordered list

[0071] Construct an ordered list of Reachability Plots based on reachability distances, such that each battery aging feature data point x in the list... p All include their reachability distance RD(x) pi and reachable object N ε (x pi );

[0072] Reachability Plot = [(RD(x)] p1 ),N ε (x p1 )),(RD(x p2 ),N ε (x p2 )),…,(RD(x pn ),N ε (x pn (16)

[0073] Step 6): Extracting clusters

[0074] Based on the characteristics of the ordered list Reachability Plot, clusters are extracted by setting the neighborhood radius value ε. The distribution of data points is observed using the visualization created in the first step. Then, outliers are identified by comparing the reachability distance of the data points calculated through step 3) with the core distance calculated through step 2). Specifically, if the reachability distance of a data point is significantly greater than its core distance, then the data point is considered an outlier.

[0075] In summary, by using the density clustering algorithm steps 1)-6) above to identify clustering structures through point sorting, outliers in the compressed dataset X′ are identified. By removing the values ​​of these outliers from the low-dimensional dataset, a dimensionality-reduced dataset X″ with outliers removed is obtained.

[0076] Then, an inverse transform is used to restore the battery aging feature data in the dimensionality-reduced and outlier-removed dataset X″ to its original dimensionality. The inverse transform involves multiplying the dimensionality-reduced data points by the feature vector matrix V from the first step, and then adding the mean vector from the first step. This allows the data to be restored to its original space, specifically:

[0077]

[0078] Where X″ is the dataset after dimensionality reduction and outlier removal, and X″′ is the restored dataset. The restored dataset X″′ is used for the next step of battery health state estimation.

[0079] The third step is to predict battery health status based on genetic algorithm-support vector regression.

[0080] First, the battery aging feature dataset X″′ after the second step of compression and noise reduction is divided into a 70% test set and a 30% training set, and these battery aging feature data x″′ are standardized. The standardization process is as follows:

[0081]

[0082] Then, a support vector regression model is introduced for prediction. This support vector regression model predicts by mapping the data x″′ to a high-dimensional feature space through a non-linear mapping φ(x″′), and then performing linear regression in this space, i.e.:

[0083] f(x) = w T φ(x″′)+b (19)

[0084] Where w is the weight vector, b is the bias value, and T is the transpose of the matrix;

[0085] The optimization problem is described as follows:

[0086]

[0087]

[0088] ε p =max(0, |y true -f(x)∣-τ) (22)

[0089] We can obtain w and b from the above formula, where C punish For the penalty parameter; y p ξ is the observed value; i , ε is a slack variable; l is the number of samples; p For insensitive loss functions, ε p The introduction of improves the robustness of the estimation; y true τ is the true value of the sample; f(x) is the predicted value of the support vector regression model; τ is a pre-defined non-negative number, ranging from 0.01 to 1;

[0090] To solve the above problem, the duality principle is used to transform it into a convex quadratic programming problem, and the Lagrange equation is established, namely:

[0091]

[0092] Where k represents the current k-th data point, λ k , η k , Non-negative Lagrange multipliers, i.e. w is the weight vector, b is the bias value; ξ k , The variables are slack variables; the Lagrangian function is relative to the variables w, b, ξ. k , The derivative is 0;

[0093] Finally, by importing the Lagrange operator and optimization constraints, the regression function, i.e., the predicted value of the support vector regression battery health state prediction model, is obtained. for:

[0094]

[0095] Where K(x) k Let K(x, x) be the kernel function. Only when the kernel function satisfies the Mercer condition can we obtain the nonlinear computation corresponding to the low-dimensional space. The Mercer condition is stated as: if K(x, x) satisfies the Mercer condition... k Let f(x) be a real-valued function, and for any s real numbers e1, e2, ..., e... s and the corresponding weights ζ1,ζ2,…,ζs The following matrices must be positive semidefinite:

[0096]

[0097] This method selects the radial basis function (RBF) kernel as the kernel function, and its expression is:

[0098]

[0099] Where β is the kernel function parameter, and its value range is positive real number;

[0100] Support Vector Regression Prediction Accuracy and Penalty Parameter C punish Kernel function parameter β, insensitive loss function ε p Therefore, this method uses a genetic algorithm to optimize the three parameters of support vector regression to estimate the battery health status. The specific process is as follows:

[0101] Process 1): Initialize the genetic algorithm parameters and encode the support vector regression parameters;

[0102]

[0103]

[0104]

[0105] Among them, E c For real number C punish The mapped encoded value, E β E is the encoded value of the real number β mapping. εp For real number ε p The mapped encoded value, C max C min C punish The upper and lower bounds of the value of β max ,β min These are the upper and lower bounds for the value of β, respectively, and ε. p,max ,ε p,min ε p The upper and lower bounds of the value are given. The parameters of the genetic algorithm include the population size, the number of iterations, and the termination condition. In this method, the population size is set to 100, the number of iterations is set to 50, and the termination condition is that the maximum number of iterations of 50 is reached.

[0106] Step 2): Initialize the population and calculate fitness. The fitness value is the mean squared error (MSE) after K-cross validation, which measures the quality of the selected parameters.

[0107]

[0108] Among them, y true This represents the actual battery capacity. This is the predicted value of the battery capacity; n train The total number of aged data samples in the training set; the smaller the MSE value, the better the individual performance and the greater the probability of being selected.

[0109] Process 3): Determine if the maximum number of iterations has been reached. If the maximum number of iterations (50) has been reached, output the support vector regression parameters; otherwise, perform selection, crossover, and mutation operations. The selection operation uses a roulette wheel method, selecting the population with the higher fitness value to enter the next generation. The crossover operation uses a linear combination method, performing crossover on two chromosomes with a certain probability p (p∈[0,1]), i.e.:

[0110]

[0111] Among them, x1 and x2 are two chromosomes;

[0112] The mutation operation uses a uniform mutation method, as detailed below:

[0113] 1) For each gene position r, generate a random number rand r ,rand r The value ranges from 0 to 1;

[0114] 2) If rand r If the mutation rate is less than or equal to the mutation rate (mutationrate), then a mutation operation is performed, with the mutation rate set to 0.01.

[0115] 3) If a mutation operation is performed, a new random value, newgene, is generated. r newgene r Genes are randomly selected from a range of possible values. A gene represents a location on a chromosome, and its value range (i.e., the sample size) is 0 ≤ newgene. r ≤l;

[0116] 4) Change the gene value E in the original gene string r Replace with the new gene value newgene r ;

[0117] By following the steps above, each gene position is checked one by one in the order of the gene string until there are no unvisited positions in the entire gene string, thus completing the mutation operation.

[0118] Step 4): Deencode the parameters of the support vector regression that have been optimized in the above steps;

[0119] C punishnew =C min +Ec ·(C max -C min (32)

[0120] β new =β min +E β ·(β max -β min (33)

[0121]

[0122] Among them, C punishnew ,β new ,ε pnew The optimal parameters for support vector regression obtained by the genetic algorithm are obtained through C. punishnew ,β new ,ε pnew These three optimal parameters are used to construct the support vector regression battery health status prediction model, and the final model is shown in equation (23). Equations (24) to (33) are used to optimize the parameters in the support vector regression battery health status prediction model, and equation (23) is used to further optimize the support vector regression model. The system provides a final predicted battery capacity result; based on this result, the battery's health status can be reflected, and battery capacity is directly proportional to battery health. A higher value indicates a healthier battery. The smaller the value, the lower the battery health.

[0123] To demonstrate the effectiveness of the above method, explained variance and coefficient of determination R-squared are used respectively. 2 The prediction accuracy of this method is verified by measuring the execution time t of the support vector regression battery health status prediction model.

[0124]

[0125]

[0126] t = t end -t start (37)

[0127] Among them, y true This represents the actual battery capacity. The predicted values ​​are from the support vector regression battery health status prediction model. This is the actual battery capacity value y. true The average value; Var represents the variance of a set of data, t end t represents the end time of the support vector regression battery health prediction model.start The start time of the support vector regression battery health state prediction model; the larger the explained variance (explained_variance) value, the closer the predicted battery capacity fluctuation is to the true value; the coefficient of determination score R0 2 The larger the value, the more accurate the numerical prediction; the shorter the execution time t, the higher the execution efficiency of the model.

[0128] The advantages of this invention compared to the prior art are as follows:

[0129] 1. Considering that the number of features related to battery aging in the test data is too large throughout the battery's entire lifespan, resulting in excessively high data dimensionality for the input prediction model, this invention employs a joint feature compression method using Principal Components Analysis (PCA) and t-Distributed Stochastic Neighbor Embedding (t-SNE). PCA is used to determine the compression valence, while t-SNE is used to compress the high-dimensional feature dataset into a low-dimensional space for processing. This not only preserves the local and global structures between aging data but also better reveals the feature relationships within the high-dimensional data.

[0130] 2. Considering that the original aging data is subject to various noise interferences during measurement, irrelevant features still exist after denoising, reducing the performance of lithium-ion battery capacity prediction. Furthermore, the large dimensionality of the original data makes denoising difficult. This invention employs a density-based clustering algorithm (Ordering points to identify the clustering structure, OPTICS) to denoise the compressed battery aging feature data. The OPTICS algorithm constructs an ordered list of compressed battery features, sorting the battery aging feature data points according to their reachability. By analyzing the ordered list, the boundaries of clusters and noise points can be determined, thus denoising the compressed battery data. During the denoising process after data compression, the OPTICS algorithm preserves the main structure and patterns of the data, making battery capacity prediction more accurate.

[0131] 3. Considering that machine learning algorithms cannot perform automatic feature selection, manual feature selection is usually performed during the data preprocessing stage. This invention employs a fusion algorithm, GA-SVR, which combines Genetic Algorithm (GA) and Support Vector Regression (SVR), to automatically select the most relevant subset of battery aging features to build a regression model. Through the iterative optimization process of the genetic algorithm, the GA-SVR algorithm can automatically discover and select the most informative battery aging features, excluding irrelevant or redundant features, thereby improving the model's generalization ability and preventing overfitting. Attached Figure Description

[0132] Figure 1 The overall flowchart of a battery health state prediction method based on feature compression proposed in this invention.

[0133] Figure 2 The flowchart shows the algorithm for determining the compressed valence of high-dimensional feature data in the first step of this method using principal component analysis.

[0134] Figure 3 This is a flowchart of the t-distributed neighborhood embedding algorithm used in the first step of this method to compress high-dimensional battery aging feature data into low dimensions.

[0135] Figure 4 This is a flowchart illustrating the noise reduction process of the density clustering algorithm for identifying cluster structures by sorting points in the second step of this method.

[0136] Figure 5 This is a flowchart of the genetic algorithm-support vector regression battery health status prediction model in the third step of this method. Detailed Implementation

[0137] This invention provides a battery health state prediction method based on feature compression, applicable to the prediction process of lithium-ion battery aging under any charge / discharge conditions, such as... Figure 1 As shown, the specific steps are as follows:

[0138] The first step is to extract battery aging feature data and perform feature compression.

[0139] First, the test conditions of the battery dataset are analyzed using the CALCE battery dataset. Based on different charging and discharging processes, battery capacity degradation-related features are extracted, including constant current charging time, constant voltage charging time, battery internal resistance, and multi-dimensional battery aging feature data of capacity change from 3.8V to 3.4V. Since importing the multi-dimensional battery aging feature data is time-consuming, it is compressed before being input into the prediction model. This method uses principal component analysis to determine the compression valence. By mapping the multi-dimensional battery aging feature data to a new coordinate system, the feature with the largest variance is selected as the basis vector of the new coordinate system. Specifically, the principal component analysis process is as follows:

[0140] Process 1): The multidimensional battery aging feature data is centered, that is, the value of each battery aging feature data is reduced by the average value of the corresponding battery aging feature, and the battery aging features do not affect each other.

[0141] Let x be the m×n dimensional matrix of the original multidimensional battery aging feature data, where m represents the number of battery samples and n represents the number of battery aging features, and both m and n are positive integers. The standardized data matrix is ​​as follows:

[0142]

[0143] Where, x std The standardized battery aging feature data has the same dimensions as the original multidimensional battery aging feature data; μ is the mean of the corresponding battery aging feature sample; σ is the standard deviation of the battery aging feature sample.

[0144] Step 2): Calculate the covariance matrix of the standardized battery aging characteristic data. The covariance matrix reflects the correlation between various battery aging characteristics, i.e.:

[0145]

[0146] Where C is an n×n dimensional covariance matrix; X is the standardized battery aging feature data matrix; and N is the number of feature samples. It is the mean vector, and T is the matrix transpose;

[0147] Process 3): Perform eigenvalue decomposition on C. First, calculate the eigenvalues, then solve for the eigenvector corresponding to each eigenvalue, and finally standardize the eigenvectors to unit vectors. This yields the eigenvalues ​​and corresponding eigenvectors. The eigenvalues ​​represent the variance of the standardized battery aging feature data along the eigenvector direction, while the eigenvectors are the projections of the battery aging feature data onto each feature direction. This results in the diagonal matrix Λ, i.e.:

[0148] C = VΛV T (3)

[0149] Where V is the eigenvector matrix; Λ is a diagonal matrix, the elements of which are eigenvalues; and T is the transpose of the matrix.

[0150] Step 4): Select the first s eigenvectors as principal components according to the magnitude of the eigenvalues, where s is the compressed dimension and s < n;

[0151] Step 5): Combine the selected principal components into a projection matrix P, where the column vectors of this matrix are the selected principal components, i.e.:

[0152] P = [ν1,ν2,…,ν] s (4)

[0153] Where, ν i It is the i-th selected feature vector, where i = 1, 2, ..., s;

[0154] Process 6): Multiply X by P to convert the multidimensional battery aging feature data x into a low-dimensional matrix Y;

[0155] Y = X * P (5)

[0156] Through the principal component analysis processes 1)-6) above, a new feature space can be obtained, in which the features are the original features after recombination. These new features are the principal components; let λ1, λ2, ..., λ p The eigenvalues ​​of the principal components are arranged in descending order, where p represents the number of eigenvalues ​​and p < s, and s is the number of eigenvectors. A 95% threshold for the total variance is defined, meaning 95% of the total variance is retained. The cumulative variance contribution rate R is calculated. l Where l represents the cumulative variance contribution rate when retaining the first l principal components:

[0157]

[0158] Where l1 is a natural number from 1 to l, and l2 is a natural number from 1 to p, and l1 ≠ l2;

[0159] Then, choose the smallest l such that R l If the threshold is greater than or equal to 95%, then this l is the required number of principal components, which is the compression valence of the most suitable high-dimensional battery aging feature data.

[0160] Next, the high-dimensional battery aging feature data is compressed into low-dimensional form using the t-distribution neighborhood embedding algorithm. The specific steps are as follows:

[0161] Process 1): Calculate the similarity between each high-dimensional data point.

[0162] For a given high-dimensional dataset, the first step is to calculate the similarity between data points. A commonly used similarity metric is the Gaussian kernel, which measures the similarity between data points. A larger Gaussian kernel value indicates higher similarity. The probability distribution of Gaussian kernel similarity is as follows:

[0163]

[0164] Where, p ij Represents battery aging characteristic data point x i and battery aging characteristic data points x j The similarity probability between them, where i and j are indices of battery aging feature data points, used to uniquely identify different data points in the battery dataset. The values ​​of i and j are both between 1 and the number of battery samples m, and i ≠ j; σ i Is with x i The relevant variance parameter, small σ i A higher σ value will cause the similarity between data points to decrease more quickly, while a larger σ value will cause the similarity between data points to decrease more quickly. i The value σ makes the similarity decrease more slowly. i Take a positive real number, i.e., σ i >0;

[0165] Step 2): Constructing conditional probability distributions using similarity measures

[0166] This involves mapping the similarity of high-dimensional data to similarity in a low-dimensional space. In this low-dimensional space, a similarity transformation is defined using a t-distribution, making the similarity more sparse. The definition of the similarity transformation is:

[0167]

[0168] Where, q ij Represents the battery aging characteristic data point y in low-dimensional space. i and battery aging characteristic data points y j The similarity probability between them; i and j are the indices of the battery aging feature data points, and the values ​​of i and j are both between 1 and the number of battery samples m;

[0169] Process 3): Minimize the Kullback-Leibler divergence

[0170] By minimizing the Kullback-Leibler divergence, the similarity of battery aging feature data in low-dimensional space is made as close as possible to the similarity in high-dimensional space. The Kullback-Leibler divergence is defined as follows:

[0171]

[0172] Wherein, KL(P′||Q) represents the difference in similarity between aging feature data in high-dimensional space and low-dimensional space; P′ represents the probability distribution corresponding to battery aging feature data points in high-dimensional space; and Q represents the probability distribution corresponding to battery aging feature data points in low-dimensional space.

[0173] Process 4): Gradient Descent Optimization

[0174] The gradient descent optimization method is used to minimize the Kullback-Leibler divergence, adjusting the positions of points in the low-dimensional space to make them more similar. The gradient descent update formula is as follows:

[0175]

[0176] Among them, y (t) η is the low-dimensional matrix after mapping the high-order data points, t is the number of iterations, and η is the learning rate, which ranges from 0.1 to 0.001. It is the gradient of the Kullback-Leibler divergence with respect to the data point y;

[0177] Process 5): Iterative optimization

[0178] To determine if the optimization has converged, the algorithm is considered to have converged when the Kullback-Leibler divergence is sufficiently small and close to zero. If the optimization has converged, the aging feature data points in the low-dimensional space reach stable positions, and the loop ends. Stable positions mean that their coordinates no longer change significantly after dimensionality reduction, and their positions tend to stabilize and no longer change significantly after many iterations. If the optimization has not converged, the optimization of minimizing the Kullback-Leibler divergence and gradient descent is re-executed.

[0179] Through the t-distribution neighborhood embedding algorithm, processes 1)-5) continuously adjust the positions of high-dimensional battery aging feature data points in the low-dimensional space. Once the algorithm converges, each high-dimensional battery aging feature data point x D In low-dimensional space, there is always a final coordinate x. d This coordinate is the low-dimensional representation of the high-dimensional battery aging characteristic data:

[0180] x D ∈R D (11)

[0181] x d ∈R d (12)

[0182] Where D is the dimension of the high-dimensional space, d is the dimension of the low-dimensional space, and R... D Defined as a high-dimensional spatial representation of D dimensions generated by the standard normal distribution, where D > 3, Rd Defined as a low-dimensional space of dimension d generated by the standard normal distribution, where 2≤d≤3;

[0183] By using coordinates x in a low-dimensional representation d We construct a compressed dataset X′ and create a visualization plot, which is a scatter plot, to visualize the compressed data and observe its distribution and structure in a low-dimensional space.

[0184] The second step is to denoise the compressed feature data and reconstruct the data.

[0185] Because the original feature data contains noise, the compressed data also contains noise. Therefore, noise reduction is performed on the data before estimating the battery SOH. This method uses a density clustering algorithm that identifies cluster structures by point sorting. The specific process is as follows:

[0186] Process 1): Given a database containing M battery aging feature data, select an unvisited battery aging feature data point as the current battery aging feature data point and set the neighborhood radius ε and the minimum number of points MinPts;

[0187] Process 2): Calculate the core distance

[0188] For the current battery aging feature data point, calculate the distance from each battery aging feature data point in its ε-neighborhood to the current battery aging feature data point, and sort them in ascending order. The distance from the MinPts-1th battery aging feature data point is taken as the core distance of the current battery aging feature data point. The core distance is defined as:

[0189]

[0190] Where cd(x) represents the core distance of battery aging feature data point x, which is a value calculated for each data point, representing the distance between that point and its nearest neighbor; d(x,y) represents the distance between battery aging feature data point x and battery aging feature data point y; N ε (x) indicates that the core is the battery aging characteristic data point x; N represents ε (x) is the i-th point closest to the battery aging characteristic data point x;

[0191] Process 3): Update reachability distance and reachable objects

[0192] For each neighboring point of the current battery aging feature data point, calculate its distance to the current battery aging feature data point and use it as the reachable distance. If the reachable distance of a neighboring point is less than or equal to its core distance, mark it as a reachable object. The reachable distance is expressed as:

[0193]

[0194] Where rd(y,x) represents the reachability distance between battery aging characteristic data point x and battery aging characteristic data y;

[0195] Process 4): Find the next unvisited core point

[0196] Continuously select the next unvisited core point x s As the current point, proceed through step 3) of this process to calculate the core distance to that point and update the reachable distances and reachable objects, until the core point x... s radius ε s neighborhood The iteration terminates when there are no unvisited data points:

[0197]

[0198] Among them, P p It is a set of low-dimensional feature data points, visited(x) p ) represents data point x p The status flag indicating whether the data point has been accessed is usually initialized to False; False indicates that the data point has not been accessed, and True indicates that the data point has been accessed.

[0199] Process 5): Construct an ordered list

[0200] Construct an ordered list of Reachability Plots based on reachability distances, such that each battery aging feature data point x in the list... p All include their reachability distance RD(x) pi and reachable object N ε (x pi );

[0201] Reachability Plot = [(RD(x)] p1 ),N ε (x p1 )),(RD(x p2 ),N ε (x p2 )),…,(RD(x pn ),N ε (x pn (16)

[0202] Step 6): Extracting clusters

[0203] Based on the characteristics of the ordered list Reachability Plot, clusters are extracted by setting the neighborhood radius value ε. The distribution of data points is observed using the visualization created in the first step. Then, outliers are identified by comparing the reachability distance of the data points calculated through step 3) with the core distance calculated through step 2). Specifically, if the reachability distance of a data point is significantly greater than its core distance, then the data point is considered an outlier.

[0204] In summary, by using the density clustering algorithm steps 1)-6) above to identify clustering structures through point sorting, outliers in the compressed dataset X′ are identified. By removing the values ​​of these outliers from the low-dimensional dataset, a dimensionality-reduced dataset X″ with outliers removed is obtained.

[0205] Then, an inverse transform is used to restore the battery aging feature data in the dimensionality-reduced and outlier-removed dataset X″ to its original dimensionality. The inverse transform involves multiplying the dimensionality-reduced data points by the feature vector matrix V from the first step, and then adding the mean vector from the first step. This allows the data to be restored to its original space, specifically:

[0206]

[0207] Where X″ is the dataset after dimensionality reduction and outlier removal, and X″′ is the restored dataset. The restored dataset X″′ is used for the next step of battery health state estimation.

[0208] The third step is to predict battery health status based on genetic algorithm-support vector regression.

[0209] First, the battery aging feature dataset X″′ after the second step of compression and noise reduction is divided into a 70% test set and a 30% training set, and these battery aging feature data x″′ are standardized. The standardization process is as follows:

[0210]

[0211] Then, a support vector regression model is introduced for prediction. This support vector regression model predicts by mapping the data x″′ to a high-dimensional feature space through a non-linear mapping φ(x″′), and then performing linear regression in this space, i.e.:

[0212] f(x) = w T φ(x″′)+b (19)

[0213] Where w is the weight vector, b is the bias value, and T is the transpose of the matrix;

[0214] The optimization problem is described as follows:

[0215]

[0216]

[0217] ε p =max(0, |y true -f(x)∣-τ) (22)

[0218] We can obtain w and b from the above formula, where C punish For the penalty parameter; y p ξ is the observed value; i ,ξ i * ε is a slack variable; l is the number of samples; p For insensitive loss functions, ε p The introduction of improves the robustness of the estimation; y true τ is the true value of the sample; f(x) is the predicted value of the support vector regression model; τ is a pre-defined non-negative number, ranging from 0.01 to 1;

[0219] To solve the above problem, the duality principle is used to transform it into a convex quadratic programming problem, and the Lagrange equation is established, namely:

[0220]

[0221] Where k represents the current k-th data point, λ k , η k , Non-negative Lagrange multipliers, i.e. w is the weight vector, b is the bias value; ξ k , The variables are slack variables; the Lagrangian function is relative to the variables w, b, ξ. k , The derivative is 0;

[0222] Finally, by importing the Lagrange operator and optimization constraints, the regression function, i.e., the predicted value of the support vector regression battery health state prediction model, is obtained. for:

[0223]

[0224] Where K(x) k Let K(x, x) be the kernel function. Only when the kernel function satisfies the Mercer condition can we obtain the nonlinear computation corresponding to the low-dimensional space. The Mercer condition is stated as: if K(x, x) satisfies the Mercer condition... k Let f(x) be a real-valued function, and for any s real numbers e1, e2, ..., e... sand the corresponding weights ζ1,ζ2,…,ζ s The following matrices must be positive semidefinite:

[0225]

[0226] This method selects the radial basis function (RBF) kernel as the kernel function, and its expression is:

[0227]

[0228] Where β is the kernel function parameter, and its value range is positive real number;

[0229] Support Vector Regression Prediction Accuracy and Penalty Parameter C punish Kernel function parameter β, insensitive loss function ε p Therefore, this method uses a genetic algorithm to optimize the three parameters of support vector regression to estimate the battery health status. The specific process is as follows:

[0230] Process 1): Initialize the genetic algorithm parameters and encode the support vector regression parameters;

[0231]

[0232]

[0233]

[0234] Among them, E c For real number C punish The mapped encoded value, E β E is the encoded value of the real number β mapping. εp For real number ε p The mapped encoded value, C max C min C punish The upper and lower bounds of the value of β max ,β min These are the upper and lower bounds for the value of β, respectively, and ε. p,max ,ε p,min ε p The upper and lower bounds of the value are given. The parameters of the genetic algorithm include the population size, the number of iterations, and the termination condition. In this method, the population size is set to 100, the number of iterations is set to 50, and the termination condition is that the maximum number of iterations of 50 is reached.

[0235] Step 2): Initialize the population and calculate fitness. The fitness value is the mean squared error (MSE) after K-cross validation, which measures the quality of the selected parameters.

[0236]

[0237] Among them, y true This represents the actual battery capacity. This is the predicted value of the battery capacity; n train The total number of aged data samples in the training set; the smaller the MSE value, the better the individual performance and the greater the probability of being selected.

[0238] Process 3): Determine if the maximum number of iterations has been reached. If the maximum number of iterations (50) has been reached, output the support vector regression parameters; otherwise, perform selection, crossover, and mutation operations. The selection operation uses a roulette wheel method, selecting the population with the higher fitness value to enter the next generation. The crossover operation uses a linear combination method, performing crossover on two chromosomes with a certain probability p (p∈[0,1]), i.e.:

[0239]

[0240] Among them, x1 and x2 are two chromosomes;

[0241] The mutation operation uses a uniform mutation method, as detailed below:

[0242] 1) For each gene position r, generate a random number rand r ,rand r The value ranges from 0 to 1;

[0243] 2) If rand r If the mutation rate is less than or equal to the mutation rate (mutationrate), then a mutation operation is performed, with the mutation rate set to 0.01.

[0244] 3) If a mutation operation is performed, a new random value, newgene, is generated. r newgene r Genes are randomly selected from a range of possible values. A gene represents a location on a chromosome, and its value range (i.e., the sample size) is 0 ≤ newgene. r ≤l;

[0245] 4) Change the gene value E in the original gene string r Replace with the new gene value newgene r ;

[0246] By following the steps above, each gene position is checked one by one in the order of the gene string until there are no unvisited positions in the entire gene string, thus completing the mutation operation.

[0247] Step 4): Deencode the parameters of the support vector regression that have been optimized in the above steps;

[0248] C punishnew =Cmin +E c ·(C max -C min (32)

[0249] β new =β min +E β ·(β max -β min (33)

[0250]

[0251] Among them, C punishnew ,β new ,ε pnew The optimal parameters for support vector regression obtained by the genetic algorithm are obtained through C. punishnew ,β new ,ε pnew These three optimal parameters are used to construct the support vector regression battery health status prediction model, and the final model is shown in equation (23). Equations (24) to (33) are used to optimize the parameters in the support vector regression battery health status prediction model, and equation (23) is used to further optimize the support vector regression model. The system provides a final predicted battery capacity result; based on this result, the battery's health status can be reflected, and battery capacity is directly proportional to battery health. A higher value indicates a healthier battery. The smaller the value, the lower the battery health.

[0252] To demonstrate the effectiveness of the above method, explained variance and coefficient of determination R-squared are used respectively. 2 The prediction accuracy of this method is verified by measuring the execution time t of the support vector regression battery health status prediction model.

[0253]

[0254]

[0255] t = t end -t start (37)

[0256] Among them, y true This represents the actual battery capacity. y is the predicted value of the support vector regression battery health state prediction model; y is the actual battery capacity. true The average value; Var represents the variance of a set of data, t end t represents the end time of the support vector regression battery health prediction model.start The start time of the support vector regression battery health state prediction model; the larger the explained variance (explained_variance) value, the closer the predicted battery capacity fluctuation is to the true value; the coefficient of determination score R0 2 The larger the value, the more accurate the numerical prediction; the shorter the execution time t, the higher the execution efficiency of the model.

[0257] To further verify the effectiveness of this invention, a specific example is used to verify the method proposed in this invention. The overall method and some algorithm flowcharts are shown below. Figures 1 to 5 As shown. This invention uses the publicly available battery dataset from the University of Maryland's Center for Advanced Life Cycle Engineering to centralize the CS2 series batteries for verification of the proposed method. Four batteries with a rated capacity of 1.1 A / h (denoted as CS35, CS36, CS37, and CS38) were selected. The positive electrode material was lithium cobalt oxide (LiCoO2). The experiment was conducted under the standard CC-CV protocol. The batteries were charged at a constant 0.5C current rate until the battery voltage reached 4.2V. Then, they were charged at a constant voltage, stopping when the current dropped to 20mA. The batteries were discharged at a constant 1C current rate until the voltage dropped to 2.7V.

[0258] First, aging features related to capacity degradation during battery aging in the Maryland battery dataset are extracted, such as constant current charging time, constant voltage charging time, battery capacity change from 3.8V to 3.4V, and battery internal resistance. These features are standardized before input, and then principal component analysis is used to determine the compression valence. After determining the compression valence, the t-distribution neighborhood embedding algorithm is used to compress these battery aging features to three dimensions. Then, due to the noise in the compressed three-dimensional feature data, density clustering is used to denoise the data, identifying the clustering structure using point sorting. After denoising, the compressed feature data is restored to the original high-dimensional data through inverse transformation. Finally, a support vector regression machine optimized by a genetic algorithm is used to predict the battery health status, and the results are compared with a support vector regression machine without genetic algorithm optimization to demonstrate the effectiveness of the method. Our verification results show that the battery health status prediction method based on feature compression proposed in this invention has an explained variance of 0.9998 and a coefficient of determination R-squared. 2 The variance explained by the genetic algorithm-support vector regression method is 0.97685, the coefficient of determination score is 0.6315, and the execution time t is 0.065s. In contrast, the variance explained by the method without the genetic algorithm is 0.9758, the coefficient of determination score is 0.6315, and the execution time is 0.209s. As can be seen from the above comparison, the accuracy and speed of the genetic algorithm-support vector regression method for predicting battery health status are significantly improved compared to the support vector regression method.

Claims

1. A battery health state prediction method based on feature compression, applicable to the prediction process of lithium-ion battery aging under any charge / discharge conditions, characterized in that, The specific steps are as follows: The first step is to extract battery aging feature data and perform feature compression. First, the test conditions of the battery dataset are analyzed using the CALCE battery dataset. Based on different charging and discharging processes, battery capacity degradation-related features are extracted, including constant current charging time, constant voltage charging time, battery internal resistance, and multi-dimensional battery aging feature data of capacity change from 3.8V to 3.4V. Since importing the multi-dimensional battery aging feature data is time-consuming, it is compressed before being input into the prediction model. This method uses principal component analysis to determine the compression valence. By mapping the multi-dimensional battery aging feature data to a new coordinate system, the feature with the largest variance is selected as the basis vector of the new coordinate system. Specifically, the principal component analysis process is as follows: Process 1): The multidimensional battery aging feature data is centered, that is, the value of each battery aging feature data is reduced by the average value of the corresponding battery aging feature, and the battery aging features do not affect each other. Let x be the m×n dimensional matrix of the original multidimensional battery aging feature data, where m represents the number of battery samples and n represents the number of battery aging features, and both m and n are positive integers. The standardized data matrix is ​​as follows: Where, x std The standardized battery aging feature data has the same dimensions as the original multidimensional battery aging feature data; μ is the mean of the corresponding battery aging feature sample; σ is the standard deviation of the battery aging feature sample. Step 2): Calculate the covariance matrix of the standardized battery aging characteristic data. The covariance matrix reflects the correlation between various battery aging characteristics, i.e.: Where C is an n×n dimensional covariance matrix; X is the standardized battery aging feature data matrix; and N is the number of feature samples. It is the mean vector, and T is the matrix transpose; Process 3): Perform eigenvalue decomposition on C. First, calculate the eigenvalues, then solve for the eigenvector corresponding to each eigenvalue, and finally standardize the eigenvectors to unit vectors. This yields the eigenvalues ​​and corresponding eigenvectors. The eigenvalues ​​represent the variance of the standardized battery aging feature data along the eigenvector direction, while the eigenvectors are the projections of the battery aging feature data onto each feature direction. This results in the diagonal matrix Λ, i.e.: C=VΛV T (3) Where V is the eigenvector matrix; Λ is a diagonal matrix, the elements of which are eigenvalues; and T is the transpose of the matrix. Step 4): Select the first s eigenvectors as principal components according to the magnitude of the eigenvalues, where s is the compressed dimension and s < n; Step 5): Combine the selected principal components into a projection matrix P, where the column vectors of this matrix are the selected principal components, i.e.: P=[ν1,ν2,…,ν s ] (4) Where, ν i It is the i-th selected feature vector, where i = 1, 2, ..., s; Process 6): Multiply X by P to convert the multidimensional battery aging feature data x into a low-dimensional matrix Y; Y = X * P (5) Through the principal component analysis processes 1)-6) above, a new feature space can be obtained, in which the features are the original features after recombination. These new features are the principal components; let λ1, λ2, ..., λ p The eigenvalues ​​of the principal components are arranged in descending order, where p represents the number of eigenvalues ​​and p < s, and s is the number of eigenvectors. A 95% threshold for the total variance is defined, meaning 95% of the total variance is retained. The cumulative variance contribution rate R is calculated. l Where l represents the cumulative variance contribution rate when retaining the first l principal components: Where l1 is a natural number from 1 to l, and l2 is a natural number from 1 to p, and l1 ≠ l2; Then, choose the smallest l such that R l If the threshold is greater than or equal to 95%, then this l is the required number of principal components, which is the compression valence of the most suitable high-dimensional battery aging feature data. Next, the high-dimensional battery aging feature data is compressed into low-dimensional form using the t-distribution neighborhood embedding algorithm. The specific steps are as follows: Process 1): Calculate the similarity between each high-dimensional data point. For a given high-dimensional dataset, the first step is to calculate the similarity between data points. A commonly used similarity metric is the Gaussian kernel, which measures the similarity between data points. A larger Gaussian kernel value indicates higher similarity. The probability distribution of Gaussian kernel similarity is as follows: Where, p ij Represents battery aging characteristic data point x i and battery aging characteristic data points x j The similarity probability between them, where i and j are indices of battery aging feature data points, used to uniquely identify different data points in the battery dataset. The values ​​of i and j are both between 1 and the number of battery samples m, and i ≠ j; σ i Is with x i The relevant variance parameter, small σ i A higher σ value will cause the similarity between data points to decrease more quickly, while a larger σ value will cause the similarity between data points to decrease more quickly. i The value σ makes the similarity decrease more slowly. i Take a positive real number, i.e., σ i >0; Step 2): Constructing conditional probability distributions using similarity measures This involves mapping the similarity of high-dimensional data to similarity in a low-dimensional space. In this low-dimensional space, a similarity transformation is defined using a t-distribution, making the similarity more sparse. The definition of the similarity transformation is: Where, q ij Represents the battery aging characteristic data point y in low-dimensional space. i and battery aging characteristic data points y j The similarity probability between them; i and j are the indices of the battery aging feature data points, and the values ​​of i and j are both between 1 and the number of battery samples m; Process 3): Minimize the Kullback-Leibler divergence By minimizing the Kullback-Leibler divergence, the similarity of battery aging feature data in low-dimensional space is made as close as possible to the similarity in high-dimensional space. The Kullback-Leibler divergence is defined as follows: Wherein, KL(P′||Q) represents the difference in similarity between aging feature data in high-dimensional space and low-dimensional space; P′ represents the probability distribution corresponding to battery aging feature data points in high-dimensional space; and Q represents the probability distribution corresponding to battery aging feature data points in low-dimensional space. Process 4): Gradient Descent Optimization The gradient descent optimization method is used to minimize the Kullback-Leibler divergence, adjusting the positions of points in the low-dimensional space to make them more similar. The gradient descent update formula is as follows: Among them, y (t) η is the low-dimensional matrix after mapping the high-order data points, t is the number of iterations, and η is the learning rate, which ranges from 0.1 to 0.

001. It is the gradient of the Kullback-Leibler divergence with respect to the data point y; Process 5): Iterative optimization To determine if the optimization has converged, the algorithm is considered to have converged when the Kullback-Leibler divergence is sufficiently small and close to zero. If the optimization has converged, the aging feature data points in the low-dimensional space reach stable positions, and the loop ends. Stable positions mean that their coordinates no longer change significantly after dimensionality reduction, and their positions tend to stabilize and no longer change significantly after many iterations. If the optimization has not converged, the optimization of minimizing the Kullback-Leibler divergence and gradient descent is re-executed. Through the t-distribution neighborhood embedding algorithm, processes 1)-5) continuously adjust the positions of high-dimensional battery aging feature data points in the low-dimensional space. Once the algorithm converges, each high-dimensional battery aging feature data point x D In low-dimensional space, there is always a final coordinate x. d This coordinate is the low-dimensional representation of the high-dimensional battery aging characteristic data: x D ∈R D (11) x d ∈R d (12) Where D is the dimension of the high-dimensional space, d is the dimension of the low-dimensional space, and R... D Defined as a high-dimensional spatial representation of D dimensions generated by the standard normal distribution, where D > 3, R d Defined as a low-dimensional space of dimension d generated by the standard normal distribution, where 2≤d≤3; By using coordinates x in a low-dimensional representation d We construct a compressed dataset X′ and create a visualization plot, which is a scatter plot, to visualize the compressed data and observe its distribution and structure in a low-dimensional space. The second step is to denoise the compressed feature data and reconstruct the data. Because the original feature data contains noise, the compressed data also contains noise. Therefore, noise reduction is performed on the data before estimating the battery SOH. This method uses a density clustering algorithm that identifies cluster structures by point sorting. The specific process is as follows: Process 1): Given a database containing M battery aging feature data, select an unvisited battery aging feature data point as the current battery aging feature data point and set the neighborhood radius ε and the minimum number of points MinPts; Process 2): Calculate the core distance For the current battery aging feature data point, calculate the distance from each battery aging feature data point in its ε-neighborhood to the current battery aging feature data point, and sort them in ascending order. The distance from the MinPts-1th battery aging feature data point is taken as the core distance of the current battery aging feature data point. The core distance is defined as: Where cd(x) represents the core distance of battery aging feature data point x, which is a value calculated for each data point, representing the distance between that point and its nearest neighbor; d(x,y) represents the distance between battery aging feature data point x and battery aging feature data point y; N ε (x) indicates that the core is the battery aging characteristic data point x; N represents ε (x) is the i-th point closest to the battery aging characteristic data point x; Process 3): Update reachability distance and reachable objects For each neighboring point of the current battery aging feature data point, calculate its distance to the current battery aging feature data point and use it as the reachable distance. If the reachable distance of a neighboring point is less than or equal to its core distance, mark it as a reachable object. The reachable distance is expressed as: Where rd(y,x) represents the reachability distance between battery aging characteristic data point x and battery aging characteristic data y; Process 4): Find the next unvisited core point Continuously select the next unvisited core point x s As the current point, proceed through step 3) of this process to calculate the core distance to that point and update the reachable distances and reachable objects, until the core point x... s radius ε s neighborhood The iteration terminates when there are no unvisited data points: Among them, P p It is a set of low-dimensional feature data points, visited(x) p ) represents data point x p The status flag indicating whether the data point has been accessed is usually initialized to False; False indicates that the data point has not been accessed, and True indicates that the data point has been accessed. Process 5): Construct an ordered list Construct an ordered list of Reachability Plots based on reachability distances, such that each battery aging feature data point x in the list... p All include their reachability distance RD(x) pi and reachable object N ε (x pi ); Reachability Plot=[(RD(x p1 ),N ε (x p1 )),(RD(x p2 ),N ε (x p2 )),…,(RD(x pn ),N ε (x pn ))](16) Step 6): Extracting clusters Based on the characteristics of the ordered list Reachability Plot, clusters are extracted by setting the neighborhood radius value ε. The distribution of data points is observed using the visualization created in the first step. Then, outliers are identified by comparing the reachability distance of the data points calculated through step 3) with the core distance calculated through step 2). Specifically, if the reachability distance of a data point is significantly greater than its core distance, then the data point is considered an outlier. In summary, by using the density clustering algorithm steps 1)-6) above to identify clustering structures through point sorting, outliers in the compressed dataset X′ are identified. By removing the values ​​of these outliers from the low-dimensional dataset, a dimensionality-reduced dataset X″ with outliers removed is obtained. Then, an inverse transform is used to restore the battery aging feature data in the dimensionality-reduced and outlier-removed dataset X″ to its original dimensionality. The inverse transform involves multiplying the dimensionality-reduced data points by the feature vector matrix V from the first step, and then adding the mean vector from the first step. This allows the data to be restored to its original space, specifically: Where X″ is the dataset after dimensionality reduction and outlier removal, and X″′ is the restored dataset. The restored dataset X″′ is used for the next step of battery health state estimation. The third step is to predict battery health status based on genetic algorithm-support vector regression. First, the battery aging feature dataset X″′ after the second step of compression and noise reduction is divided into a 70% test set and a 30% training set, and these battery aging feature data x″′ are standardized. The standardization process is as follows: Then, a support vector regression model is introduced for prediction. This support vector regression model predicts by mapping the data x″′ to a high-dimensional feature space through a non-linear mapping φ(x″′), and then performing linear regression in this space, i.e.: f(x)=w T φ(x″′)+b (19) Where w is the weight vector, b is the bias value, and T is the transpose of the matrix; The optimization problem is described as follows: e p =max(0,∣y true -f(x)∣-τ) (22) We can obtain w and b from the above formula, where C punish For the penalty parameter; y p ξ is the observed value; i , ε is a slack variable; l is the number of samples; p For insensitive loss functions, ε p The introduction of improves the robustness of the estimation; y true τ is the true value of the sample; f(x) is the predicted value of the support vector regression model; τ is a pre-defined non-negative number, ranging from 0.01 to 1; To solve the above problem, the duality principle is used to transform it into a convex quadratic programming problem, and the Lagrange equation is established, namely: Where k represents the current k-th data point, λ k , η k , Non-negative Lagrange multipliers, i.e. w is the weight vector, b is the bias value; ξ k , The variables are slack variables; the Lagrangian function is relative to the variables w, b, ξ. k , The derivative is 0; Finally, by importing the Lagrange operator and optimization constraints, the regression function, i.e., the predicted value of the support vector regression battery health state prediction model, is obtained. for: Where K(x) k Let K(x, x) be the kernel function. Only when the kernel function satisfies the Mercer condition can we obtain the nonlinear computation corresponding to the low-dimensional space. The Mercer condition is stated as: if K(x, x) satisfies the Mercer condition... k Let f(x) be a real-valued function, and for any s real numbers e1, e2, ..., e... s and the corresponding weights ζ1,ζ2,…,ζ s The following matrices must be positive semidefinite: This method selects the radial basis function (RBF) kernel as the kernel function, and its expression is: Where β is the kernel function parameter, and its value range is positive real number; Support Vector Regression Prediction Accuracy and Penalty Parameter C punish Kernel function parameter β, insensitive loss function ε p Therefore, this method uses a genetic algorithm to optimize the three parameters of support vector regression to estimate the battery health status. The specific process is as follows: Process 1): Initialize the genetic algorithm parameters and encode the support vector regression parameters; Among them, E c For real number C punish The mapped encoded value, E β The encoded value of the real number β. For real number ε p The mapped encoded value, C max C min C punish The upper and lower bounds of the value of β max ,β min These are the upper and lower bounds for the value of β, respectively, and ε. p,max ,ε p,min ε p The upper and lower bounds of the value are given. The parameters of the genetic algorithm include the population size, the number of iterations, and the termination condition. In this method, the population size is set to 100, the number of iterations is set to 50, and the termination condition is that the maximum number of iterations of 50 is reached. Step 2): Initialize the population and calculate fitness. The fitness value is the mean squared error (MSE) after K-cross validation, which measures the quality of the selected parameters. Among them, y true This represents the actual battery capacity. This is the predicted value of the battery capacity; n train The total number of aged data samples in the training set; the smaller the MSE value, the better the individual performance and the greater the probability of being selected. Process 3): Determine if the maximum number of iterations has been reached. If the maximum number of iterations (50) has been reached, output the support vector regression parameters; otherwise, perform selection, crossover, and mutation operations. The selection operation uses a roulette wheel method, selecting the population with the higher fitness value to enter the next generation. The crossover operation uses a linear combination method, performing crossover on two chromosomes with a certain probability p (p∈[0,1]), i.e.: Among them, x1 and x2 are two chromosomes; The mutation operation uses a uniform mutation method, as detailed below: 1) For each gene position r, generate a random number rand r ,rand r The value ranges from 0 to 1; 2) If rand r If the mutation rate is less than or equal to the mutation rate (mutationrate), then a mutation operation is performed, with the mutation rate set to 0.

01. 3) If a mutation operation is performed, a new random value, newgene, is generated. r newgene r Genes are randomly selected from a range of possible values. A gene represents a location on a chromosome, and its value range (i.e., the sample size) is 0 ≤ newgene. r ≤l; 4) Change the gene value E in the original gene string r Replace with the new gene value newgene r ; By following the steps above, each gene position is checked one by one in the order of the gene string until there are no unvisited positions in the entire gene string, thus completing the mutation operation. Step 4): Deencode the parameters of the support vector regression that have been optimized in the above steps; C punishnew =C min +E c ·(C max -C min ) (32) β new =β min +E β ·(β max -β min ) (33) Among them, C punishnew ,β new ,ε pnew The optimal parameters for support vector regression obtained by the genetic algorithm are obtained through C. punishnew ,β new ,ε pnew These three optimal parameters are used to construct the support vector regression battery health status prediction model, and the final model is shown in equation (23). Equations (24) to (33) are used to optimize the parameters in the support vector regression battery health status prediction model, and equation (23) is used to further optimize the support vector regression model. The system provides a final predicted battery capacity result; based on this result, the battery's health status can be reflected, and battery capacity is directly proportional to battery health. A higher value indicates a healthier battery. The smaller the value, the lower the battery health. To demonstrate the effectiveness of the above method, explained variance and coefficient of determination R-squared are used respectively. 2 The prediction accuracy of this method is verified by measuring the execution time t of the support vector regression battery health status prediction model. t=t end -t start (37) Among them, y true This represents the actual battery capacity. The predicted values ​​are from the support vector regression battery health status prediction model. This is the actual battery capacity value y. true The average value; Var represents the variance of a set of data, t end t represents the end time of the support vector regression battery health prediction model. start The start time of the support vector regression battery health state prediction model; the larger the explained variance (explained_variance) value, the closer the predicted battery capacity fluctuation is to the true value; the coefficient of determination score R0 2 The larger the value, the more accurate the numerical prediction; the shorter the execution time t, the higher the execution efficiency of the model.

Citation Information

Patent Citations

  • Lithium ion battery health state estimation method

    CN114580262A

  • Lithium ion battery health state and residual service life estimation method

    CN115951254A