A new energy battery power supply test method and system
By extracting features through the preset pulse current load sequence and wavelet transform decomposition, combined with the neural network model to evaluate the health status of the new energy battery, it solves the problem of insufficient accuracy of battery aging assessment in the existing technology and achieves an accurate depiction of the battery aging process. and health management.
Patent Information
- Application Number
- CN202410764561.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-06-14
AI Technical Summary
Existing new energy battery aging assessment methods rely on a single physical parameter, which is difficult to fully reflect the inherent aging status of the battery. Traditional analysis methods have limited ability to extract feature information from nonlinear voltage signals, and are difficult to adapt to the aging differences of different types of batteries. Traditional machine learning is difficult to solve in time series. There is a performance bottleneck in data processing.
The preset pulse current load sequence and improved wavelet transform decomposition are used to extract voltage signal features, and vector-level fusion is performed with battery data. The health status index is predicted through the pre-trained neural network model to determine the battery health level.
It achieves a comprehensive characterization of the battery aging process, improves the accuracy and robustness of assessment, can efficiently learn the dynamic evolution rules in time series data, and provides health management and preventive maintenance solutions that are closer to practical applications.
Smart Images

Figure CN118362904B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of new energy batteries, and more specifically, to a new energy battery power supply testing method and system. Background Art
[0002] The patent with application publication number CN113532549A discloses a power battery testing system for new energy vehicles, including: a data acquisition module for collecting power battery performance data, a data processing module connected to the data acquisition module, for processing the power battery performance data to obtain the power battery performance data processing results, and a processing result output module connected to the data processing module to output the power battery performance data processing results. It is used to solve the problem that the existing testing system needs to repeat multiple tests to complete the sample testing, which is cumbersome, time-consuming and labor-intensive.
[0003] However, at the current stage, when evaluating the health status of batteries, people usually only rely on single physical parameters such as voltage, current, and temperature, which makes it difficult to fully reflect the internal aging condition of the battery. Traditional time domain and frequency domain analysis methods have limited ability to analyze nonlinear and non-stationary voltage signals, and cannot effectively extract the characteristic information contained in the battery aging process. For example, in the late stage of aging, the output voltage of some batteries may show complex nonlinear fluctuations, and traditional analysis methods are difficult to extract effective features from them. Existing methods lack an effective mechanism for fusing multi-source heterogeneous information, resulting in insufficient robustness and accuracy of the evaluation results. In actual applications, the aging performance of batteries of different models will vary greatly, and a single evaluation model is difficult to adapt to different situations. Traditional machine learning has performance bottlenecks when processing time series data, and it is difficult to efficiently learn and mine the dynamic evolution laws contained in the voltage signal. Battery aging is a dynamic process, which requires the model to be able to learn the inherent laws in time series data, but traditional models are limited in this regard.
[0004] In view of this, the present invention proposes a new energy battery power supply testing method and system to solve the above problems. Summary of the invention
[0005] In order to overcome the above-mentioned defects of the prior art and to achieve the above-mentioned purpose, the present invention provides the following technical solution: a new energy battery power supply test method, comprising:
[0006] S1. Apply a preset series of pulse current load sequences to the new energy battery, and measure the output voltage signal of the new energy battery in real time;
[0007] S2, decomposing the output voltage signal by improved wavelet transform to obtain wavelet components of n scales;
[0008] S3, extracting statistical features of the wavelet components of each scale to obtain corresponding wavelet features;
[0009] S4, collecting battery data, and fusing the wavelet features and the battery data at the vector level to obtain a fused feature vector;
[0010] S5. Input the fused feature vector into the pre-trained neural network model to predict the health status index of the new energy battery, and judge the health level of the new energy battery according to the health status index of the new energy battery.
[0011] Furthermore, the preset manner of the series of pulse current load sequences includes:
[0012] Define the gamma process model as a generative model of pulse current load and define the shape parameters of the gamma process model and scale parameter ;
[0013] Set the initial time interval [0, T], and discretize it into N time points with equal distance. At each time point, according to the shape parameter and scale parameter , generate the corresponding random sample values, and obtain a random sequence of length N;
[0014] A threshold value θ is set, and the random sequence is traversed. When any sequence value in the random sequence is greater than the threshold value θ, the time point is recorded, and the time interval between adjacent time points greater than the threshold value θ is taken as the duration of a pulse current, that is, the length of a pulse current load sequence. The amplitude of the pulse current is determined according to the maximum value of the random sequence in the time interval, that is, a series of pulse current load sequences are obtained;
[0015] The random sample value generation method includes:
[0016] Define a function that accepts shape parameters, random sample values, and scale parameters ,in, is a random sample value;
[0017] ,in, is the gamma function, is the base of the exponential function;
[0018] The gamma function ,in, is a dummy variable representing the integration interval Any value in ;
[0019] Generate two uniformly distributed random numbers and , the value range of the random number is in the interval [0, 1], let ,like Greater than or equal to this time , then accept As a deterministic random sample value, otherwise reject and regenerate and .
[0020] Furthermore, the method of performing improved wavelet transform decomposition on the output voltage signal includes:
[0021] Define Daubechies wavelet as the wavelet basis function of improved wavelet transform decomposition, construct a dual-tree wavelet filter bank to decompose the output voltage signal according to the preset decomposition scale number n, obtain n detail components, perform cyclic translation processing on each detail component to obtain translation-invariant detail components, perform cyclic rotation processing on the translation-invariant detail components to obtain rotation-invariant detail components;
[0022] The rotation invariant detail component and the detail component are taken element by element to obtain the transformed detail component, and each transformed detail component is upsampled to make its length consistent with the original output voltage signal, that is, wavelet components of n scales are obtained;
[0023] The method of constructing the dual-tree wavelet filter bank includes:
[0024] Define the order of the wavelet basis function as M, then the scale function and wavelet function of the wavelet basis function are:
[0025] ,in, is the index of the filter coefficient, is the scale function, is the wavelet function, is the time index, is the low frequency component coefficient, is the high frequency component coefficient;
[0026] The dual-tree wavelet filter bank includes a first filter bank and a second filter bank. The first filter bank is and , the second filter bank is and ;
[0027] The dual-tree wavelet filter bank is expressed as: , where express Flip and move one unit from right to left, express Flip and move one unit from right to left.
[0028] Furthermore, the cyclic translation processing method includes:
[0029] For Details , cyclic translation along the time axis times, get Translation Version , belong Positive integers in the interval And all the translation versions take the maximum value element by element to get the translation invariant detail component ;
[0030] The cyclic rotation processing method includes:
[0031] Will Divide into m small blocks, rotate each small block K times to obtain K rotated versions, take the maximum value of the original small block and all rotated versions element by element to obtain the rotation-invariant small block, and splice all the rotation-invariant small blocks to obtain the rotation-invariant detail component .
[0032] Further, the wavelet characteristics include wavelet kurtosis, wavelet skewness, wavelet energy and wavelet entropy;
[0033] For Wavelet components of scale , the calculation formula of its wavelet kurtosis is:
[0034] ,in, For the The length of the wavelet component of the scale, that is, the number of elements, is the index of the wavelet component element, for No. elements, that is, each value of the wavelet component of this scale, For the The mean of the wavelet components at each scale, For the The variance of the wavelet components at each scale;
[0035] The calculation formula of wavelet skewness is:
[0036] , where for The wavelet skewness of
[0037] The calculation formula of wavelet energy is:
[0038] , where for The wavelet energy of
[0039] The calculation methods of wavelet entropy include:
[0040] Will Normalize it and get the normalized , denoted as , then the wavelet entropy ,in, express Middle The proportion of an element in the entire wavelet component.
[0041] Further, the battery data includes battery type, battery chemical composition, battery rated capacity and battery cycle number;
[0042] The method of fusing the wavelet features and the battery data at the vector level includes:
[0043] The battery data is encoded once and converted into a feature vector of a fixed length, which is recorded as the battery data feature vector, and the wavelet feature is encoded once and converted into a feature vector of a fixed length, which is recorded as the wavelet feature vector;
[0044] The wavelet eigenvector and battery data eigenvector are mapped to the quantum bit space and represented by quantum states respectively. The wavelet eigenvector is represented as the wavelet characteristic quantum state. , the battery data feature vector is represented as the battery data quantum state ;
[0045] ,in, is the dimension of the wavelet eigenvector, represents the ground state of the quantum bit in the wavelet characteristic quantum state, that is, the first basis vectors, represents the first The quantum superposition coefficient of an element, is the index of the element in the wavelet eigenvector;
[0046] ,in, Represents the first The quantum superposition coefficient of an element, is the dimension of the battery data feature vector, that is, the number of elements, Represents the base state of the quantum bit in the battery data quantum state, that is, the first basis vectors, is the index of the element in the battery data feature vector;
[0047] Apply quantum circuits to introduce quantum entanglement between the wavelet characteristic quantum state and the battery data quantum state to obtain a fused characteristic quantum state. ,in, is a controllable quantum logic gate circuit. is the tensor product operation;
[0048] Will Perform quantum measurement and remap it back to vector space to obtain the final fused feature vector ,in, , is a quantum measurement operator.
[0049] Furthermore, the training method of the neural network model includes:
[0050] Define recursive neural network as the basic structure of neural network model, which includes input layer, hidden layer and output layer;
[0051] Collect the output voltage signals and battery data of tu kinds of new energy batteries in the past fixed time, and construct the corresponding fusion feature vectors, which are recorded as historical fusion feature vectors. Expand the historical fusion feature vectors by time steps to form sequence data as the training input of the neural network model. Label the sequence data according to the vector time step. The label is the health status index of the new energy battery. The labeling range of the health status index is 0 to 1.
[0052] Initialize the network parameters of the neural network model, including the weight matrix from the input layer to the hidden layer, the cyclic weight matrix of the hidden layer, the bias vector of the hidden layer, the weight matrix from the hidden layer to the output layer, and the bias vector of the output layer;
[0053] Define the loss function of the neural network model ,in, is the length of the sequence data, is the loss weight function weighted according to the health status, It is The health status index of vector time steps, is the quantile loss function, It is The health status index of the vector time steps, It is The predicted value of the neural network model at vector time steps, is the quantile level;
[0054] ,in, is the indicative function;
[0055] The threshold interval of the preset health status, the upper limit of the threshold interval is , the lower limit of the threshold interval is ;
[0056] like Less than ,but for , If it is within the threshold range, is 1, if Greater than ,but for ;in, and is the preset weight coefficient, and greater than 1, Less than 1;
[0057] The sequence data is passed to the input layer, and then passes through the hidden layer and the output layer in turn, outputs the predicted value, calculates the corresponding loss function value, and backpropagates the error gradient along the output layer to the input layer. According to the error gradient, the network parameters are updated using the optimization algorithm to reduce the value of the loss function. The sequence data is trained repeatedly until the neural network model converges or reaches the preset number of iterations, that is, the training of the neural network model is completed.
[0058] Furthermore, the input layer is used to receive the fused feature vector As input, represents the vector time step, and the hidden layer consists of g recurrent neurons;
[0059] The calculation formula for each recurrent neuron is:
[0060] ,in, is the current vector time step The hidden state vector of is the activation function, is the weight matrix from the input layer to the hidden layer, is the recurrent weight matrix of the hidden layer, is the bias vector of the hidden layer;
[0061] The output layer calculates the predicted value based on the output of the hidden layer ,in, is the activation function of the output layer, is the weight matrix from the hidden layer to the output layer, is the bias vector of the output layer.
[0062] Furthermore, the method of judging the health level of the new energy battery according to the health status index of the new energy battery includes:
[0063] The health status index is divided into 5 levels, among which, if the health status index is in the interval (0.9, 1.0], the health level is excellent;
[0064] If the health status index is within the interval (0.8, 0.9], the health level is good;
[0065] If the health status index is within the interval (0.7, 0.8], the health level is average;
[0066] If the health status index is in the interval (0.6, 0.7], the health level is poor;
[0067] If the health status index is in the interval [0,0.6], the health level is severe aging;
[0068] The predicted health status index of the new energy battery is compared with the five divided levels to determine its level, and its health level is output according to the level it belongs to.
[0069] A new energy battery power supply test system, which is used to implement a new energy battery power supply test method, comprises: a voltage test module, which is used to apply a series of preset pulse current load sequences to the new energy battery, and measure the output voltage signal of the new energy battery in real time;
[0070] The voltage decomposition module is used to decompose the output voltage signal by improved wavelet transform to obtain n-scale wavelet components;
[0071] The feature extraction module is used to extract statistical features of the wavelet components of each scale to obtain the corresponding wavelet features;
[0072] The data fusion module is used to collect battery data and fuse the wavelet features and battery data at the vector level to obtain a fused feature vector;
[0073] The health level assessment module is used to input the fused feature vector into the pre-trained neural network model to predict the health status index of the new energy battery. According to the health status index of the new energy battery, the health level of the new energy battery is judged. Each module is connected by wired and / or wireless means.
[0074] The technical effects and advantages of the new energy battery power supply test method and system of the present invention are as follows:
[0075] The present invention can comprehensively characterize the intrinsic essential characteristics of the battery aging process, fully mine the rich information contained in the voltage signal, overcome the limitations of the single physical parameter evaluation, and secondly, truly simulate the current fluctuations under complex working environments, improve the reliability and practicability of the test, and the evaluation results are closer to the actual application scenarios. In addition, it integrates the multi-source heterogeneous information of the battery, and realizes the efficient fusion of features through advanced quantum computing, thereby improving the robustness and accuracy of the evaluation; in addition, the recursive neural network model can efficiently learn and mine the dynamic evolution laws in time series data, and the evaluation accuracy is significantly improved. In addition, the loss function is designed in a targeted manner, the weight of the key health status area is increased, and the model is guided to pay more attention to the key areas, further optimizing the accuracy of the evaluation, and providing a comprehensive, accurate and efficient solution for the health management and preventive maintenance of new energy batteries. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] Figure 1 This is a schematic diagram of a new energy battery power supply test method of the present invention;
[0077] Figure 2 This is a schematic diagram of a new energy battery power supply test system of the present invention. DETAILED DESCRIPTION
[0078] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. 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.
[0079] Example 1
[0080] See also Figure 1 As shown, a new energy battery power supply test method described in this embodiment includes:
[0081] S1. Apply a preset series of pulse current load sequences to the new energy battery, and measure the output voltage signal of the new energy battery in real time;
[0082] S2, decomposing the output voltage signal by improved wavelet transform to obtain wavelet components of n scales;
[0083] S3, extracting statistical features of the wavelet components of each scale to obtain corresponding wavelet features;
[0084] S4, collecting battery data, and fusing the wavelet features and the battery data at the vector level to obtain a fused feature vector;
[0085] S5. Input the fused feature vector into the pre-trained neural network model to predict the health status index of the new energy battery; and judge the health level of the new energy battery according to the health status index of the new energy battery.
[0086] Furthermore, the preset method of the series of pulse current load sequences includes:
[0087] Define the gamma process model as a generative model of pulse current load and define the shape parameters of the gamma process model and scale parameter ;
[0088] Set the initial time interval [0, T], and discretize it into N time points with equal distance. At each time point, according to the shape parameter and scale parameter , generate the corresponding random sample values, and obtain a random sequence of length N, which represents the change process of the gamma process model within the time interval;
[0089] A threshold value θ is set. When the random sample value is greater than θ, it is considered that a pulse current event occurs. The threshold value θ can be determined based on factors such as the rated current of the battery and historical data;
[0090] The random sequence is traversed, and when any sequence value in the random sequence is greater than the threshold value θ, the time point is recorded, and the time interval between adjacent time points greater than the threshold value θ is taken as the duration of a pulse current, that is, the length of a pulse current load sequence; according to the maximum value of the random sequence within the time interval, the amplitude of the pulse current is determined, that is, a series of pulse current load sequences are obtained.
[0091] The random sample value generation method includes:
[0092] Define a function that accepts shape parameters, random sample values, and scale parameters ,in, is a random sample value;
[0093] ,in, is the gamma function, is the base of the exponential function;
[0094] The gamma function ,in, is a dummy variable representing the integration interval Any value in ;
[0095] Generate two uniformly distributed random numbers and , the value range of the random number is in the interval [0, 1], let like Greater than or equal to this time , then accept As a deterministic random sample value, otherwise reject and regenerate and .
[0096] It should be noted that the time and amplitude of the pulse current events in this sequence are random, which can well simulate the complex current load conditions in the actual working environment, and the shape parameters can be adjusted. and scale parameter , and threshold θ, to control the statistical characteristics of the generated pulse current sequence to meet the test requirements;
[0097] The threshold value θ can be determined based on the rated current of the battery, historical data and other factors. Specifically, the threshold value θ is used to determine whether a pulse current event has occurred in the random sequence. When the random sample value is greater than the threshold value θ, it is considered that a pulse current event has occurred. Therefore, the setting of the threshold value θ should match the actual working conditions of the battery to accurately identify the occurrence of a pulse current event.
[0098] Furthermore, the method of performing improved wavelet transform decomposition on the output voltage signal includes:
[0099] Define Daubechies wavelet as the wavelet basis function of improved wavelet transform decomposition, construct a dual-tree wavelet filter bank to decompose the output voltage signal according to the preset decomposition scale number n, obtain n detail components, perform cyclic translation processing on each detail component to obtain translation-invariant detail components, perform cyclic rotation processing on the translation-invariant detail components to obtain rotation-invariant detail components;
[0100] The rotation invariant detail component and the detail component are maximized element by element to obtain the transformed detail component. Each transformed detail component is upsampled to make its length consistent with the original output voltage signal, that is, wavelet components of n scales are obtained.
[0101] The method of constructing the dual-tree wavelet filter bank includes:
[0102] Define the order of the wavelet basis function as M, then the scale function and wavelet function of the wavelet basis function are:
[0103] ,in, is the index of the filter coefficient, is the scale function, is the wavelet function, is the time index, is the low frequency component coefficient, is the high frequency component coefficient.
[0104] For example, is a sequence containing [0.48296, 0.8365, 0.22414, -0.1294], which is used to calculate the value of the scaling function. is a sequence containing [0.1294, -0.22414, 0.8365, -0.48296], which is used to calculate the value of the wavelet function.
[0105] The dual-tree wavelet filter bank includes a first filter bank and a second filter bank. The first filter bank is and , the second filter bank is and ;
[0106] The dual-tree wavelet filter bank is expressed as:
[0107] , where express Flip and move one unit from right to left, express Flip and move one unit from right to left. For example, is a sequence containing [1, 2, 3, 4], then It is the sequence containing [4, 3, 2, 1] from right to left.
[0108] The cyclic translation processing method includes:
[0109] For Details , cyclic translation along the time axis times, get Translation Version , belong Positive integers in the interval And all the translation versions take the maximum value element by element to get the translation invariant detail component .
[0110] The forward cyclic translation along the time axis refers to moving a sequence to the right along the time axis. When it moves to the end of the sequence, it will continue to move from the head of the sequence. For example, for the sequence [1, 2, 3, 4], after one forward cyclic translation, [4, 1, 2, 3] is obtained. In this way, multiple translation versions of the sequence can be obtained to improve the translation invariance of the wavelet component.
[0111] The cyclic rotation processing method includes:
[0112] Will Divide into m small blocks (such as 8x8 blocks), rotate each small block K times (rotation angles such as 90°, 180°, 270°), and obtain K rotated versions. Take the maximum value of the original small block and all rotated versions element by element to obtain the rotation-invariant small block. Concatenate all the rotation-invariant small blocks to obtain the rotation-invariant detail component. , Circular rotation processing can improve the invariance of wavelet components to rotation, thereby enhancing the robustness of features.
[0113] Further, the wavelet characteristics include wavelet kurtosis, wavelet skewness, wavelet energy and wavelet entropy;
[0114] For Wavelet components of scale , the calculation formula of its wavelet kurtosis is:
[0115] ,in, For the The length of the wavelet component of the scale, that is, the number of elements, is the index of the wavelet component element, for No. elements, that is, each value of the wavelet component of this scale, For the The mean of the wavelet components at each scale, For the The variance of the wavelet component at each scale.
[0116] Wavelet kurtosis is used to measure the steepness of the wavelet component distribution. The wavelet kurtosis of the normal distribution is 3. A value greater than 3 indicates a sharp peak (a high peak), and a value less than 3 indicates a flat top (a relatively flat peak).
[0117] The calculation formula of wavelet skewness is:
[0118] , where for The wavelet skewness of
[0119] The calculation formula of wavelet energy is:
[0120] , where for The wavelet energy of
[0121] The calculation methods of wavelet entropy include:
[0122] Will Normalize it and get the normalized , denoted as , then the wavelet entropy ,in, express Middle The proportion of an element in the entire wavelet component.
[0123] It should be noted that the wavelet kurtosis reflects the mutation characteristics of the voltage signal. Battery aging often causes voltage mutations. Therefore, the wavelet kurtosis can be used as an important indicator of the battery health status. The wavelet skewness reflects the skewness of the wavelet component distribution and can be used to describe the asymmetry of the voltage signal. Battery aging may cause the voltage curve to change from symmetric to asymmetric. The wavelet energy reflects the energy distribution of the wavelet component. As the battery ages, the energy distribution of the voltage signal will also change. The wavelet entropy reflects the degree of disorder of the wavelet component and can be used to describe the complexity and uncertainty of the voltage signal. By extracting wavelet features, the changing laws of the voltage signal in terms of kurtosis, skewness, energy and entropy can be fully characterized, thereby revealing the inherent essential characteristics of the battery aging process.
[0124] Furthermore, the battery data includes battery type, battery chemical composition, battery rated capacity and battery cycle number.
[0125] Battery type, for example, lithium-ion battery, lead-acid battery, nickel-metal hydride battery, etc. The battery type indicates the electrochemical system used by the battery. Different types of batteries differ in working principles, performance indicators, etc. Battery chemical composition, for example, the positive electrode of a lithium-ion battery is lithium cobalt oxide, and the negative electrode is carbon material, the positive electrode of a lead-acid battery is lead dioxide, and the negative electrode is lead. The rated capacity of the battery indicates the total amount of power that the battery can provide under specific discharge conditions. The number of battery cycles records the cumulative number of charge and discharge cycles the battery has experienced. As the number of cycles increases, the performance of the battery will gradually decay. With this information, the performance status of the battery can be preliminarily evaluated.
[0126] The method of fusing the wavelet features and the battery data at the vector level includes:
[0127] The battery data is encoded once and converted into a feature vector of a fixed length, which is recorded as the battery data feature vector, and the wavelet feature is encoded once and converted into a feature vector of a fixed length, which is recorded as the wavelet feature vector.
[0128] The wavelet eigenvector and battery data eigenvector are mapped to the quantum bit space and represented by quantum states respectively. The wavelet eigenvector is represented as the wavelet characteristic quantum state. , the battery data feature vector is represented as the battery data quantum state ;
[0129] ;in, is the dimension of the wavelet eigenvector, represents the ground state of the quantum bit in the wavelet characteristic quantum state, that is, the first basis vectors, represents the first The quantum superposition coefficient of an element, is the index of the element in the wavelet eigenvector.
[0130] ,in, Represents the first The quantum superposition coefficient of an element, is the dimension of the battery data feature vector, that is, the number of elements, Represents the base state of the quantum bit in the battery data quantum state, that is, the first basis vectors, is the index of the element in the battery data feature vector.
[0131] Apply quantum circuits to introduce quantum entanglement between the wavelet characteristic quantum state and the battery data quantum state to obtain a fused characteristic quantum state. ,in, is a controllable quantum logic gate circuit. is the tensor product operation.
[0132] The nonlinear superposition and coupling of wavelet features and battery data are realized, so that the fused characteristic quantum state can contain information of both characteristics at the same time, and there is quantum entanglement, reflecting the intrinsic connection between the two.
[0133] Will Perform quantum measurement and remap it back to vector space to obtain the final fused feature vector ,in, is a quantum measurement operator;
[0134] The fusion method based on quantum computing can fully integrate different features in the quantum bit space and explore the entanglement relationship therein. At the same time, the parallelism of quantum computing can also accelerate the feature fusion process.
[0135] It should be noted that the qubit space refers to the space composed of qubits, which is the space where quantum states exist. Qubits are the basic units in quantum computing. They can represent the two classical states of 0 and 1, or the superposition state of 0 and 1. The quantum state is a state description of the quantum system, which can be represented by the linear superposition of qubits. The square modulus of the quantum superposition coefficient describes the probability distribution of the quantum state on the corresponding ground state. The ground state refers to the classical state of the qubit 0 and 1, which is represented by the square modulus of the quantum superposition coefficient. and Any quantum state can be represented by the linear superposition of these two basis states. The basis state is the basis of the quantum state.
[0136] The above-mentioned fusion method based on quantum computing can fully integrate different features in the quantum bit space, explore the entanglement relationship therein, and at the same time use the parallelism of quantum computing to accelerate the feature fusion process.
[0137] Furthermore, the training method of the neural network model includes:
[0138] Define a recursive neural network as the basic structure of a neural network model, which includes an input layer, a hidden layer, and an output layer.
[0139] The input layer is used to receive the fused feature vector As input, represents the vector time step, and the hidden layer consists of g recurrent neurons;
[0140] The calculation formula for each recurrent neuron is:
[0141] ,in, is the current vector time step The hidden state vector of is the activation function, such as tanh or ReLU, is the weight matrix from the input layer to the hidden layer, is the recurrent weight matrix of the hidden layer, is the bias vector of the hidden layer;
[0142] The output layer calculates the predicted value based on the output of the hidden layer ,in, is the activation function of the output layer, for example, a linear function or softmax, is the weight matrix from the hidden layer to the output layer, is the bias vector of the output layer.
[0143] The output voltage signals and battery data of tu kinds of new energy batteries in the past fixed time are collected, and the corresponding fusion feature vectors are constructed, recorded as historical fusion feature vectors, and the historical fusion feature vectors are expanded by time steps to form sequence data as the training input of the neural network model. Correspondingly, the sequence data is labeled according to the vector time step. The label is the health status index of the new energy battery. The labeling range of the health status index is 0 to 1, which depends on the actual situation.
[0144] Initialize the network parameters of the neural network model, including the weight matrix from the input layer to the hidden layer, the cyclic weight matrix of the hidden layer, the bias vector of the hidden layer, the weight matrix from the hidden layer to the output layer, and the bias vector of the output layer;
[0145] Define the loss function of the neural network model ,in, is the length of the sequence data, is the loss weight function weighted according to the health status, It is The health status index of the vector time steps, is the quantile loss function, It is The health status index of the vector time steps, It is The predicted value of the neural network model at vector time steps, is the quantile level;
[0146] ,in, is an indicative function, which is used to indicate whether a certain condition is met;
[0147] The threshold interval of the preset health status, the upper limit of the threshold interval is , the lower limit of the threshold interval is ;
[0148] like Less than ,but for ,like If it is within the threshold range, is 1, if Greater than ,but for ;in, and is the preset weight coefficient, and Greater than 1, the purpose is to increase the loss weight when the health status is poor, so that the model pays more attention to this status; Less than 1, the purpose is to appropriately reduce the loss weight when the health status is good, and avoid over-tracking this status.
[0149] Specific and Value, based on the analysis of historical data, when the health status is poor or good, the deviation distribution of the model prediction is obtained, and according to the actual application scenario, the tolerance for poor or good health status is determined to obtain;
[0150] The setting of health status threshold range and weight coefficient can effectively guide the model to pay more attention to key areas and improve the accuracy of battery health status assessment.
[0151] The sequence data is passed to the input layer, and then passes through the hidden layer and the output layer in sequence, the predicted value is output, and the corresponding loss function value is calculated, and the error gradient is back-propagated from the output layer to the input layer. According to the error gradient, the network parameters are updated using an optimization algorithm (such as gradient descent, Adam, etc.) to reduce the value of the loss function; the sequence data is repeatedly trained until the neural network model converges or reaches the preset number of iterations. The convergence of the neural network model can be understood as the value of the loss function no longer changing;
[0152] It should be noted that the health status index is set within the range of 0 to 1. For this range, the threshold interval of the health status, which is used to distinguish whether the health status is in a critical area, can be set according to the requirements of the actual application scenario of the battery, historical data statistical analysis, and expert experience;
[0153] Different scenarios have different requirements for battery health status. The threshold range should be set according to the key values of the specific scenario. A large amount of historical data of batteries in different health states should be analyzed to find the turning point of the health status as a reference for the threshold range. Combined with the practical experience of battery experts, a reasonable threshold range should be determined to conform to the actual law of battery performance degradation.
[0154] Furthermore, the method of judging the health level of the new energy battery according to the health status index of the new energy battery includes:
[0155] The health status index is divided into 5 levels, among which, if the health status index is in the interval (0.9, 1.0], the health level is excellent;
[0156] If the health status index is within the interval (0.8, 0.9], the health level is good;
[0157] If the health status index is within the interval (0.7, 0.8], the health level is average;
[0158] If the health status index is in the interval (0.6, 0.7], the health level is poor;
[0159] If the health status index is in the interval [0,0.6], the health level is severe aging;
[0160] Compare the predicted health status index of the new energy battery with the five levels to determine its level, and output its health level according to the level;
[0161] It should be noted that a text description of the corresponding level can be output, such as "excellent", "good", etc., or a numerical range can be output, such as "the health status index is 0.92, and the health level is excellent."
[0162] This embodiment can comprehensively characterize the intrinsic essential characteristics of the battery aging process, fully mine the rich information contained in the voltage signal, overcome the limitations of the single physical parameter evaluation, and secondly, truly simulate the current fluctuations under complex working environments, improve the reliability and practicality of the test, and the evaluation results are closer to the actual application scenarios. In addition, it integrates the multi-source heterogeneous information of the battery, and realizes efficient fusion between features through advanced quantum computing, thereby improving the robustness and accuracy of the evaluation; in addition, the recursive neural network model can efficiently learn and mine the dynamic evolution laws in time series data, and the evaluation accuracy is significantly improved. In addition, the loss function is designed in a targeted manner, the weight of the key health status area is increased, and the model is guided to pay more attention to the key areas, further optimizing the accuracy of the evaluation, and providing a comprehensive, accurate and efficient solution for the health management and preventive maintenance of new energy batteries.
[0163] Example 2
[0164] See also Figure 2 As shown, the part not described in detail in this embodiment is described in Example 1, and a new energy battery power supply test system is provided, including: a voltage test module, which is used to apply a preset series of pulse current load sequences to the new energy battery and measure the output voltage signal of the new energy battery in real time;
[0165] The voltage decomposition module is used to decompose the output voltage signal by improved wavelet transform to obtain n-scale wavelet components;
[0166] The feature extraction module is used to extract statistical features of the wavelet components of each scale to obtain the corresponding wavelet features;
[0167] The data fusion module is used to collect battery data and fuse the wavelet features and battery data at the vector level to obtain a fused feature vector;
[0168] The health level assessment module is used to input the fused feature vector into the pre-trained neural network model to predict the health status index of the new energy battery, and judge the health level of the new energy battery according to the health status index of the new energy battery; each module is connected by wired and / or wireless means to realize data transmission between modules.
[0169] Example 3
[0170] This embodiment discloses an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the operation mode of the new energy battery power supply test method provided above is implemented.
[0171] Since the electronic device introduced in this embodiment is an electronic device used to implement a new energy battery power supply test method in the embodiment of the present application, based on the new energy battery power supply test method introduced in the embodiment of the present application, the technical personnel of this field can understand the specific implementation of the electronic device of this embodiment and its various variations, so how the electronic device implements the method in the embodiment of the present application is not described in detail here. As long as the technical personnel of this field implement the electronic device used in the new energy battery power supply test method in the embodiment of the present application, it belongs to the scope of protection of this application.
[0172] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters and thresholds in the formula are set by technicians in this field according to actual conditions.
[0173] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technical users in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.
Claims
1. A new energy battery power supply test method, characterized in that: include: S1. Apply a preset series of pulse current load sequences to the new energy battery, and measure the output voltage signal of the new energy battery in real time; S2, decomposing the output voltage signal by improved wavelet transform to obtain wavelet components of n scales; S3, extracting statistical features of the wavelet components of each scale to obtain corresponding wavelet features; S4, collecting battery data, and fusing the wavelet features and the battery data at the vector level to obtain a fused feature vector; S5. Input the fused feature vector into a pre-trained neural network model to predict the health status index of the new energy battery, and judge the health level of the new energy battery according to the health status index of the new energy battery; The preset manner of the series of pulse current load sequences includes: The gamma process model is defined as a generation model of pulse current load, and the shape parameter α and scale parameter β of the gamma process model are defined; Set the initial time interval [0, T], discretize it into N time points with equal distance, and generate the corresponding random sample value at each time point according to the shape parameter α and the scale parameter β, and obtain a random sequence with a length of N; A threshold value θ is set, and the random sequence is traversed. When any sequence value in the random sequence is greater than the threshold value θ, the time point is recorded, and the time interval between adjacent time points greater than the threshold value θ is taken as the duration of a pulse current, that is, the length of a pulse current load sequence. The amplitude of the pulse current is determined according to the maximum value of the random sequence in the time interval, that is, a series of pulse current load sequences are obtained; The random sample value generation method includes: Define a receiving function f(x, α, β) about shape parameters, random sample values and scale parameters, where x is the random sample value; Among them, Γ(α) is the gamma function, e is the base of the exponential function; The gamma function Among them, t' is a virtual variable, representing any value in the integral interval [0, ∞]; Generate two uniformly distributed random numbers u1 and u2, the value range of the random numbers is in the interval [0, 1]. If u2 is greater than or equal to the value of f(x, α, β) at this time, accept x as a certain random sample value, otherwise reject and regenerate u1 and u2.
2. The new energy battery power supply test method according to claim 1, characterized in that: The method of performing improved wavelet transform decomposition on the output voltage signal comprises: Define Daubechies wavelet as the wavelet basis function of improved wavelet transform decomposition, construct a dual-tree wavelet filter bank to decompose the output voltage signal according to the preset decomposition scale number n, obtain n detail components, perform cyclic translation processing on each detail component to obtain translation-invariant detail components, perform cyclic rotation processing on the translation-invariant detail components to obtain rotation-invariant detail components; The rotation invariant detail component and the detail component are taken element by element to obtain the transformed detail component, and each transformed detail component is upsampled to make its length consistent with the original output voltage signal, that is, wavelet components of n scales are obtained; The method of constructing the dual-tree wavelet filter bank includes: Define the order of the wavelet basis function as M, then the scale function and wavelet function of the wavelet basis function are: Where k is the index of the filter coefficient, φ(t) is the scaling function, ψ(t) is the wavelet function, t is the time index, and h k is the low frequency component coefficient, g k is the high frequency component coefficient; The double-tree wavelet filter bank includes a first filter bank and a second filter bank. The first filter bank is {h k } and {g k }, the second filter group is {h k '} and {g k '}; The dual-tree wavelet filter bank is expressed as: In the formula, h 1-k Indicates h k Flip and move one unit from right to left, g 1-k Indicates g k Flip and move one unit from right to left.
3. The new energy battery power supply test method according to claim 2, characterized in that: The cyclic translation processing method includes: For the jth detail component D j , cyclically translate L times along the time axis, and obtain L translation versions D j (l) , l is a positive integer in the interval [1,L], for D j And all the translation versions take the maximum value element by element to get the translation invariant detail component D j '; The cyclic rotation processing method includes: D j 'Divide into m small blocks, rotate each small block K times to get K rotated versions, take the maximum value of the original small block and all rotated versions element by element to get the rotation-invariant small block, splice all the rotation-invariant small blocks to get the rotation-invariant detail component D j ”.
4. The new energy battery power supply test method according to claim 3 is characterized in that: The wavelet characteristics include wavelet kurtosis, wavelet skewness, wavelet energy and wavelet entropy; For the wavelet component W of the i-th scale i , the calculation formula of its wavelet kurtosis is: Among them, Q is the length of the wavelet component of the i-th scale, that is, the number of elements, q is the index of the wavelet component element, and W i (q) is the qth element of Wi, that is, each value of the wavelet component of this scale, μ i is the mean of the wavelet component of the i-th scale, σ i 2 is the variance of the wavelet component of the i-th scale; W i The calculation formula of wavelet skewness is: In the formula, A i W i The wavelet skewness of W i The calculation formula of wavelet energy is: In the formula, E i W i The wavelet energy of W i The calculation methods of wavelet entropy include: W i Normalize and get the normalized W i , denoted as P i , then the wavelet entropy Among them, P i (q) represents W i The proportion of the qth element in the entire wavelet component.
5. The new energy battery power supply test method according to claim 4, characterized in that: The battery data includes battery type, battery chemical composition, battery rated capacity and battery cycle number; The method of fusing the wavelet features and the battery data at the vector level includes: The battery data is encoded once and converted into a feature vector of a fixed length, which is recorded as the battery data feature vector, and the wavelet feature is encoded once and converted into a feature vector of a fixed length, which is recorded as the wavelet feature vector; The wavelet eigenvector and battery data eigenvector are mapped to the quantum bit space and represented by quantum states respectively. The wavelet eigenvector is represented as the wavelet characteristic quantum state |ψ wave >, the battery data feature vector is represented by the battery data quantum state |ψ data > Among them, R is the dimension of the wavelet eigenvector, |r> represents the basis state of the quantum bit in the wavelet characteristic quantum state, that is, the rth basis vector in the wavelet characteristic quantum state, and w r Represents the quantum superposition coefficient of the rth element in the wavelet eigenvector, where r is the index of the element in the wavelet eigenvector; Among them, v y represents the quantum superposition coefficient of the yth element in the battery data feature vector, Y is the dimension of the battery data feature vector, that is, the number of elements, |y> represents the basis state of the quantum bit in the battery data quantum state, that is, the yth basis vector in the battery data quantum state, and y is the index of the element in the battery data feature vector; Apply quantum circuits to introduce quantum entanglement between the wavelet characteristic quantum state and the battery data quantum state to obtain a fused characteristic quantum state. Among them, U is a controllable quantum logic gate circuit, is the tensor product operation; Will |ψ fused >Perform quantum measurement and remap it back to vector space to obtain the final fused feature vector |V>=M"(|ψ fused >), where M"() is a quantum measurement operator.
6. The new energy battery power supply test method according to claim 5, characterized in that: The training method of the neural network model includes: Define recursive neural network as the basic structure of neural network model, which includes input layer, hidden layer and output layer; Collect the output voltage signals and battery data of tu kinds of new energy batteries in the past fixed time, and construct the corresponding fusion feature vectors, which are recorded as historical fusion feature vectors. Expand the historical fusion feature vectors by time steps to form sequence data as the training input of the neural network model. Label the sequence data according to the vector time step. The label is the health status index of the new energy battery. The labeling range of the health status index is 0 to 1. Initialize the network parameters of the neural network model, including the weight matrix from the input layer to the hidden layer, the cyclic weight matrix of the hidden layer, the bias vector of the hidden layer, the weight matrix from the hidden layer to the output layer, and the bias vector of the output layer; Define the loss function of the neural network model Among them, T' is the length of the sequence data, ω(s' d ) is the loss weight function weighted according to the health status, s' d is the health status index of the dth vector time step, is the quantile loss function, X d is the annotated health status index of the dth vector time step, is the predicted value of the neural network model at the dth vector time step, and τ is the quantile level; in, is the indicative function; The threshold interval of the preset health status, the upper limit of the threshold interval is s high , the lower limit of the threshold interval is s low ; If s' d Less than s low , then ω(s' d ) is w1, if s' d is within the threshold interval, then ω(s' d ) is 1, if s' d Greater than s high , then ω(s' d ) is w2, wherein w1 and w2 are preset weight coefficients, and w1 is greater than 1, and w2 is less than 1; The sequence data is passed to the input layer, and then passes through the hidden layer and the output layer in turn, outputs the predicted value, calculates the corresponding loss function value, and backpropagates the error gradient along the output layer to the input layer. According to the error gradient, the network parameters are updated using the optimization algorithm to reduce the value of the loss function. The sequence data is trained repeatedly until the neural network model converges or reaches the preset number of iterations, that is, the training of the neural network model is completed.
7. The new energy battery power supply test method according to claim 6, characterized in that: The input layer is used to receive the fused feature vector λ d As input, where d represents the vector time step, and the hidden layer consists of g recurrent neurons; The calculation formula for each recurrent neuron is: d =f(E'·λ d +E"·H d-1 +b H ), where H d is the hidden state vector of the current vector time step d, f() is the activation function, E' is the weight matrix from the input layer to the hidden layer, E" is the recurrent weight matrix of the hidden layer, b H is the bias vector of the hidden layer; The output layer calculates the predicted value γ based on the output of the hidden layer d =g'(W'·H d +b γ ), where g'() is the activation function of the output layer, W' is the weight matrix from the hidden layer to the output layer, and b γ is the bias vector of the output layer.
8. The new energy battery power supply test method according to claim 7, characterized in that: The method of judging the health level of the new energy battery according to the health status index of the new energy battery includes: The health status index is divided into 5 levels, among which, if the health status index is in the interval (0.9, 1.0], the health level is excellent; If the health status index is within the interval (0.8, 0.9], the health level is good; If the health status index is within the interval (0.7, 0.8], the health level is average; If the health status index is in the interval (0.6, 0.7], the health level is poor; If the health status index is in the interval [0,0.6], the health level is severe aging; The predicted health status index of the new energy battery is compared with the five divided levels to determine its level, and its health level is output according to the level it belongs to.
9. A new energy battery power supply test system, which is used to implement a new energy battery power supply test method according to any one of claims 1 to 8, characterized in that: include: The voltage test module is used to apply a preset series of pulse current load sequences to the new energy battery and measure the output voltage signal of the new energy battery in real time; The voltage decomposition module is used to decompose the output voltage signal by improved wavelet transform to obtain n-scale wavelet components; The feature extraction module is used to extract statistical features of the wavelet components of each scale to obtain the corresponding wavelet features; The data fusion module is used to collect battery data and fuse the wavelet features and battery data at the vector level to obtain a fused feature vector; The health level assessment module is used to input the fused feature vector into the pre-trained neural network model to predict the health status index of the new energy battery. According to the health status index of the new energy battery, the health level of the new energy battery is judged. Each module is connected by wired and / or wireless means.
