A battery life evaluation method, device, storage medium and equipment
Through machine learning methods, combined with battery charge and discharge cycle data, vehicle driving data and environmental factor data, feature extraction and dimensionality reduction models are used to solve the problem of low accuracy of existing battery life assessment and achieve a more accurate battery life assessment. .
Patent Information
- Application Number
- CN202410853017.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-06-28
AI Technical Summary
Existing battery life evaluation methods have low accuracy and are difficult to cope with the complexity of battery performance changes with the use environment and conditions, resulting in low accuracy of evaluation results.
Using machine learning methods, by obtaining battery charge and discharge cycle data, vehicle driving data and environmental factor data, and using feature extraction models, feature dimensionality reduction models and classifiers, multiple factors are combined to evaluate battery life and improve the accuracy of the evaluation results. and stability. Specific steps include: obtaining the characteristic data of the target car, extracting battery performance characteristics through the feature extraction model, using the feature dimensionality reduction model for dimensionality reduction processing, and finally determining the battery endurance level through the classifier.
The accuracy and stability of battery life assessment are improved, battery performance changes can be predicted more accurately, and the assessment of battery life and safety is enhanced.
Smart Images

Figure CN118393368B
Abstract
Description
Technical Field
[0001] The present application relates to the field of battery technology, and in particular to a battery life evaluation method, device, storage medium and equipment. Background Art
[0002] With the changes in the global energy structure and the enhancement of environmental protection awareness, new energy vehicles have developed rapidly. As the core component of new energy vehicles, the performance of battery technology directly determines the vehicle's endurance, safety and economy. At present, the accurate evaluation of battery endurance has become the focus of attention in the new energy vehicle industry. Battery endurance not only affects the user's driving experience, but also affects the safety and service life of the battery. Therefore, the development of an efficient and accurate battery endurance evaluation method has important practical significance.
[0003] Current battery life evaluation methods mainly rely on simple physical models and experimental data. However, this approach is difficult to cope with the complexity of battery performance changing with the use environment and conditions. For example, the battery aging process and performance degradation are nonlinear and variable, and this evaluation method is difficult to accurately predict these changes, resulting in low accuracy of the evaluation results. Summary of the invention
[0004] The purpose of the present application is to provide a battery life evaluation method, device, storage medium and equipment, aiming to solve the problem of low accuracy of evaluation results in the battery life evaluation method in the related art.
[0005] In a first aspect, the present application provides a battery endurance assessment method, comprising: obtaining feature data of a target vehicle, and inputting the feature data into a feature extraction model to obtain battery performance characteristics; the feature data includes battery charge and discharge cycle data, vehicle driving data, and environmental factor data; performing dimensionality reduction processing on the battery performance characteristics through a feature dimensionality reduction model to obtain a target feature representation; classifying the target feature representation based on a classifier, and determining the endurance level of the battery of the target vehicle according to the classification result.
[0006] In the above implementation process, the characteristic data of the target vehicle is obtained, including battery charge and discharge cycle data, vehicle driving data and environmental factor data, and these characteristic data are input into the feature extraction model to obtain the key performance characteristics of the battery, and then the key performance characteristics are reduced in dimension by the feature dimension reduction model to obtain a lower-dimensional target feature representation to improve the overall data processing efficiency, and finally the target feature representation is classified by the classifier to obtain the endurance level of the target vehicle. In this way, the battery endurance of the target vehicle is evaluated by integrating multiple factors through the machine learning model, thereby improving the accuracy and stability of the evaluation results of the battery endurance.
[0007] Furthermore, in some examples, the feature extraction model, the feature dimensionality reduction model and the classifier are trained based on a training data set; the training data set includes original data and synthetic samples; the original data includes historical feature data and annotated endurance level of the target vehicle; and the synthetic samples are generated based on the original data.
[0008] In the above implementation process, an optional source of training data set for training the model is provided, and data expansion is performed based on the original data, which is conducive to improving the generalization ability and accuracy of the model.
[0009] Furthermore, in some examples, the synthetic samples are generated by processing the original data through an improved SMOTE algorithm; the improved SMOTE algorithm optimizes the synthetic samples generated based on the SMOTE algorithm through an alternating direction multiplier method.
[0010] In the above implementation process, the SMOTE algorithm based on the alternating direction multiplier method is used to generate samples to improve the calculation efficiency and sample quality.
[0011] Further, in some examples, the synthetic samples optimized by the alternating direction multiplier method of the improved SMOTE algorithm are expressed based on the following formula:
[0012]
[0013] in, is the optimized synthetic sample; is the synthetic sample before optimization; is the objective function of the optimization problem transformed by the alternating direction multiplier method; the objective function is expressed based on the following formula:
[0014]
[0015] in, is the number of synthetic samples; is an original sample set obtained based on the original data; is the first samples; For the The average similarity between the synthetic samples and the samples in the original sample set; is the regularization parameter; For the The synthetic samples are compared with the original samples. The square of the Euclidean distance between samples.
[0016] In the above implementation process, a specific method for optimizing synthetic samples generated based on the SMOTE algorithm by using an alternating direction multiplier method is provided.
[0017] Furthermore, in some examples, the feature extraction model uses a proximal gradient descent method to update model parameters; each layer of the feature extraction model uses a nonlinear activation function to process data, and adjusts the nonlinear adjustment factor in the nonlinear activation function according to the output of the network and the current loss value.
[0018] In the above implementation process, during the training of the feature extraction model, the proximal gradient descent method is applied to update the model parameters. In the case of non-convex optimization, the algorithm is allowed to effectively jump out of the local optimal solution and introduce nonlinear adjustment factors. In this way, the stability and generalization ability of the trained feature extraction model in complex data environments are enhanced.
[0019] Furthermore, in some examples, the feature dimensionality reduction model uses an autoencoder neural network based on constrained projection to reduce the dimensionality of the input features and outputs a feature representation of the target dimension; the loss function of the autoencoder neural network based on constrained projection includes a reconstruction error and a regularization term; the regularization term uses the square of the L2 norm.
[0020] In the above implementation process, an autoencoder neural network based on constrained projection is used to perform feature dimensionality reduction. By introducing a constrained projection mechanism, the quality of low-dimensional feature representation after processing by the autoencoder neural network is improved.
[0021] Furthermore, in some examples, the classifier is an extreme learning machine model; the extreme learning machine model optimizes the output layer weights through automatic differentiation variational inference.
[0022] In the above implementation process, the extreme learning machine model uses automatic differentiation variational inference to optimize the output layer weights to ensure that the model can accurately learn relevant information about battery life from the hidden layer features, thereby improving the classifier's ability to process large amounts of data and further improving the accuracy of the classifier in evaluating battery life.
[0023] In the second aspect, the present application provides a battery endurance assessment device, including: an acquisition module, used to acquire feature data of a target vehicle, and input the feature data into a feature extraction model to obtain battery performance characteristics; the feature data includes battery charge and discharge cycle data, vehicle driving data and environmental factor data; a dimensionality reduction module, used to perform dimensionality reduction processing on the battery performance characteristics through a feature dimensionality reduction model to obtain a target feature representation; a classification module, used to classify the target feature representation based on a classifier, and determine the endurance level of the battery of the target vehicle according to the classification result.
[0024] In a third aspect, the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in any one of the first aspects when executing the computer program.
[0025] In a fourth aspect, the present application provides a computer-readable storage medium, on which instructions are stored. When the instructions are executed on a computer, the computer executes the method as described in any one of the first aspects.
[0026] In a fifth aspect, the present application provides a computer program product, which, when running on a computer, enables the computer to execute the method as described in any one of the first aspects.
[0027] Other features and advantages disclosed in the present application will be described in the following description, or some features and advantages can be inferred or determined without doubt from the description, or can be learned by implementing the above-mentioned technology disclosed in the present application.
[0028] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0030] Figure 1 A flowchart of a battery life evaluation method provided in an embodiment of the present application;
[0031] Figure 2 A schematic diagram of a workflow for evaluating the battery life of a new energy vehicle based on machine learning provided in an embodiment of the present application;
[0032] Figure 3 A block diagram of a battery life evaluation device provided in an embodiment of the present application;
[0033] Figure 4 A structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0035] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0036] As described in the background art, the battery life evaluation method in the related art has the problem of low accuracy of the evaluation result. Based on this, the embodiment of the present application provides a battery life evaluation solution to solve the above problem.
[0037] Next, the embodiments of the present application are introduced:
[0038] like Figure 1 As shown, Figure 1 This is a flow chart of a battery life evaluation method provided by an embodiment of the present application. The method can be applied to a cloud server, which can refer to the cloud service backend of an automobile company. The vehicle side can upload data related to the power battery to the cloud server through a mobile network, and accurately evaluate the current battery life of the vehicle with the help of the powerful computing power and storage space of the cloud server. Of course, when the vehicle side has sufficient computing resources and storage space, the method can also be applied to the vehicle side.
[0039] The method comprises:
[0040] Step 101, acquiring characteristic data of a target vehicle, and inputting the characteristic data into a feature extraction model to obtain battery performance characteristics; the characteristic data includes battery charge and discharge cycle data, vehicle driving data, and environmental factor data;
[0041] In this embodiment, machine learning technology is used to realize the evaluation of battery life. By collecting characteristic data of the target vehicle, namely battery charge and discharge cycle data, vehicle driving data and environmental factor data, the machine learning model in this embodiment, including feature extraction model, feature dimensionality reduction model and classifier, can comprehensively evaluate the battery life level of the target vehicle by combining multiple factors, thereby improving the accuracy and stability of the evaluation.
[0042] Specifically, the battery charge and discharge cycle data mentioned in this step may include battery charge time, battery discharge time, battery current charge state, battery charge and discharge times, etc.; vehicle driving data may include total driving mileage, average driving speed, vehicle load, energy consumption mode, etc.; environmental factor data may include ambient temperature, road conditions, etc. These characteristic data may be collected by the sensor system mounted on the target vehicle.
[0043] In some embodiments, the feature extraction model, feature dimensionality reduction model and classifier mentioned above can be obtained by training based on a training data set; the training data set includes original data and synthetic samples; the original data includes the historical feature data of the target vehicle and the marked endurance level; the synthetic samples are generated based on the original data. That is to say, the training data set used for training the model comes from the sensor collection records of the new energy vehicle, and the collected data can be annotated by manual annotation, and the annotated category is the endurance level, which can be divided into three categories of high, medium and low, or can be subdivided into different categories such as less than 200 kilometers, 200-300 kilometers, 300-400 kilometers and more than 400 kilometers. The annotated historical data is the original data. Considering that insufficient training samples can easily lead to poor generalization ability of the model and affect the accuracy of the model, the scheme of this embodiment performs data expansion based on the original data to generate synthetic samples, and the synthetic samples and the original data are combined into a training data set to train the feature extraction model, feature dimensionality reduction model and classifier, thereby improving the generalization ability and accuracy of the model.
[0044] When expanding data, data enhancement technology can be used to generate samples. The data enhancement technology here can be an oversampling algorithm, such as random oversampling, SMOTE (Synthetic Minority Oversampling Technique) algorithm, ADASYN (Adaptive Synthetic Sampling) algorithm, etc. Among them, the SMOTE algorithm solves the class imbalance problem by generating synthetic samples of minority classes, which can effectively increase the number of minority class samples.
[0045] Further, in some embodiments, the aforementioned synthetic samples may be generated by processing the original data through an improved SMOTE algorithm; the improved SMOTE algorithm optimizes the synthetic samples generated based on the SMOTE algorithm through an alternating direction multiplier method. That is, the traditional SMOTE algorithm may be improved, and the alternating direction multiplier method (ADMM) may be introduced to optimize the generated synthetic samples to improve the quality and diversity of the synthetic samples. ADMM is a computational framework for solving separable convex optimization problems. In ADMM, the original optimization problem is transformed into a constrained optimization problem by introducing an augmented Lagrangian function, and the original problem is decomposed into two sub-problems for alternating solutions by using the idea of alternating optimization. At the same time, the constraints are satisfied by updating the multiplier, thereby gradually approaching the optimal solution. In the present embodiment, since the original data includes multidimensional features, the SMOTE algorithm based on the alternating direction multiplier method is used to generate samples, and the data expansion problem can be transformed into an optimization problem, and the alternating direction multiplier method is applied for decomposition and solution to achieve higher computational efficiency and sample quality.
[0046] Further, in some embodiments, the synthetic samples optimized by the alternating direction multiplier method of the improved SMOTE algorithm are expressed based on the following formula:
[0047]
[0048] in, is the optimized synthetic sample; is the synthetic sample before optimization; is the objective function of the optimization problem transformed by the alternating direction multiplier method; the objective function is expressed based on the following formula:
[0049]
[0050] in, is the number of synthetic samples; is an original sample set obtained based on the original data; is the first samples; For the The average similarity between the synthetic samples and the samples in the original sample set; is the regularization parameter; For the The synthetic samples are compared with the original samples. The square of the Euclidean distance between samples.
[0051] That is to say, when generating samples based on the improved SMOTE algorithm, the original sample set is generated based on the original data. , each sample Contains multiple attributes, that is, the original sample set can be obtained by converting the corresponding original data into feature vectors through one-hot encoding and word2vec technology. The synthesized sample set is For each synthetic sample, calculate the average similarity between it and the samples in the original sample set, and get , and when performing the alternating direction multiplier method optimization, the objective function of the optimization problem can be defined as , in the objective function is a regularization parameter used to control the closeness between the synthetic sample and the original sample. Optionally, , and then update the synthetic samples by alternating direction multiplication method , you can get the optimized synthetic sample .
[0052] The feature extraction model mentioned in this step can be a neural network model for extracting battery performance characteristics from input feature data, where the battery performance characteristics can be considered as the key performance characteristics of the battery. In traditional neural networks, the gradient descent method is usually used to optimize the loss function, but in the case of non-convex optimization, the algorithm may fall into a local optimal solution. Therefore, in some embodiments, the feature extraction model can use the proximal gradient descent method to update the model parameters; each layer of the feature extraction model uses a nonlinear activation function to process data, and adjusts the nonlinear adjustment factor in the nonlinear activation function according to the output of the network and the current loss value.
[0053] Proximal Gradient Descent is a variant of the gradient descent method, which is mainly used to solve optimization problems with non-differentiable objective functions. In the training process of the feature extraction model, the proximal gradient descent method is applied to update the model parameters. Considering the characteristics of non-convex optimization, the algorithm is allowed to effectively jump out of the local optimal solution and find a more global optimal solution. In addition, a nonlinear adjustment factor is introduced into the feature extraction model to enhance the stability and generalization ability of the algorithm in complex data environments. In implementation, each layer of the model uses a nonlinear activation function to process data to extract battery performance characteristics. The nonlinear activation function here can be expressed as , which can be a ReLU function. The adjustment method of this nonlinear activation function can be expressed as , where is the adjusted nonlinear activation function, is the nonlinear adjustment factor, is a nonlinear function, optionally, , here , , are the coefficients of the polynomial. Among them, the nonlinear adjustment factor Adjustments can be made based on the network output and the current loss value to make the network more adaptable to the characteristics of the data. In this way, the trained feature extraction model will have stronger stability and generalization ability in complex data environments.
[0054] Step 102: Perform dimensionality reduction processing on the battery performance characteristics through a feature dimensionality reduction model to obtain a target feature representation;
[0055] In this embodiment, considering that the battery performance characteristics output by the feature extraction model have a high dimensionality, which may lead to low training efficiency of the classifier and increase the risk of overfitting, the battery performance characteristics are reduced in dimensionality through a feature dimensionality reduction model to obtain a low-dimensional target feature representation, so as to improve the overall data processing efficiency.
[0056] In some embodiments, the feature dimension reduction model mentioned in this step can use an autoencoder neural network based on constrained projection to reduce the dimension of the input features and output the feature representation of the target dimension; the loss function of the autoencoder neural network based on constrained projection includes reconstruction error and regularization term; the regularization term uses the square of the L2 norm. In other words, an autoencoder neural network based on constrained projection can be used to perform feature dimension reduction. An autoencoder neural network, also known as an autoencoder (AE), is an artificial neural network that can learn efficient representation of input data through unsupervised learning. The autoencoder neural network includes an encoder and a decoder, the encoder maps the input data to a low-dimensional latent space representation, and the decoder maps the representation of the latent space back to the original input space. Different from the traditional autoencoder neural network, the autoencoder neural network of the embodiment scheme introduces a constrained projection mechanism, which refers to imposing certain or certain specific constraints when performing projection. When implemented, the loss function of the autoencoder neural network includes a reconstruction error and a regularization term, and the regularization term is set to use the square of the L2 norm for constrained projection, thereby improving the quality of the low-dimensional feature representation after processing by the autoencoder neural network.
[0057] Step 103: classify the target feature representation based on a classifier, and determine the endurance level of the battery of the target vehicle according to the classification result.
[0058] In this embodiment, the reduced-dimensional data is input into a classifier, which can learn the relevant information about battery life from the input features to perform classification, and the classification result output by the classifier represents the battery life of the target vehicle. In this way, with the help of deep learning technology, complex patterns and relationships can be learned from a large amount of data, thereby achieving an accurate assessment of battery life.
[0059] Specifically, in some embodiments, the classifier mentioned in this step can be an extreme learning machine model; the extreme learning machine model optimizes the output layer weights through automatic differential variational inference. Extreme Learning Machines (ELM) is a feedforward neural network, which is characterized by the weights of the hidden layer nodes being randomly or artificially given and not requiring updating, and the learning process only calculates the output layer weights. Automatic Differentiation Variational Inference (ADVI) is an efficient algorithm based on mean field theory, which initializes the variational posterior distribution to a spherical Gaussian distribution, and the posteriors of different parameters are independent of each other, and then fits to the true posteriors through training data. In this embodiment, the extreme learning machine model uses automatic differential variational inference to optimize the output layer weights to ensure that the model can accurately learn the relevant information about battery life from the hidden layer features. In this way, the weight selection of the extreme learning machine is optimized to improve the accuracy of prediction and the ability to process large amounts of data.
[0060] In addition, in the present embodiment, the feature extraction model, the feature dimensionality reduction model and the classifier can be trained separately, wherein the loss function of the feature extraction model can obtain the predicted value by calculating the preset Softmax function when measuring the difference between the predicted value and the true value. Similarly, during the iteration process of the feature dimensionality reduction model, the loss function can also be calculated by the preset Softmax function.
[0061] In the embodiment of the present application, characteristic data of the target vehicle is obtained, including battery charge and discharge cycle data, vehicle driving data and environmental factor data, and these characteristic data are input into the feature extraction model to obtain the key performance characteristics of the battery, and then the key performance characteristics are reduced in dimension by the feature dimension reduction model to obtain a lower-dimensional target feature representation to improve the overall data processing efficiency, and finally the target feature representation is classified by the classifier to obtain the endurance level of the target vehicle. In this way, the battery endurance of the target vehicle is evaluated by integrating multiple factors through the machine learning model, thereby improving the accuracy and stability of the evaluation results of the battery endurance.
[0062] In order to explain the solution of this application in more detail, a specific embodiment is introduced below:
[0063] This embodiment provides a new energy vehicle battery life assessment solution based on machine learning. The workflow of this embodiment is as follows Figure 2 As shown, it includes the following main steps:
[0064] S10, data collection and annotation;
[0065] S20, data expansion;
[0066] S30, feature extraction model training;
[0067] S40, feature dimension reduction model training;
[0068] S50, classifier training;
[0069] S60,car battery life assessment.
[0070] The specific implementation process of each major step is as follows:
[0071] In S10, the training data set used to train the model comes from the sensor collection records of new energy vehicles. These data include battery charge and discharge cycle data, vehicle driving data, environmental factor data, etc. The specific data format is:
[0072] : Battery charging time (hours); : Battery discharge time (hours); : total mileage (km); : average driving speed (km / h); : Ambient temperature (Celsius); : Current battery charging status (%); : Battery health status (%); : Battery charge and discharge times; : Vehicle load (kg); : Energy consumption mode (for example: Economy, Standard, Sport).
[0073] The data is automatically collected through the vehicle's built-in sensor system, and the collected data is manually labeled. The labeled categories are the endurance levels, which are high, medium and low.
[0074] In S20, a SMOTE algorithm based on the alternating direction multiplier method is used to generate samples, and the random similarity comparison theory is combined to perform data expansion. The traditional SMOTE algorithm solves the problem of class imbalance by generating synthetic samples of a few categories. However, in complex problems such as the evaluation of the battery life of new energy vehicles, simple oversampling may not be able to fully capture the multidimensional nature of the data. The improved SMOTE algorithm used in this embodiment optimizes the generated synthetic samples through random similarity comparison and the alternating direction multiplier method. First, the task of generating synthetic samples is decomposed by the alternating direction multiplier method, and then the random similarity comparison theory is applied to adjust the synthetic samples to better reflect the distribution of real data, which not only retains the key features of the original data, but also improves the quality and diversity of the synthetic data.
[0075] In this step, the input is the original new energy vehicle battery life data set, which contains multi-dimensional features; the output is the expanded data set, including the original data and the synthesized new samples. The specific process of this step includes:
[0076] S201, initialization: select samples of a minority category, where the samples of the minority category are samples of the category to be expanded, and generate preliminary synthetic samples based on the feature distribution of the samples of the category;
[0077] Specifically, let the original sample set be , each sample Contains multiple attributes The synthesized sample is ,in, The generation method is:
[0078]
[0079] in, is a randomly generated value between 0 and 1, and optionally, =0.3; From the original sample set A randomly selected sample from
[0080] S202, random similarity comparison: by randomly selecting samples and comparing their features, the similarity between the synthesized samples and the original samples is evaluated, and adjustments are made based on the similarity to ensure the quality of the synthesized samples;
[0081] Specifically, the similarity evaluation method adopts the evaluation method of similarity measurement, that is, for the synthetic sample , calculate its difference with the original sample set The average similarity of samples in , which can be expressed as:
[0082]
[0083] in, It is a sample and similarity between; optionally, in calculating the synthetic sample With the original sample When measuring the similarity between , cosine similarity is used as the metric, and the calculation method can be expressed as:
[0084]
[0085] in, is the number of sample features, and The samples are and In the The value of a feature;
[0086] S203, alternating direction multiplier method optimization: transform the data expansion problem into an optimization problem, and apply the alternating direction multiplier method to decompose and solve it, so as to achieve higher computational efficiency and sample quality;
[0087] Specifically, when performing the alternating direction multiplier method optimization, the objective function of the optimization problem is first defined as for:
[0088]
[0089] in, is a regularization parameter used to control how close the synthetic sample is to the original sample. Optionally, ;
[0090] Optimize by alternating direction multiplication method and update the synthetic samples , optimized synthetic sample It can be expressed as:
[0091]
[0092] in, For synthetic samples With the original sample The square of the Euclidean distance between them is calculated as:
[0093]
[0094] in, is the number of sample features, and The samples are and In the The value of a feature;
[0095] S204, loop iteration and enhancement: Based on the feedback mechanism, the generation of synthetic samples is looped and enhanced to gradually improve the diversity and representativeness of the samples;
[0096] Specifically, the iterative update method can be expressed as:
[0097]
[0098] in, Indicates the number of iterations; is the learning rate, and optionally, ;
[0099] S205, Adaptive Adjustment: Dynamically adjust the data expansion strategy, including the number of samples generated, feature weights, etc., based on the characteristics of the data set and the training feedback of the model;
[0100] Specifically, if the model's performance on the validation set improves, then increase to enhance the regularization effect; if the model performance decreases, reduce The value of reduces the intensity of regularization; the validation set can be obtained by dividing from the training data set;
[0101] S206, fitness function evaluation: using the fitness function to evaluate the effectiveness of the synthesized samples so that the generated samples have a positive impact on the model training;
[0102] Specifically, define the fitness function for:
[0103]
[0104] in, and Both are weight parameters, used to balance the difference between synthetic samples and original samples; is the Euclidean distance between the synthetic sample and the original sample, and its calculation formula is as follows:
[0105]
[0106] S207, asynchronous strategy application: applying asynchronous strategy in the data expansion process to improve the execution efficiency of the algorithm;
[0107] Specifically, in each round of data augmentation, for different synthetic samples , adopting the asynchronous update strategy, that is, for better performance, that is For samples with higher performance, the number of iterations can be reduced; for samples with poor performance, the number of iterations can be increased to improve their quality.
[0108] In S30, the expanded data is input into the feature extraction algorithm to train the feature extraction model. This embodiment proposes a neural network algorithm based on the proximal gradient nonlinear optimization algorithm, which uses the proximal gradient descent method combined with the nonlinear optimization strategy to extract the key performance characteristics of new energy vehicle batteries. In traditional neural networks, the gradient descent method is used to optimize the loss function, but in the case of non-convex optimization, this method may fall into a local optimal solution. To solve this problem, this embodiment introduces a nonlinear adjustment factor to enhance the stability and generalization ability of the algorithm in complex data environments;
[0109] In this step, the input is the expanded new energy vehicle battery data set; the output is the feature vector data set after feature extraction. For a single piece of data, it is usually high-dimensional data, and its dimension depends on the number of neurons in the last layer of the feature extraction neural network. Optionally, the dimension is 100. The specific process of this step includes:
[0110] S301, data preprocessing: standardizing the numerical features in the expanded new energy vehicle battery data to ensure the consistency of the input data;
[0111] Specifically, assume that the expanded battery dataset is ,in Indicates The feature vector of the samples, is the total number of samples, the standardization process can be expressed as:
[0112]
[0113] in, and are the mean and standard deviation of the feature set, respectively;
[0114] S302, network initialization: Initialize the weight and bias parameters of the neural network, and set the network depth and width to adapt to the complexity of the battery data;
[0115] Specifically, suppose the neural network has Layer, The weights and biases of the layer network are respectively and Indicates that the initialization process can be expressed by the following formula:
[0116]
[0117]
[0118] in, The mean is 0 and the variance is The normal distribution of .
[0119] In one embodiment, the number of layers of the neural network is set to 3, the initial weight of each layer Randomly draw from a standard normal distribution with an initial bias Set to 0;
[0120] S303, forward propagation: input data passes through the neural network, and each layer of the network uses a nonlinear activation function to process the data to extract battery features;
[0121] Specifically, Indicates The activation output of the layer, the forward propagation can be expressed as:
[0122]
[0123] in, is the ReLU nonlinear activation function;
[0124] S304, loss calculation and back propagation: Calculate the difference between the predicted value and the actual value, use the loss function to measure this difference, and then calculate the gradient of the loss relative to each parameter through the back propagation algorithm;
[0125] Specifically, For the The true label of the sample, the loss function It can be expressed as:
[0126]
[0127] in, is the mean square error loss term;
[0128] The gradient of the loss with respect to each parameter is calculated by backpropagation and can be expressed as:
[0129]
[0130] Substituting the loss function, it can be expressed as:
[0131]
[0132] in, Is the network output Weight The partial derivative of
[0133] S305, proximal gradient descent: applying the proximal gradient descent algorithm to update parameters, which takes into account the characteristics of non-convex optimization, allowing the algorithm to effectively jump out of the local optimal solution and find a more global optimal solution;
[0134] Specifically, the method of updating parameters can be expressed as:
[0135]
[0136] in, is the learning rate; is the weight of the proximal term, and optionally, ; is a proximal function, which is used to deal with constrained optimization problems. Assuming that the L1 norm constraint is processed, the proximal function can be expressed as:
[0137]
[0138] in, return The symbol, Used to implement soft thresholding of the L1 norm;
[0139] S306, nonlinear activation adjustment: adjusting the nonlinear adjustment factor in the activation function according to the network output and the current loss value, so that the network is more adapted to the characteristics of the data;
[0140] Specifically, suppose another activation function It is a nonlinear function, and the calculation method can be expressed as:
[0141]
[0142] in, and are the coefficients of the polynomial, and optionally, the polynomial coefficients are set to 0.1, 0.01, and 0.001 respectively; therefore, the nonlinear activation function The adjustment method can be expressed as:
[0143]
[0144] in, is the adjusted nonlinear activation function; is a nonlinear adjustment factor;
[0145] S307, Adaptive learning rate adjustment: Based on the loss changes during training, dynamically adjust the learning rate to speed up convergence and avoid overfitting;
[0146] Specifically, the adaptive adjustment method of the learning rate can be expressed as:
[0147]
[0148] in, is the adjusted learning rate; It is an exponential function with the natural constant e as the base; Represents the rate of change of the loss function over time; is the adjustment coefficient, which can be calculated as:
[0149]
[0150] in, is a tuning factor that controls the sensitivity of learning rate changes, and optionally, ; and are the loss values of the current and previous steps respectively;
[0151] S308, iterative optimization: Repeat S302-S307 until the preset number of iterations is met. As the number of iterations increases, the value of the loss function will gradually decrease, indicating that the model's fit to the new energy vehicle battery data is improving; in an experimental verification process, the initial loss function value is around 0.5, and after 1,000 iterations, the value drops below 0.05, effectively improving the accuracy of subsequent model predictions.
[0152] In S40, the data after feature extraction is input into the feature dimensionality reduction model for training. This embodiment adopts an autoencoder neural network algorithm based on constrained projection to reduce the dimensionality of data features. The autoencoder neural network consists of two parts: an encoder and a decoder. The encoder is responsible for mapping high-dimensional data to a low-dimensional space, and the decoder attempts to reconstruct the original data from these low-dimensional representations. In this process, the low-dimensional representation learned by the network is a compressed representation of the most important features of the data. Different from traditional autoencoders, the autoencoder neural network of this embodiment introduces a constrained projection mechanism, that is, in the encoding process, not only the accuracy of data reconstruction is considered, but also additional regularization term constraints are introduced to improve the quality of low-dimensional representation and prevent overfitting. When processing complex and high-dimensional new energy vehicle battery data, low-dimensional features can better capture the key information of battery performance, while reducing the demand for computing resources and improving the efficiency of model training and evaluation;
[0153] In this step, the input is the high-dimensional data features of the new energy vehicle battery output by the feature extraction model; the output is the low-dimensional feature representation after processing by the autoencoder neural network. The specific process of this step includes:
[0154] S401, network initialization: initialize the weights and biases of the encoder and decoder;
[0155] Specifically, let the weights of the encoder and decoder be and , the encoder and decoder biases are and , then the initialization method can be expressed as:
[0156]
[0157]
[0158]
[0159]
[0160] in, and is the variance at initialization; optionally, the number of layers of the encoder and decoder are both set to 2, the number of neurons in each layer of the encoder is set to 128, and the number of neurons in each layer of the decoder is set to 64;
[0161] S402, forward propagation: the input high-dimensional battery performance data features are mapped to a low-dimensional space through the encoder, and then the decoder attempts to reconstruct the original data;
[0162] Specifically, the battery data features The calculation process after the encoder and decoder can be expressed as:
[0163]
[0164]
[0165] in, It is a low-dimensional feature representation; It is to reconstruct the data; and All belong to activation functions;
[0166] S403, loss function calculation: the loss function includes two parts, one is the reconstruction error, and the other is the regularization term, which is used to implement the constrained projection;
[0167] Specifically, the loss function Including reconstruction error and regularization term, it can be expressed as:
[0168]
[0169] in, is the regularization coefficient, and optionally, ; is a regularization term, which can be the square of the L2 norm for constrained projection, and its calculation method can be expressed as:
[0170]
[0171] in, represents the square of L2 norm; The calculation method can be expressed as:
[0172]
[0173] in, and Represent the elements in the encoder and decoder weight matrices respectively;
[0174] S404, Back Propagation and Optimization: Use the back propagation algorithm to calculate the gradient of the loss function for each parameter, and update these parameters to minimize the loss. In this process, not only the reconstruction error is optimized, but also the constraints are optimized to improve the quality of the low-dimensional representation;
[0175] Specifically, the method of calculating the gradient and updating the weights and biases using the gradient descent method can be expressed as:
[0176]
[0177]
[0178]
[0179]
[0180] Substituting the loss function, it can be expressed as:
[0181]
[0182] in, is the encoded low-dimensional representation Partial derivatives with respect to the encoder weights;
[0183] Similarly, the loss function is used to calculate the decoder weights The gradient of can be expressed as:
[0184]
[0185] in, Reconstructing data Partial derivatives with respect to the decoder weights;
[0186] For the encoder and decoder biases, the gradient calculation of the loss function is similar and can be expressed as:
[0187]
[0188]
[0189] Among them, the sum operation traverses all data samples;
[0190] The way to update parameters can be expressed as:
[0191]
[0192]
[0193]
[0194]
[0195] in, is the learning rate, and optionally, ;
[0196] Substituting into the gradient calculation formula, the encoder weight parameter update formula can be expressed as:
[0197]
[0198] Similarly, the decoder weight parameter update formula can be further expressed as:
[0199]
[0200] Among them, in the update formula, for the partial derivative and The calculation method can be expressed as:
[0201]
[0202]
[0203] in, and are the derivatives of the encoder and decoder activation functions respectively; and, if the activation function is the ReLU function, its derivative It can be expressed as:
[0204]
[0205] in, is the input of the activation function;
[0206] S405, iterative training: S402-S404 are repeatedly executed until a convergence condition is met, and the convergence condition is that a preset number of iterations is reached.
[0207] In S50, the dimension-reduced data is input into a classifier to train the classifier. This embodiment adopts an extreme learning machine algorithm based on automatic differentiation variational inference as a classifier for evaluating the battery life of new energy vehicles. The automatic differentiation technology is used to adaptively adjust network parameters, and the weight selection ability in the traditional extreme learning machine algorithm is optimized. At the same time, through variational inference, the algorithm can more effectively handle uncertainty and complexity, improve the prediction accuracy of the battery life of new energy vehicles, and can quickly process a large amount of data while maintaining sensitivity and accuracy to complex battery performance data.
[0208] In this step, the input is the reduced-dimensional data H and the label data Y. The reduced-dimensional data H is a matrix, each row represents a sample, and each column represents a feature. Optionally, the dimension of H is ,in represents the number of samples, represents the feature dimension, and the label data Y is the actual label data corresponding to H. Y is a vector containing the true label of each sample. The output is the trained output layer weight matrix, which is used for subsequent classification prediction of new samples. The specific process of this step includes:
[0209] S501, initialization: randomly initialize the weights and biases from the input layer to the hidden layer;
[0210] Specifically, the weights from the input layer to the hidden layer and bias The initialization method can be expressed as:
[0211]
[0212]
[0213] in, is the variance of the weight initialization; optionally, the number of neurons in the hidden layer of the extreme learning machine Set to 100;
[0214] S502, forward propagation: calculate the output of the hidden layer;
[0215] Specifically, there is no need to adjust the weights, the output of the hidden layer The calculation method can be expressed as:
[0216]
[0217] in, are input features, is the activation function of the hidden layer;
[0218] S503, Variational Inference: Use automatic differentiation techniques to optimize the output layer weights to ensure that the model can accurately learn relevant information about battery life from the hidden layer features;
[0219] Specifically, the output layer weights The optimization method through variational inference can be expressed as:
[0220]
[0221] in, is the target output; is the loss function of variational inference, which can be expressed as:
[0222]
[0223] in, is a regularization term. Optionally, the regularization term is an L2 norm. The specific calculation method is:
[0224]
[0225] in, represents the weight of the output layer elements;
[0226] The term is the prediction error and can be expressed as:
[0227]
[0228] in, is the sample size, and They are The actual output and hidden layer output of samples;
[0229] Use automatic differentiation techniques to calculate The gradient of , the calculation method can be expressed as:
[0230]
[0231] in, is the gradient of the updated output layer weight; is the learning rate, and optionally, ; Gradient of the output layer weights before update Calculated by automatic differentiation technology, it can be expressed as:
[0232]
[0233] in, is the regularization parameter, and optionally, 01;
[0234] S504, model training: Use the labeled battery data to train the model and adjust the output layer weights to minimize the prediction error.
[0235] In S60, the trained model is used to process the new sample to evaluate the endurance of the new energy vehicle battery. When the new sample is processed, the output result of the classifier is an endurance level, which indicates the endurance of the new energy vehicle battery.
[0236] This embodiment scheme, by comprehensively collecting multiple data types and processing them with an improved machine learning algorithm, can accurately evaluate the battery life of new energy vehicles, thereby achieving reliable prediction and long-term maintenance of battery performance.
[0237] Corresponding to the embodiments of the aforementioned method, the present application also provides embodiments of a battery life evaluation device and a terminal using the same:
[0238] like Figure 3 As shown, Figure 3 is a block diagram of a battery life evaluation device provided in an embodiment of the present application, the device comprising:
[0239] An acquisition module 31 is used to acquire characteristic data of a target vehicle and input the characteristic data into a characteristic extraction model to obtain battery performance characteristics; the characteristic data includes battery charge and discharge cycle data, vehicle driving data and environmental factor data;
[0240] A dimension reduction module 32, used to perform dimension reduction processing on the battery performance characteristics through a feature dimension reduction model to obtain a target feature representation;
[0241] The classification module 33 is used to classify the target feature representation based on a classifier, and determine the endurance level of the battery of the target vehicle according to the classification result.
[0242] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.
[0243] This application also provides an electronic device, see Figure 4 , Figure 4A block diagram of an electronic device provided in an embodiment of the present application. The electronic device may include a processor 410, a communication interface 420, a memory 430, and at least one communication bus 440. The communication bus 440 is used to realize direct connection and communication between these components. The communication interface 420 of the electronic device in the embodiment of the present application is used to communicate signaling or data with other node devices. The processor 410 may be an integrated circuit chip with signal processing capabilities.
[0244] The processor 410 mentioned above can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor 410 can also be any conventional processor, etc.
[0245] The memory 430 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc. The memory 430 stores computer-readable instructions. When the computer-readable instructions are executed by the processor 410, the electronic device may execute the above-mentioned Figure 1 The method embodiment involves various steps.
[0246] Optionally, the electronic device may further include a storage controller and an input / output unit.
[0247] The memory 430, storage controller, processor 410, peripheral interface, input and output unit components are directly or indirectly electrically connected to each other to achieve data transmission or interaction. For example, these components can be electrically connected to each other via one or more communication buses 440. The processor 410 is used to execute executable modules stored in the memory 430, such as software function modules or computer programs included in the electronic device.
[0248] The input and output unit is used to provide users with the task creation and to create a start optional time period or preset execution time for the task to realize the interaction between the user and the server. The input and output unit can be, but is not limited to, a mouse and a keyboard.
[0249] Understandably, Figure 4 The structure shown is for illustration only, and the electronic device may also include Figure 4 More or fewer components as shown, or with Figure 4 Different configurations shown. Figure 4 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0250] An embodiment of the present application further provides a storage medium having instructions stored thereon. When the instructions are run on a computer, the computer program is executed by a processor to implement the method described in the method embodiment. To avoid repetition, the method will not be described here.
[0251] The present application also provides a computer program product, which, when executed on a computer, enables the computer to execute the method described in the method embodiment.
[0252] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0253] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0254] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.
[0255] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0256] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0257] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
Claims
1. A battery life evaluation method, It is characterized in that include: Acquire characteristic data of a target vehicle, and input the characteristic data into a feature extraction model to obtain battery performance characteristics; the characteristic data includes battery charge and discharge cycle data, vehicle driving data, and environmental factor data; Performing dimensionality reduction processing on the battery performance characteristics through a feature dimensionality reduction model to obtain a target feature representation; Classifying the target feature representation based on a classifier, and determining the endurance level of the battery of the target vehicle according to the classification result; The feature extraction model, the feature dimension reduction model and the classifier are obtained by training based on a training data set; the training data set includes original data and synthetic samples; the original data includes historical feature data and annotated endurance level of the target vehicle; the synthetic samples are generated based on the original data; The synthetic samples are generated by processing the original data through an improved SMOTE algorithm; the improved SMOTE algorithm optimizes the synthetic samples generated based on the SMOTE algorithm through an alternating direction multiplier method; The synthetic samples optimized by the alternating direction multiplier method of the improved SMOTE algorithm are expressed based on the following formula: in, is the optimized synthetic sample; is the synthetic sample before optimization; is the objective function of the optimization problem transformed by the alternating direction multiplier method; the objective function is expressed based on the following formula: in, is the number of synthetic samples; is an original sample set obtained based on the original data; is the first samples; For the The average similarity between the synthetic samples and the samples in the original sample set; is the regularization parameter; For the The synthetic sample is compared with the original sample set The square of the Euclidean distance between samples.
2. The method according to claim 1, It is characterized in that The feature extraction model uses the proximal gradient descent method to update the model parameters; each layer of the feature extraction model uses a nonlinear activation function to process data, and adjusts the nonlinear adjustment factor in the nonlinear activation function according to the output of the network and the current loss value.
3. The method according to claim 1, It is characterized in that The feature dimensionality reduction model uses an autoencoder neural network based on constrained projection to reduce the dimensionality of input features and outputs a feature representation of the target dimension; the loss function of the autoencoder neural network based on constrained projection includes a reconstruction error and a regularization term; the regularization term uses the square of the L2 norm.
4. The method according to claim 1, It is characterized in that The classifier is an extreme learning machine model; the extreme learning machine model optimizes the output layer weights through automatic differentiation variational inference.
5. A battery life evaluation device, It is characterized in that include: An acquisition module is used to acquire characteristic data of a target vehicle and input the characteristic data into a characteristic extraction model to obtain battery performance characteristics; the characteristic data includes battery charge and discharge cycle data, vehicle driving data and environmental factor data; A dimension reduction module, used to perform dimension reduction processing on the battery performance characteristics through a feature dimension reduction model to obtain a target feature representation; A classification module, used for classifying the target feature representation based on a classifier, and determining the endurance level of the battery of the target vehicle according to the classification result; The feature extraction model, the feature dimension reduction model and the classifier are obtained by training based on a training data set; the training data set includes original data and synthetic samples; the original data includes historical feature data and annotated endurance level of the target vehicle; the synthetic samples are generated based on the original data; The synthetic samples are generated by processing the original data through an improved SMOTE algorithm; the improved SMOTE algorithm optimizes the synthetic samples generated based on the SMOTE algorithm through an alternating direction multiplier method; The synthetic samples optimized by the alternating direction multiplier method of the improved SMOTE algorithm are expressed based on the following formula: in, is the optimized synthetic sample; is the synthetic sample before optimization; is the objective function of the optimization problem transformed by the alternating direction multiplier method; the objective function is expressed based on the following formula: in, is the number of synthetic samples; is an original sample set obtained based on the original data; is the first samples; For the The average similarity between the synthetic samples and the samples in the original sample set; is the regularization parameter; For the The synthetic sample is compared with the original sample set The square of the Euclidean distance between samples.
6. A computer-readable storage medium, It is characterized in that A computer program is stored thereon, and when the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
7. An electronic device, It is characterized in that The method comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 4 when executing the computer program.
Citation Information
Patent Citations
OFDM peak-to-average ratio suppression method based on alternating direction multiplier method
CN108173800A
Electric vehicle endurance mileage prediction method and device based on deep learning and medium
CN110091751A
Working condition prediction method and device of automobile battery, electronic equipment and storage medium
CN115270481A
Method and device for realizing intrusion prevention processing for data management platform, processor and computer readable storage medium thereof
CN118018272A
Brain network construction and feature extraction method fusing multi-dimensional information in small sample scene
CN118038231A
