Battery health degree analysis method and device
The battery parameters are processed through the autoencoder model, and the reconstruction error is calculated to obtain the battery health, which solves the accuracy and adaptability problems of battery health management in the existing technology, realizes the real-time and accuracy of battery health monitoring, and prolongs the battery life and reduced environmental pollution.
Patent Information
- Application Number
- CN202410833137.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-08
AI Technical Summary
Existing battery health management methods may not be able to accurately predict battery health status in different types of batteries or new usage environments, and data-driven methods require a large amount of high-quality and accurately labeled data, making it difficult to make accurate predictions when behaviors are unknown.
Using the autoencoder model, data is cleaned and converted by obtaining multiple battery parameters, input into the pre-trained autoencoder, and the reconstruction error is calculated to obtain the battery health. The online self-learning characteristics of the autoencoder are used to adapt to the battery performance. Dynamic changes.
It achieves real-time and accurate monitoring of battery health, enhances the comprehensiveness and in-depth assessment, extends battery life, and reduces battery replacement frequency and environmental pollution.
Smart Images

Figure CN118746773A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of battery health monitoring, and in particular to a battery health analysis method and device. Background Art
[0002] With the development of electric vehicles and battery-powered devices, battery health management becomes critical to ensure battery performance and safety.
[0003] Existing battery health management methods are mainly based on model prediction and data-driven analysis. Model prediction methods rely on chemical and physical models of batteries to estimate the battery's health status, but these models often require precise parameters, which are often complex and costly to obtain. In addition, the applicability of the model is limited by the battery type and usage conditions, so this method may not accurately predict the battery's health status in different types of batteries or new usage environments.
[0004] Data-driven analysis methods use machine learning techniques to predict the health of batteries by analyzing historical data. The advantages of this approach are that it can handle large amounts of data, is highly adaptable, and can update the health status of the battery in real time. However, data-driven methods require a large amount of high-quality and accurately labeled data, which is often challenging to obtain in practical applications. In addition, due to the lack of understanding of the physical processes of the battery, purely data-driven methods may not be able to make accurate predictions when the battery undergoes unknown behavior. Summary of the invention
[0005] The purpose of the present invention is to provide a battery health analysis method and device to achieve real-time and accurate monitoring of automobile batteries.
[0006] In order to solve the above technical problems, the present invention provides a technical solution: a battery health analysis method, comprising:
[0007] Acquire multiple battery parameters and perform data processing on the battery parameters to obtain initial battery parameters;
[0008] Input the initial battery parameters into the pre-trained model to obtain the reconstructed battery parameters;
[0009] Obtaining a reconstruction error according to the initial battery parameters and the reconstructed battery parameters;
[0010] Get the battery health based on the reconstruction error.
[0011] According to the above scheme, the battery parameters include: single cell voltage, single cell temperature, total voltage, total current, state of charge, number of charging times, and number of battery cycles;
[0012] The method for data processing of battery parameters includes data cleaning and data conversion;
[0013] Data cleaning includes:
[0014] Replace the abnormal value in the single cell voltage with the median value in the single cell voltage; the abnormal value in the single cell voltage is a value exceeding a certain single cell voltage range;
[0015] Replace the abnormal value of the single cell temperature with the median of the single cell temperature; the abnormal value of the single cell temperature is a value exceeding a certain single cell temperature range;
[0016] Replace the outliers in the total voltage with the median of the total voltage; the outliers in the total voltage are values that exceed a certain total voltage range;
[0017] The total current is smoothed by the moving average method, and the outliers in the total current are replaced by the median of the total current; the outliers in the total current are the values that exceed a certain total current range;
[0018] Deleting abnormal values in the state of charge, or replacing abnormal values in the state of charge with the median of the state of charge; abnormal values in the state of charge are values exceeding the range of 0 to 100%;
[0019] Delete the negative values in the number of charging times and battery cycle times;
[0020] Data conversion includes:
[0021] The charge and discharge rate is obtained based on the ratio of total current to nominal capacity;
[0022] Obtain the temperature difference according to the difference between the maximum value and the minimum value of the temperature of the single battery;
[0023] Obtaining a voltage difference according to the difference between the maximum value and the minimum value of the single cell voltage;
[0024] Normalize the single cell voltage, total voltage, total current, charge and discharge rate, number of charges, and number of battery cycles;
[0025] Standardize the temperature of single cells;
[0026] The initial battery parameters include single cell voltage, total voltage, single cell temperature, total current, state of charge, number of charging times, number of battery cycles, charge and discharge rate, temperature difference, and voltage difference obtained after data processing.
[0027] According to the above scheme, the model is an autoencoder, including an encoder and a decoder, and the encoder and the decoder are both provided with three layers.
[0028] According to the above scheme, the method for initializing the weights and biases of each layer in the encoder and / or decoder includes:
[0029] The weights are randomly sampled from a set uniform distribution;
[0030] Set the initial value of the bias to zero.
[0031] According to the above scheme, the reconstruction error is the mean square error between the initial battery parameters and the reconstructed battery parameters.
[0032] According to the above scheme, the training method of the model includes:
[0033] Using the back-propagation algorithm, the gradient of the loss function with respect to the weights and biases of each layer in the model is calculated; the loss function is the mean square error between the initial battery parameters and the reconstructed battery parameters;
[0034] Use the gradient descent algorithm to update the weights and biases of each layer in the model based on the set learning rate;
[0035] When the set requirements are met, stop the model training.
[0036] According to the above scheme, the method for setting the learning rate includes:
[0037] Use grid search and cross validation to select the learning rate;
[0038] As the number of model training rounds increases, the learning rate is gradually reduced.
[0039] According to the above scheme, the setting requirements include one or more of the following conditions:
[0040] The model training reaches the set number of epochs;
[0041] The model's performance on the set validation dataset no longer improves;
[0042] The value of the model's loss function is below a certain threshold.
[0043] According to the above scheme, the method for obtaining the battery health according to the reconstruction error includes:
[0044] The minimum reconstruction error and the maximum reconstruction error that occur during the model training process are taken as the reconstruction error range;
[0045] Based on the set conversion relationship, the reconstruction error range is mapped to the set battery health range;
[0046] Based on the set conversion relationship, the reconstruction error is converted into battery health.
[0047] The present invention also provides a battery health analysis device, which is used in the battery health analysis method described above.
[0048] The beneficial effects of the present invention are: comprehensive evaluation of battery health based on multiple battery parameters enhances the comprehensiveness and depth of battery health assessment. The autoencoder is used as a model for detecting battery health, and the autoencoder's ability to self-learn online is utilized to enable the method to adapt to dynamic changes in battery performance. By applying this method, the battery health can be accurately monitored, which helps to extend battery life, reduce the frequency of battery replacement, and thus reduce the pollution of waste batteries to the environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 is a flow chart of a battery health analysis method according to a first embodiment of the present invention;
[0050] Figure 2 It is a schematic diagram of the structure of a battery health warning system according to a fourth embodiment of the present invention. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings of the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0052] Embodiment 1:
[0053] See also Figure 1 This embodiment provides a battery health analysis method, which includes the following steps:
[0054] S1. Acquire multiple battery parameters and perform data processing on the battery parameters to obtain initial battery parameters.
[0055] Specifically, the battery parameters are: single cell voltage V c , Single cell temperature T c , total voltage V t , total current I t , nuclear power status S, charging times N c 、N number of battery cycles r .
[0056] The data processing includes data cleaning and data conversion, wherein data cleaning specifically includes:
[0057] 1) Replace the abnormal value in the single cell voltage with the median value in the single cell voltage; the abnormal value in the single cell voltage is a value exceeding a certain single cell voltage range.
[0058] 2) The abnormal value of the single cell temperature is replaced by the median of the single cell temperature; the abnormal value of the single cell temperature is a value exceeding a certain single cell temperature range.
[0059] 3) Replace the outliers in the total voltage with the median of the total voltage; the outliers in the total voltage are values that exceed a certain total voltage range.
[0060] 4) The total current is smoothed by the moving average method, and the outliers in the total current are replaced by the median of the total current; the outliers in the total current are values that exceed a certain total current range.
[0061] 5) Deleting or correcting abnormal values in the state of charge; abnormal values in the state of charge are values that exceed the range of 0 to 100%.
[0062] 6) Delete abnormal values (such as negative values) in the number of charging times and battery cycle times.
[0063] The data conversion is as follows:
[0064] 1) Obtain the charge and discharge rate based on the ratio of total current to nominal capacity.
[0065]
[0066] In the above formula, C r is the charge and discharge rate, and C is the nominal capacity of the battery.
[0067] 2) Obtain the temperature difference based on the difference between the maximum and minimum values of the single cell temperature.
[0068] ΔT=T cmax -T cmin
[0069] In the above formula, ΔT is the temperature difference, T cmax , T cmin are the maximum and minimum temperatures of the single cells, respectively.
[0070] 3) Obtain the voltage difference according to the difference between the maximum value and the minimum value of the single battery voltage.
[0071] ΔV=V cmax -V cmin
[0072] In the above formula, ΔV is the voltage difference, V cmax 、V cmin They are the maximum and minimum values of the single cell voltage respectively.
[0073] 4) Normalize the single cell voltage, total voltage, total current, charge and discharge rate, number of charges, and number of battery cycles.
[0074] Taking the voltage of a single cell as an example, the normalization process is as follows:
[0075]
[0076] 5) Standardize the temperature of the single battery.
[0077]
[0078] In the above formula, is the average temperature of the single battery, is the standard deviation of the single cell temperature.
[0079] It should be understood that data processing of battery parameters has the following effects:
[0080] a) Unification of feature scale:
[0081] In this embodiment, it is necessary to process various parameters, such as voltage, current, temperature, etc., and the numerical ranges of these parameters may vary greatly. If normalization or standardization is not performed, the model may be mainly affected by features with larger numerical ranges, while ignoring features with smaller numerical ranges, which will lead to inaccurate model training.
[0082] b) Accelerate model convergence:
[0083] Normalization and standardization can limit the numerical range of input features to a smaller range, such as [0, 1] or [-1, 1], or change the mean of the feature to 0 and the variance to 1. This can help optimization algorithms such as gradient descent find the optimal solution faster and accelerate the convergence process of the model.
[0084] c) Avoid gradient vanishing or gradient exploding:
[0085] In deep neural networks, if the scale of the input features is too large or too small, it may cause the weight update to be too large or too small, leading to the problem of gradient explosion or gradient disappearance. Standardization and normalization can help alleviate this problem.
[0086] d) Improve model performance:
[0087] Normalized and standardized data helps the model better understand the structure of the data, thereby better learning the inherent laws of the data and improving the performance of the model.
[0088] e) Condition number improvement:
[0089] Normalization and standardization can improve the condition number of the matrix, which is beneficial to numerical stability and model training.
[0090] S2. Input the initial battery parameters into the pre-trained model to obtain the reconstructed battery parameters.
[0091] In a preferred embodiment of the present invention, the model is selected as an autoencoder, which includes an encoder and a decoder. The autoencoder has the following characteristics:
[0092] 1) Unsupervised learning: Since battery health has no specific labels, the autoencoder can learn the intrinsic structure and patterns of battery data in an unsupervised manner.
[0093] 2) Anomaly Detection: Autoencoders are suitable for learning and reconstructing normal data, while for abnormal data (e.g., batteries with degraded health), the reconstruction error increases, thus effectively detecting anomalies.
[0094] 3) Dimensionality reduction: Autoencoders can compress high-dimensional input data into low-dimensional codes, which helps to deeply understand the intrinsic structure of the data.
[0095] 4) Adaptation: The autoencoder can continuously update the model through online learning to adapt to changes in battery performance.
[0096] The encoder is a neural network whose function is to encode the input initial battery parameter x into a low-dimensional code z. Generally, each layer in the encoder reduces the dimension of the input data until the desired encoding dimension is reached. In this embodiment, the encoder has three fully connected layers, and its structure can be expressed as follows:
[0097] z=f3(f2(f1(x; W1, b1); W2, b2); W3, b3)
[0098] In the above formula, f1, f2, and f3 are activation functions (optionally ReLU functions) used to add nonlinear features to the network. W1, W2, and W3 are the weight matrices of each layer in the encoder, and b1, b2, and b3 are the bias vectors of each layer in the encoder.
[0099] It should be understood that the principles and considerations for designing the number of encoder layers include:
[0100] Problem complexity; more complex problems may require deeper networks and more units.
[0101] Data dimensionality: The number of units in the input layer usually matches the number of features. In this example, there are 10 battery-related parameters, so the input layer has 10 units.
[0102] Overfitting and underfitting; an overly complex model (too many layers or too many units) may lead to overfitting, especially when the amount of data is small; an overly simple model may lead to underfitting.
[0103] Computational resources; deeper networks and more units increase computational complexity and training time.
[0104] In this embodiment, the encoder design needs to consider:
[0105] The dimensionality and complexity of the data; the input data has 10 features, which is a medium-sized data size relative to many other applications. When the dimension of the features is high or the data structure is complex, more layers and more units may be needed to capture the intrinsic structure of the data. But in this example, you can start with a relatively shallow network.
[0106] Purpose of the model; The main goal of this invention is the unsupervised assessment of battery health. We do not expect to learn very complex representations from battery data. Instead, we hope that the encoding obtained is concise and can effectively reflect the health of the battery.
[0107] Prevent overfitting; for small or medium-sized data sets, an overly complex network structure may lead to overfitting. To avoid this problem, it may be necessary to use regularization techniques or simplify the network structure.
[0108] Computational resources and time: Deep networks require more computing resources and time to train. If hardware resources are limited, you may want to prioritize a shallower structure.
[0109] Based on the above factors, this embodiment first selects a three-layer encoder, whose structure is:
[0110] First layer: 10 (original number of features) → 8 units
[0111] Second floor: 8→5 units
[0112] Third layer: (coding layer): 5→3 units
[0113] The first layer slightly reduces the dimension, allowing the network to begin learning how to compress information. The second layer further reduces the dimension, allowing the network to learn higher-level features. The third layer obtains a 3-dimensional encoding, which should contain the core information of the battery health status.
[0114] The updating method of the coding layer is as follows: first, test the number of layers and the number of units corresponding to each layer as described above, and then gradually increase or decrease the number of layers and units, observe and compare the performance of the model under each structure (including reconstruction error, running time, and computing resources), and finally determine the optimal network structure.
[0115] For the weights and biases of each layer in the model, this embodiment adopts the Xavier initialization strategy. Since the embodiment adopts a deep autoencoder model, selecting Xavier initialization can ensure that the signal transmission between different layers is smoother, which helps to reach the optimization state of the model more quickly. Moreover, since the model requires a lot of training and optimization, it is very beneficial to select an initialization strategy that can speed up the training process.
[0116] Xavier initialization is as follows:
[0117] The weights are randomly sampled from the following uniform distribution:
[0118]
[0119] In the above formula, n j is the number of input units of a layer, that is, the number of rows of the weight matrix of this layer, n j+1 is the number of output units of a layer, that is, the number of columns of the weight matrix of this layer.
[0120] For example, if the input dimension of a fully connected layer is 10 and the output dimension is 8, then n j =10,n j+1 =8, then each element of the weight matrix w of the fully connected layer will be initialized as follows:
[0121]
[0122] As for the bias b, its initial value is 0 in this embodiment.
[0123] The role of the decoder is to reconstruct the original input x' based on the low-dimensional code z produced by the encoder. In short, it tries to extract enough information from the low-dimensional code to reconstruct the original data. The structure of the decoder is usually symmetrical to that of the encoder.
[0124] Based on the three-layer encoder proposed above, a symmetric decoder can be designed as follows:
[0125] First floor: 3 units → 5 units
[0126] Second floor: 5 units → 8 units
[0127] The third layer (output layer): 8 units → 10 units (original data dimension)
[0128] Assuming that each layer of the decoder uses an activation function g, the weight matrices are W1′, W2′, W3′, and the bias vectors are b1′, b2′, b3′, the mathematical form of the decoder is as follows:
[0129] x′=g3(g2(g1(z; W1′, b1′); W2′, b2′); W3′, b3′)
[0130] where x′ is the output reconstructed by the decoder.
[0131] The reconstruction process of the decoder is as follows:
[0132] Taking the model of this embodiment as an example, if the encoder obtains a three-dimensional code z = [z1, z2, z3], then the decoder obtains the reconstructed original data through the three-dimensional code.
[0133] x′=[V c ′,V t ′,T c ′,I t ′,S′,N c ′,N r ′,C r ′, ΔT′, ΔV′].
[0134] The first layer maps the three-dimensional code to the five-dimensional space according to the corresponding weights and biases. Assuming that the first layer uses the ReLU activation function, we have:
[0135] z (1) =ReLU(W1′·z+b1′)
[0136] The second layer maps the output of the first layer to eight-dimensional space, then:
[0137] z (2) =ReLU(W2′·z (1) +b2′)
[0138] The third layer maps the output of the second layer back to the dimension of the original data (ten dimensions) using the activation function g3:
[0139] x′=g3(W3′·z (2) +b3′)
[0140] Generally speaking, the activation function here is related to the range and nature of the original data. For example, if the original data is all positive, ReLU or Sigmoid can be used.
[0141] In the model optimization in this embodiment, the back propagation algorithm is first used to calculate the gradient of the loss function with respect to the weight and bias of the model. The specific process of the back propagation algorithm is as follows:
[0142] 1) Define the loss function of the model as:
[0143]
[0144] In the above formula, N is the dimension of the model input data (10 in this embodiment).
[0145] 2) Calculate the gradient of the loss function with respect to the output layer. For MSE loss, we have:
[0146]
[0147] 3) Calculate the gradient of the loss function with respect to the weights and biases of the decoder. Assuming that the output x′ of the decoder is obtained by the activation function f and the weighted input z, we have:
[0148] x′=f(z)
[0149] z=w′h+b
[0150] In the above formula, h is the output from the hidden layer of the encoder.
[0151] Using the chain rule we can get:
[0152]
[0153] 4) Calculate the gradient of the loss function with respect to the weights and biases of the encoder according to the methods in 1) to 3). Further apply the chain rule and calculate backwards layer by layer until the input layer is reached.
[0154] After backpropagation, the weights and biases are updated using the gradient descent algorithm:
[0155]
[0156] In the above formula, η is the learning rate. The learning rate η is an important parameter in gradient descent, which controls the step size along the gradient descent of the loss function. A learning rate that is too large may cause the algorithm to oscillate around the minimum value or even deviate from the minimum value; while a learning rate that is too small will cause the algorithm to converge very slowly. Since the goal of the present invention is to conduct a comprehensive evaluation of the battery health based on battery performance parameters, and it is hoped that the model can be automatically optimized, upgraded and updated, therefore, in the initial stage of model establishment and optimization, a grid search combined with cross-validation can be used to find a suitable initial learning rate, and a learning rate scheduling strategy can be used to gradually reduce the learning rate to obtain better convergence performance.
[0157] Grid search and cross validation are as follows:
[0158] Use grid search and cross validation to find the best learning rate. You can choose a learning rate range, such as 0.0001, 0.001, 0.01, 0.1, 1, and use cross validation to evaluate the performance of each learning rate, and finally choose the one with the best performance.
[0159] Learning rate scheduling:
[0160] You can start with a larger learning rate and gradually reduce it as the number of training rounds increases. For example, you can reduce the learning rate after each epoch or each mini-batch, which can help the algorithm converge quickly and reduce oscillation when approaching the minimum.
[0161] The model iterative optimization process can be summarized as follows:
[0162] 1) Forward propagation:
[0163] Perform a forward pass on the next batch of data (or the same batch of data if batch gradient descent is used) using the updated weights and biases to get the predicted output of the model.
[0164] 2) Calculate the loss:
[0165] Based on the predicted output of the model and the actual target value, the value of the loss function is calculated. In this embodiment, this is to calculate the reconstruction error.
[0166] 3) Backward Propagation:
[0167] The chain rule is used to calculate the gradient of the loss function with respect to each weight and bias in the network.
[0168] 4) Update weights and biases using gradient descent:
[0169] The weights and biases are updated again based on the calculated gradients.
[0170] 5) Evaluate model performance:
[0171] Evaluating the model's performance on the validation dataset periodically (e.g., every few epochs) helps monitor overfitting and determine when to stop training.
[0172] 6) Early Stopping:
[0173] If you find that the performance of the validation set has not improved or has decreased in several consecutive epochs, you can consider using the early stopping technique to terminate the training to avoid overfitting.
[0174] 7) Learning rate adjustment:
[0175] During training, if you find that the model's progress slows down or the loss begins to oscillate, you can consider dynamically adjusting the learning rate.
[0176] 8) Continuous training:
[0177] Repeat the above steps until a certain termination condition is met, such as reaching a predetermined number of epochs, the verification performance no longer improves, the loss is lower than a certain threshold, etc.
[0178] 9) Testing:
[0179] Once the model is trained, the final performance of the model is evaluated using the test dataset.
[0180] 10) Model saving and deployment:
[0181] If the performance of the model meets the requirements, the weights and structure of the model can be saved for subsequent use or deployment.
[0182] S3. Obtain a reconstruction error according to the initial battery parameters and the reconstructed battery parameters.
[0183] In this embodiment, the reconstruction error is the same as the loss function value of the model.
[0184] S4. Obtain the battery health status according to the reconstruction error.
[0185] Before obtaining the battery health, we must first establish a conversion relationship that maps the reconstruction error to the battery health. The specific process is as follows:
[0186] 1) Propagate the model forward, calculate and collect the reconstruction error.
[0187] 2) According to the reconstruction errors of healthy batteries and known unhealthy batteries, a threshold is set, which is used to classify healthy and unhealthy batteries. Batteries with reconstruction errors below the threshold are considered healthy, while batteries with reconstruction errors above the threshold are considered to have problems.
[0188] 3) In order to score the health of the battery, the reconstruction error is mapped to a quantitative scoring range, such as 1 to 100. The lower the reconstruction error, the higher the health score of the battery. For example, if the scoring range is set to 1 to 100, the battery with the lowest reconstruction error can get 100 points, and the battery with the highest reconstruction error can get 1 point. Suppose there is a battery A with a reconstruction error of 0.05 and a battery B with a reconstruction error of 0.2. If the reconstruction error threshold is set to 0.1, the health of battery A will be higher than that of battery B. If the reconstruction error is mapped to a scoring range of 1 to 100, battery A may get 95 points, while battery B may get 20 points.
[0189] The mapping method used is as follows:
[0190] First, use Min-Max Scaling for normalization and conversion:
[0191]
[0192] In the above formula, E is the original reconstruction error, E min 、E maxare the minimum and maximum reconstruction errors observed in the training dataset, respectively. This step normalizes the reconstruction error and converts it to a range of [0,1]. This step is to ensure that reconstruction errors of different sizes can be compared on the same scale and accurately reflect the relative differences between them.
[0193] Then convert the normalized result to the set scoring range (1 to 100):
[0194] Score = 100-(E norm ×99)
[0195] At this time, when the reconstruction error is E min When the battery health score is 100, the reconstruction error is E max When , the battery health score is 1. Where 99 is the range width of the scale conversion (100-1), ensuring that the obtained score is between 1 and 100.
[0196] For ease of understanding, the above mapping method is illustrated by example:
[0197] Assume that in the training data, the minimum reconstruction error E min =0.05, maximum reconstruction error E max =0.2.
[0198] If the reconstruction error of a battery is E = 0.1, then Score=100-(0.33×99)=67.33, and the battery health score is 67.33 points.
[0199] If the reconstruction error calculated by the model is lower than the minimum reconstruction error or higher than the maximum reconstruction error, it means that the model has encountered data that it has not seen before. In this case, you can choose to adopt the following strategies:
[0200] 1. Recalibrate your boundaries
[0201] If the reconstruction error falls outside the bounds determined during training, one can consider recalculating the minimum and maximum reconstruction errors. This may involve reevaluating the entire dataset to find new bounds, or one can dynamically adjust these bounds using the minimum and maximum reconstruction errors observed during runtime.
[0202] 2. Saturation strategy
[0203] Set the reconstruction error that exceeds the range to the boundary value. For example, if the calculated reconstruction error is less than the minimum reconstruction error, it is set to the minimum reconstruction error; if it is greater than the maximum reconstruction error, it is set to the maximum reconstruction error. This way the scoring will be saturated, that is, scores less than 1 will become 1, and scores greater than 100 will become 100.
[0204] 3. Update the model
[0205] If the new data frequently exceeds the original boundary, this may mean that the original model no longer adapts to the current data distribution. In this case, the model needs to be retrained or transferred using new data to adapt to the new data distribution.
[0206] For the problem of reconstruction error exceeding the boundary, an example is as follows:
[0207] If E <E min , then E norm =0;
[0208] If E>E max , then E norm =1;
[0209] Then E norm Converted into the final battery health score. <E min When the battery health score is 100, when E>E max The battery health score is 1.
[0210] Embodiment 2:
[0211] This embodiment discloses a battery health analysis device, which is used to implement the battery health analysis method provided in the first embodiment.
[0212] The device is equipped with a real-time monitoring dashboard that can dynamically display battery parameters and display real-time updated key battery parameters such as voltage, current, temperature, status, etc. It can also intuitively display the battery health score in the form of a dynamic, color-coded meter or progress bar. It can also display the status of each cell, such as temperature and voltage, in a real-time 3D battery model, which can be intuitively displayed through color changes.
[0213] The device also has historical data query and analysis functions. It provides various charts (such as line charts and bar charts) to display the battery's historical data and health score changes. It allows users to filter historical data based on factors such as date and time range.
[0214] The device also has a model management interface that can display the model version currently in use, allow users to manually trigger the update of the model or view the time of the next automatic update, and display the performance indicators of the model, such as reconstruction error.
[0215] The device also has user interaction functions. Users can report problems or make suggestions through the UI / API, and a detailed user guide and help document are provided to explain the various functions of the UI / API and how to use them.
[0216] The device's API design uses a concise and clear RESTful API to facilitate integration by third-party developers; it uses common data formats, such as JSON, for data interaction; and provides detailed and clear API documentation, including the functions, input / output parameters and examples of each interface.
[0217] The device provides security through user authentication and data encryption, ensuring that only authenticated users can access the system, and using HTTPS and other encryption technologies to protect data security.
[0218] Embodiment three:
[0219] This embodiment discloses a computer storage device having executable instructions stored thereon. When the instructions are executed by a processor, the processor implements the battery health analysis method.
[0220] Embodiment 4:
[0221] See also Figure 2 This embodiment discloses a battery health warning system, which is provided with the battery health analysis device and the alarm device described in the second embodiment. The alarm device is used to alarm when the battery health output by the battery health analysis device is lower than a certain threshold.
[0222] The beneficial effects of the present invention include the following aspects:
[0223] 1. Real-time:
[0224] Since the system uses Internet of Vehicles technology, it can collect and analyze battery performance parameters in real time, making it possible to monitor battery health. This makes it easier to find and solve battery problems in a timely manner, and helps improve the reliability and safety of electric vehicles.
[0225] 2. Automation and intelligence:
[0226] The autoencoder model is used to automatically learn the complex relationship between battery parameters without human intervention, greatly improving the accuracy and efficiency of battery health assessment. The model's automatic optimization, upgrade and update capabilities ensure the continued accuracy of the assessment results.
[0227] 3. Modular design:
[0228] The modular architecture design facilitates subsequent battery-related business development work, reduces development costs and improves development efficiency.
[0229] 4. Unsupervised Learning:
[0230] By using unsupervised model autoencoders for learning, we can discover the intrinsic connections and patterns between various battery performance parameters, thereby obtaining a more accurate battery health assessment without relying on labeled data.
[0231] 5. Improve battery life:
[0232] Through real-time monitoring and evaluation of battery health, abnormal battery conditions can be discovered in a timely manner, so that corresponding maintenance and care measures can be taken to extend the battery life and reduce maintenance costs.
[0233] 6. Reduce maintenance costs:
[0234] Accurate battery health assessment can help users and manufacturers understand the status of the battery more precisely, thereby reducing unnecessary maintenance and replacements and lowering operating costs.
[0235] 7. Environmentally friendly:
[0236] Extending battery life and reducing the frequency of battery replacement help reduce the impact of discarded batteries on the environment and is an environmentally friendly technology.
[0237] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A battery health analysis method, characterized in that: include: Acquire multiple battery parameters and perform data processing on the battery parameters to obtain initial battery parameters; Input the initial battery parameters into the pre-trained model to obtain the reconstructed battery parameters; Obtaining a reconstruction error according to the initial battery parameters and the reconstructed battery parameters; Get the battery health based on the reconstruction error.
2. The battery health analysis method according to claim 1, characterized in that: The battery parameters include: single cell voltage, single cell temperature, total voltage, total current, state of charge, number of charging times, and number of battery cycles; The method for data processing of battery parameters includes data cleaning and data conversion; Data cleaning includes: Replace the abnormal value in the single cell voltage with the median value in the single cell voltage; the abnormal value in the single cell voltage is a value exceeding a certain single cell voltage range; Replace the abnormal value of the single cell temperature with the median of the single cell temperature; the abnormal value of the single cell temperature is a value exceeding a certain single cell temperature range; Replace the outliers in the total voltage with the median of the total voltage; the outliers in the total voltage are values that exceed a certain total voltage range; The total current is smoothed by the moving average method, and the outliers in the total current are replaced by the median of the total current; the outliers in the total current are the values that exceed a certain total current range; Deleting abnormal values in the state of charge, or replacing abnormal values in the state of charge with the median of the state of charge; abnormal values in the state of charge are values exceeding the range of 0 to 100%; Delete the negative values in the number of charging times and battery cycle times; Data conversion includes: The charge and discharge rate is obtained based on the ratio of total current to nominal capacity; Obtain the temperature difference according to the difference between the maximum value and the minimum value of the temperature of the single battery; Obtaining a voltage difference according to the difference between the maximum value and the minimum value of the single cell voltage; Normalize the single cell voltage, total voltage, total current, charge and discharge rate, number of charges, and number of battery cycles; Standardize the temperature of single cells; The initial battery parameters include single cell voltage, total voltage, single cell temperature, total current, state of charge, number of charging times, number of battery cycles, charge and discharge rate, temperature difference, and voltage difference obtained after data processing.
3. The battery health analysis method according to claim 1 or 2, characterized in that: The model is an autoencoder, including an encoder and a decoder, and the encoder and the decoder are both provided with three layers.
4. The battery health analysis method according to claim 3, characterized in that: The method for initializing the weights and biases of each layer in the encoder and / or decoder includes: The weights are randomly sampled from a set uniform distribution; Set the initial value of the bias to zero.
5. The battery health analysis method according to claim 3, characterized in that: The reconstruction error is the mean square error between the initial battery parameters and the reconstructed battery parameters.
6. The battery health analysis method according to claim 5, characterized in that: The training method of the model includes: Using the back-propagation algorithm, the gradient of the loss function with respect to the weights and biases of each layer in the model is calculated; the loss function is the mean square error between the initial battery parameters and the reconstructed battery parameters; Use the gradient descent algorithm to update the weights and biases of each layer in the model based on the set learning rate; When the set requirements are met, stop the model training.
7. The battery health analysis method according to claim 6, characterized in that: The method for setting the learning rate includes: Use grid search and cross validation to select the learning rate; As the number of model training rounds increases, the learning rate is gradually reduced.
8. The battery health analysis method according to claim 6, characterized in that: The setting requirements include one or more of the following conditions: The model training reaches the set number of epochs; The model's performance on the set validation dataset no longer improves; The value of the model's loss function is below a certain threshold.
9. The battery health analysis method according to claim 1, characterized in that: The method for obtaining the battery health according to the reconstruction error includes: The minimum reconstruction error and the maximum reconstruction error that occur during the model training process are taken as the reconstruction error range; Based on the set conversion relationship, the reconstruction error range is mapped to the set battery health range; Based on the set conversion relationship, the reconstruction error is converted into battery health.
10. A battery health analysis device, characterized in that: The device is used to execute the battery health analysis method described in any one of claims 1-9.
Citation Information
Patent Citations
A method for extract characteristics of electromyography signal
CN109308471A
Liver disease evaluation method based on autoencoder
CN110364255A
Battery state evaluation method based on automatic encoder
CN113076689A
Low-voltage transformer health degree assessment method based on mahalanobis distance and auto-encoder
CN115906520A
Energy storage battery fault identification method and device
CN116087790A
Cited By
Battery health state evaluation method and device based on neural network
CN120993255A
Battery health state estimation method and device based on error correction, medium and equipment
CN121142339A
Battery cell inconsistency detection method and system based on multi-mode time sequence analysis
CN121385649A
