ENERGY IDENTIFICATION METHOD FOR MICRO-ENERGY DEVICE BASED ON BP NEURAL NETWORK

20220318635 · 2022-10-06

Assignee

Inventors

Cpc classification

International classification

Abstract

The present disclosure provides an energy identification method for a micro-energy device based on back propagation (BP) neural network, which includes the following steps: S1, sampling a dynamic voltage of a micro-energy device in an open-circuit state to obtain an original voltage signal, and denoising the original voltage signal by an adaptive threshold wavelet transform; S2, extracting an R wave peak value of the denoised voltage signal so as to obtain model input data; S3, establishing a BP neural network model, inputting data to train the model, and stopping training when a training error is smaller than a preset value, to obtain a qualified BP neural network model; and S4, identifying a to-be-identified voltage signal by using the BP neural network model obtained in the step S3. According to the present disclosure, accurate and rapid energy identification and classification can be carried out, and the classification result is reliable.

Claims

1. An energy identification method for a micro-energy device based on back propagation (BP) neural network, comprising: S1, sampling a dynamic voltage of an integrated micro-energy device in an open-circuit state to obtain an original voltage signal, and denoising the original voltage signal by an adaptive threshold wavelet transform; S2, extracting an R wave peak value of the denoised voltage signal, so as to obtain model input data; S3, establishing a BP neural network model, inputting data to train the model, and stopping training when a training error is smaller than a preset value, to obtain a qualified BP neural network model; S4, identifying a to-be-identified voltage signal by using the BP neural network model obtained in step S3.

2. The energy identification method for a micro-energy device based on BP neural network according to claim 1, wherein step S1 comprises: S101, continuously sampling a dynamic voltage of the integrated micro-energy device in the open-circuit state to obtain the original voltage signal; S102, de-noising the original voltage signal by an adaptive threshold wavelet transform algorithm; the formula is as follows: φ 2 - j , k 2 - j ( t ) = 2 j 2 φ ( 2 j t - k ) , WT x ( j , k ) = 2 j 2 - + x ( t ) φ * ( 2 j t - k ) dt , wherein 2.sup.−j is a scale factor, k.Math.2.sup.−j is a shift factor, and φ*(t) is a conjugate of φ(t); S103, performing a wavelet multi-level decomposition by using a wavelet decomposition level number and a wavelet basis function, obtaining a wavelet decomposition coefficient w.sub.j,k of a corresponding level, and performing threshold processing on the wavelet decomposition coefficient w.sub.j,k: w j , k = { w j , k .Math. "\[LeftBracketingBar]" w j , k .Math. "\[RightBracketingBar]" γ 0 .Math. "\[LeftBracketingBar]" w j , k .Math. "\[RightBracketingBar]" γ wherein γ is a threshold value, and w.sub.j,k is a wavelet decomposition coefficient.

3. The energy identification method for a micro-energy device based on BP neural network according to claim 2, wherein step S2 comprises: dividing a time window of each segment of the dynamic voltage, and searching a maximum value point in the window, to find a position of a to-be-collected R wave peak and obtain a total data set.

4. The energy identification method for a micro-energy device based on BP neural network according to claim 3, wherein step S3 comprises: S301, initializing a structure of the BP neural network; S302, normalizing the dynamic voltage, noise characteristics and sample sampling rate of the integrated micro-energy device in the open-circuit state as an input of the model, and a characteristic center of each integrated micro-energy device serves as an output of the model; S303, setting an error function; S304, dividing the total data set into a training set and a validation set, inputting the training set into the BP neural network model in two parts, and obtaining updated network weights and updated network thresholds after a first input; S305, after a second input, stopping the training when the training error is 1%; determining the final network weights and the final network thresholds, and obtaining a qualified energy recognition model for micro-energy devices based on BP neural network; S306, if the training error in step S305 cannot be reached, a new data sample is added to increase data samples for the first input training to update the network weights and the network thresholds, then performing step S305.

5. The energy identification method for a micro-energy device based on BP neural network according to claim 4, wherein initializing the structure of the BP neural network in step S301 comprises: selecting a node number of an input layer, a node number of a hidden layer, and a node number of an output layer; randomly selecting a weight coefficient of the hidden layer and a weight coefficient of the output layer in a range of [−1, 1]; determining a learning rate and a smoothing factor, and selecting an activation function of the model.

6. The energy identification method for a micro-energy device based on BP neural network according to claim 4, wherein the training error includes a difference between an average value of the network weights updated by the first input and an average value of the final network weights, and a difference between an average value of the network thresholds updated by the second input and an average value of the final network thresholds.

7. The energy identification method for a micro-energy device based on BP neural network according to claim 4, wherein step S3 further comprises: storing the qualified models in a model pool, and counting the qualified models; when the number of models reaches X, testing the obtained X qualified models using a test set and recording accuracy of the models, so as to obtain parameters corresponding to the best model.

8. The energy identification method for a micro-energy device based on BP neural network according to claim 1, wherein the integrated micro-energy device comprises a micro fuel cell, a vibration energy collector, and a micro photovoltaic cell.

9. The energy identification method for a micro-energy device based on BP neural network according to claim 2, wherein the integrated micro-energy device comprises a micro fuel cell, a vibration energy collector, and a micro photovoltaic cell.

10. The energy identification method for a micro-energy device based on BP neural network according to claim 3, wherein the integrated micro-energy device comprises a micro fuel cell, a vibration energy collector, and a micro photovoltaic cell.

11. The energy identification method for a micro-energy device based on BP neural network according to claim 4, wherein the integrated micro-energy device comprises a micro fuel cell, a vibration energy collector, and a micro photovoltaic cell.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

[0036] FIG. 1 is a schematic flowchart of the present disclosure.

[0037] FIG. 2 is a schematic flowchart of the BP neural network analysis process in the present disclosure.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0038] The specific content of the present disclosure will be described in detail below with reference to the drawings and embodiments.

[0039] As shown in FIGS. 1 and 2, the present disclosure provides an energy identification method for a micro-energy device based on back propagation (BP) neural network. In this embodiment, the original voltage signal is obtained by continuously sampling the dynamic voltage of three types of micro-energy devices (micro fuel cell, vibration energy collector, and micro photovoltaic cell) in the open-circuit state. The sampled voltage signal containing noise and complex redundant information is subjected to wavelet transforming to remove the noise interference of the original data, thereby completing the preprocessing of the voltage data signal.

[0040] Since the voltage signal of the micro-energy device is interfered by the material itself and external factors, there may be a variety of noises with different strengths or different frequencies in the voltage signal. To improve the noise adaptability and denoising effect, an adaptive threshold wavelet transform algorithm is used to denoise the original voltage signal.

[0041] The formula of the adaptive threshold wavelet transform algorithm is as follows:

[0042] Discrete wavelet function:

[00003] φ 2 - j , k 2 - j ( t ) = 2 j 2 φ ( 2 j t - k )

[0043] Discrete wavelet transform:

[00004] WT x ( j , k ) = 2 j 2 - + x ( t ) φ * ( 2 j t - k ) dt

[0044] 2.sup.−j is the scale factor, k.Math.2.sup.−j is the shift factor, and φ*(t) is the conjugate of φ(t). Selecting a proper wavelet decomposition level number and a proper wavelet basis function, performing a wavelet multi-level decomposition to obtain a wavelet decomposition coefficient w.sub.j,k of a corresponding level. Performing threshold processing on the wavelet decomposition coefficient w.sub.j,k:

[00005] w j , k = { w j , k .Math. "\[LeftBracketingBar]" w j , k .Math. "\[RightBracketingBar]" γ 0 .Math. "\[LeftBracketingBar]" w j , k .Math. "\[RightBracketingBar]" γ

[0045] γ is the threshold value and w.sub.j,k is the wavelet decomposition coefficient.

[0046] The wavelet threshold denoising process can reduce the low-scale and high-frequency interference signals in the original voltage signal data to a certain extent. Then, by extracting the R wave peak value of the denoised voltage signal, the discrete voltage data are obtained. Since the energy of the voltage signal is mostly concentrated on the R wave peak, the R wave peak is regarded as the energy peak of the voltage. By dividing the time window of each segment of the dynamic voltage and searching a maximum value point in the window, the position of the to-be-collected R wave peak can be found.

[0047] Let the sample number in the total data set be K, randomly select M samples from the total data set to form a training set as the input of the BP neural network. The number of R wave peak values contained in each sample is N, and M*N wave peak values are contained in M samples. The sampling rate of the training samples calculated according to time T is about

[00006] M N T ,

and the sample number in the test set is K−M.

[0048] A BP neural network model is established. The model of the present disclosure adopts a three-layer network structure including an input layer, a hidden layer, and an output layer. In the entire training process, first, training set sample data are input into the BP neural network for training, so as to obtain a neural network prediction model. The main steps to establish the BP neural network model are:

[0049] S301, initializing the structure of the BP neural network; the node number of the input layer is i, the node number of the hidden layer is j, and the node number of the output is n; randomly selecting a weight coefficient v[i][j] of the hidden layer and a weight coefficient w[j][n] of the output layer in the range of [−1,1]; determining the learning rate a and smoothing factor b, and selecting the sigmoid function as the activation function of the model.

[0050] S302, normalizing the dynamic voltage, noise characteristics and sample sampling rate of each micro-energy device in the open-circuit state as the input of the model; the output of the model is the characteristic center of each of the three micro-energy devices.

[0051] S303, assigning a random number within the interval [−1, 1] to each connection weight, and the error function is set as:

[00007] e = ( .Math. i = 0 l ( d oi - y o oi ) ) 2 / 2

[0052] d.sub.oi is the expected output vector of the corresponding data, yo.sub.oi is the output vector of the output layer of the corresponding data.

[0053] The specific training steps are shown in FIG. 2. In the present disclosure, the training set is divided into two inputs. m training samples are input at the first time, n training samples are input at the second time, m+n=M. M is the total number of training samples. (m=n=M/2 is selected for the first time, and will be adjusted according to actual data)

[0054] S304, for the first time, inputting a training set containing m samples into the BP neural network classification prediction model, and obtaining the updated network weights and updated network thresholds.

[0055] S305, for the second time, inputting a training set containing n samples into the BP neural network classification prediction model, stopping the training when the training error is 1%; determining the final network weights and the final network thresholds, and obtaining a suitable energy recognition model for micro-energy devices.

[0056] The training error includes the difference between the average value of the network weights updated by the first input and the average value of the final network weights, and the difference between the average value of the network thresholds updated by the second input and the average value of the final network thresholds.

[0057] S306, if the training error cannot be reached during the training, adding a new data sample to increase data samples for the first input training to update the network weights and the network thresholds, then performing step S305.

[0058] To obtain the best model, the identification method of the present disclosure may also include storing the qualified models in a model pool, and counting the qualified models. When the number of models reaches X, a test set is used to test the obtained X qualified models and record the accuracy of the models, so as to obtain the parameters corresponding to the best model.

[0059] When using the BP neural network classification prediction model described in the present disclosure to identify the micro-energy, the results of classification and identification can be obtained simply by inputting the to-be-tested micro-energy data into the model.

[0060] Finally, it should be noted that the above embodiments are only used to illustrate the technical schemes of the present disclosure without limitation. Although the present disclosure has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made on the technical schemes of the present disclosure without departing from the spirit and scope of the technical schemes of the present disclosure, and should be covered by the scope of the claims of the present disclosure.