A method and device for simulating and predicting the aging trend and residual service life of a variable power PEM electrolyzer

By using feature dimensionality reduction and combining deep learning networks, the problem of predicting the aging trend and remaining service life of PEM electrolyzers under variable power conditions was solved, enabling accurate prediction and efficient maintenance under dynamic conditions.

CN123139221APending Publication Date: 2026-11-20HUADIAN ELECTRIC POWER SCI INST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611259249.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-19
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing technologies struggle to accurately predict the aging trend and remaining service life of PEM electrolyzers under variable power operating conditions. Traditional methods are insufficient in accuracy when dealing with nonlinear disturbances and high-dimensional data, and the models are prone to misjudging noise features.

Method used

A deep learning network combining feature dimensionality reduction and importance assessment, including GRU, PatchTST, and TimeKAN modules, is used to extract aging features of PEM electrolyzers through self-attention and multi-scale feature reconstruction, thereby reducing the impact of noise and capturing aging patterns.

Benefits of technology

It enables accurate prediction of the aging trend and remaining service life of PEM electrolyzers under variable power conditions, providing a basis for the operation, maintenance and optimized scheduling of hydrogen production plants, and reducing model complexity and computational cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123139221A_ABST
    Figure CN123139221A_ABST
Patent Text Reader

Abstract

The application discloses a kind of ageing trend and residual service life simulation prediction method and device of variable power operation PEM electrolytic cell, belong to the health management and fault diagnosis technical field of electrolytic water hydrogen production equipment.Its method includes: constructing original operation data set;Original operation data set is preprocessed, feature dimension reduction and importance evaluation, and the optimal feature subset is obtained;PatchTST module is added after GRU module, and the MLP linear fully connected layer at the end of PatchTST module is replaced by TimeKAN module with learnable univariate function, and the constructed time series prediction model is obtained;The optimal feature subset is input into time series prediction model, and the PEM electrolytic cell voltage prediction value is output, to obtain the ageing trend and residual service life prediction result of PEM electrolytic cell.The application can help to solve the problems of poor generalization ability and insufficient long-time dependence capture ability of traditional PEM electrolytic cell residual service life prediction model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of health management and fault diagnosis technology for water electrolysis hydrogen production equipment, and in particular to a method and device for simulating and predicting the aging trend and remaining service life of a variable power PEM electrolyzer. Background Technology

[0002] Against the backdrop of the global energy structure transitioning towards clean and low-carbon energy, green hydrogen, as a key secondary energy carrier, holds significant strategic importance for its large-scale production and application. Proton exchange membrane (PEM) water electrolysis for hydrogen production has gradually become one of the mainstream technologies due to its significant advantages, including high current density, high hydrogen purity, compact structure, fast cold start-up, and strong adaptability to the volatility of renewable energy sources such as wind and solar power. However, in actual industrial applications, PEM electrolyzers operate under variable power conditions for extended periods, characterized by fluctuating hydrogen production power, frequent start-stop cycles, and wide-load operation. Microscopically, this leads to a series of complex and irreversible physicochemical damages, including the dissolution, detachment, and aggregation of the precious metal catalyst in the electrolyzer, mechanical and chemical degradation of the proton exchange membrane, and passivation of the titanium current collector. Macroscopically, this manifests as a gradual increase in the electrolyzer voltage and an irreversible decrease in overall hydrogen production efficiency. Because the operating parameters of the electrolyzer under variable power operation conditions, such as oxygen side cell temperature, pure water flow rate, gas-liquid separation frame pressure difference, electrolysis current, and small chamber voltage, contain nonlinear disturbances caused by sensor measurement errors and environmental noise, these disturbances can affect the assessment of the aging pattern of the electrolyzer, resulting in the inability to accurately estimate the health status of the electrolyzer. This poses a significant challenge to the extraction of aging characteristics and the prediction of the remaining service life of the electrolyzer.

[0003] Existing literature on PEM electrolyzer lifetime prediction is insufficient, while discussions on PEM fuel cells, which are closely related to the multiphysics characteristics of PEM electrolyzers, are readily available. On the one hand, physics-based methods typically require coupling partial differential equations encompassing multiple physics fields such as electrochemistry, thermodynamics, mass transfer, and fluid dynamics. While these methods can accurately model the internal mechanisms of the electrolyzer, the uneven distribution of multiphysics fields within the electrolyzer under complex actual operating conditions makes it difficult to identify model parameters offline and update them adaptively online. Furthermore, the aging mechanism within the electrolyzer exhibits nonlinear and time-varying characteristics. When using physics-based methods to verify the predictions with measured operating parameters of the electrolyzer, the extrapolation accuracy is limited, and the computational cost is high. On the other hand, traditional data-driven methods, such as Long Short-Term Memory (LSTM), Convolutional Neural Network (CNN), or Recurrent Neural Network (RNN), while avoiding complex mechanistic modeling processes, can lead to the curse of dimensionality when unfiltered daily operating data of electrolyzers is input into the model. The model is prone to misinterpreting noise features from variable power operation as aging information of the electrolyzer, reducing prediction accuracy and generalization ability. At the same time, traditional time series prediction models expose problems such as loss of long-range dependency information, vanishing or exploding gradients when dealing with long-period, non-stationary time series data. They are unable to simultaneously capture local transient information and extract global aging trends, limiting their application in the engineering field of predicting the remaining service life of PEM electrolyzers. Summary of the Invention

[0004] The purpose of this invention is to overcome the shortcomings of the prior art and provide a method and device for simulating and predicting the aging trend and remaining service life of PEM electrolyzers operating at variable power. This method and device can solve the technical problems such as variable power operation conditions masking the real physical laws of aging, high-dimensional measured data leading to poor model generalization ability, and the insufficient long-term dependency capture ability of traditional deep learning networks in long-sequence time-series data prediction.

[0005] To achieve the above objectives, the present invention is implemented using the following technical solution:

[0006] On the one hand, this invention provides a method for simulating and predicting the aging trend and remaining service life of a PEM electrolyzer operating at variable power, including:

[0007] Multidimensional time series data of PEM electrolyzers during variable power operation were obtained to construct the original operation dataset;

[0008] The original running dataset is preprocessed to obtain a preprocessed running dataset. Feature dimensionality reduction and importance evaluation are performed on the preprocessed running dataset to obtain the optimal feature subset.

[0009] The optimal feature subset is input into a pre-constructed time-series prediction model, and the predicted result of the aging trend of PEM electrolytic cell voltage is output.

[0010] Based on the predicted aging trend of PEM electrolyzer cell voltage and the preset performance failure threshold of PEM electrolyzer cell, the predicted aging trend and remaining service life of PEM electrolyzer cell are obtained.

[0011] The construction of the time series prediction model includes:

[0012] Add a PatchTST module after the GRU module, and replace the MLP linear fully connected layer at the end of the PatchTST module with a TimeKAN module with a learnable univariate function. This transfers the nonlinear mapping capability to the edge region of the network, resulting in a well-constructed time series prediction model.

[0013] Optionally, the multidimensional time series data includes at least the electrolyzer input current, electrolyzer voltage, hydrogen-side gas pressure, oxygen-side tank temperature, oxygen-side gas-liquid separator liquid level, gas-liquid separation frame pressure difference, and pure water circulation flow rate.

[0014] Optionally, the original running dataset is preprocessed to obtain a preprocessed running dataset, including:

[0015] Outlier removal and missing data imputation are performed on the original running dataset, and the original running dataset is uniformly mapped to a dimensionless interval to obtain the preprocessed running dataset.

[0016] Optionally, feature dimensionality reduction and importance evaluation are performed on the preprocessed running dataset to obtain the optimal feature subset, including:

[0017] The preprocessed running dataset is input into the XGBoost model for fitting. During the decision tree splitting process, the features are used as the sum of the gains of the splitting nodes in the decision tree. The initial importance weight of each feature is calculated to obtain the feature importance weight matrix.

[0018] The feature importance weight matrix is ​​input into the RFE model for feature dimensionality reduction. In each iteration, the feature with the lowest current importance weight is removed, reducing the dimension of the feature importance weight matrix to obtain the retained feature subset.

[0019] The XGBoost model is retrained using the retained feature subset and the feature importance weights are updated. The prediction error under different retained feature subsets is calculated, and the retained feature subset corresponding to the minimum prediction error is taken as the optimal feature subset.

[0020] Optionally, during the decision tree splitting process, the features are represented as the gain of the splitting node in the decision tree as follows:

[0021] ;

[0022] in, This represents the gain of a feature in the decision tree during the splitting process, where it is used as the splitting node. It is a statistic representing the first-order partial derivative of the loss function with respect to the prediction error; It is a statistic representing the second-order partial derivative of the loss function with respect to the prediction error; Represents the L2 regularization coefficient; This represents the minimum gain threshold required for node splitting. This represents the set of samples contained in the left child node after the split; This represents the set of samples contained in the left child node after the split; This represents the set of samples contained in the current node before the split.

[0023] Optionally, the optimal feature subset is input into a pre-constructed time-series prediction model, and the predicted trend of PEM electrolyzer cell voltage variation is output, including:

[0024] In the GRU module, the nonlinear dynamic correlation between the optimal feature subset and the cell voltage of the electrolyzer is captured in a short time scale through the reset gate and the update gate, and the hidden state containing the physical characteristics of the electrochemical response is obtained.

[0025] In the PatchTST module, the hidden state is divided into several non-overlapping or partially overlapping continuous blocks. The continuous blocks are used as independent channels to calculate self-attention. Based on the self-attention, noise is filtered out to extract the macro aging trend.

[0026] In the TimeKAN module, the macroscopic aging trend is evolved at multiple scales, generating Sequence 1, Sequence 2, and Sequence 3 sequentially. Sequence 1, Sequence 2, and Sequence 3 are then passed through their respective embedding layers to generate Embedded Feature 1, Embedded Feature 2, and Embedded Feature 3, respectively. Embedded Feature 1 and Embedded Feature 2 are subtracted element-wise to generate a high-frequency signal, and Embedded Feature 2 and Embedded Feature 3 are subtracted element-wise to generate a mid-frequency signal. Embedded Feature 3 is used as the low-frequency signal. The high-frequency signal is input into both the depthwise convolution module and the high-order KAN module, and their outputs are summed to obtain the high-frequency branch. The mid-frequency signal is input into both the depthwise convolution module and the mid-order KAN module, and their outputs are summed to obtain the mid-frequency branch. The low-frequency signal is input into both the depthwise convolution module and the low-order KAN module, and their outputs are summed to obtain the low-frequency branch. The high-frequency branch, mid-frequency branch, and low-frequency branch are then cumulatively added layer-by-layer across frequency bands to obtain the full-frequency feature. The full-frequency feature is then sequentially input into the linear layer and the output layer to obtain the predicted voltage aging trend of the PEM electrolytic cell.

[0027] Optionally, the GRU module is characterized as follows:

[0028] ;

[0029] ;

[0030] ;

[0031] ;

[0032] in, Indicates time step The reset door; Indicates time step The update gate; , All represent the learnable weight matrix of the reset gate; Indicates time step The optimal feature subset; , Representing time steps , The hidden state; This indicates resetting the door's offset; This represents the Sigmoid non-linear activation function; , Both represent the learnable weight matrix of the updated gate; This indicates that the gate bias is being updated; Indicates time step Candidate hidden states; , Each represents a learnable weight matrix for the hidden door; Indicates the offset of the hidden door; This represents the Hadamard product of matrix elements; This represents the hyperbolic tangent function.

[0033] Optionally, the learnable single-variable function is replaced by a Chebyshev polynomial. The single-variable function is defined according to the Chebyshev polynomial, and the single-variable function is transformed into a linear combination of Chebyshev polynomials with different orders.

[0034] The univariate function is expressed as:

[0035] ;

[0036] in, Indicates the first The single-variable function corresponding to the Chebyshev polynomial; Represents a neuron; Represents the inverse cosine function; Represents the cosine function;

[0037] The linear combination of Chebyshev polynomials of different orders is expressed as:

[0038] ;

[0039] in, Indicates the first The first layer One neuron, Indicates the first The first layer One neuron, Indicates action on The first The coefficients of the Chebyshev polynomial, Indicates the first The number of neurons in the layer; Represents the hyperbolic tangent function; Indicates the first The number of neurons in the layer; This indicates the order of the Chebyshev polynomial.

[0040] Optionally, based on the predicted aging trend of the PEM electrolyzer cell voltage and the preset performance failure threshold of the PEM electrolyzer cell, the predicted aging trend and remaining service life of the PEM electrolyzer cell are obtained, including:

[0041] When the predicted cell voltage under constant reference conditions exceeds the preset percentage of the initial cell voltage value specified by the manufacturer, the electrolytic cell reaches the end of its lifespan and is used as the preset performance failure threshold for the PEM electrolytic cell.

[0042] Based on the predicted voltage aging trend of the PEM electrolyzer, the time coordinate of the intersection point of the aging trend curve and the preset performance failure threshold horizontal line of the PEM electrolyzer is calculated. The difference between the time coordinate of the intersection point and the predicted starting time is taken as the predicted remaining service life of the PEM electrolyzer.

[0043] On the other hand, the present invention provides a simulation and prediction device for the aging trend and remaining service life of a variable power PEM electrolyzer, comprising:

[0044] The data acquisition module is used to: acquire multidimensional time series data of the PEM electrolyzer during variable power operation and construct the original operating dataset;

[0045] The data processing module is used to: preprocess the original running dataset to obtain a preprocessed running dataset, and perform feature dimensionality reduction and importance evaluation on the preprocessed running dataset to obtain an optimal feature subset;

[0046] The trend prediction module is used to: input the optimal feature subset into a pre-built time-series prediction model and output the PEM electrolytic cell voltage aging trend prediction result;

[0047] The result prediction module is used to: obtain the aging trend and remaining service life prediction results of PEM electrolyzer based on the cell voltage aging trend prediction results and the preset PEM electrolyzer performance failure threshold.

[0048] The model building module is used for: building the time series prediction model, including:

[0049] Add a PatchTST module after the GRU module, and replace the MLP linear fully connected layer at the end of the PatchTST module with a TimeKAN module with a learnable univariate function. This transfers the nonlinear mapping capability to the edge region of the network, resulting in a well-constructed time series prediction model.

[0050] Compared with the prior art, the beneficial effects achieved by the present invention are as follows:

[0051] This invention addresses the difficulty of extracting degradation features from PEM electrolyzers under variable power conditions. In the data preprocessing stage, it introduces feature dimensionality reduction and importance assessment. Since variable power operation of PEM electrolyzers introduces significant nonlinear fluctuations into the sensor-collected data, directly impacting time-series prediction accuracy, calculating feature importance and recursively eliminating these features removes high-frequency noise features related to variable power conditions, retaining only the core prediction features related to cell voltage degradation. This significantly reduces the input dimensionality of the subsequent neural network, avoiding model overfitting caused by redundant multidimensional features. In the time-series prediction stage, a combined deep learning network is constructed, including a GRU module, a PatchTST module, and a TimeKAN module. The GRU module is responsible for quickly capturing transient short-term features. The PatchTST module breaks through the bottleneck of traditional point-to-point computing by processing long sequences in blocks, enabling it to process historical operating data with a long span and extract macroscopic performance degradation patterns. Finally, in conjunction with the multi-scale feature reconstruction of the TimeKAN module, the model can effectively decouple the coupling relationship between the fluctuation characteristics of operating parameters and the physical laws of slow aging. Through this series of algorithm combinations, without coupling complex electrochemical or thermodynamic mechanism equations, the remaining service life of PEM electrolyzers can be obtained under dynamic operating conditions based on conventional sensor data, providing a reliable theoretical basis for the operation, maintenance and optimized scheduling of hydrogen production systems in hydrogen production plants. Attached Figure Description

[0052] Figure 1 A flowchart illustrating the simulation prediction method for aging trend and remaining service life of a variable power PEM electrolyzer provided in an embodiment of the present invention.

[0053] Figure 2 This is a schematic diagram of the structure of the time series prediction model provided in an embodiment of the present invention;

[0054] Figure 3 This is a schematic diagram showing the aging trend and remaining service life prediction results of the PEM electrolyzer provided in an embodiment of the present invention. Detailed Implementation

[0055] The technical solution of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present invention and the specific features in the embodiments are detailed descriptions of the technical solution of the present invention, rather than limitations thereof. In the absence of conflict, the embodiments of the present invention and the technical features in the embodiments can be combined with each other.

[0056] The term "and / or" simply describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. Additionally, the character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0057] Example 1

[0058] This paper addresses the technical bottleneck of tracking and providing early warning of the aging process of electrolyzers caused by frequent load changes and start-stop cycles in hydrogen production scenarios coupled with renewable energy sources such as wind and solar power. In these scenarios, the input power of a proton exchange membrane (PEM) water electrolysis hydrogen production system exhibits nonlinear fluctuations on a minute-by-minute scale. Under the stress generated by continuous wide load changes and start-stop cycles, microscopic aging behaviors occurring within the electrolyzer, such as catalyst dissolution, agglomeration and detachment, membrane thinning and perforation, gas cross-permeability, and titanium electrode passivation, are significantly accelerated. These irreversible damages within the electrolyzer manifest macroscopically as a non-stationary, continuous upward trend in the cell voltage over operating time. Therefore, capturing the aging trend of the PEM electrolyzer and estimating its remaining service life constitutes the core technical logic of this embodiment. For the aging trend process of PEM electrolyzers operating at variable power, this embodiment constructs a feature engineering and time series network prediction system based on multidimensional electrolyzer operating data.

[0059] like Figure 1 As shown in the figure, this embodiment introduces a simulation prediction method for the aging trend and remaining service life of a PEM electrolyzer operating at variable power, including the following steps:

[0060] Step 1: Construct the original running dataset, specifically as follows:

[0061] Multidimensional time-series data of the PEM electrolyzer during variable power operation are acquired by sensors to construct the original operation dataset.

[0062] Multidimensional time series data should include at least the electrolyzer input current, electrolyzer voltage, hydrogen-side gas pressure, oxygen-side cell temperature, oxygen-side gas-liquid separator liquid level, gas-liquid separation frame pressure difference, and pure water circulation flow rate.

[0063] Because the dynamic operating conditions of PEM electrolyzers naturally introduce environmental and system noise when sensors collect operational data, multi-dimensional time-series data reflecting the boundary conditions and health status of the PEM electrolyzers are collected based on the distributed control system and data acquisition system at the hydrogen production site, according to a set sampling step size, such as 30 minutes or 1 second. This data is used for any discrete time step. The acquired multidimensional time series data This includes the electrolyzer input current, which reflects the hydrogen production load of the PEM electrolyzer. Hydrogen-side pressure, reflecting hydrogen production in a PEM electrolyzer. The oxygen-side cell temperature reflects the thermodynamic and proton conduction characteristics within the multi-physics field of the PEM electrolyzer. With pure water circulation flow rate The oxygen-side gas-liquid separator level reflects the gas-liquid two-phase flow distribution inside the PEM electrolyzer and the external water management status. Pressure difference in the gas-liquid separation framework of the hydrogen-oxygen side of the PEM electrolyzer. And the cell voltage of the electrolyzer, which is a key indicator of degradation. .

[0064] Step 2: Preprocessing of the original running dataset, specifically:

[0065] The original running dataset is preprocessed to obtain a preprocessed running dataset.

[0066] The collected raw running dataset is cleaned and normalized, which involves removing outliers, filling in missing data, and mapping the raw running dataset to a dimensionless interval to obtain a preprocessed running dataset.

[0067] Outlier points caused by sensor failure or communication delay are removed by an outlier detection algorithm, and missing data are filled by an interpolation algorithm. Then, the time series data with different physical dimensions and orders of magnitude in the original running dataset are mapped to the dimensionless interval by the max-min normalization or Z-score normalization method, so as to eliminate the adverse effects of feature scale differences on gradient descent convergence in the subsequent deep learning model training process.

[0068] In the data preprocessing stage, instead of simple absolute value truncation, a method combining Interquartile Range (IQR) and the Isolation Forest algorithm based on global high-dimensional spatial topology was employed. The first quartile of the original running dataset was calculated in real time. With the third quartile Anyone who falls into Scattered data points outside the decision domain will be initially identified as suspicious points; subsequently, the complete multidimensional observation tensor will be input into an isolated forest algorithm containing multiple binary search trees, and the expected path length required for a sample to be isolated in the tree structure will be calculated. Output the corresponding anomaly score for the data. The calculation formula is as follows:

[0069] ;

[0070] In the formula, This represents the input multidimensional time series data; This represents the total sample size in the Isolation Forest algorithm; This represents the path length required for a sample within a single binary search tree structure. Represents a given sample size The average path normalization coefficient at that time.

[0071] After removing outlier data with scores close to 1, cubic spline interpolation is used to fit curves represented by higher-order polynomials to fill in missing values. The dataset is then divided into training and test sets according to a certain ratio, and data standardization is performed on each set based on its respective mean and standard deviation.

[0072] Step 3: Preprocess the running dataset for feature dimensionality reduction and importance evaluation, specifically as follows:

[0073] The preprocessed dataset is subjected to feature dimensionality reduction and importance evaluation to obtain the optimal feature subset.

[0074] Considering the significant collinearity within the preprocessed running dataset, the cell voltage of the electrolyzer increases with the increase of running time. This may result in a normal physical response, such as an increase in the input current of the electrolyzer due to a short-term increase in the installed capacity of new energy sources like wind and solar power, rather than a true aging situation.

[0075] A Recursive Feature Elimination-eXtreme Gradient Boosting (RFE-XGBoost) algorithm is employed to perform feature dimensionality reduction and importance assessment on the preprocessed running dataset. Using the electrolytic cell voltage as the prediction variable, the preprocessed running dataset is first input into an XGBoost model for fitting. During the decision tree splitting process, features are used as the sum of gains for each splitting node in the decision tree to calculate the initial importance weights of each feature, resulting in a feature importance weight matrix. In the nonlinear splitting process of the XGBoost model, the second-order Taylor expansion of its internal objective function is used to minimize the statistics of the first-order partial derivative of the loss function with respect to the prediction error. The statistic of the second-order partial derivative of the loss function with respect to the prediction error The combination of regularization penalty terms quantifies the gain brought by each feature node during decision tree splitting. The accumulated gains are used to obtain the feature importance weight matrix. During the decision tree splitting process, a certain feature is used as the gain of the splitting node. Represented as:

[0076] ;

[0077] in, This represents the gain of a feature in the decision tree during the splitting process, where it is used as the splitting node. It is a statistic representing the first-order partial derivative of the loss function with respect to the prediction error; It is a statistic representing the second-order partial derivative of the loss function with respect to the prediction error; Represents the L2 regularization coefficient; This represents the minimum gain threshold required for node splitting. This represents the set of samples contained in the left child node after the split; This represents the set of samples contained in the left child node after the split; This represents the set of samples contained in the current node before the split.

[0078] Then, the feature importance weight matrix is ​​input into the RFE model for feature dimensionality reduction. In each iteration, the feature with the lowest current importance weight ranking or the feature ranking at the bottom by a specified proportion (e.g., 10%) is removed, reducing the dimension of the feature importance weight matrix to obtain the retained feature subset.

[0079] Finally, the XGBoost model is retrained using the retained feature subset and the feature importance weights are updated. Cross-validation is used to calculate the prediction error under different retained feature subsets until the root mean square error of the model no longer decreases significantly. The retained feature subset corresponding to the minimum prediction error is taken as the optimal feature subset.

[0080] By calculating feature importance and recursively eliminating them, high-frequency noise features related to operating condition fluctuations can be stripped away, retaining only the core variables strongly correlated with tank voltage degradation. This significantly reduces the input dimensionality of the subsequent neural network, avoiding model overfitting caused by multidimensional redundant features.

[0081] Step 4: Construct a time series prediction model, specifically as follows:

[0082] The construction of a time series prediction model includes:

[0083] like Figure 2As shown, a Patch Time Series Transformer (PatchTST) module is added after the Gated Recurrent Unit (GRU) module, and the multi-layer perceptron (MLP) linear fully connected layer at the end of the PatchTST module is replaced with a time-series Kolmogorov-Arnold Network (TimeKAN) module with a learnable univariate function. This transfers the nonlinear mapping capability to the edge region of the network, resulting in the constructed time-series prediction model.

[0084] Instead of using a traditional single time series prediction model, this model employs a combined time series prediction model that addresses the nonlinearity of the PEM electrolyzer aging process and reflects the changing trends of multiple physical fields within the electrolyzer.

[0085] At the end of the PatchTST module, instead of using a traditional MLP linear fully connected layer, a KAN module based on the Kolmogorov-Arnold representation theorem is used. Unlike traditional neural networks that fix activation functions at neuron nodes, the KAN module employs learnable B-spline functions to transfer nonlinear mapping capabilities to the network's edge regions. To mitigate the negative impact of the complex recursive computation of high-order B-spline functions on the efficiency of training the KAN module, simple Chebyshev polynomials are used instead. Based on the definition of Chebyshev polynomials, univariate functions are transformed into linear combinations of Chebyshev polynomials of different orders.

[0086] A single-variable function defined by Chebyshev polynomials is expressed as:

[0087]

[0088] in, Indicates the first The single-variable function corresponding to the Chebyshev polynomial; Represents a neuron; Represents the inverse cosine function; Let cosine function be denoted; then, a single-variable function is defined as a linear combination of Chebyshev polynomials of different orders:

[0089]

[0090] in, Indicates the first The first layer One neuron, Indicates the first The first layer One neuron, Indicates action on The first The coefficients of the Chebyshev polynomial, Indicates the first The number of neurons in the layer; Represents the hyperbolic tangent function; Indicates the first The number of neurons in the layer; This indicates the order of the Chebyshev polynomial.

[0091] The GRU network includes reset gates, update gates, and hidden gates, represented as follows:

[0092] ;

[0093] ;

[0094] ;

[0095] ;

[0096] in, Indicates time step The reset door; Indicates time step The update gate; , All represent the learnable weight matrix of the reset gate; Indicates time step The optimal feature subset; , Representing time steps , The hidden state; This indicates resetting the door's offset; This represents the Sigmoid non-linear activation function; , Both represent the learnable weight matrix of the updated gate; This indicates that the gate bias is being updated; Indicates time step Candidate hidden states; , Each represents a learnable weight matrix for the hidden door; Indicates the offset of the hidden door; This represents the Hadamard product of matrix elements; This represents the hyperbolic tangent function.

[0097] Step 5: The processing flow of the time series prediction model is as follows:

[0098] like Figure 2 As shown, the optimal feature subset is input into a pre-built time-series prediction model, and the output is the prediction result of the aging trend of PEM electrolyzer cell voltage, including:

[0099] In the GRU module, the nonlinear dynamic correlation between the optimal feature subset and the cell voltage of the electrolyzer is captured in a short time scale through the reset gate and the update gate, and the hidden state containing the physical characteristics of the electrochemical response is obtained.

[0100] In the PatchTST module, the hidden state is divided into several non-overlapping or partially overlapping continuous blocks. The continuous blocks are used as independent channels to calculate self-attention. Based on the self-attention, noise is filtered out to extract the macro aging trend.

[0101] In the TimeKAN module, the deep features passed from the PatchTST module are used as the input sequence, representing the macroscopic aging trend. This macroscopic aging trend evolves at multiple scales within the network, generating Sequence 1, Sequence 2, and Sequence 3 sequentially. Different scale representations are typically achieved through average pooling or downsampling operations. Subsequently, Sequence 1, Sequence 2, and Sequence 3 are independently passed through their respective embedding layers, mapping the discrete time-series signals at each scale into continuous latent space feature vectors, generating Embedded Feature 1, Embedded Feature 2, and Embedded Feature 3. Then, Embedded Feature 1 is subtracted element-wise from Embedded Feature 2 to extract the high-frequency signals contained in the time-series data. Embedded Feature 2 is subtracted element-wise from Embedded Feature 3 to extract the mid-frequency signals. Embedded Feature 3 is not subjected to differencing operations and is directly used as the carrier for preserving the low-frequency signals of the long-term degradation trend of the data; that is, Embedded Feature 3 is treated as the low-frequency signal. After acquiring the high, mid, and low-frequency signals, the system employs a multi-branch parallel architecture to learn multi-order KAN representations for each frequency band. In other words, high-frequency signals are input into both the depthwise convolution module and the high-order KAN module, and their outputs are summed to obtain the high-frequency branch. Similarly, mid-frequency signals are input into both the depthwise convolution module and the mid-order KAN module, and their outputs are summed to obtain the mid-frequency branch. Low-frequency signals are input into both the depthwise convolution module and the low-order KAN module, and their outputs are summed to obtain the low-frequency branch. After completing the multi-order KAN representation learning, the network enters the frequency mixing stage. The high-frequency, mid-frequency, and low-frequency branches are then layer-by-layer accumulated across frequency bands to reconstruct a comprehensive feature representation of the entire frequency band in the latent space, encompassing both macroscopic aging trends and microscopic operating condition fluctuations, thus obtaining the full-frequency band features. Finally, the full-frequency band features are input into a linear layer for dimension mapping, and the output layer decodes and outputs the electrolytic cell voltage prediction sequence to obtain the PEM electrolytic cell voltage aging trend prediction result.

[0102] In one specific embodiment, such as Figure 2As shown, the optimal feature subset of the input first passes through the GRU network. Its internal reset and update gates can capture the short-term fluctuation behavior of operating data such as oxygen side tank temperature and input electrolysis current with a low parameter quantity, and then output a hidden state matrix containing the physical characteristics of electrochemical response.

[0103] Subsequently, the hidden state matrix containing local temporal correlation features is directly input into the subsequent PatchTST module. Unlike traditional models that treat a single time step as a temporal feature block for attention operations, which significantly increases the solution scale of the model, the PatchTST module used in this embodiment divides the time axis into multiple non-overlapping or partially overlapping continuous blocks. A multi-head self-attention mechanism is added with continuous blocks as the basic computational unit. Self-attention is calculated for continuous blocks as independent channels. Based on self-attention, noise is filtered and macroscopic aging trends are extracted. That is, multivariate temporal data is processed in channels that are divided into independent channels. The temporal data of each channel is processed by the internal Transformer backbone network. The processed temporal data is concatenated according to the feature direction to output the macroscopic aging trend. While preserving local temporal semantic information, the computational complexity under ultra-long input sequences is greatly reduced, and the periodicity of medium- and long-term aging under variable power conditions is fully extracted.

[0104] Multi-head self-attention mechanism The formula is as follows:

[0105] ;

[0106] in, , , These represent the query matrix, key matrix, and value matrix generated by linear projection of the block tensor, respectively. This represents the feature dimension of the key matrix, used to perform the scaling dot product operation to prevent gradient vanishing; This represents the normalized exponential function, used to generate the attention weight distribution within a local time segment; This indicates the matrix transpose.

[0107] Finally, at the end of the PatchTST module, the TimeKAN model uses a learnable B-spline function to transfer nonlinear mapping capabilities to the edge region of the network. It performs feature reconstruction and adaptive weight allocation on a multi-scale / multi-kernel space for macroscopic aging trends, further enhancing the model's ability to capture non-stationary signal mutations induced by implicit aging mechanisms. Finally, the prediction results of PEM electrolytic cell voltage aging trends are obtained through mapping of the fully connected layer.

[0108] like Figure 2As shown, in the TimeKAN module, the deep features passed from the PatchTST module are used as the input sequence, i.e., the macroscopic aging trend. This macroscopic aging trend undergoes multi-scale evolution within the network, generating Sequence 1, Sequence 2, and Sequence 3 sequentially. Different scale representations are typically achieved through average pooling or downsampling operations. Subsequently, Sequence 1, Sequence 2, and Sequence 3 are independently passed through their respective embedding layers, mapping the discrete time-series signals at each scale into continuous latent space feature vectors, generating Embedded Feature 1, Embedded Feature 2, and Embedded Feature 3. Then, Embedded Feature 1 is subtracted element-wise from Embedded Feature 2 to extract the high-frequency signals contained in the time-series data. Embedded Feature 2 is subtracted element-wise from Embedded Feature 3 to extract the mid-frequency signals. Embedded Feature 3 is not subjected to differencing operations and is directly used as the carrier for preserving the low-frequency signals of the long-term degradation trend of the data; that is, Embedded Feature 3 is treated as the low-frequency signal. After acquiring the high, mid, and low-frequency signals, the system employs a multi-branch parallel architecture to learn multi-order KAN representations for each frequency band. In other words, high-frequency signals are input into both the depthwise convolution module and the high-order KAN module, and their outputs are summed to obtain the high-frequency branch. Similarly, mid-frequency signals are input into both the depthwise convolution module and the mid-order KAN module, and their outputs are summed to obtain the mid-frequency branch. Low-frequency signals are input into both the depthwise convolution module and the low-order KAN module, and their outputs are summed to obtain the low-frequency branch. After completing the multi-order KAN representation learning, the network enters the frequency mixing stage. The high-frequency, mid-frequency, and low-frequency branches are then layer-by-layer accumulated across frequency bands to reconstruct a comprehensive feature representation of the entire frequency band in the latent space, encompassing both macroscopic aging trends and microscopic operating condition fluctuations, thus obtaining the full-frequency band features. Finally, the full-frequency band features are input into a linear layer for dimension mapping, and the output layer decodes and outputs the electrolytic cell voltage prediction sequence to obtain the PEM electrolytic cell voltage aging trend prediction result.

[0109] Step Six: Aging Trend and Remaining Service Life Prediction of PEM Electrolyzers, specifically:

[0110] Based on the predicted aging trend of PEM electrolyzer cell voltage and the preset performance failure threshold of PEM electrolyzer cell, the predicted aging trend and remaining service life of PEM electrolyzer cell are obtained, including:

[0111] When the predicted cell voltage under constant reference conditions exceeds the preset percentage of the initial cell voltage value specified by the manufacturer, the electrolytic cell reaches the end of its lifespan and is used as the preset performance failure threshold for the PEM electrolytic cell.

[0112] Based on the predicted voltage aging trend of the PEM electrolyzer, the time coordinate of the intersection point of the aging trend curve and the preset performance failure threshold horizontal line of the PEM electrolyzer is calculated. The difference between the time coordinate of the intersection point and the predicted starting time is taken as the predicted remaining service life of the PEM electrolyzer.

[0113] The predictive model outputs a cell voltage prediction sequence that includes future power fluctuations, yielding predicted cell voltage values ​​used to estimate the remaining lifespan of the PEM electrolyzer. The upper limit of cell voltage set in the PEM electrolyzer system operation and maintenance procedures, for example, a 5% increase in cell voltage compared to the initial operating time, is set as the lifespan threshold reference line. By marking the two points where this lifespan threshold reference line intersects with the predicted and actual value curves of the entire dataset's test set, and their projections onto the time axis, the time span from the start of the test set to the point corresponding to the intersection of the lifespan threshold reference line and the predicted value is calculated. This time span is considered the remaining lifespan of the PEM electrolyzer under this dataset partitioning scenario.

[0114] Example 2

[0115] Based on Example 1, this example presents an experimental example of a simulation prediction method for the aging trend and remaining service life of a PEM electrolyzer operating at variable power:

[0116] The method uses daily operating data of PEM electrolyzers under variable power conditions, including input electrolysis current, oxygen side cell temperature, pure water flow rate, and predictive variable PEM electrolyzer cell voltage. At the same time, the safe failure threshold for the end of the electrolyzer's lifespan is set at 238.00V, which is approximately 103% of the initial cell voltage value at the beginning of the PEM electrolyzer's operation.

[0117] The method selects a specific time point when the electrolytic cell has been running, i.e. Figure 3 The starting point of the remaining service life marked in the diagram is used as the current observation point. The historical observation sequence before this node is input into the trained combined deep learning network. The combined deep learning network outputs the predicted tank voltage time series data after the current time point.

[0118] The method employs linear interpolation to calculate the projection points on the time axis of the intersections of the predicted and actual tank voltage sequences with the 238.00V threshold line, respectively, to verify the model's prediction accuracy and engineering early warning capability. Figure 3 As shown. Figure 3 The graph shows the predicted voltage aging trend of PEM electrolyzers. The horizontal axis represents operating time, and the vertical axis represents cell voltage. The black solid line represents the trajectory of the actual cell voltage under variable power conditions, the red solid line represents the trajectory of the predicted cell voltage output by the model, and the blue horizontal dashed line is the preset 238.00V cell life termination threshold.

[0119] from Figure 3 As can be seen, the actual cell voltage of the PEM electrolyzer exhibits a non-smooth, monotonically increasing trend within the operating range of 0 to 1100 hours, accompanied by fluctuations in operating conditions. In contrast, the predicted cell voltage of the PEM electrolyzer maintains the overall upward trend and local fluctuation characteristics of the actual cell voltage, demonstrating that the model has a good feature capture capability for physical aging processes such as membrane degradation inside the electrolyzer.

[0120] In addition, Figure 3 In the main graph, the combined deep learning network starts prediction from the prediction starting point and obtains the projection of the line connecting the prediction starting point to the intersection of the prediction trajectory and the electrolyzer life termination threshold line on the time axis, which is taken as the remaining service life of the PEM electrolyzer under this operating condition. The remaining service life (RUL) marked in the figure = 20.6 h is the remaining service life of the PEM electrolyzer.

[0121] Finally, as Figure 3 As shown in the magnified subplot in the lower right corner, the trajectory of the predicted cell voltage intersects with the 238.00V electrolytic cell lifespan termination threshold at the horizontal axis of 1075.64h; while the trajectory of the actual cell voltage intersects with the 238.00V electrolytic cell lifespan termination threshold at the horizontal axis of 1077.6h. This means that the predicted failure point occurs earlier than the actual failure point, creating a safety time difference of nearly 2.0 hours (1077.6 h - 1075.6 h). This demonstrates that the combined deep learning network provides sufficient early warning time before the PEM electrolytic cell reaches a physical failure state.

[0122] The results show that the combined deep learning network of the present invention can output early warning signals before the physical failure of the PEM electrolyzer, thereby providing an effective auxiliary operation tool for the maintenance of the main equipment of the hydrogen production station and reducing the overall hydrogen production cost.

[0123] Example 3

[0124] Based on Embodiment 1 or 2, this embodiment introduces a simulation and prediction device for the aging trend and remaining service life of a variable power PEM electrolyzer, comprising:

[0125] The data acquisition module is used to: acquire multidimensional time series data of the PEM electrolyzer during variable power operation and construct the original operating dataset;

[0126] The data processing module is used to: preprocess the original running dataset to obtain a preprocessed running dataset, and perform feature dimensionality reduction and importance evaluation on the preprocessed running dataset to obtain an optimal feature subset;

[0127] The trend prediction module is used to: input the optimal feature subset into a pre-built time-series prediction model and output the PEM electrolytic cell voltage aging trend prediction result;

[0128] The result prediction module is used to: obtain the aging trend and remaining service life prediction results of PEM electrolyzer based on the cell voltage aging trend prediction results and the preset PEM electrolyzer performance failure threshold.

[0129] The model building module is used for: building the time series prediction model, including:

[0130] Add a PatchTST module after the GRU module, and replace the MLP linear fully connected layer at the end of the PatchTST module with a TimeKAN module with a learnable univariate function. This transfers the nonlinear mapping capability to the edge region of the network, resulting in a well-constructed time series prediction model.

[0131] The specific functions of each module described above are explained in the relevant content of the method in Embodiment 1, and will not be repeated here.

[0132] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0133] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0134] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0135] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0136] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims. All of these forms are within the protection scope of the present invention.

Claims

1. A method for simulating and predicting the aging trend and remaining service life of a PEM electrolyzer operating at variable power, characterized in that, include: Multidimensional time series data of PEM electrolyzers during variable power operation were obtained to construct the original operation dataset; The original running dataset is preprocessed to obtain a preprocessed running dataset. Feature dimensionality reduction and importance evaluation are performed on the preprocessed running dataset to obtain the optimal feature subset. The optimal feature subset is input into a pre-constructed time-series prediction model, and the predicted result of the aging trend of PEM electrolytic cell voltage is output. Based on the predicted aging trend of PEM electrolyzer cell voltage and the preset performance failure threshold of PEM electrolyzer cell, the predicted aging trend and remaining service life of PEM electrolyzer cell are obtained. The construction of the time series prediction model includes: Add a PatchTST module after the GRU module, and replace the MLP linear fully connected layer at the end of the PatchTST module with a TimeKAN module with a learnable univariate function. This transfers the nonlinear mapping capability to the edge region of the network, resulting in a well-constructed time series prediction model.

2. The simulation and prediction method for aging trend and remaining service life of a variable power PEM electrolyzer according to claim 1, characterized in that, The multidimensional time series data includes at least the electrolyzer input current, electrolyzer voltage, hydrogen-side gas pressure, oxygen-side tank temperature, oxygen-side gas-liquid separator liquid level, gas-liquid separation frame pressure difference, and pure water circulation flow rate.

3. The simulation and prediction method for aging trend and remaining service life of a variable power PEM electrolyzer according to claim 1, characterized in that, The original running dataset is preprocessed to obtain a preprocessed running dataset, including: Outlier removal and missing data imputation are performed on the original running dataset, and the original running dataset is uniformly mapped to a dimensionless interval to obtain the preprocessed running dataset.

4. The simulation and prediction method for aging trend and remaining service life of a variable power PEM electrolyzer according to claim 1, characterized in that, The preprocessed dataset is subjected to feature dimensionality reduction and importance evaluation to obtain the optimal feature subset, including: The preprocessed running dataset is input into the XGBoost model for fitting. During the decision tree splitting process, the features are used as the sum of the gains of the splitting nodes in the decision tree. The initial importance weight of each feature is calculated to obtain the feature importance weight matrix. The feature importance weight matrix is ​​input into the RFE model for feature dimensionality reduction. In each iteration, the feature with the lowest current importance weight is removed, reducing the dimension of the feature importance weight matrix to obtain the retained feature subset. The XGBoost model is retrained using the retained feature subset and the feature importance weights are updated. The prediction error under different retained feature subsets is calculated, and the retained feature subset corresponding to the minimum prediction error is taken as the optimal feature subset.

5. The simulation and prediction method for aging trend and remaining service life of a variable power PEM electrolyzer according to claim 4, characterized in that, During the decision tree splitting process, the features are represented as the gain of the splitting node in the decision tree as follows: ; in, This represents the gain of a feature in the decision tree during the splitting process, where it is used as the splitting node. It is a statistic representing the first-order partial derivative of the loss function with respect to the prediction error; It is a statistic representing the second-order partial derivative of the loss function with respect to the prediction error; Represents the L2 regularization coefficient; This represents the minimum gain threshold required for node splitting. This represents the set of samples contained in the left child node after the split; This represents the set of samples contained in the left child node after the split; This represents the set of samples contained in the current node before the split.

6. The simulation and prediction method for aging trend and remaining service life of a variable power PEM electrolyzer according to claim 1, characterized in that, The optimal feature subset is input into a pre-constructed time-series prediction model, which outputs the predicted trend of PEM electrolyzer cell voltage variation, including: In the GRU module, the nonlinear dynamic correlation between the optimal feature subset and the cell voltage of the electrolyzer is captured in a short time scale through the reset gate and the update gate, and the hidden state containing the physical characteristics of the electrochemical response is obtained. In the PatchTST module, the hidden state is divided into several non-overlapping or partially overlapping continuous blocks. The continuous blocks are used as independent channels to calculate self-attention. Based on the self-attention, noise is filtered out to extract the macro aging trend. In the TimeKAN module, the macroscopic aging trend is evolved at multiple scales, generating Sequence 1, Sequence 2, and Sequence 3 sequentially. Sequence 1, Sequence 2, and Sequence 3 are then passed through their respective embedding layers to generate Embedded Feature 1, Embedded Feature 2, and Embedded Feature 3, respectively. Embedded Feature 1 and Embedded Feature 2 are subtracted element-wise to generate a high-frequency signal, and Embedded Feature 2 and Embedded Feature 3 are subtracted element-wise to generate a mid-frequency signal. Embedded Feature 3 is used as a low-frequency signal. The high-frequency signal is input into both the depthwise convolution module and the high-order KAN module, and their outputs are summed to obtain the high-frequency branch. The mid-frequency signal is input into both the depthwise convolution module and the mid-order KAN module, and their outputs are summed to obtain the mid-frequency branch. The low-frequency signal is input into both the depthwise convolution module and the low-order KAN module, and their outputs are summed to obtain the low-frequency branch. The high-frequency branch, mid-frequency branch, and low-frequency branch are then cumulatively added layer-by-layer across frequency bands to obtain the full-frequency feature. The full-frequency feature is then sequentially input into the linear layer and the output layer to obtain the PEM electrolytic cell voltage aging trend prediction result.

7. The simulation and prediction method for aging trend and remaining service life of a variable power PEM electrolyzer according to claim 1 or 6, characterized in that, The GRU module is represented as follows: ; ; ; ; in, Indicates time step The reset door; Indicates time step The update gate; , All represent the learnable weight matrix of the reset gate; Indicates time step The optimal feature subset; , Representing time steps , The hidden state; This indicates resetting the door's offset; This represents the Sigmoid non-linear activation function; , Both represent the learnable weight matrix of the updated gate; This indicates that the gate bias is being updated; Indicates time step Candidate hidden states; , Each represents a learnable weight matrix for the hidden door; Indicates the offset of the hidden door; This represents the Hadamard product of matrix elements; This represents the hyperbolic tangent function.

8. The simulation and prediction method for aging trend and remaining service life of a variable power PEM electrolyzer according to claim 1 or 6, characterized in that, The learnable single-variable function is replaced by a Chebyshev polynomial. The single-variable function is defined according to the Chebyshev polynomial and transformed into a linear combination of Chebyshev polynomials with different orders. The univariate function is expressed as: ; in, Indicates the first The single-variable function corresponding to the Chebyshev polynomial; Represents a neuron; Represents the inverse cosine function; Represents the cosine function; The linear combination of Chebyshev polynomials of different orders is expressed as: ; in, Indicates the first The first layer One neuron, Indicates the first The first layer One neuron, Indicates action on The first The coefficients of the Chebyshev polynomial, Indicates the first The number of neurons in the layer; Represents the hyperbolic tangent function; Indicates the first The number of neurons in the layer; This indicates the order of the Chebyshev polynomial.

9. The simulation and prediction method for aging trend and remaining service life of a variable power PEM electrolyzer according to claim 1, characterized in that, Based on the predicted aging trend of PEM electrolyzer cell voltage and the preset performance failure threshold of PEM electrolyzer cell, the predicted aging trend and remaining service life of PEM electrolyzer cell are obtained, including: When the predicted cell voltage under constant reference conditions exceeds the preset percentage of the initial cell voltage value specified by the manufacturer, the electrolytic cell reaches the end of its lifespan and is used as the preset performance failure threshold for the PEM electrolytic cell. Based on the predicted voltage aging trend of the PEM electrolyzer, the time coordinate of the intersection point of the aging trend curve and the preset performance failure threshold horizontal line of the PEM electrolyzer is calculated. The difference between the time coordinate of the intersection point and the predicted starting time is taken as the predicted remaining service life of the PEM electrolyzer.

10. A simulation and prediction device for the aging trend and remaining service life of a variable-power PEM electrolyzer, characterized in that, include: The data acquisition module is used to: acquire multidimensional time series data of the PEM electrolyzer during variable power operation and construct the original operating dataset; The data processing module is used to: preprocess the original running dataset to obtain a preprocessed running dataset, and perform feature dimensionality reduction and importance evaluation on the preprocessed running dataset to obtain an optimal feature subset; The trend prediction module is used to: input the optimal feature subset into a pre-built time-series prediction model and output the PEM electrolytic cell voltage aging trend prediction result; The result prediction module is used to: obtain the aging trend and remaining service life prediction results of PEM electrolyzer based on the cell voltage aging trend prediction results and the preset PEM electrolyzer performance failure threshold. The model building module is used for: building the time series prediction model, including: Add a PatchTST module after the GRU module, and replace the MLP linear fully connected layer at the end of the PatchTST module with a TimeKAN module with a learnable univariate function. This transfers the nonlinear mapping capability to the edge region of the network, resulting in a well-constructed time series prediction model.