Lithium-ion battery SOC estimation method and device

The combination of the qubit-improved gray wolf optimization algorithm and MSTUKF solves the problem of low accuracy and low efficiency of the lithium-ion battery SOC estimation method, and improves the accuracy and speed of SOC estimation.

CN118275899BActive Publication Date: 2024-09-20XIAN HUMANISTIC TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410677497.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-09-20
Estimated Expiration
2044-05-29

AI Technical Summary

Technical Problem

The accuracy and efficiency of existing lithium-ion battery SOC estimation methods are low, especially the initial error problem based on the MSTUKF algorithm and the slow convergence speed of the Gray Wolf optimization algorithm.

Method used

The qubit-improved gray wolf optimization algorithm is introduced to initialize the quantum population position of the gray wolf through quantum gates, and combined with the MSTUKF algorithm, the initial state and error covariance are optimized to improve the accuracy and speed of SOC estimation.

Benefits of technology

It improves the convergence speed and accuracy of SOC estimation, solves the problem of large initial error and poor diversity of the gray wolf optimization algorithm, and achieves more efficient SOC estimation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118275899B
    Figure CN118275899B
Patent Text Reader

Abstract

The present invention provides a lithium-ion battery SOC estimation method and device, the method comprising: obtaining a first state prediction value of the lithium-ion battery and an error covariance of the first state prediction value according to data of the lithium-ion battery based on a quantum bit-improved gray wolf optimization algorithm, the quantum bit-improved gray wolf optimization algorithm uses a quantum gate to initialize the quantum population position of the gray wolf, and applies a quantum rotating gate to each quantum bit to simulate the quantum movement of the gray wolf; using the first state prediction value as the optimal initial state value of the MSTUKF algorithm, using the error covariance of the first state prediction value as the optimal initial error covariance of the MSTUKF algorithm, and obtaining a second state prediction value of the lithium-ion battery based on the MSTUKF algorithm. The present invention improves the convergence speed and estimation accuracy of SOC estimation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of lithium-ion batteries, and in particular to a method and device for estimating the SOC of a lithium-ion battery. Background Art

[0002] Lithium-ion batteries are the main energy source for electric vehicles. Battery state of charge (SOC) estimation plays a key role in achieving efficient battery energy management, predicting service life, and ensuring safe use.

[0003] The mainstream research directions for SOC estimation at home and abroad are mainly divided into methods based on characterization parameters, ampere-hour integration methods, model-based methods and data-driven methods. At present, the most studied and widely used methods are the methods that use filters under model-based conditions, such as Extended Kalman Filter (EKF), Adaptive Extended Kalman Filter (AEKF), Unscented Kalman Filter (UKF), Multiplicative Strong Tracking Unscented Kalman Filter (MSTUKF), etc. Among them, MSTUKF can adjust the Kalman gain in real time, so that the algorithm still has a high tracking ability when the model is uncertain or the state changes suddenly, and the estimation accuracy is higher, but its estimation process has a large initial error, which greatly affects the convergence speed of the estimation. Studies have shown that this is because MSTUKF is very sensitive to the setting of the initial value of the filter. Inappropriate initial value of the filter will lead to the initial error of MSTUKF in estimating SOC.

[0004] The Grey Wolf Optimization (GWO) algorithm achieves the optimization goal by simulating the predation behavior of grey wolves and based on the mechanism of wolf group cooperation. The GWO algorithm has the characteristics of simple structure, few parameters to be adjusted, and easy implementation. It has a convergence factor that can be adjusted adaptively and an information feedback mechanism, which can achieve a balance between local optimization and global search. Therefore, it has good performance in terms of problem solving accuracy and convergence speed. Although the Grey Wolf Optimization Algorithm has been widely used and has performed well in some optimization problems, for the swarm intelligence optimization algorithm based on population iteration, it may take more iterations to obtain the optimal solution, and the convergence speed is slow, resulting in a long time for SOC estimation. Summary of the invention

[0005] The present invention provides a lithium ion battery SOC estimation method and device, which are used to solve the defects of low accuracy and low efficiency of SOC estimation in the prior art, and improve the accuracy and efficiency of SOC estimation.

[0006] The present invention provides a lithium-ion battery SOC estimation method, comprising:

[0007] The improved gray wolf optimization algorithm based on quantum bits obtains the first state prediction value of the lithium-ion battery and the error covariance of the first state prediction value according to the data of the lithium-ion battery. The improved gray wolf optimization algorithm based on quantum bits uses quantum gates to initialize the quantum population position of the gray wolf, and applies a quantum rotating gate to each quantum bit to simulate the quantum movement of the gray wolf;

[0008] The first state prediction value is used as the optimal initial state value of the MSTUKF algorithm, the error covariance of the first state prediction value is used as the optimal initial error covariance of the MSTUKF algorithm, and the second state prediction value of the lithium-ion battery is obtained based on the MSTUKF algorithm.

[0009] According to a lithium-ion battery SOC estimation method provided by the present invention, the initialization quantum population position of the gray wolf is ,in , N is the population size of the gray wolf, M is the number of quantum bits, and is the probability amplitude of the qubit, satisfying .

[0010] According to a lithium-ion battery SOC estimation method provided by the present invention, a quantum rotating gate is applied to each quantum bit to simulate the quantum motion of the gray wolf through the following formula:

[0011]

[0012]

[0013] in, is the quantum population position, is based on , and The rotation angle of the wolf's position is dynamically calculated, N is the population size of the gray wolf, and D is the optimized dimension. is the upper bound of the parameter, is the lower bound of the parameter, and rank is a random matrix.

[0014] According to a lithium-ion battery SOC estimation method provided by the present invention, the quantum bit-based improved grey wolf optimization algorithm obtains a first state prediction value of the lithium-ion battery and an error covariance of the first state prediction value according to data of the lithium-ion battery, including:

[0015] In each iterative optimization encirclement phase, the distance between the population and the prey is calculated, and the quantum population position of the gray wolf is updated according to the distance;

[0016] In each iterative optimization hunting phase, according to , and A wolf comes to capture prey, and the optimal predicted position of the gray wolf is obtained;

[0017] Obtaining a classical solution of the quantum state of the gray wolf by decoding the optimal predicted position of the gray wolf;

[0018] The fitness of the gray wolf population is evaluated based on the Kalman filter function, and the three solutions with the highest fitness are selected as the new , and Wolf, continue to update the quantum population position of the gray wolf until the preset maximum iteration is reached, and obtain the first state prediction value output by the Kalman filter function for the last iteration number and the error covariance of the first state prediction value.

[0019] According to a lithium-ion battery SOC estimation method provided by the present invention, before obtaining the classical solution of the gray wolf quantum state by decoding the optimal predicted position of the gray wolf, the classical position corresponding to the optimal predicted position is determined by the following formula:

[0020]

[0021] in, is the classical position corresponding to the optimal predicted position, is the optimal predicted position, a and b is the preset coefficient, dim For [admin1][Le Rui2]2.

[0022] According to a lithium-ion battery SOC estimation method provided by the present invention, the population fitness of the gray wolf is evaluated based on the Kalman filter function, including:

[0023] The state prediction value is obtained by the following formula:

[0024]

[0025] The error covariance is predicted by the following formula:

[0026]

[0027] The Kalman gain is calculated by the following formula:

[0028]

[0029] The error covariance is updated by the following formula:

[0030]

[0031] Among them, A is the state transfer matrix, B is the control input matrix, C is the measurement matrix, K represents the Kalman gain, P represents the error covariance at each time increment, and P is used as the population fitness of the gray wolf.

[0032] According to a lithium-ion battery SOC estimation method provided by the present invention, the second state prediction value of the lithium-ion battery is obtained based on the MSTUKF algorithm, including:

[0033] Calculate Sigma sampling points;

[0034] After performing UT transformation on the Sigma sampling point, the Sigma sampling point is calculated again;

[0035] After performing UT transformation on the recalculated Sigma sampling points, calculate the fading factor matrix;

[0036] Calculate the covariance value of the fading factor according to the fading factor matrix, and recalculate the Sigma sampling point according to the covariance value;

[0037] After performing UT transformation on the recalculated Sigma sampling points, calculate the Kalman gain;

[0038] The MSTUKF algorithm is measured and updated according to the Kalman gain until the output result of the MSTUKF algorithm converges, thereby obtaining the second state prediction value output by the last iteration of the MSTUKF algorithm.

[0039] The present invention also provides a lithium-ion battery SOC estimation device, comprising:

[0040] An optimization module, for obtaining a first state prediction value of the lithium-ion battery and an error covariance of the first state prediction value according to data of the lithium-ion battery based on a quantum bit-improved gray wolf optimization algorithm, wherein the quantum bit-improved gray wolf optimization algorithm uses a quantum gate to initialize the quantum population position of the gray wolf, and applies a quantum rotating gate to each quantum bit to simulate the quantum movement of the gray wolf;

[0041] An estimation module is used to use the first state prediction value as the optimal initial state value of the MSTUKF algorithm, use the error covariance of the first state prediction value as the optimal initial error covariance of the MSTUKF algorithm, and obtain a second state prediction value of the lithium-ion battery based on the MSTUKF algorithm.

[0042] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-mentioned lithium-ion battery SOC estimation methods is implemented.

[0043] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for estimating the SOC of a lithium-ion battery as described above is implemented.

[0044] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for estimating the SOC of a lithium-ion battery as described above is implemented.

[0045] The lithium-ion battery SOC estimation method and device provided by the present invention improve the Grey Wolf Optimization Algorithm by introducing quantum bits, solve the problem of poor diversity of the initial population of GWO, improve the search efficiency of the algorithm, and apply the improved quantum Grey Wolf Algorithm QGWO to the MSTUKF estimation of battery SOC. The initial value of the filter of MSTUKF is optimized by QGWO, solves the problem that MSTUKF has high requirements on the initial value of the filter and large initial estimation error, and improves the convergence speed and estimation accuracy of SOC estimation. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0047] Figure 1 It is a flow chart of the lithium-ion battery SOC estimation method provided by the present invention;

[0048] Figure 2 It is a flow chart of the gray wolf optimization algorithm provided by the prior art;

[0049] Figure 3 It is a flow chart of the quantum grey wolf algorithm in the lithium-ion battery SOC estimation method provided by the present invention;

[0050] Figure 4It is a flow chart of the MSTUKF algorithm in the lithium-ion battery SOC estimation method provided by the present invention;

[0051] Figure 5 It is a flow chart of the GWO-MSTUKF algorithm in the lithium-ion battery SOC estimation method provided by the present invention;

[0052] Figure 6 It is a flow chart of the QGWO-MSTUKF algorithm in the lithium-ion battery SOC estimation method provided by the present invention;

[0053] Figure 7 It is a schematic diagram comparing GWO-MSTUKF and QGWO-MSTUKF in the lithium-ion battery SOC estimation method provided by the present invention;

[0054] Figure 8 It is a structural schematic diagram of a lithium-ion battery SOC estimation device provided by the present invention;

[0055] Fig. 9 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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.

[0057] Combine the following Figure 1 A lithium-ion battery SOC estimation method of the present invention is described, comprising:

[0058] Step 101, based on the data of the lithium-ion battery, a first state prediction value of the lithium-ion battery and an error covariance of the first state prediction value are obtained by using a quantum bit-based improved gray wolf optimization algorithm, wherein the quantum bit-based improved gray wolf optimization algorithm uses a quantum gate to initialize the quantum population position of the gray wolf, and applies a quantum rotating gate to each quantum bit to simulate the quantum movement of the gray wolf;

[0059] Quantum computing can greatly speed up the calculation of complex computing problems by using techniques such as quantum superposition and quantum entanglement. Therefore, this embodiment introduces quantum bits to improve the Grey Wolf Optimization Algorithm to address the defects of GWO and MSTUKF, and applies the improved quantum Grey Wolf Algorithm (QGWO) to the MSTUKF battery SOC estimation.

[0060] In the initialization phase, the GWO parameters are initialized, and the quantum bits are initialized and the initial population is determined. The population size is set to N, and each gray wolf is represented by M quantum bits. At the same time, the state estimate and initial covariance value of the Kalman filter are initialized for performance evaluation.

[0061] Set the population size of the gray wolf algorithm, define the upper and lower bounds of the search space, and calculate the initial position of the population using formula (1):

[0062] (1)

[0063] in, is the initial gray wolf position, is the population size, D is the optimized dimension, is the upper bound of the parameter, is the lower bound of the parameter, and rank is a random matrix.

[0064] After confirming the classical positions of the initial population of gray wolves, a quantum gate is used to initialize the quantum positions of the gray wolves. , using quantum revolving door To simulate the quantum motion of the gray wolf.

[0065] Step 102: Using the first state prediction value as the optimal initial state value of the MSTUKF algorithm, using the error covariance of the first state prediction value as the optimal initial error covariance of the MSTUKF algorithm, and obtaining a second state prediction value of the lithium-ion battery based on the MSTUKF algorithm.

[0066] The estimation accuracy of the MSTUKF algorithm optimized by the GWO algorithm is significantly higher than that of the MSTUKF estimation algorithm. The QGWO algorithm has a higher convergence speed and optimization accuracy than the GWO algorithm. The QGWO-optimized MSTUKF algorithm has a higher estimation accuracy and a faster convergence speed.

[0067] This embodiment improves the Grey Wolf Optimization Algorithm by introducing quantum bits, solves the problem of poor diversity of the initial population of GWO, improves the search efficiency of the algorithm, and applies the improved quantum Grey Wolf Algorithm QGWO to MSTUKF estimation of battery SOC. The initial filter value of MSTUKF is optimized by QGWO, solves the problem that MSTUKF has high requirements on the initial filter value and large initial estimation error, and improves the convergence speed and estimation accuracy of SOC estimation.

[0068] Based on the above embodiment, the quantum population position initialized in this embodiment is for ,in , N is the population size of the gray wolf, M is the number of quantum bits, and is the probability amplitude of the qubit, satisfying .

[0069] Based on the above embodiment, in this embodiment, the following formulas (2) and (3) are used to calculate the value of each quantum bit: Applying quantum revolving door Simulate the quantum motion of the gray wolf:

[0070] (2)

[0071] (3)

[0072] in, is the quantum population position, is based on , and The rotation angle of the wolf's position is dynamically calculated, N is the population size of the gray wolf, and D is the optimized dimension. is the upper bound of the parameter, is the lower bound of the parameter, and rank is a random matrix.

[0073] On the basis of the above embodiment, the improved grey wolf optimization algorithm based on quantum bits in this embodiment obtains the first state prediction value of the lithium-ion battery and the error covariance of the first state prediction value according to the data of the lithium-ion battery, including:

[0074] In each iterative optimization encirclement phase, the distance between the population and the prey is calculated, and the quantum population position of the gray wolf is updated according to the distance;

[0075] In each iterative optimization hunting phase, according to , and A wolf comes to capture prey, and the optimal predicted position of the gray wolf is obtained;

[0076] Obtaining a classical solution of the quantum state of the gray wolf by decoding the optimal predicted position of the gray wolf;

[0077] The fitness of the gray wolf population is evaluated based on the Kalman filter function, and the three solutions with the highest fitness are selected as the new , and Wolf, continue to update the quantum population position of the gray wolf until the preset maximum iteration is reached, and obtain the first state prediction value output by the Kalman filter function for the last iteration number and the error covariance of the first state prediction value.

[0078] The iterative optimization process is divided into the gray wolf encirclement, hunting and attack stages. When performing the encirclement operation, the distance between the population and the prey (optimal solution) is calculated using formula (4).

[0079] (4)

[0080] Where D is the distance between the wolf and the prey, and is the position vector of the prey and the quantum position vector of the gray wolf at the current number of iterations, and C is a random vector. After completing the encirclement at the current number of iterations, the position of the gray wolf is updated using formula (5).

[0081] (5)

[0082] Among them, A is also a random vector, and the update formulas of A and C are formulas (6) and (7) respectively:

[0083] (6)

[0084] (7)

[0085] Among them, as the convergence factor a It gradually decreases from 2 to 0 during the iteration. r1 and r2 are random vectors with values ​​between 0 and 1.

[0086] After the gray wolves surround and identify the location of the prey, the gray wolf population will capture the prey based on α, β, and δ. The following is a description of the mathematical model used by gray wolves to track the location of prey, as shown in formulas (8) to (14).

[0087] (8)

[0088] (9)

[0089] (10)

[0090] in, , and Respectively , , The quantum distance between each individual and the , and Respectively represent , and The current quantum position, C is a random vector, This is the current location of the other gray wolves.

[0091] (11)

[0092] (12)

[0093] (13)

[0094] (14) [admin3][Le Rui4]

[0095] in, , and is the optimal predicted position corresponding to the gray wolf, is the current optimal solution location.

[0096] After completing each iteration of QGWO, the quantum state must be obtained through decoding operation The classic binary solution of , as shown in formula (15):

[0097] (15)

[0098] Using the classic solution obtained by the decoding operation, the current population fitness is evaluated through the existing evaluation Kalman filter function, and the three solutions with the highest fitness are selected as the new , and Wolves, and update the wolf pack quantum position again.

[0099] Determine whether the maximum number of iterations has been reached. If so, the algorithm process ends; if not, the iteration continues.

[0100] After implementing OGWO according to the above steps, the optimal initial state estimation value and the optimal initial state covariance value of MSTUKF are obtained, which are directly brought into the MSTUKF SOC estimation algorithm.

[0101] On the basis of the above embodiment, in this embodiment, before obtaining the classical solution of the quantum state of the gray wolf by decoding the optimal predicted position of the gray wolf, the classical position corresponding to the optimal predicted position is determined by formula (16):

[0102] (16)

[0103] in, is the classical position corresponding to the optimal predicted position, is the optimal predicted position, a and b is the preset coefficient, dim For [admin5][Le Rui6]2.

[0104] Before the algorithm is updated and iterated, the classical position corresponding to the quantum state of the population position must be calculated and adjusted according to the quantum calculation. Introducing a sine wave function in the classical position calculation function increases the randomness of the algorithm, increases the ability to explore the search space and escape from the local optimal solution. This makes the population quantum position update not only dependent on the current leader position (i.e. , and The algorithm also relies on a certain degree of random exploration, which helps it avoid being trapped in local optimal solutions and explore a wider range of solution spaces.

[0105] a can be 0.01, b can be 2, and formula (14) can be changed to formula (17):

[0106] +0.01* sin [2* pi * rank (1, dim )](17)[admin7][Le Rui8]

[0107] The flowchart of the existing grey wolf optimization algorithm GWO is as follows Figure 2 As shown, the flow chart of the quantum grey wolf algorithm QGWO provided in this embodiment is as follows Figure 3 shown.

[0108] Based on the above embodiment, the method of evaluating the population fitness of the gray wolf based on the Kalman filter function in this embodiment includes:

[0109] The state prediction value is obtained by the following formula:

[0110] (18)

[0111] The error covariance is predicted by the following formula:

[0112] (19)

[0113] The Kalman gain is calculated by the following formula:

[0114] (20)

[0115] The error covariance is updated by the following formula:

[0116] (twenty one)

[0117] Among them, A is the state transfer matrix, B is the control input matrix, C is the measurement matrix, K represents the Kalman gain, P represents the error covariance at each time increment, and P is used as the population fitness of the gray wolf.

[0118] The evaluation Kalman filter process includes prediction, update and root mean square error calculation. The mathematical model for evaluating the Kalman filter is shown in formulas (18) to (21). Using this model as the evaluation indicator of QGWO, the operation of the filtering process is accurately simulated, providing a stable optimization environment for QGWO operation.

[0119] On the basis of the above embodiment, the second state prediction value of the lithium-ion battery obtained based on the MSTUKF algorithm in this embodiment includes:

[0120] Calculate Sigma sampling points;

[0121] After performing UT transformation on the Sigma sampling point, the Sigma sampling point is calculated again;

[0122] After performing UT transformation on the recalculated Sigma sampling points, calculate the fading factor matrix;

[0123] Calculate the covariance value of the fading factor according to the fading factor matrix, and recalculate the Sigma sampling point according to the covariance value;

[0124] After performing UT transformation on the recalculated Sigma sampling points, calculate the Kalman gain;

[0125] The MSTUKF algorithm is measured and updated according to the Kalman gain until the output result of the MSTUKF algorithm converges, thereby obtaining the second state prediction value output by the last iteration of the MSTUKF algorithm.

[0126] The process of the MSTUKF estimation algorithm is as follows:

[0127] 1. Initialization state and the state error covariance matrix , as shown in formula (22):

[0128] (twenty two)

[0129] 2. Calculate the Sigma sampling point, as shown in formula (23):

[0130] (twenty three)

[0131] in, represents the dimension of the system, is the scale parameter.

[0132] 3. Calculation using UT changes And the covariance value of the unintroduced fading factor , as shown in formulas (24) and (25):

[0133] (twenty four)

[0134] (25)

[0135] in, represents the mean weight of the sampling points, is a positive symmetric matrix.

[0136] 4. Utilize and Resample the Sigma points, as shown in formula (26):

[0137] (26)

[0138] 5. Calculate output predictions using UT changes And the cross-covariance matrix without the introduction of the fading factor And the measurement matrix , as shown in formulas (27) to (29):

[0139] (27)

[0140] (28)

[0141] (29)

[0142] in, is the sampling point set.

[0143] 6. Calculate the fading factor matrix, as shown in formulas (30) to (35):

[0144] (30)

[0145] (31)

[0146] (32)

[0147] (33)

[0148] (34)

[0149] (35)

[0150] in, is the predicted state noise matrix, is the forecast error covariance matrix, represents the covariance matrix of the actual sequence, is a weakening factor, is the fading factor.

[0151] 7. Utilize calculate , and use and Perform Sigma point sampling, as shown in formulas (36) and (37):

[0152] (36)

[0153] (37)

[0154] 8. Calculate the cross-covariance matrix using UT transformation And the output covariance matrix , as shown in formulas (38) to (40):

[0155] (38)

[0156] (39)

[0157] (40)

[0158] 9. Measurement update, such as formulas (41) and (42):

[0159] (41)

[0160] (42)

[0161] Figure 4 is the MSTUKF algorithm flow chart, Figure 5 is the flow chart of the GWO-MSTUKF algorithm, Figure 6 is the flowchart of the QGWO-MSTUKF algorithm, Figure 7 This is a comparison diagram of GWO-MSTUKF and QGWO-MSTUKF. It can be seen that QGWO-MSTUKF has a higher fitness value than GWO-MSTUKF, and the QGWO algorithm has a higher convergence speed and optimization accuracy than the GWO algorithm. The QGWO-optimized MSTUKF algorithm has a higher estimation accuracy and a faster convergence speed.

[0162] The lithium-ion battery SOC estimation device provided by the present invention is described below. The lithium-ion battery SOC estimation device described below and the lithium-ion battery SOC estimation method described above can be referred to each other.

[0163] like Figure 8 As shown, the device includes an optimization module 801 and an estimation module 802, wherein:

[0164] The optimization module 801 is used to obtain the first state prediction value of the lithium-ion battery and the error covariance of the first state prediction value according to the data of the lithium-ion battery based on the quantum bit-improved gray wolf optimization algorithm, wherein the quantum bit-improved gray wolf optimization algorithm uses a quantum gate to initialize the quantum population position of the gray wolf, and applies a quantum rotating gate to each quantum bit to simulate the quantum movement of the gray wolf;

[0165] The estimation module 802 is used to use the first state prediction value as the optimal initial state value of the MSTUKF algorithm, use the error covariance of the first state prediction value as the optimal initial error covariance of the MSTUKF algorithm, and obtain the second state prediction value of the lithium-ion battery based on the MSTUKF algorithm.

[0166] The present invention improves the Grey Wolf Optimization Algorithm by introducing quantum bits, solves the problem of poor diversity of the initial population of GWO, improves the search efficiency of the algorithm, and applies the improved quantum Grey Wolf Algorithm QGWO to MSTUKF estimation of battery SOC. The initial value of the filter of MSTUKF is optimized by QGWO, solves the problem that MSTUKF has high requirements on the initial value of the filter and large initial estimation error, and improves the convergence speed and estimation accuracy of SOC estimation.

[0167] Fig. 9 An example of a physical structure diagram of an electronic device is shown in FIG. Fig. 9 As shown, the electronic device may include: a processor 910, a communication interface 920, a memory 930 and a communication bus 940, wherein the processor 910, the communication interface 920 and the memory 930 communicate with each other through the communication bus 940. The processor 910 may call the logic instructions in the memory 930 to execute the lithium-ion battery SOC estimation method, the method comprising: obtaining the first state prediction value of the lithium-ion battery and the error covariance of the first state prediction value according to the data of the lithium-ion battery based on the quantum bit improved gray wolf optimization algorithm, the quantum bit improved gray wolf optimization algorithm uses a quantum gate to initialize the quantum population position of the gray wolf, and applies a quantum rotation gate to each quantum bit to simulate the quantum movement of the gray wolf; the first state prediction value is used as the optimal initial state value of the MSTUKF algorithm, the error covariance of the first state prediction value is used as the optimal initial error covariance of the MSTUKF algorithm, and the second state prediction value of the lithium-ion battery is obtained based on the MSTUKF algorithm.

[0168] In addition, the logic instructions in the above-mentioned memory 930 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. 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.

[0169] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the lithium-ion battery SOC estimation method provided by the above methods, the method comprising: obtaining a first state prediction value of the lithium-ion battery and an error covariance of the first state prediction value according to the data of the lithium-ion battery based on the quantum bit-improved gray wolf optimization algorithm, the quantum bit-improved gray wolf optimization algorithm uses a quantum gate to initialize the quantum population position of the gray wolf, and applies a quantum rotating gate to each quantum bit to simulate the quantum movement of the gray wolf; using the first state prediction value as the optimal initial state value of the MSTUKF algorithm, and using the error covariance of the first state prediction value as the optimal initial error covariance of the MSTUKF algorithm, and obtaining the second state prediction value of the lithium-ion battery based on the MSTUKF algorithm.

[0170] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the processor executes the lithium-ion battery SOC estimation method provided by the above-mentioned methods, the method comprising: obtaining a first state prediction value of the lithium-ion battery and an error covariance of the first state prediction value according to the data of the lithium-ion battery based on the quantum bit-improved gray wolf optimization algorithm, the quantum bit-improved gray wolf optimization algorithm using a quantum gate to initialize the quantum population position of the gray wolf, and applying a quantum rotating gate to each quantum bit to simulate the quantum movement of the gray wolf; using the first state prediction value as the optimal initial state value of the MSTUKF algorithm, using the error covariance of the first state prediction value as the optimal initial error covariance of the MSTUKF algorithm, and obtaining the second state prediction value of the lithium-ion battery based on the MSTUKF algorithm.

[0171] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0172] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0173] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A lithium-ion battery SOC estimation method, It is characterized in that include: The improved gray wolf optimization algorithm based on quantum bits obtains the first state prediction value of the lithium-ion battery and the error covariance of the first state prediction value according to the data of the lithium-ion battery. The improved gray wolf optimization algorithm based on quantum bits uses quantum gates to initialize the quantum population position of the gray wolf, and applies a quantum rotating gate to each quantum bit to simulate the quantum movement of the gray wolf; Using the first state prediction value as the optimal initial state value of the MSTUKF algorithm, using the error covariance of the first state prediction value as the optimal initial error covariance of the MSTUKF algorithm, and obtaining a second state prediction value of the lithium-ion battery based on the MSTUKF algorithm; The initial position of the quantum population of gray wolves is ,in , N is the population size of the gray wolf, M is the number of quantum bits, and is the probability amplitude of the qubit, satisfying ; The quantum movement of the gray wolf is simulated by applying a quantum rotating gate to each quantum bit using the following formula: in, is the quantum population position, QG is the quantum rotating gate, is based on Wolf, Wolf and The rotation angle of the wolf's position is dynamically calculated, N is the population size of the gray wolf, and D is the optimized dimension. is the upper bound of the parameter, is the lower bound of the parameter, and rank is a random matrix.

2. The lithium-ion battery SOC estimation method according to claim 1, It is characterized in that The improved grey wolf optimization algorithm based on quantum bits obtains the first state prediction value of the lithium-ion battery and the error covariance of the first state prediction value according to the data of the lithium-ion battery, including: In each iterative optimization encirclement phase, the distance between the population and the prey is calculated, and the quantum population position of the gray wolf is updated according to the distance; In each iterative optimization hunting phase, according to Wolf, Wolf and A wolf comes to capture prey, and the optimal predicted position of the gray wolf is obtained; Obtaining a classical solution of the quantum state of the gray wolf by decoding the optimal predicted position of the gray wolf; The fitness of the gray wolf population is evaluated based on the Kalman filter function, and the three solutions with the highest fitness are selected as the new Wolf, Wolf and Wolf, continue to update the quantum population position of the gray wolf until a preset maximum number of iterations is reached, and obtain the first state prediction value output by the last iteration number of the Kalman filter function and the error covariance of the first state prediction value.

3. The lithium-ion battery SOC estimation method according to claim 2, It is characterized in that Before obtaining the classical solution of the quantum state of the gray wolf by decoding the optimal predicted position of the gray wolf, the classical position corresponding to the optimal predicted position is determined by the following formula: in, is the classical position corresponding to the optimal predicted position, is the optimal predicted position, a and b is the preset coefficient, dim is 2.

4. The lithium-ion battery SOC estimation method according to claim 2, It is characterized in that The evaluating the population fitness of the gray wolf based on the Kalman filter function includes: The state prediction value is obtained by the following formula: The error covariance is predicted by the following formula: The Kalman gain is calculated by the following formula: The error covariance is updated by the following formula: Among them, A is the state transfer matrix, B is the control input matrix, C is the measurement matrix, K represents the Kalman gain, P represents the error covariance at each time increment, P is used as the population fitness of the gray wolf, and Q is the process noise covariance matrix.

5. The lithium-ion battery SOC estimation method according to claim 2, It is characterized in that The obtaining the second state prediction value of the lithium-ion battery based on the MSTUKF algorithm includes: Calculate Sigma sampling points; After performing UT transformation on the Sigma sampling point, the Sigma sampling point is calculated again; After performing UT transformation on the recalculated Sigma sampling points, calculate the fading factor matrix; Calculate the covariance value of the fading factor according to the fading factor matrix, and recalculate the Sigma sampling point according to the covariance value; After performing UT transformation on the recalculated Sigma sampling points, calculate the Kalman gain; The MSTUKF algorithm is measured and updated according to the Kalman gain until the output result of the MSTUKF algorithm converges, thereby obtaining the second state prediction value output by the last iteration of the MSTUKF algorithm.

6. A lithium-ion battery SOC estimation device, It is characterized in that The lithium-ion battery SOC estimation method applied to any one of claims 1 to 5 comprises: An optimization module, for obtaining a first state prediction value of the lithium-ion battery and an error covariance of the first state prediction value according to data of the lithium-ion battery based on a quantum bit-improved gray wolf optimization algorithm, wherein the quantum bit-improved gray wolf optimization algorithm uses a quantum gate to initialize the quantum population position of the gray wolf, and applies a quantum rotating gate to each quantum bit to simulate the quantum movement of the gray wolf; An estimation module is used to use the first state prediction value as the optimal initial state value of the MSTUKF algorithm, use the error covariance of the first state prediction value as the optimal initial error covariance of the MSTUKF algorithm, and obtain a second state prediction value of the lithium-ion battery based on the MSTUKF algorithm.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the lithium-ion battery SOC estimation method according to any one of claims 1 to 5 is implemented.

8. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the lithium-ion battery SOC estimation method according to any one of claims 1 to 5 is implemented.