A method for diagnosing and classifying faults of a proton exchange membrane fuel cell

By improving the vector weighted average algorithm and optimizing the deep echo state network, and combining random forest feature selection and the XGBoost model, the problem of low detection rate in PEMFC fault diagnosis was solved, and higher diagnostic accuracy and reliability were achieved.

CN118445710BActive Publication Date: 2026-11-24HUAIYIN INSTITUTE OF TECHNOLOGY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410397224.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-02
Publication Date
2026-11-24
Estimated Expiration
2044-04-02

AI Technical Summary

Technical Problem

Proton exchange membrane fuel cells (PEMFCs) have a high failure rate and a low failure diagnosis and detection rate, which affects their reliability and lifespan and limits their widespread application.

Method used

An improved vector weighted average algorithm (IINFO) is used to optimize the deep echo state network (DESN), which is combined with random forest (RF) feature selection and XGBoost fault diagnosis classification model. Voltage prediction and fault diagnosis models are established by training with sensor data to improve diagnostic accuracy.

Benefits of technology

It improves the accuracy and reliability of PEMFC fault diagnosis, enabling early detection of potential problems, reducing the risk of overfitting, and enhancing the model's generalization ability and robustness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118445710B_ABST
    Figure CN118445710B_ABST
Patent Text Reader

Abstract

This invention discloses a fault diagnosis and classification method for proton exchange membrane fuel cells (PEMFCs). First, multiple state variables are acquired during three operating processes of the PEMFC system: normal operation, membrane dryness, and flooding. An improved DESN voltage prediction model optimized using the INSO algorithm is then established. The improved INSO algorithm initializes the population using a Latin hypercube and introduces a convex lens imaging back-learning strategy to update the global optimal position. RF feature selection is performed on the data acquired from sensors for each category. The voltage prediction data and the data after feature dimensionality reduction are used as input to train the XGBoost fault diagnosis and classification model, ultimately obtaining three diagnostic models for the PEMFC system: normal operation, membrane dryness, and flooding. Compared to existing PEMFC fault diagnosis and classification models, this invention adds predicted voltage during model training, providing crucial information about system faults. This aids in fault detection, classification, localization, and evaluation of the diagnostic model, and allows for the early identification of potential problems, thereby improving the accuracy of the fault diagnosis and classification model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of proton exchange membrane fuel cell fault diagnosis technology, specifically to a method for classifying potential faults that may exist at the next moment during the use of a fuel cell. Technical Background

[0002] Entering the 21st century, rapid industrial and social development has led to an ever-increasing demand for energy. However, most traditional energy supply principles rely on heat engines for energy conversion, resulting in severely low efficiency. Much of the energy is dissipated as heat, not only wasting energy but also generating large amounts of pollutants. In recent years, the combustion of fossil fuels has caused serious pollution to our atmosphere and environment. Against the backdrop of unprecedented global changes, a new round of technological revolution is sweeping the world.

[0003] Unlike energy storage devices such as batteries, proton exchange membrane fuel cells (PEMFCs) are power generation devices. The electrochemical reaction between hydrogen and oxygen makes them environmentally friendly, reducing our emissions of pollutants and dependence on fossil fuels. However, with the development of engineering technology, industrial equipment that maintains the operation of various industries is gradually becoming more integrated and unified. This method of coordinated operation between various devices helps to reduce operating costs and improve production efficiency. PEMFC systems play a crucial role in providing reliable power in various application scenarios, and their output performance is critical. However, high failure rates and the resulting low reliability and short lifespan restrict the promotion and application of PEMFCs.

[0004] Therefore, how to detect and classify the specific fault types of proton exchange membrane fuel cells is a technical problem that urgently needs to be solved. Summary of the Invention

[0005] Objective: To address the high failure rate and low fault diagnosis detection rate of PEMFCs, this invention proposes a fault diagnosis classification method for proton exchange membrane fuel cells. First, a voltage prediction model is established. An improved vector weighted average algorithm (INFO) is used to optimize the deep echo state network (DESN), resulting in an accurate PEMFC voltage prediction model. Second, random forest (RF) feature selection is performed on data detected by sensors. The selected data and the predicted voltage are then used as input sets to train the XGBoost fault diagnosis classification model. Through iterative training in these two steps, diagnostic models for three types of PEMFC faults—normal operation, membrane dryness, and flooding—are finally obtained. These improvements enhance the accuracy and reliability of fault diagnosis, solving the current problem of low fault diagnosis detection rate.

[0006] Technical solution: This invention discloses a method for fault diagnosis and classification of proton exchange membrane fuel cells, comprising the following steps:

[0007] Step 1: Select an evaporative cooling proton exchange membrane fuel cell as the fault diagnosis target, and acquire multiple state variables of the PEMFC system during three operating processes: normal operation, membrane dryness, and water flooding through sensors at the stack inlet and outlet.

[0008] Step 2: Process the experimental data obtained in Step 1 and construct Data 1 and Data 2;

[0009] Step 3: Use Data 2 to build a voltage prediction model for PEMFC, train it using the input and output data of Data 2, and finally determine the DESN voltage prediction model.

[0010] Step 4: Optimize the vector weighted average algorithm INFO by introducing Latin hypercube sampling and convex lens imaging back learning strategies to obtain IINFO;

[0011] Step 5: Optimize the Deep Echo State Network (DESN) using the improved vector weighted average algorithm IINFO, establish the IINFO-DESN fuel cell voltage prediction model, and obtain the predicted value of the fuel cell voltage.

[0012] Step 6: Based on the importance of the diagnosis, perform random forest (RF) feature selection on data 1 from Step 2;

[0013] Step 7: Reconstruct the test set and training set using the data obtained in Step 5 and Step 6, train the XGBoost fault diagnosis classification model, and finally obtain the diagnostic classification model for normal, membrane dry and water flooded PEMFC system. Use the diagnostic classification model to classify proton exchange membrane fuel cell fault diagnosis.

[0014] Furthermore, the data processing procedure in step 2 is as follows:

[0015] Step 2.1: When a large number of data columns are missing, delete the data columns directly;

[0016] Step 2.2: For outlier handling, the mean ± 3σ method is used to identify values ​​that deviate significantly from the sample, and then fill or replace them using interpolation and averaging.

[0017] Step 2.3: Standardize the obtained experimental data.

[0018] Furthermore, data 1 and data 2 in step 2 are as follows:

[0019] Data 1: Select the PEMFC diagnostic category as the output and construct the training and test sets using multiple state variables as inputs;

[0020] Data 2: Select the next time step's stack voltage as the output, and construct the training set and test set using multiple state variables as inputs.

[0021] Furthermore, the DESN voltage prediction model in step 3 is as follows:

[0022] Step 3.1: First, give T training sets. Where u t Let y be the input vector. t The output vector contains multiple reservoirs in DESN. When a reservoir is updated, the updated state of the l-th reservoir at time t is as follows:

[0023]

[0024] in, W represents the input matrix of the l-th layer of the reservoir. (l) This represents the internal connectivity matrix of the l-th layer of the reservoir. Let represent the state of the l-th layer of the reservoir at time t, L represent the number of reservoirs, and tanh(x) be the hyperbolic tangent function;

[0025] Step 3.2: After updating the state of each reserve pool, the overall reserve pool state matrix is ​​obtained:

[0026]

[0027] Step 3.3: In the DESN network, output the weight matrix W. out Training and adjustment are required. The output matrix is ​​trained using the pseudo-inverse method, and the training formula is expressed as follows:

[0028] W out =(QQ) T +γE) -1 Q T P

[0029] Where E is the identity matrix, γ is the normalization parameter, Q represents the matrix composed of the overall state Q(t) at each time step, i.e., Q = [Q(1), ..., Q(n)], where n represents the number of training set samples; Y represents the matrix composed of the output y(t) at each time step, i.e., P = [P(1), ..., P(n)]. T ;

[0030] Step 3.4: Finally, at time t+1, the network output is:

[0031] y t+1 =W out X(t+1).

[0032] Furthermore, the specific process of the improved vector-weighted average algorithm IINFO in step 4 is as follows:

[0033] Step 4.1: Set the initial parameters of the INFO algorithm, including the number of training iterations, population size, number of iterations, and upper and lower boundaries of the search space;

[0034] Step 4.2: Improve the INFO initialization by using Latin hypercube sampling to initialize the population in the vector weighted average algorithm;

[0035] Step 4.3: Optimize the INFO algorithm using a convex lens imaging back-learning strategy. The optimization process is as follows:

[0036] Step 4.3.1: Assume that in a certain space, the globally optimal position X is... best This is obtained by projecting an individual of height h onto the x-axis, with the upper and lower limits of the coordinate axis being ub. j and lb j This represents the upper and lower limits of the j-th dimension of the current solution. A convex lens with focal length f is placed at the origin O. Through the image formed by the convex lens, a dimension with height h can be obtained. * P * At this point, the optimal position obtained through imaging is obtained on the x-axis. That is, the reverse point, so according to the principle of lens imaging:

[0037]

[0038] Let hh * =n, which is ultimately obtained through transformation.

[0039]

[0040] Step 4.3.2: By adjusting the value of n, a dynamically changing reverse solution is obtained; combining the characteristics of the INFO algorithm—large-scale search in the early stage and local fine-grained search in the later stage—a dynamically changing n is introduced:

[0041] n = (1 + (t / T)) 12 ) 10

[0042] Step 4.4: Finally, a greedy mechanism is introduced to select individuals after reverse learning, namely:

[0043]

[0044] Furthermore, in step 5, the Deep Echo State Network (DESN) is optimized using the improved vector weighted average algorithm IINFO, which optimizes the hyperparameter combination of the number of reservoir layers, reservoir leakage rate, reservoir spectral radius, reservoir sparsity, and reservoir input attenuation ratio of the DESN voltage prediction model.

[0045] Furthermore, the specific process of optimizing the Deep Echo State Network (DESN) using the improved vector-weighted average algorithm IINFO is as follows:

[0046] Step 5.1: Initialize parameters: Set the vector population size N, spatial dimension d, maximum number of iterations T, upper bound ub, lower bound lb of the search space, and current iteration number t=1. Then, use Latin hypercube stratified sampling to initialize and generate the spatial location of the current vector individual.

[0047] Step 5.2: Assign individual vector values ​​to the hyperparameter combination of the DESN voltage prediction model, and input them into the test set and training set for model training and validation;

[0048] Step 5.3: Calculate the predicted value y trained by the DESN network using the formula. i Compared with the actual value p of the training samples i The root mean square error is used as the individual fitness value (fitness) of the INFO vector, and the current optimal solution vector X is obtained based on the fitness value. best .

[0049]

[0050] Step 5.4: Enter the three stages of the IINFO algorithm, including the vector update stage, vector merging stage, and local search stage to obtain the updated spatial position.

[0051] Step 5.5: Introduce a convex lens imaging reverse learning strategy to generate... And obtain through greedy selection

[0052]

[0053] Step 5.6: Determine if the current iteration number t has reached the maximum iteration number T; if so, proceed to step 5.7; otherwise, proceed to step 5.6. Substitute the steps from 5.2 and continue training the model;

[0054] Step 5.8: Output the optimal solution and extract the number of reservoir layers required by the DESN network, the leakage rate of the reservoir, the spectral radius of the reservoir, the sparsity of the reservoir, and the input attenuation ratio of the reservoir.

[0055] Furthermore, in step 6, a random forest is used to perform feature selection on multiple input state variables of data 1, selecting those with high diagnostic importance as input variables for the fault diagnosis classification model. During processing, the random forest randomly replaces each feature and then evaluates its importance. Finally, variables with high importance are selected based on the contribution value of the decision tree. The contribution of each factor is measured using the Gini index, the expression of which is as follows:

[0056]

[0057] Where p represents the number of decision trees, c represents the number of categories, and p qc This represents the proportion of class c in q.

[0058] Beneficial effects:

[0059] This invention provides a novel fault diagnosis method to address the low detection rate of PEMFC fault diagnosis. Compared to existing PEMFC fault diagnosis classification models, it incorporates predicted voltage during model training to provide crucial information about system faults, aiding in fault detection, classification, localization, and assessment, and enabling early identification of potential problems, thereby improving the accuracy of the fault diagnosis classification model. The next-time voltage is predicted using the IINFO-DESN model. DESN, compared to ordinary state echo networks, can utilize more nonlinear combinations to more effectively fit complex data patterns and features, thus improving model performance. Optimizing the INFO algorithm using Latin hypercube and convex lens imaging back-learning strategies increases the algorithm's global search capability and avoids getting trapped in local optima. Optimizing the hyperparameter combination of DESN using IINFO improves model performance, generalization ability, and robustness while maximizing resource utilization. When constructing the XGBoost fault diagnosis classification model, using RF feature selection on sensor-detected data improves model performance, reduces overfitting risk, and accelerates training. Attached Figure Description

[0060] Figure 1 This is an overall flowchart of the proton exchange membrane fuel cell fault diagnosis method of the present invention. Detailed Implementation

[0061] The present invention will be further described below with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and should not be used to limit the scope of protection of the present invention.

[0062] This invention discloses a method for fault diagnosis of proton exchange membrane fuel cells, comprising the following steps:

[0063] Step 1: Taking an evaporative-cooled proton exchange membrane fuel cell (PEMFC) as the target for fault diagnosis, sensors at the stack inlet and outlet were used to obtain a total of 20 state variables, including voltage, temperature, inlet water pressure, and gas flow rate, during three operating phases: normal operation, membrane dry operation, and flooding. See Table 1 for details.

[0064] Table 1. Names of data variables related to PEMFC operation process

[0065]

[0066] Step 2: Process the obtained experimental data.

[0067] Step 2.1: When a large number of data columns are missing, the data columns can be deleted directly.

[0068] Step 2.2: For outlier handling, the mean ± 3σ method is used to identify values ​​that deviate significantly from the sample, and then fill or replace them using interpolation and averaging.

[0069] Step 2.3: Finally, the obtained experimental data is standardized to avoid the impact of different data units on the training of the algorithm model. This invention uses zero-mean standardization (Z-score standardization), where the processed data has a mean of 0 and a variance of 1. This is currently the most commonly used data normalization method. The Z-score normalization formula is:

[0070]

[0071] X represents the measured data after sensor data cleaning. Let X be the mean and S be the standard deviation of X.

[0072] After deletion, data replacement, and normalization, the final result is:

[0073] Data 1: Select the PEMFC diagnostic category as the output and 20 state variables as the input to construct the training set and test set.

[0074] Data 2: The next time step's stack voltage is selected as the output, and 20 state variables are used as inputs to construct the training and test sets.

[0075] Step 3: Establish the PEMFC voltage prediction model, train the input and output data of Data 2, and finally determine the DESN voltage prediction model.

[0076] Step 3.1: First, give T training sets. Where u t Let y be the input vector. tThis is the output vector. The DESN contains multiple reservoirs. When a reservoir is updated, the updated state of the l-th reservoir at time t is:

[0077]

[0078] in W represents the input matrix of the l-th layer of the reservoir. (l) This represents the internal connectivity matrix of the l-th layer of the reservoir. Let represent the state of the l-th layer of the reservoir at time t, L represent the number of reservoirs, and tanh(x) be the hyperbolic tangent function.

[0079] Step 3.2: After updating the status of each reserve pool, the overall reserve pool status matrix can be obtained.

[0080]

[0081] Step 3.3: In the DESN network, output the weight matrix (W) out Training and tuning are required. Similar to ESN, the output matrix is ​​often trained using a pseudo-inverse method. The training formula is expressed as follows:

[0082] W out =(QQ) T +γE) -1 Q T P

[0083] In the formula, E is the identity matrix, γ is the normalization parameter, Q represents the matrix composed of the overall state Q(t) at each time step, i.e., Q = [Q(1), ..., Q(n)], where n represents the number of training set samples; Y represents the matrix composed of the output y(t) at each time step, i.e., P = [P(1), ..., P(n)]. T .

[0084] Step 3.4: Finally, at time t+1, the network output is:

[0085] y t+1 =W out X(t+1)

[0086] Step 4: Improve the INFO algorithm by introducing a Latin hypercube and convex lens imaging back-learning strategy to obtain IINFO. The improvement process is as follows:

[0087] Step 4.1: Set the initial parameters of the INFO algorithm, including the number of training iterations, population size, number of iterations, and upper and lower boundaries of the search space.

[0088] Step 4.2: Improve the INFO initialization by using Latin hypercube sampling to initialize the population in the vector weighted average algorithm. The population initialization steps for the vector weighted average algorithm using Latin hypercube sampling include:

[0089] Step 4.2.1: In the INFO algorithm, taking the extraction of m samples from an n-dimensional vector space as an example, each dimension interval is first divided into m non-overlapping parts with equal probability.

[0090] Step 4.2.2: Generate a random number within each small interval, thus forming a sampling matrix of [m,n].

[0091] Step 4.2.3: Randomly select a number from each column of the sampling matrix and form a vector from these random numbers.

[0092] Step 4.3: Many optimization algorithms are prone to getting trapped in local optima when faced with complex optimization problems. In the later stages of iteration, the population diversity of the INFO algorithm decreases, and the current best individual is prone to getting trapped in local optima, leading to premature convergence of the algorithm. To solve this problem, this invention proposes a convex lens imaging back-learning strategy to optimize the INFO algorithm. The optimization process is as follows:

[0093] Step 4.3.1: Assume that in a certain space, the globally optimal position X is... best This is obtained by projecting an individual of height h onto the x-axis, with the upper and lower limits of the coordinate axis being ub. j and lb j This represents the upper and lower limits of the j-th dimension of the current solution. A convex lens with focal length f is placed at the origin O. Through the image formed by the convex lens, a dimension with height h can be obtained. * P * At this point, the optimal position obtained through imaging is obtained on the x-axis. (Reverse point). Therefore, based on the lens imaging principle, we can conclude that:

[0094]

[0095] Let hh * =n, which is ultimately obtained through transformation.

[0096]

[0097] Step 4.3.2: By adjusting the size of n, dynamically changing reverse solutions can be obtained, further improving the algorithm's optimization accuracy. Simultaneously, a smaller n generates a wider range of reverse solutions, while a larger n produces reverse solutions within a smaller range. Combining the characteristics of the INFO algorithm—a large-scale search in the early stages and a fine-grained local search in the later stages—a dynamically changing n is introduced:

[0098] n = (1 + (t / T)) 12 )10

[0099] Step 4.4: Finally, a greedy mechanism is introduced to select individuals after reverse learning, namely:

[0100]

[0101] Step 5: Construct the IINFO-DESN voltage prediction model. Optimize the hyperparameter combination of the DESN prediction model using the IINFO algorithm, including the number of reservoir layers, reservoir leakage rate, reservoir spectral radius, reservoir sparsity, and reservoir input attenuation ratio. The implementation steps are as follows:

[0102] Step 5.1: Initialize relevant algorithm parameters: Set the vector population size N, spatial dimension d, maximum number of iterations T, upper bound ub, lower bound lb of the search space, and current iteration number t=1, and use Latin hypercube stratified sampling to initialize and generate the spatial location of the current vector individual.

[0103] Step 5.2: Assign individual vector values ​​to the hyperparameter combination of DESN, and input them into the test set and training set for model training and validation.

[0104] Step 5.3: Calculate the predicted value y trained by the DESN network using the formula. i Compared with the actual value p of the training samples i The root mean square error is used as the individual fitness value (fitness) of the INFO vector, and the current optimal solution vector X is obtained based on the fitness value. best .

[0105]

[0106] Step 5.4: Enter the three stages of the IINFO algorithm, including the vector update stage, vector merging stage, and local search stage to obtain the updated spatial position.

[0107] Step 5.5: Introduce a convex lens imaging reverse learning strategy to generate... And obtain through greedy selection

[0108]

[0109] Step 5.6: Determine if the current iteration number t has reached the maximum iteration number T; if so, proceed to step 5.7; otherwise, proceed to step 5.6. Substitute this into step 5.2 and continue training the model.

[0110] Step 5.8: Output the optimal solution and extract the number of reservoir layers required by the DESN network, the leakage rate of the reservoir, the spectral radius of the reservoir, the sparsity of the reservoir, and the input attenuation ratio of the reservoir.

[0111] Step 6: Input the obtained optimal parameters and test data samples into the DESN prediction model to obtain the prediction results. Use four evaluation indicators, namely root mean square error (RMSE), mean absolute error (MAE), mean absolute percentage error (MAPE), and coefficient of determination (R), to evaluate the accuracy of the current model.

[0112] The formulas for the four evaluation indicators, RMSE, MAE, MAPE, and R2, are as follows:

[0113]

[0114] Step 7: Use a random forest to perform feature selection on the 20 input variables of Data 1, selecting those with high diagnostic importance as input variables for the fault diagnosis classification model. During the processing, the random forest randomly replaces each feature, evaluates its importance, and finally selects variables with high importance based on the contribution value of the decision tree. The contribution of each factor is measured using the Gini index, the expression for which is as follows:

[0115]

[0116] In the formula, p represents the number of decision trees, c represents the number of categories, and p qc This represents the proportion of class c in q.

[0117] Step 8: Combine the stack voltage predicted by the INFO-DESN voltage prediction model with the high diagnostic importance variables selected in Step 7 as input variables for the XGboost fault diagnosis classification model. Train the model until it converges to obtain the PEMFC fault diagnosis model, ultimately achieving the diagnosis of the PEMFC system in three operating states: normal, membrane dry, and flooded.

[0118] The above methods are only for illustrating the technical concept and features of the present invention, and are intended to enable those skilled in the art to understand the content of the present invention and implement it accordingly. They should not be used to limit the scope of protection of the present invention. All equivalent transformations or modifications made according to the spirit and essence of the present invention should be covered within the scope of protection of the present invention.

Claims

1. A method for classifying and diagnosing faults in a proton exchange membrane fuel cell, characterized in that, Includes the following steps: Step 1: Select an evaporative cooling proton exchange membrane fuel cell as the fault diagnosis target, and acquire multiple state variables of the PEMFC system during three operating processes: normal operation, membrane dryness, and water flooding through sensors at the stack inlet and outlet. Step 2: Process the experimental data obtained in Step 1 and construct Data 1 and Data 2; Step 3: Use Data 2 to build a voltage prediction model for PEMFC, train it using the input and output data of Data 2, and finally determine the DESN voltage prediction model. Step 4: Optimize the vector weighted average algorithm INFO by introducing Latin hypercube sampling and convex lens imaging back learning strategies to obtain IINFO; Step 4.1: Set the initial parameters of the INFO algorithm, including the number of training iterations, population size, number of iterations, and upper and lower boundaries of the search space; Step 4.2: Improve the INFO initialization by using Latin hypercube sampling to initialize the population in the vector weighted average algorithm; Step 4.3: Optimize the INFO algorithm using a convex lens imaging back-learning strategy. The optimization process is as follows: Step 4.3.1: Assume a globally optimal position in a certain space. It is to make a height of The coordinates are obtained by projecting the individual onto the x-axis, with the upper and lower limits of the coordinate axes being... and Indicates the current solution. The upper and lower limits of the dimension are at the origin. Place a focal length on top A convex lens, through which an image can be formed, yields a height of... of At this point, the optimal position obtained through imaging is obtained on the x-axis. That is, the reverse point, so according to the principle of lens imaging: ; make Ultimately obtained through change ; Step 4.3.2: By adjusting The size of the inverse solution is used to obtain a dynamically changing solution; combining the characteristics of the INFO algorithm, which performs a large-scale search in the early stage and a local fine-grained search in the later stage, a dynamically changing solution is introduced. : ; Step 4.4: Finally, a greedy mechanism is introduced to select individuals after reverse learning, namely: ; Step 5: Optimize the Deep Echo State Network (DESN) using the improved vector weighted average algorithm IINFO, establish the IINFO-DESN fuel cell voltage prediction model, and obtain the predicted value of the fuel cell voltage. Step 6: Based on the importance of the diagnosis, perform random forest (RF) feature selection on data 1 from Step 2; Step 7: Reconstruct the test set and training set using the data obtained in Steps 5 and 6, train the XGBoost fault diagnosis classification model, and finally obtain the diagnostic classification model for normal, membrane dry and water flooded PEMFC system. Use the diagnostic classification model to classify the fault diagnosis of proton exchange membrane fuel cells.

2. The proton exchange membrane fuel cell fault diagnosis and classification method according to claim 1, characterized in that, The data processing procedure in step 2 is as follows: Step 2.1: When a large number of data columns are missing, delete the data columns directly; Step 2.2: For outlier handling, use the mean. The method identifies values ​​that deviate significantly from the sample and fills or replaces them using interpolation and averaging. Step 2.3: Standardize the obtained experimental data.

3. The proton exchange membrane fuel cell fault diagnosis and classification method according to claim 1 or 2, characterized in that, In step 2, data 1 and data 2 are as follows: Data 1: Select the PEMFC diagnostic category as the output and construct the training set and test set using multiple state variables as input; Data 2: Select the next time step's stack voltage as the output, and construct the training set and test set using multiple state variables as inputs.

4. The proton exchange membrane fuel cell fault diagnosis and classification method according to claim 1, characterized in that, The DESN voltage prediction model in step 3 is as follows: Step 3.1: First, give... training set ,in For the input vector, The output vector is defined in DESN, which contains multiple reservoirs. When a reservoir is updated, at time t... The update statuses of the tiered reserve pool are as follows: ; ; in, Indicates the first The input matrix of the layered reserve pool, Indicates the first The internal connection matrix of the layered storage pool, express Time of the first Layered storage pool status, Indicates the number of reserve pools, It is the hyperbolic tangent function; Step 3.2: After updating the state of each reserve pool, the overall reserve pool state matrix is ​​obtained: ; Step 3.3: Output the weight matrix in the DESN network. Training and adjustment are required. The output matrix is ​​trained using the pseudo-inverse method, and the training formula is expressed as follows: ; in, It is the identity matrix. For normalization parameters, Represents the overall state at each moment. The matrix formed, i.e. , Indicates the number of samples in the training set; Represents the output at each time step. The matrix formed, i.e. ; Step 3.4: Finally in At that moment, the network output is: .

5. The proton exchange membrane fuel cell fault diagnosis and classification method according to claim 1, characterized in that, In step 5, the Deep Echo State Network (DESN) is optimized using the improved vector weighted average algorithm IINFO. This optimizes the hyperparameter combination of the DESN voltage prediction model, including the number of reservoir layers, reservoir leakage rate, reservoir spectral radius, reservoir sparsity, and reservoir input attenuation ratio.

6. The proton exchange membrane fuel cell fault diagnosis and classification method according to claim 5, characterized in that, The specific process of optimizing the Deep Echo State Network (DESN) using the improved vector-weighted average algorithm IINFO is as follows: Step 5.1: Initialize parameters: Set the vector population size N, spatial dimension d, maximum number of iterations T, upper bound ub, lower bound lb of the search space, and current iteration number t=1. Then, use Latin hypercube stratified sampling to initialize and generate the spatial location of the current vector individual. ; Step 5.2: Assign individual vector values ​​to the hyperparameter combination of the DESN voltage prediction model, and input them into the test set and training set for model training and validation; Step 5.3: Calculate the predicted value trained by the DESN network using the formula. Compared with the actual values ​​of the training samples The root mean square error is used as the individual fitness value in the INFO vector, and the current optimal solution vector is obtained based on the fitness value. ; ; Step 5.4: Enter the three stages of the IINFO algorithm, including the vector update stage, vector merging stage, and local search stage to obtain the updated spatial position. ; Step 5.5: Introduce a convex lens imaging reverse learning strategy to generate... And make a greedy choice to obtain ; Step 5.6: Determine if the current iteration number t has reached the maximum iteration number T; if so, proceed to step 5.7; otherwise, proceed to step 5.

6. Substitute the steps from 5.2 and continue training the model; Step 5.8: Output the optimal solution and extract the number of reservoir layers required by the DESN network, the leakage rate of the reservoir, the spectral radius of the reservoir, the sparsity of the reservoir, and the input attenuation ratio of the reservoir.

7. The proton exchange membrane fuel cell fault diagnosis and classification method according to claim 1, characterized in that, In step 6, a random forest is used to select features from multiple input state variables of Data 1, choosing those with high diagnostic importance as input variables for the fault diagnosis classification model. During processing, the random forest randomly replaces each feature, evaluates its importance, and finally selects variables with high importance based on the contribution value of the decision tree. The contribution of each factor is determined using... Measured by an index. The expression for the exponent is as follows: ; Where p represents the number of decision trees, and c represents the number of categories. This represents the proportion of class c in q.

Citation Information

Patent Citations

  • Fault detection method for proton exchange membrane fuel cell system

    CN114899457A

  • Fuel cell residual life prediction method and system, medium and terminal

    CN116629451A