Online estimation method and system for energy storage battery state of charge based on deep learning combined with extended Kalman filter
Through the combined method of deep learning and extended Kalman filter, the accuracy and efficiency problems of online state-of-charge estimation of energy storage batteries are solved, and high-precision and stable state-of-charge assessment is achieved, which is suitable for fields such as smart grids and electric vehicles. .
Patent Information
- Application Number
- CN202310312415.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-28
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2043-03-28
AI Technical Summary
Existing technology makes it difficult to accurately estimate the state of charge of energy storage batteries online, resulting in low battery efficiency, short service life, and high maintenance costs. Traditional methods require a large number of experiments and complex nonlinear relationship processing.
The combined extended Kalman filter method based on deep learning is used to collect battery parameter data in real time, build a deep neural network model and combine it with the ResNet structure, use the Adagrad optimization algorithm and cross-entropy loss function, and combine the extended Kalman filter algorithm to estimate the estimated value. Compensation and filtering to achieve online estimation of the state of charge of the energy storage battery.
It improves the accuracy and calculation speed of state-of-charge estimation, has broad applicability and sustained and stable model iteration capabilities, and reduces experimental requirements and maintenance costs.
Smart Images

Figure CN116359742B
Abstract
Description
Technical Field
[0001] The present invention relates to online estimation of battery state of charge, and in particular to an online estimation method and system for energy storage battery state of charge based on deep learning combined extended Kalman filtering. Background Art
[0002] Developing reliable and efficient energy storage systems is one of the major challenges for industrial applications, especially smart grid and electric vehicle applications. Lithium-ion batteries are the most commonly used battery type due to their high energy and power density, high efficiency, high open circuit voltage (OCV), wide temperature operating range and long-term use. There are six main types of traditional SoC estimation methods: current counting method, open circuit voltage method, internal impedance method, electrochemical method, model-based method and pressure method. However, due to the unknown initial state of charge, self-discharge rate and current sensor error, the capacity and chemical composition of the battery electrode material are closely related, and a large number of experiments are required at different usage cycles, making the above methods not widely applicable. For actual and future energy storage systems, the need for online diagnosis of the state of charge of energy storage batteries (during operation) is very critical in order to improve the efficiency and service life of the battery, reduce the cost of conventional diagnostic systems, and reduce the non-operating time due to maintenance plans. Taking the battery equivalent circuit as an example, although the degradation of lithium-ion battery cells is inevitable, in order to extend their service life, an accurate estimation of their actual state of charge is required. However, it is difficult to calculate the state of charge of energy storage batteries using conventional methods because these parameters are complex nonlinear relationships with all other variables related to SoC estimation. Summary of the invention
[0003] The purpose of the present invention is to provide a method and system for online estimation of the state of charge of an energy storage battery based on deep learning combined with extended Kalman filtering, which improves the estimation accuracy of the state of charge of the energy storage battery, speeds up the calculation time, and has the best generalization effect.
[0004] The technical solution for achieving the purpose of the present invention is:
[0005] A method for online estimation of the state of charge of an energy storage battery based on deep learning combined with extended Kalman filtering comprises the following steps:
[0006] Real-time collection of relevant parameter data of energy storage batteries;
[0007] Preprocess and reconstruct the collected data as training sets;
[0008] A deep neural network DNN for energy storage battery SOC prediction is constructed and trained through training set learning; the deep neural network DNN adopts a ResNet model structure, and the residual block of the ResNet model structure consists of two convolutional layers and a cross-layer connection, wherein the number of output channels of the convolutional layer can be different, and the cross-layer connection is an identity mapping or a convolutional mapping; the deep neural network DNN outputs an estimated value of the state of charge of the energy storage battery;
[0009] The estimated value output by the deep neural network DNN is compensated and filtered through the extended Kalman filter algorithm to obtain the final estimated SOC value of the energy storage battery.
[0010] Furthermore, the residual block is specifically as follows: let its input be x, and obtain the output x=ReLU*(W1*x+b1) after the first convolution layer, and obtain the output y=W2*x+b2 after the second convolution layer, and add the input x and the output y to obtain the residual output z=ReLU*(x+y), where ReLU is the activation function, W1 and W2 are weight vectors, and b1 and b2 are bias vectors.
[0011] Furthermore, the activation function adopts a Swish function, specifically:
[0012] f(x)=x*sigmoid(βx)
[0013] Furthermore, the deep neural network DNN adopts the Adagrad optimization algorithm for learning and training, which specifically includes:
[0014] Step 4-1, initialize network parameters and historical gradient accumulation variables;
[0015] Step 4-2, using the training data, through the formula Calculate the gradient of the network parameters, where J(w,b) is the loss function, w is the weight vector, and b is the bias vector;
[0016] Step 4-3, add the square of the parameter's gradient to the historical gradient accumulation variable to calculate the sum of the historical gradient squares of the parameter;
[0017] Step 4-4, determine the corresponding learning rate learning_rate = initial_learning_rate / sqrt (historical_gradient_sum + epsilon), where initial_learning_rate is the initial learning rate, historical_gradient_sum is the sum of historical gradient squares, and epsilon is a set minimum constant used to avoid division by 0;
[0018] Step 4-5, use the calculated learning rate to update each parameter value parameter 新 =parameter-learning_rate*gradient;
[0019] Step 4-6, repeat the above steps 4-2 to 4-5 until the deep neural network DNN reaches the set number of training times or the training error meets the requirements.
[0020] Furthermore, the learning and training uses transfer learning and joint learning methods.
[0021] Furthermore, the deep neural network DNN adopts a cross entropy loss function and an Adam optimizer, and uses batch normalization and a learning rate decay, and an L2 regularization method to prevent the DNN from overfitting; wherein:
[0022] The batch normalization is to firstly zero-mean each dimension of features in each batch, and then normalize its variance to 1, that is, in, is the normalized feature, x is the input feature, E[x] is the mean of x, Var[x] is the variance of x, and ∈ is a smoothing term to prevent the denominator from being 0;
[0023] The learning rate decay means that during the training process, as the number of training rounds increases, the learning rate is gradually reduced, that is, Among them, α t is the learning rate when the number of training rounds is t, α0 is the initial learning rate, and decay_rate is the learning rate decay rate.
[0024] Furthermore, in the output of each layer of the deep neural network DNN, neurons are randomly set to 0 with a dropout probability, that is:
[0025]
[0026] Among them, x is the input, y is the output, and p is the dropout probability.
[0027] Furthermore, when the norm of the gradient exceeds a given threshold, the gradient is scaled, that is,
[0028]
[0029] Among them, grad is the gradient, grad clip is the clipped gradient, and threshold is the clipping threshold.
[0030] Furthermore, the deep neural network DNN uses data enhancement and expansion methods to increase training data, including random flipping, rotation and cropping.
[0031] An online estimation system for the state of charge of an energy storage battery based on deep learning combined with extended Kalman filtering includes a data acquisition module, a data processing module, a neural network prediction module, a compensation and filtering module, and a display storage module; wherein:
[0032] The data acquisition module is used to collect relevant parameter data of the energy storage battery in real time;
[0033] The data processing module is used to pre-process and reconstruct the collected data as a training set;
[0034] The neural network prediction module builds a deep neural network DNN for energy storage battery SOC prediction, and learns and trains through a training set; the deep neural network DNN adopts a ResNet model structure, and the residual block of the ResNet model structure consists of two convolutional layers and a cross-layer connection, wherein the number of output channels of the convolutional layer can be different, and the cross-layer connection is an identity mapping or a convolutional mapping;
[0035] The compensation and filtering module compensates and filters the estimated value output by the deep neural network DNN through an extended Kalman filtering algorithm to obtain a final estimated value of the energy storage battery SOC;
[0036] The display storage module is used to display and store the final estimated SOC value of the energy storage battery.
[0037] Compared with the prior art, the present invention has the following significant effects: (1) An online prediction model for the state of charge of energy storage batteries is built based on a deep neural network, which can realize online estimation of the state of charge of energy storage batteries and avoid problems such as a large number of experiments in a periodic manner, and has wide applicability; (2) The prediction results of the deep neural network are corrected by an extended Kalman filter algorithm, ensuring that the SOC estimation results are more accurate and more stable; (3) The present invention realizes continuous iteration of the model by learning the latest battery operating data status online and updating the parameters of the estimation model offline to ensure the continuous accuracy and stability of the SOC estimation results. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION
[0039] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] Combination Figure 1 , an online estimation method for the state of charge of an energy storage battery based on deep learning combined with extended Kalman filtering, comprising the steps of:
[0041] Step 1: Sensor data acquisition, set up current, voltage, temperature and other sensors in the energy storage battery system, collect relevant parameters of the energy storage battery in real time, and connect them to the data preprocessing module through data lines. In practical applications, high-precision current and voltage sensors such as Hall sensors and transformers can be used to ensure the quality of the collected data.
[0042] Step 2: Perform data preprocessing. The data preprocessing module filters and reduces noise on the collected data to obtain clean data, and then reconstructs the data and inputs it into the deep neural network model. During the preprocessing process, signal processing methods such as digital filters and wavelet transforms can be used to remove noise and interference and improve data quality and accuracy.
[0043] Step 3: Build a deep neural network DNN for energy storage battery SOC prediction, use deep learning methods to model and train the energy storage battery, and obtain a deep neural network model. In the modeling process, deep learning models such as convolutional neural networks and recurrent neural networks can be used to improve the accuracy and adaptability of the model. At the same time, a large amount of energy storage battery data needs to be prepared to ensure the training quality and stability of the deep neural network model. Among them, the deep neural network DNN includes an input layer, a hidden layer, and an output layer. Therefore, it is necessary to set the parameters and number of nodes of each layer.
[0044] The difficulty of neural network design lies in:
[0045] Data volume and data quality: DNN requires a large amount of training data, and this data must be of high quality, which is the key to improving DNN performance;
[0046] Model design and training: DNN model design and training is very complex and requires consideration of various factors, such as network structure, activation function, learning rate, optimizer, etc. It also requires patience and experience;
[0047] The present invention improves the deep neural network DNN model based on the above difficulties, specifically including:
[0048] 1. Improved activation function: Using the new activation function Swish can improve the performance of DNN to a certain extent. The Swish function is a new activation function that adds a sigmoid function to ReLU to alleviate the problem of gradient disappearance.
[0049] Design the Swish activation function formula:
[0050] f(x)=x*sigmoid(βx)
[0051] β is a constant or a trainable parameter. Swish has the characteristics of no upper bound but lower bound, smoothness, and non-monotonicity.
[0052] 2. Optimization algorithm: Use the Adagrad optimization algorithm to build a more efficient and accurate deep neural network model to improve the prediction accuracy of the battery state of charge, which can improve the performance of the DNN. The Adagrad algorithm can adjust the learning rate of each parameter differently, so that the model can adaptively adjust the learning rate to better adapt to the data distribution.
[0053] The difficulty of Adagrad lies mainly in adjusting the initial learning rate and selecting a suitable epsilon value. Too large or too small an epsilon value may affect the calculation result of the learning rate, resulting in poor training effect. At the same time, for larger data sets and network models, Adagrad may take up a large amount of memory space, and attention should be paid to the implementation of the optimization algorithm. The optimization algorithm design steps of the present invention are:
[0054] (1) Initialization: Initialize the network parameters and historical gradient accumulation variables (the sum of historical gradient squares), and set a small constant value (such as 1e-8) to avoid the denominator being zero.
[0055] (2) Calculate gradient: Use training data to calculate the gradient of network parameters. Formula:
[0056] Where J(w,b) is the loss function, w is the weight vector, and b is the bias vector. The gradient is a vector containing the partial derivatives of each parameter with respect to the loss function, indicating the rate of change of the loss function with respect to each parameter.
[0057] (3) Accumulate historical gradients: Accumulate the square of the parameter’s gradient to the historical gradient accumulation variable to calculate the sum of the squares of the parameter’s historical gradients.
[0058] (4) Calculate the learning rate: For each parameter, calculate its corresponding learning rate. The formula is: learning_rate = initial_learning_rate / sqrt (historical_gradient_sum + epsilon), where initial_learning_rate is the initial learning rate, historical_gradient_sum is the sum of historical gradient squares, and epsilon is a set minimum constant used to avoid division by zero.
[0059] (5) Update parameters: For each parameter, use the calculated learning rate to update its value. The formula is: parameter 新 =parameter-learning_rate*gradient.
[0060] (6) Repeat steps 2 to 5 until the set number of training times is reached or the training error meets the requirements.
[0061] 3. Data augmentation and expansion: Data augmentation and expansion methods can be used to increase training data, such as random flipping, rotation, cropping, etc., to improve the robustness and generalization ability of the model.
[0062] 4. Transfer learning and federated learning: You can use transfer learning and federated learning methods to improve the accuracy of the model by utilizing the features of an already trained model or multiple models.
[0063] 5. Improve model structure: Modify the deep learning network structure and use the ResNet model structure to improve the performance of DNN. Improve the DNN network structure, such as introducing more layers of neurons, adding regularization terms, using residual networks, etc., to improve the performance of the model. ResNet is a special DNN structure that can effectively solve the problems of gradient disappearance and model degradation.
[0064] Specific steps for improving the DNN network structure:
[0065] (1) Design of residual block: The residual block of ResNet consists of two convolutional layers and a cross-layer connection, where the number of output channels of the convolutional layer can be different, and the cross-layer connection can be an identity mapping or a convolutional mapping. Assume that the size of the input feature map is H*W*C in , the output of the i-th residual block is H i *W i *C out , then the specific design steps of the residual block are as follows:
[0066] Let the input be x, and the output obtained after the first convolution layer is x=ReLU*(W1*x+b1);
[0067] After the second convolutional layer, the output y=W2*x+b2 is obtained;
[0068] Add the input x and the output y to get the residual output z = ReLU*(x+y), where ReLU is the activation function.
[0069] (2) Build the network structure: When building the ResNet network structure, design it according to the convolutional neural network structure. Taking ResNet-50 as an example, the specific design steps are as follows:
[0070] First, a 7*7 convolutional layer is used for feature extraction, with a step size of 2 and 64 output channels;
[0071] Then use a 3*3 pooling layer with a step size of 2 for downsampling;
[0072] According to the design of the residual block, 4 residual blocks are added to the network. Each residual block contains several residual blocks. The specific number of output channels and residual blocks are as follows:
[0073] The first residual block has 256 output channels and contains 3 residual blocks;
[0074] The second residual block has 512 output channels and contains 4 residual blocks;
[0075] The third residual block has 1024 output channels and contains 6 residual blocks;
[0076] The fourth residual block has 2048 output channels and contains 3 residual blocks.
[0077] Finally, a global average pooling layer is used to reduce the dimension of the feature map to obtain a feature vector of length 2048, which is then mapped to the space of the predicted category through a fully connected layer.
[0078] (3) Training model: When training the model, the cross entropy loss function and the Adaptive MomentEstimation (Adam) optimizer are used to minimize the error between the model prediction value and the true value. At the same time, batch normalization and learning rate decay are used to prevent overfitting and accelerate convergence. Batch normalization can keep the distribution of each feature within a relatively stable range, thereby accelerating convergence and improving generalization performance. Learning rate decay can gradually reduce the learning rate to make the model more stable in the later stages of training.
[0079] (4) Tuning: The performance of ResNet can be further improved by adjusting hyperparameters and training strategies. For example, the number of layers, width, and depth of the residual block can be adjusted, the hyperparameters and regularization parameters of the optimizer can be adjusted, and data augmentation techniques and pre-trained models can be used to improve the generalization performance of the model.
[0080] The formula is as follows:
[0081] Batch Normalization: In each batch, for each dimension of the feature, it is first zero-meaned and then its variance is normalized to 1.
[0082]
[0083] in, is the normalized feature, x is the input feature, E[x] is the mean of x, Var[x] is the variance of x, and ∈ is a smoothing term to prevent the denominator from being 0.
[0084] Learning Rate Decay: During the training process, as the number of training rounds increases, the learning rate is gradually reduced to prevent the model from oscillating around the local optimum. The following formula is generally used for learning rate decay:
[0085]
[0086] Among them, α t is the learning rate when the number of training rounds is t, α0 is the initial learning rate, and decay_rate is the learning rate decay rate.
[0087] Dropout:
[0088] In the output of each layer, some neurons are randomly set to 0 with a certain probability to prevent the model from overfitting. The formula is as follows:
[0089]
[0090] Among them, x is the input, y is the output, and p is the dropout probability.
[0091] Gradient Clipping:
[0092] When the norm of the gradient exceeds a given threshold, the gradient is scaled to prevent the gradient from exploding. The formula is as follows:
[0093]
[0094] Among them, grad is the gradient, grad clipis the clipped gradient, and threshold is the clipping threshold.
[0095] 6. Regularization: Using the L2 regularization method can effectively prevent DNN overfitting. The L2 regularization method can penalize the weights of the model, making the model smoother and reducing the problem of overfitting.
[0096] The deep learning network structure for energy storage battery state of charge assessment usually consists of the following components:
[0097] Data input and preprocessing: First, the input data needs to be preprocessed, including data cleaning, denoising, feature extraction and other operations to ensure the quality and validity of the input data.
[0098] Feature extractor: responsible for converting the input data into a set of meaningful feature vectors, usually using convolutional neural network (CNN) or recurrent neural network (RNN) for feature extraction.
[0099] Output layer: responsible for outputting the processed feature vector as the charge state estimation result, usually using a fully connected layer or a regression layer for output.
[0100] In addition, the deep learning network structure for energy storage battery state of charge assessment also needs model training and verification. Model training usually uses supervised learning methods to train and optimize the model through known state of charge data. Model verification is to evaluate the prediction performance and accuracy of the model by testing the test data set.
[0101] Step 4: Perform model training. Input the actual operation data of the energy storage battery into the built energy storage battery SOC prediction model for training. The parameters of the energy storage battery SOH prediction model include voltage, current, and temperature. The output label value is the SOC value of the energy storage battery in the current state.
[0102] Step 5: Extended Kalman filtering, combining the deep neural network model with the extended Kalman filtering method to estimate the SOC of the energy storage battery online. The extended Kalman filter can compensate and filter the deep neural network model to improve the estimation accuracy and real-time performance. Specifically, the SOC of the energy storage battery can be estimated using the deep neural network model first, and then the extended Kalman filtering method can be used to compensate and filter the estimated value to obtain a more accurate estimation result.
[0103] Step 6: Error compensation and filtering. In order to further improve the estimation accuracy and real-time performance of the state of charge of the energy storage battery, the method of the present invention adopts error compensation and filtering methods. Specifically, filtering algorithms such as Kalman filtering and unscented Kalman filtering can be used to filter and compensate the estimation results to remove noise and interference and reduce the estimation error. At the same time, the estimated value and the filtered value can be compared to detect the estimation error and change trend, so as to adjust the model parameters in time to ensure the accuracy and stability of the estimation results. In addition, appropriate filtering algorithms and parameters can be selected according to actual needs and data characteristics to achieve the best estimation effect.
[0104] Step 7: Energy storage battery health status assessment. The state of charge of the energy storage battery is an important indicator of the health status of the energy storage battery. After error compensation and filtering in step 6, the final SOC estimation result is obtained. The method of the present invention can evaluate the health status of the energy storage battery by estimating the state of charge of the energy storage battery online. For example, the health status of the energy storage battery can be judged and analyzed based on indicators such as the SOC and SOH of the energy storage battery, and the use and management of the energy storage battery can be further optimized.
[0105] Step 8: Display and store model results, obtain the final estimated value of the energy storage battery SOC, and transmit the estimated value result to the energy storage battery management system for data storage and display.
[0106] Visual display: The state of charge assessment results are presented in a visual form, such as using line charts, heat maps, curve charts, etc. to show the change trend of the battery's state of charge over time, so that users can intuitively understand the battery's health status.
[0107] Status prompt: Based on the SOC assessment results, the system provides users with tips and suggestions on the battery health status, such as reminding users whether the battery needs to be charged or replaced to extend the battery life.
[0108] Predictive analysis: Based on the results of the energy storage battery's state of charge assessment, predictive analysis of the battery's future usage is performed, such as predicting the battery's remaining life and providing more accurate usage recommendations.
[0109] In terms of storage and interaction, the state of charge assessment results can be stored in the battery management system (BMS) and interact with the BMS. Specifically, the assessment results can be transmitted to the BMS through the data interface, integrated and analyzed with other data to better manage and maintain the battery. In addition, the BMS can also provide users with a report on the battery health status, including battery usage time, health status, remaining life and other information, to help users better understand the battery usage and maintenance requirements.
[0110] An online estimation system for the state of charge of an energy storage battery based on deep learning combined with extended Kalman filtering usually includes the following modules:
[0111] The data acquisition module is used to collect relevant parameter data of the energy storage battery in real time;
[0112] The data processing module is used to pre-process and reconstruct the collected data as a training set;
[0113] The neural network prediction module builds a deep neural network DNN for energy storage battery SOC prediction, and learns and trains through a training set; the deep neural network DNN adopts a ResNet model structure, and the residual block of the ResNet model structure consists of two convolutional layers and a cross-layer connection, wherein the number of output channels of the convolutional layer can be different, and the cross-layer connection is an identity mapping or a convolutional mapping;
[0114] The compensation and filtering module compensates and filters the estimated value output by the deep neural network DNN through an extended Kalman filtering algorithm to obtain a final estimated value of the energy storage battery SOC;
[0115] The display storage module is used for visual display and storage of the final estimated SOC value of the energy storage battery.
[0116] The system also includes a status prompt module and a prediction analysis module.
[0117] The system includes all the technical features of the above method, which will not be repeated here.
[0118] The method of the present invention is applicable to the field of online estimation and health status assessment of energy storage batteries. For example, it can be applied to the fields of electric vehicles, smart homes, energy storage, etc. to improve the performance and service life of energy storage batteries.
[0119] In summary, the method for online estimation of the state of charge of energy storage batteries based on deep learning combined with extended Kalman filtering of the present invention, combined with technologies such as deep learning and extended Kalman filtering, can achieve high-precision online estimation of the state of charge of energy storage batteries and health status assessment. It has the advantages of high estimation accuracy, good real-time performance, and easy use, and can provide effective technical support for the development and application of the field of energy storage batteries.
Claims
1. An online estimation method for the state of charge of an energy storage battery based on deep learning combined with extended Kalman filtering, characterized in that: Includes steps: Real-time collection of relevant parameter data of energy storage batteries; Preprocess and reconstruct the collected data as training sets; A deep neural network DNN for energy storage battery SOC prediction is constructed and trained through training set learning; the deep neural network DNN adopts a ResNet model structure, and the residual block of the ResNet model structure consists of two convolutional layers and a cross-layer connection, wherein the number of output channels of the convolutional layers is different, and the cross-layer connection is an identity mapping or a convolutional mapping; the deep neural network DNN outputs an estimated value of the state of charge of the energy storage battery; The estimated value output by the deep neural network DNN is compensated and filtered through the extended Kalman filter algorithm to obtain the final estimated SOC value of the energy storage battery; The residual block is specifically as follows: let its input be x, and obtain the output x1=ReLU*(W1*x+b1) after the first convolution layer, and obtain the output y=W2*x+b2 after the second convolution layer, and add the output x1 and the output y to obtain the residual output z=ReLU*(x1+y), where ReLU is the activation function, W1 and W2 are weight vectors, and b1 and b2 are bias vectors.
2. The method for online estimation of state of charge of an energy storage battery based on deep learning combined with extended Kalman filtering according to claim 1 is characterized in that: The activation function adopts the Swish function, specifically: f(x)=x*sigmoid(βx) Where β is a constant or a trainable parameter.
3. The method for online estimation of state of charge of an energy storage battery based on deep learning combined with extended Kalman filtering according to claim 1 is characterized in that: The deep neural network DNN adopts the Adagrad optimization algorithm for learning and training, which specifically includes: Step 4-1, initialize network parameters and historical gradient accumulation variables; Step 4-2, using the training data, through the formula Calculate the gradient of the network parameters, where J(w,b) is the loss function, w is the weight vector, and b is the bias vector; Step 4-3, add the square of the parameter's gradient to the historical gradient accumulation variable to calculate the sum of the historical gradient squares of the parameter; Step 4-4, determine the corresponding learning rate learning_rate = initial_learning_rate / sqrt(historical_gradient_sum+epsilon), where initial_learning_rate is the initial learning rate, historical_gradient_sum is the sum of squared historical gradients, and epsilon is a very small constant set to avoid division by 0; Step 4-5, use the calculated learning rate to update each parameter value parameter 新 =parameter-learning_rate*gradient; Step 4-6, repeat the above steps 4-2 to 4-5 until the deep neural network DNN reaches the set number of training times or the training error meets the requirements.
4. According to the online estimation method of the energy storage battery state of charge based on deep learning combined with extended Kalman filtering according to claim 3, the learning and training uses transfer learning and joint learning methods.
5. The method for online estimation of state of charge of an energy storage battery based on deep learning combined with extended Kalman filtering according to claim 3 is characterized in that: The deep neural network DNN adopts a cross entropy loss function and an Adam optimizer, and uses batch normalization and learning rate decay, and an L2 regularization method to prevent DNN from overfitting; wherein: The batch normalization is to firstly zero-mean each dimension of features in each batch, and then normalize its variance to 1, that is, in, is the normalized feature, x is the input feature, E[x] is the mean of x, Var[x] is the variance of x, and ∈ is a smoothing term to prevent the denominator from being 0; The learning rate decay means that during the training process, as the number of training rounds increases, the learning rate is gradually reduced, that is, Among them, α t is the learning rate when the number of training rounds is t, α0 is the initial learning rate, and decay_rate is the learning rate decay rate.
6. The method for online estimation of state of charge of an energy storage battery based on deep learning combined with extended Kalman filtering according to claim 3 is characterized in that: In the output of each layer of the deep neural network DNN, neurons are randomly set to 0 with a dropout probability, that is: Among them, x is the input, y is the output, and p is the dropout probability.
7. The method for online estimation of state of charge of an energy storage battery based on deep learning combined with extended Kalman filtering according to claim 3 is characterized in that: When the norm of the gradient exceeds a given threshold, the gradient is scaled, that is, Among them, grad is the gradient, grad clip is the clipped gradient, and threshold is the clipping threshold.
8. The method for online estimation of state of charge of an energy storage battery based on deep learning combined with extended Kalman filtering according to claim 1 is characterized in that: The deep neural network DNN uses data enhancement and expansion methods to increase the training data of the training set, including random flipping, rotation and cropping.
9. An online estimation system for the state of charge of an energy storage battery based on deep learning combined with extended Kalman filtering, characterized in that: It includes a data acquisition module, a data processing module, a neural network prediction module, a compensation and filtering module and a display storage module; wherein: The data acquisition module is used to collect relevant parameter data of the energy storage battery in real time; The data processing module is used to pre-process and reconstruct the collected data as a training set; The neural network prediction module builds a deep neural network DNN for energy storage battery SOC prediction, and learns and trains through a training set; the deep neural network DNN adopts a ResNet model structure, and the residual block of the ResNet model structure consists of two convolutional layers and a cross-layer connection, wherein the number of output channels of the convolutional layers is different, and the cross-layer connection is an identity mapping or a convolutional mapping; the residual block is specifically: let its input be x, and the output x1=ReLU*(W1*x+b1) is obtained after the first convolutional layer, and the output y=W2*x+b2 is obtained after the second convolutional layer, and the output x1 and the output y are added to obtain the residual output z=ReLU*(x1+y), wherein ReLU is an activation function, wherein W1 and W2 are weight vectors, and b1 and b2 are bias vectors; The compensation and filtering module compensates and filters the estimated value output by the deep neural network DNN through an extended Kalman filtering algorithm to obtain a final estimated value of the energy storage battery SOC; The display storage module is used to display and store the final estimated SOC value of the energy storage battery.
