PEM water electrolyser life prediction method and device, medium and product

The operating data of PEM water electrolyzers are processed through the LSTM-RNN hybrid model and Bayesian optimization method, which solves the problem of insufficient life prediction accuracy in the existing technology and achieves higher prediction accuracy and flexibility.

CN118656948APending Publication Date: 2024-09-17NORTH CHINA ELECTRIC POWER UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410600800.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-15
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing PEM water electrolyzer life prediction methods are difficult to effectively capture complex nonlinear dynamic relationships, especially when faced with a large amount of time series data, resulting in insufficient prediction accuracy.

Method used

The LSTM-RNN hybrid model is combined with the Bayesian optimization method to optimize the neural network. By acquiring and processing the operating data of the PEM water electrolyzer, including voltage data, it performs outlier detection, moving average filtering, time series conversion and normalization. Chemical processing, and finally the data is input into the optimized neural network for prediction to determine the service life of the water electrolyzer.

Benefits of technology

It improves the accuracy of water electrolyzer life prediction, can more accurately capture changing trends and temporal changes in data, and enhances the flexibility and generalization ability of prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656948A
    Figure CN118656948A
Patent Text Reader

Abstract

The invention discloses a PEM water electrolyser life prediction method and device, a medium and a product, and relates to the field of water electrolyser life prediction. The method comprises the following steps: acquiring operation data of a PEM water electrolysis tank; the operation data comprises voltage data; performing data processing on the operation data to obtain processed data; inputting the processed data into the LSTM-RNN hybrid model to obtain prediction data; the prediction data is used for representing time sequence change of the service life of the PEM water electrolyser; the LSTM-RNN hybrid model is obtained by adopting a Bayesian optimization method to optimize a neural network; the neural network comprises an LSTM layer, a Dropout layer, an RNN layer and a full-connection output layer which are connected with one another; determining the service life of the PEM water electrolyser according to the predicted data; the service life prediction precision of the water electrolyser can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of life prediction of water electrolyzers, and in particular to a method, device, medium and product for predicting the life of a PEM water electrolyzer. Background Art

[0002] The PEM water electrolyzer is a device that uses electrical energy to decompose water into hydrogen and oxygen. It contains a proton exchange membrane, and the half-reactions responsible for decomposing water molecules into hydrogen and oxygen occur at the anode and cathode, respectively. The PEM water electrolyzer may be affected by many factors during long-term operation, such as current density, temperature, pressure, etc. These factors may cause degradation of the electrolyzer components, affecting their performance and life. During the operation of the electrolyzer, the indicators for evaluating the output performance of the PEM water electrolyzer mainly include the electrolyzer voltage, current, internal resistance and output power. The voltage of the electrolyzer will show a significant upward trend over time, which well reflects the attenuation of the electrolyzer, and because the voltage data is easy to collect, the electrolyzer voltage is selected as the performance degradation indicator of the PEM water electrolyzer to measure the life of the PEM water electrolyzer, and accurate life prediction is crucial to optimize operating conditions and improve system reliability.

[0003] Traditional PEM water electrolyzer life prediction methods are usually based on physical models and empirical models. However, these methods may not be able to capture complex nonlinear dynamic relationships well, especially when faced with large amounts of time series data. Deep learning learns complex representations of data through multi-layer neural networks, and can better handle complex time series data and capture changing trends in the data. This ability gives deep learning greater flexibility and generalization in PEM water electrolyzer life prediction. However, how to improve the accuracy of water electrolyzer life prediction based on deep learning is crucial. Summary of the invention

[0004] The purpose of the present invention is to provide a method, device, medium and product for predicting the life of a PEM water electrolyzer, which can improve the accuracy of predicting the life of a water electrolyzer.

[0005] To achieve the above object, the present invention provides the following solutions:

[0006] A method for predicting the life of a PEM water electrolyzer, the method comprising:

[0007] Acquiring operation data of the PEM water electrolyzer; the operation data includes: voltage data;

[0008] Performing data processing on the operation data to obtain processed data;

[0009] The processed data is input into the LSTM-RNN hybrid model to obtain prediction data; the prediction data is used to characterize the time series change of the life of the PEM water electrolyzer; the LSTM-RNN hybrid model is obtained by optimizing the neural network using the Bayesian optimization method; the neural network includes: an LSTM layer, a Dropout layer, an RNN layer and a fully connected output layer connected to each other;

[0010] The service life of the PEM water electrolyzer is determined based on the predicted data.

[0011] Optionally, performing data processing on the operating data to obtain processed data specifically includes:

[0012] Performing outlier detection on the operating data and removing outliers to obtain detected operating data;

[0013] The moving average filtering method is used to smooth the data, remove the noise in the data, and obtain the filtered data;

[0014] Performing time series conversion processing on the filtered data to obtain time series data; the time series data includes: a timestamp and corresponding filtered data;

[0015] Normalizing the time series data, and reconstructing the data by setting a sliding window to obtain reconstructed data;

[0016] The reconstructed data is determined as the processed data.

[0017] Optionally, the method for determining the LSTM-RNN hybrid model specifically includes:

[0018] Acquire training data of a PEM water electrolyzer; the training data includes: training operation data and label data; the label data is prediction data corresponding to the training operation data;

[0019] Performing data processing on the training data to obtain training processed data;

[0020] Dividing the training processed data into a training set and a test set according to a set ratio;

[0021] Constructing a neural network; the neural network includes: an interconnected LSTM layer, a Dropout layer, an RNN layer, and a fully connected output layer;

[0022] Input the training set into the LSTM layer, perform forgetting and retaining update processing based on the activation function, and obtain updated data;

[0023] Based on the Dropout layer, the update data is probability selected and scaled, and based on forward propagation and back propagation, the weight data of the retained neurons is iteratively processed to obtain iteratively processed data;

[0024] The iteratively processed data is input into the RNN layer, and the hyperparameters are optimized and trained by using the Bayesian optimization method with the objective of minimizing the objective function, so as to obtain the trained RNN layer; the objective function is determined according to the difference between the output of the RNN layer and the label data in the training set; the hyperparameters include: a weight matrix and a bias;

[0025] The fully connected output layer is used to output the output data of the trained RNN layer;

[0026] The interconnected LSTM layer, Dropout layer, trained RNN layer, and fully connected output layer are used as the trained neural network;

[0027] Inputting the test set into the trained neural network for verification to obtain a verified neural network;

[0028] The verified neural network is determined as the LSTM-RNN hybrid model.

[0029] Optionally, the objective function includes: mean square error.

[0030] Optionally, the objective function is expressed as:

[0031]

[0032] Where MSE is the mean square error; n is the number of data in the training set; i is the sequence number; y i is the label data; is the output data of the RNN layer.

[0033] A computer device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the above-mentioned method for predicting the life of a PEM water electrolyzer.

[0034] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the above-mentioned PEM water electrolyzer life prediction method.

[0035] A computer program product comprises a computer program, which implements the steps of the above-mentioned method for predicting the life of a PEM water electrolyzer when executed by a processor.

[0036] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0037] The invention discloses a method, device, medium and product for predicting the life of a PEM water electrolyzer. The method comprises: obtaining operation data of the PEM water electrolyzer; the operation data comprises: voltage data; performing data processing on the operation data to obtain processed data; inputting the processed data into an LSTM-RNN hybrid model to obtain predicted data; the predicted data is used to characterize the temporal variation of the life of the PEM water electrolyzer; the LSTM-RNN hybrid model is obtained by optimizing a neural network using a Bayesian optimization method; the neural network comprises: an LSTM layer, a Dropout layer, an RNN layer and a fully connected output layer that are interconnected; determining the service life of the PEM water electrolyzer according to the predicted data; the invention can improve the prediction accuracy of the life of the water electrolyzer. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only 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.

[0039] Figure 1 A schematic diagram of a process flow of a method for predicting the life of a PEM water electrolyzer provided in an embodiment of the present invention;

[0040] Figure 2 A schematic diagram of recording raw voltage data provided by an embodiment of the present invention;

[0041] Figure 3 A schematic diagram of a process for realizing life prediction of a PEM water electrolyzer provided in an embodiment of the present invention;

[0042] Figure 4 A schematic diagram of data recording after moving average processing provided by an embodiment of the present invention;

[0043] Figure 5 A schematic diagram of the results of life prediction of a PEM water electrolyzer provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0044] 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.

[0045] The purpose of the present invention is to provide a method, device, medium and product for predicting the life of a PEM water electrolyzer, so as to improve the accuracy of predicting the life of the water electrolyzer.

[0046] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0047] Example 1

[0048] like Figure 1 As shown, the PEM water electrolyzer life prediction method in this embodiment includes:

[0049] Step 100: Obtaining the operating data of the PEM water electrolyzer. The operating data includes: voltage data.

[0050] Step 200: Process the operating data to obtain processed data.

[0051] The operation data is processed to obtain the processed data, which specifically includes:

[0052] Perform outlier detection on the operating data and remove the outliers to obtain the detected operating data.

[0053] The moving average filtering method is used to smooth the data, remove the noise in the data, and obtain the filtered data.

[0054] The filtered data is subjected to time series conversion processing to obtain time series data; the time series data includes: a timestamp and corresponding filtered data.

[0055] The time series data is normalized and reconstructed by setting a sliding window to obtain reconstructed data.

[0056] The reconstructed data is determined as processed data.

[0057] Step 300: Input the processed data into the LSTM-RNN hybrid model to obtain the predicted data. The predicted data is used to characterize the temporal changes of the life of the PEM water electrolyzer; the LSTM-RNN hybrid model is obtained by optimizing the neural network using the Bayesian optimization method; the neural network includes: interconnected LSTM layers, Dropout layers, RNN layers, and fully connected output layers.

[0058] Step 400: Determine the service life of the PEM water electrolyzer based on the predicted data.

[0059] The method for determining the LSTM-RNN hybrid model specifically includes:

[0060] The training data of the PEM water electrolyzer is obtained; the training data includes: training operation data and label data; the label data is the prediction data corresponding to the training operation data.

[0061] The training data is processed to obtain training processed data.

[0062] The training processing data is divided into training set and test set according to the set ratio.

[0063] Build a neural network; the neural network includes: interconnected LSTM layer, Dropout layer, RNN layer and fully connected output layer.

[0064] The training set is input into the LSTM layer, and a forgetting and retaining update process is performed based on the activation function to obtain updated data.

[0065] Based on the Dropout layer, the update data is probabilistically selected and scaled, and based on forward propagation and back propagation, the weight data of the retained neurons is iteratively processed to obtain iteratively processed data.

[0066] The iteratively processed data is input into the RNN layer, and the Bayesian optimization method is used to optimize the hyperparameters to obtain the trained RNN layer with the goal of minimizing the objective function. The objective function is determined based on the difference between the output of the RNN layer and the label data in the training set. The hyperparameters include: weight matrix and bias.

[0067] The objective function includes: mean square error. The expression of the objective function is:

[0068]

[0069] Where MSE is the mean square error; n is the number of data in the training set; i is the sequence number; y i is the label data; is the output data of the RNN layer.

[0070] The fully connected output layer is used to output the output data of the trained RNN layer.

[0071] The interconnected LSTM layer, Dropout layer, trained RNN layer, and fully connected output layer are used as the trained neural network.

[0072] The test set is input into the trained neural network for verification to obtain the verified neural network.

[0073] The verified neural network is determined as a LSTM-RNN hybrid model.

[0074] In practical applications, the method provided by the present invention comprises the following steps:

[0075] 1) Collect the operating data of the PEM water electrolyzer, that is, collect the voltage data during the operation of the PEM water electrolyzer, and use the outlier detection method to remove outliers.

[0076] 2) Use the moving average filtering method to smooth the collected operating data and remove noise in the data.

[0077] That is, the collected PME water electrolyzer voltage data is smoothed and preprocessed by moving average filtering to reduce noise and remove abnormal data.

[0078] In order to remove abnormal data and noise in the collected data, moving average filtering is used to preprocess the data, which is helpful to reduce the impact of abnormal data and noise on the model. i is the simple moving average at time point i, X i-1 , X i-2 , …, X i-n are the n most recent data points at time point i.

[0079]

[0080] 3) Select the voltage data processed by step 1) and step 2) for preprocessing so that its data shape meets the model input requirements, and divide the data into a training set and a test set.

[0081] The training set and test set obtained after step 3) are normalized respectively, and the data are reconstructed by sliding window technology.

[0082] 4) The training set processed in step 3) is input into the LSTM-RNN hybrid model for training. During training, the first n data points are used to predict the data of the next point or m points. At the same time, MSE is selected as the loss function to optimize the model.

[0083] That is, the reconstructed data is input into the LSTM-RNN hybrid model for training, the previous prediction step is integrated into the original data, and the tail data is selected as input for the next prediction, and this process is repeated for iterative prediction.

[0084] 5) By presetting the number of neurons in each layer, time window, batch size, prediction step, number of iterations, initial learning rate, number of hidden layer nodes, regularization parameters, upper and lower limits of the drop rate, and listing each regularization parameter and optimizer, the MSE and R of the hybrid model trained with different combinations of hyperparameters on the test set are compared. 2 method to perform parameter optimization.

[0085] 6) Determine the optimal values ​​of each hyperparameter of the LSTM-RNN hybrid model based on the optimization results.

[0086] In order to optimize the hyperparameters of the LSTM-RNN hybrid model, the number of neurons in each layer, time window, batch size, prediction step, number of iterations, initial learning rate, number of hidden layer nodes, regularization parameter, upper and lower limits of the drop rate are set, and each regularization parameter and optimizer are listed. The objective function is to minimize the MSE of the model prediction on the test set, and the Bayesian optimization method is used for iteration to seek the optimal solution of the hyperparameters. MSE is the mean square error, which is used to evaluate the difference between the model prediction result and the true value. The smaller the MSE value, the closer the model prediction result is to the true value.

[0087]

[0088] 7) In step 3), the data preprocessing method is as follows:

[0089] Convert the time series to the corresponding timestamp; normalize the data;

[0090] The normalized data is divided into a training set and a test set; the training data shape is converted to (Nan, time window, number of features) so that it can meet the input requirements of the model; the model is trained based on the training set data, and the accuracy of the trained model is given based on the test set.

[0091] 8) In step 3), the LSTM-RNN hybrid model contains four neural network layers, one LSTM layer, one Dropout layer, one RNN layer, and one fully connected output layer.

[0092] The operation process of the LSTM neural network is as follows:

[0093] ft=ρ(Wf·[ht-1,xt]+bf)

[0094] it=σ(Wi·[ht-1,xt]+bi)

[0095] ot=ρ(Wo·[ht-1,xt]+bo)

[0096]

[0097]

[0098] ht=ot·tanh(Ct).

[0099] Among them, ft is the forget gate, which reads the output ht-1 of the previous step and the input xt of the current moment to determine the related information to be forgotten and retained; it is the input gate; ot is the output gate; Ct is the unit state, which is updated by the information transmitted by the input gate and the forget gate; the final updated unit state Ct is Hadamard product with the output gate ot to obtain the output ht, σ(·) and tanh(·) represent the sigmoid activation function and tanh activation function respectively; Wf, Wi, Wo and Wc are the weight matrices of the forget gate, input gate and state unit respectively; bf, bi, bo, bc are the bias vectors of the forget gate, input gate, output gate and state unit respectively.

[0100] The Dropout operation process is as follows: In order to reduce the overfitting of the model, in each training batch, each neuron in the network is randomly selected with a certain probability, and its output is set to zero. This probability is the "dropout rate"; in order to keep the expected output of the network unchanged, the output of the retained neurons is scaled, and the scaling factor is 1 / (1-p), where p is the dropout rate. Due to the existence of the Dropout layer during the training process, each iteration has forward propagation and backward propagation. During the forward propagation, the output of a part of the neurons is randomly masked, and then the output of the remaining neurons is multiplied by the scaling factor. In the backward propagation, only the weights of the retained neurons are updated.

[0101] The operation process of the RNN neural network is as follows:

[0102] h (t) =f(W hh h (t-1) +W xh x (t) +b h );

[0103] y (t) =f(W hy h (t) +b y );

[0104] where h (t) is the hidden state of the current time step. For each time step t, calculating its hidden state requires receiving the current input x (t) and the hidden state h of the previous time step (t-1) , W hh , W xh With W hy are the weight matrices from hidden state to hidden state, input to hidden state, and hidden state to output, respectively. (t) is the output, f(·) is the activation function, usually tanh or sigmoid, b h With by They are the bias of the hidden state and the bias of the output respectively.

[0105] The logic of model training is to input n data points into the model, predict the n+1th or n+mth data points, and let the model learn the rules between the two, including single-step prediction and multi-step prediction.

[0106] When the model predicts, it is necessary to input the same n data points as during training, obtain the future n+m data points through model prediction, add the predicted results to the original data, and then make backward predictions based on the data, and repeat this iterative prediction process.

[0107] During the prediction process, the voltage change is predicted to predict whether the life of the PEM electrolyzer has ended.

[0108] In practical applications, when the current density is constant at 2A / cm 2 When the voltage at both ends of the PEM water electrolyzer is recorded, the original voltage data is recorded as follows: Figure 2 shown.

[0109] Based on the collected data, the process of realizing the life prediction of PEM water electrolyzer is as follows Figure 3 shown.

[0110] In order to remove abnormal data and noise in the collected data, moving average filtering is used to preprocess the data, which is helpful to reduce the impact of abnormal data and noise on the model. At the same time, the processed data is visualized. i is the simple moving average at time point i, X i-1 , X i-2 , ..., X i-n are the n most recent data points at time point i.

[0111]

[0112] The data after simple moving average processing is as follows Figure 4 shown.

[0113] The preprocessed data is normalized to convert the data into a standard normal distribution. The normalization method is as follows:

[0114]

[0115] Where X is the original data, X min is the minimum value of the data, X max is the maximum value of the data.

[0116] The normalized data is divided into a training set and a test set, with the ratio of training set to test set being 8:2.

[0117] The sliding window technology is used to reconstruct the training set and test set data, setting the window size to 120 and the target step number to 50, and the input sequence shape is (number of samples, 120). The target sequence shape is (number of samples, 50). Here, the multi-step prediction method is used as an example to show that when the model is trained, the model predicts the trend of the next 50 data by learning the relationship between the first 120 data.

[0118] The reconstructed data is input into the LSTM-RNN hybrid model for training. During the model training process, the Bayesian optimization method is used to optimize the hyperparameters of the LSTM-RNN hybrid model to improve the model accuracy. The steps to optimize the hyperparameters are as follows:

[0119] (1) According to the data structure and data volume, set the number of neurons in each layer, time window, batch size, prediction step, number of iterations, initial learning rate, number of hidden layer nodes, regularization parameters, upper and lower limits of the dropout rate, and list each regularization parameter and optimizer.

[0120] (2) Taking the minimization of the MSE of the model prediction on the test set as the objective function, the Bayesian optimization method is used to iterate to make the objective function smaller and seek the optimal solution of the hyperparameters, so that the model has higher prediction accuracy.

[0121] (3) Based on the optimization results, determine the optimal values ​​of hyperparameters such as the number of neurons, batch size, initial learning rate, and dropout rate of the LSTM-RNN hybrid model.

[0122] The values ​​of the hyperparameters of the optimized LSTM-RNN hybrid model are: the number of neurons in the LSTM layer is 64, the number of neurons in the RNN layer is 64, the dropout rate of the Dropout layer is 0.2, and the maximum number of iterations is 200.

[0123] After the LSTM-RNN hybrid model training is completed, the iterative prediction method is: input the last 120 points of the test set into the model, predict the next 50 points through the model, then integrate the predicted 50 data with the previous 120 data, then take out the last 120 points of the integrated data and input them into the model to predict the next 50 data. In this way, iterative prediction can obtain long-term prediction data. Then, the remaining service life of the PEM water electrolyzer is calculated based on the predicted time when the voltage reaches the failure voltage threshold point. The calculation method is as follows:

[0124] RUL=t end -t pre

[0125] RUL is the remaining useful life, t end is the time when the voltage of the PEM water electrolyzer reaches the voltage threshold point of failure, tpre is the time to start prediction. Based on the data in this embodiment, the results of the life prediction of the PEM water electrolyzer are as follows Figure 5 shown.

[0126] The present invention aims at the fact that the attenuation mechanism of PEM water electrolyzer is still unclear and modeling is difficult; the empirical model is difficult to fit nonlinear dynamic data. The proposed PEM water electrolyzer life prediction method enables the life prediction of PEM water electrolyzer to achieve a higher accuracy in a short time. The data is smoothed by the moving average filtering method, and the prediction accuracy is improved by using a hybrid model.

[0127] Example 2

[0128] A computer device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method for predicting the life of a PEM water electrolyzer in Example 1.

[0129] Example 3

[0130] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the method for predicting the life of a PEM water electrolyzer in Example 1.

[0131] Example 4

[0132] A computer program product includes a computer program, which implements the steps of the PEM water electrolyzer life prediction method in embodiment 1 when executed by a processor.

[0133] Example 5

[0134] A computer device, which may be a database. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store pending transactions. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, the PEM water electrolyzer life prediction method in Example 1 is implemented.

[0135] It should be noted that the object information (including but not limited to object device information, object personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the present invention are all information and data authorized by the object or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0136] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided by the present invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present invention may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited thereto. The processor involved in each embodiment provided by the present invention may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited thereto.

[0137] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0138] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A method for predicting the life of a PEM water electrolyzer, characterized in that: The method comprises: Acquiring operation data of the PEM water electrolyzer; the operation data includes: voltage data; Performing data processing on the operation data to obtain processed data; The processed data is input into the LSTM-RNN hybrid model to obtain prediction data; the prediction data is used to characterize the time series change of the life of the PEM water electrolyzer; the LSTM-RNN hybrid model is obtained by optimizing the neural network using the Bayesian optimization method; the neural network includes: an LSTM layer, a Dropout layer, an RNN layer and a fully connected output layer connected to each other; The service life of the PEM water electrolyzer is determined based on the predicted data.

2. The PEM water electrolyzer life prediction method according to claim 1, characterized in that: Processing the operation data to obtain processed data specifically includes: Performing outlier detection on the operation data and removing outliers to obtain detection operation data; The moving average filtering method is used to smooth the data, remove the noise in the data, and obtain the filtered data; Performing time series conversion processing on the filtered data to obtain time series data; the time series data includes: a timestamp and corresponding filtered data; Normalizing the time series data, and reconstructing the data by setting a sliding window to obtain reconstructed data; The reconstructed data is determined as the processed data.

3. The method for predicting the life of a PEM water electrolyzer according to claim 1, characterized in that: The method for determining the LSTM-RNN hybrid model specifically includes: Acquire training data of a PEM water electrolyzer; the training data includes: training operation data and label data; the label data is prediction data corresponding to the training operation data; Performing data processing on the training data to obtain training processed data; Dividing the training processed data into a training set and a test set according to a set ratio; Constructing a neural network; the neural network includes: an interconnected LSTM layer, a Dropout layer, an RNN layer, and a fully connected output layer; Input the training set into the LSTM layer, perform forgetting and retaining update processing based on the activation function, and obtain updated data; Based on the Dropout layer, the update data is probability selected and scaled, and based on forward propagation and back propagation, the weight data of the retained neurons is iteratively processed to obtain iteratively processed data; The iteratively processed data is input into the RNN layer, and the hyperparameters are optimized and trained by using the Bayesian optimization method with the objective of minimizing the objective function, so as to obtain the trained RNN layer; the objective function is determined according to the difference between the output of the RNN layer and the label data in the training set; the hyperparameters include: a weight matrix and a bias; The fully connected output layer is used to output the output data of the trained RNN layer; The interconnected LSTM layer, Dropout layer, trained RNN layer, and fully connected output layer are used as the trained neural network; Inputting the test set into the trained neural network for verification to obtain a verified neural network; The verified neural network is determined as the LSTM-RNN hybrid model.

4. The method for predicting the life of a PEM water electrolyzer according to claim 3, characterized in that: The objective function includes: mean square error.

5. The method for predicting the life of a PEM water electrolyzer according to claim 4, characterized in that: The expression of the objective function is: Where MSE is the mean square error; n is the number of data in the training set; i is the sequence number; y i is the label data; is the output data of the RNN layer.

6. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor executes the computer program to implement the steps of the PEM water electrolyzer life prediction method according to any one of claims 1 to 5.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for predicting the life of a PEM water electrolyzer as described in any one of claims 1 to 5 are implemented.

8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method for predicting the life of a PEM water electrolyzer as described in any one of claims 1 to 5 are implemented.

Citation Information

Cited By

  • PEM water electrolyser life prediction method

    CN119416668A