PEMFC service life online prediction system and method based on machine learning
Through an online prediction system based on machine learning, combined with real-time monitoring and PID feedback control, the problem of data hysteresis and accuracy of PEMFC prediction in the existing technology is solved, real-time accurate life prediction and operation optimization of fuel cells are achieved, and extended its service life.
Patent Information
- Application Number
- CN202410674166.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-09-06
AI Technical Summary
Existing proton exchange membrane fuel cell (PEMFC) prediction methods are mainly offline models, which lack real-time performance and have large data hysteresis. It is difficult to make accurate life predictions based on real-time data and cannot correct operating conditions in real time, which limits its commercial application. .
An online prediction system based on machine learning is used to monitor PEMFC stack status data in real time through sensors. The data acquisition system and PID controller are used to optimize operating conditions. The Mamba algorithm framework is used to build a life prediction model to predict remaining life and adjust operating parameters in real time.
It achieves real-time monitoring of PEMFC stacks and accurate life prediction of multi-factor inputs, improves the real-time and accuracy of prediction, and ensures operation under optimal conditions through PID feedback control, extending the service life of the fuel cell.
Smart Images

Figure CN118607359A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of fuel cells, and in particular to a PEMFC life online prediction system and method based on machine learning. Background Art
[0002] Most of the existing proton exchange membrane fuel cell (PEMFC) prediction methods are limited to a single factor, and most of them are offline model prediction methods, lacking real-time online prediction. Under certain specific circumstances, the offline model prediction method may fail; its update may be delayed for several hours or days, and such data hysteresis will greatly affect the battery life; and all samples need to be prepared when predicting, so its universality is relatively low and cannot be used commercially on a large scale. In addition, the existing offline model prediction algorithm is relatively old, the accuracy is generally not very high, and the calculation cost is not low, and there is no correction feedback on the correctness of the subsequent prediction model and the PEMFC operation system. Summary of the invention
[0003] In view of the shortcomings of the above-mentioned technology, the present invention provides a PEMFC life online prediction system based on machine learning to solve the problem that the existing PEMFC life prediction data has large hysteresis and it is difficult to make accurate RUL predictions based on real-time data; at the same time, it is also impossible to correct feedback based on real-time data to ensure the optimal operating conditions, and thus it is difficult to meet the requirements of large-scale commercial applications.
[0004] In order to achieve the above purpose, the technical solution adopted by the present invention is:
[0005] A PEMFC life online prediction system based on machine learning, the online prediction system comprising:
[0006] A PEMFC stack, wherein the PEMFC stack comprises at least two single cells;
[0007] A sensor is arranged at a key position of the PEMFC stack and is used to monitor the operating status data of the PEMFC stack in real time; at the same time, the sensor is connected to the data acquisition system through a signal line to transmit the monitored operating status data to the data acquisition system;
[0008] A data acquisition system, wherein the data acquisition system receives the operation status data signal from the sensor and converts it into digital data;
[0009] A PID controller, wherein the PID controller calculates and outputs a control signal based on a preset reference value and digital data from a data acquisition system;
[0010] An actuator, wherein the actuator performs corresponding actions according to the control signal output by the PID controller to adjust the operating conditions of the PEMFC stack; and
[0011] A computer receives data from the data acquisition system and runs a machine learning algorithm to train a PEMFC life prediction model using historical data and real-time data, and predict the remaining life of the PEMFC in real time.
[0012] As a preferred technical solution, the sensor includes at least one of a temperature sensor, a pressure sensor, a flow sensor, a current sensor, a voltage sensor, and a humidity sensor. The sensor of the present invention can monitor and transmit the operating status data of the PEMFC in real time, providing real-time data support for accurate online life prediction and performance optimization.
[0013] As a preferred technical solution, the operating status data of the PEMFC stack includes at least one parameter of temperature, pressure, gas flow, current, voltage, and humidity.
[0014] As a preferred technical solution, the data acquisition system is connected to a computer via at least one data interface of USB, RS-485, CAN bus or Ethernet, and the processed data is sent to the computer. The data acquisition system of the present invention can clean, filter and standardize the raw data to improve the data quality, and provide a reliable data basis for subsequent machine learning algorithm training and online prediction of PEMFC life.
[0015] As a preferred technical solution, the PID controller receives the prediction results from the machine learning algorithm training model, and outputs a control signal after recalculating based on a preset reference value. The PID controller of the present invention receives the real-time operating status data of the PEMFC stack from the data acquisition system, and performs accurate calculations based on preset reference values in combination with the prediction results of the machine learning algorithm training model. This calculation process enables the PID controller to output accurate control signals, which reflect the optimization requirements of the operating conditions of the PEMFC stack. By adjusting and optimizing the operating conditions of the PEMFC in real time, the PID controller can ensure that the PEMFC stack always operates in the best state, thereby improving its performance and extending its service life.
[0016] As a preferred technical solution, the actuator is connected to the PEMFC stack, and the actuator includes at least one actuator or actuator system of a temperature controller, a pressure controller, a flow controller, a current / voltage regulator, a humidification controller, an exhaust valve, and a fan / ventilation system. The actuator of the present invention is closely connected to the PEMFC stack, and it includes a variety of actuators or actuator systems, such as a temperature controller, a pressure controller, a flow controller, a current / voltage regulator, a humidification controller, an exhaust valve, a fan / ventilation system, etc. These actuators accurately adjust the key parameters of the PEMFC stack such as temperature, pressure, flow, current / voltage, humidity, etc. according to the instructions of the PID controller, thereby ensuring the stable operation and performance optimization of the PEMFC stack.
[0017] As a preferred technical solution, the computer uses the Mamba algorithm framework to build a PEMFC life prediction model, and uses historical data and real-time data to train the model through a machine learning algorithm, and predicts the remaining life of the PEMFC in real time.
[0018] As a preferred technical solution, the computer runs the PEMFC life prediction model in real time, and sends control parameter adjustment suggestions to the PID controller according to the prediction results to optimize the operating state of the PEMFC stack.
[0019] The computer of the present invention first receives the real-time operating status data of the PEMFC stack from the data acquisition system, including key parameters such as temperature, pressure, gas flow, current, voltage, humidity, etc. Subsequently, the Mamba algorithm framework is used to build and train the PEMFC life prediction model, which can accurately predict the remaining life of the PEMFC based on historical data and real-time data. During the real-time operation process, the computer not only continuously monitors the state of the PEMFC stack, but also sends control parameter adjustment suggestions to the PID controller based on the prediction results to optimize the operating conditions of the PEMFC stack and ensure that it operates in the optimal performance area, thereby extending its service life. In addition, the computer is also responsible for storing and analyzing information such as the operating data, prediction results, and control parameters of the PEMFC stack, providing strong support for subsequent performance analysis, fault diagnosis, and maintenance plan formulation. By providing an intuitive user interface, the computer allows users to easily view the operating status and prediction results of the PEMFC stack, as well as perform operations such as parameter setting and model selection, thereby achieving convenient interaction with the system.
[0020] Another aspect of the present invention is to provide a PEMFC life online prediction method based on machine learning, wherein the online prediction method performs online prediction based on the above-mentioned PEMFC life online prediction system based on machine learning, and comprises the following steps:
[0021] S1: real-time monitoring of the operating status data of the PEMFC stack, through sensors set at key positions of the PEMFC stack, real-time collection of operating status data of at least one parameter such as temperature, pressure, gas flow, current, voltage, etc., and transmission of the data to the data acquisition system through a signal line;
[0022] S2: The data acquisition system receives the signal from the sensor and converts it into digital data, and then sends the processed data to the computer and the PID controller through at least one data interface of USB, RS-485, CAN bus or Ethernet. The PID controller calculates and outputs a control signal based on a preset reference value and the digital data from the data acquisition system;
[0023] S3: The computer receives data from the data acquisition system, builds a PEMFC life prediction model using the Mamba algorithm framework, and uses historical data and real-time data to train the model through a machine learning algorithm to predict the remaining life of the PEMFC in real time;
[0024] S4: The computer runs the PEMFC life prediction model in real time and sends control parameter adjustment suggestions to the PID controller based on the prediction results. The PID controller receives the prediction results and preset reference values from the machine learning algorithm training model, and outputs the control signal after recalculation.
[0025] S5: The actuator performs corresponding actions according to the control signal output by the PID controller to adjust the operating conditions of the PEMFC stack, such as adjusting parameters such as temperature, pressure, flow, current, and voltage, so as to optimize the operating state of the PEMFC stack.
[0026] The PEMFC life online prediction method based on machine learning of the present invention is a life prediction method integrating online monitoring and multi-factor input compared with the existing methods. The RUL (remaining service life) curve obtained can more intuitively and accurately show the battery status of the PEMFC stack under the current working conditions. In addition, the machine learning algorithm of this technology is the latest artificial intelligence deep learning algorithm architecture. Different from the traditional artificial intelligence algorithm, it is more suitable for the processing of long time series, and has a faster calculation speed, and can more accurately predict the RUL trend. The newly added subsequent feedback control can further correct the PEMFC operating conditions to ensure that it operates under the best conditions.
[0027] Beneficial effects of the present invention:
[0028] The PEMFC life online prediction system and method based on machine learning of the present invention integrates online monitoring and multi-factor input machine learning algorithms, which can monitor operating data in real time and make more accurate RUL predictions based on the current real-time data conditions; at the same time, the added PID feedback control can correct feedback according to real-time data to ensure optimal operating conditions, further improve the performance of the fuel cell and extend its service life.
[0029] The PEMFC life online prediction system and method based on machine learning of the present invention can perform real-time analysis and rapid online prediction of the PEMFC status; through online prediction, maintenance or replacement can be performed before it deteriorates, thereby preventing problems before they occur and avoiding failures and downtime. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 Schematic diagram of the system structure of the online prediction system for PEMFC life based on machine learning of the present invention.
[0031] Among them, there are PEMFC stack 1, sensor 2, data acquisition system 3, PID controller 4, actuator 5, and computer 6. DETAILED DESCRIPTION
[0032] The following description is used to disclose the present invention so that those skilled in the art can implement the present invention. The preferred embodiments described below are only examples, and those skilled in the art may think of other obvious variations.
[0033] Example 1
[0034] like Figure 1As shown, the PEMFC life online prediction system based on machine learning in this embodiment includes a PEMFC stack 1, a sensor 2, a data acquisition system 3, a PID controller 4, an actuator 5 and a computer 6: the PEMFC stack 1 includes at least two single cells, for example, a Ballard NEXA 1.2KW fuel cell system is selected; the sensor 2 is arranged at a key position of the PEMFC stack 1, and is used to monitor the operating status data of the PEMFC stack 1 in real time; at the same time, the sensor 2 is connected to the data acquisition system 3 through a signal line, and transmits the monitored operating status data to the data acquisition system 3; the data acquisition system 3 receives the operating status data signal from the sensor 2 and converts it into digital data; the PID controller 4 outputs a control signal after calculation based on a preset reference value and the digital data from the data acquisition system 3; the actuator 5 performs corresponding actions according to the control signal output by the PID controller 4 to adjust the operating conditions of the PEMFC stack 1; the computer 6 receives data from the data acquisition system 3, and runs a machine learning algorithm, uses historical data and real-time data to train the PEMFC life prediction model, and predicts the remaining life of the PEMFC in real time.
[0035] In one embodiment, the sensor 2 includes at least one of a temperature sensor, a pressure sensor, a flow sensor, a current sensor, a voltage sensor, and a humidity sensor.
[0036] In one of the embodiments, the operating status data of the PEMFC stack 1 includes at least one parameter of temperature, pressure, gas flow, current, voltage, and humidity.
[0037] In one embodiment, the data acquisition system 3 is connected to the computer 6 via at least one data interface of USB, RS-485, CAN bus or Ethernet, and sends the processed data to the computer 6. The data acquisition system 3 includes a data acquisition card National Instruments USB-6211.
[0038] In one embodiment, the PID controller 4 receives the prediction result from the machine learning algorithm training model, and recalculates based on a preset reference value to output a control signal.
[0039] In one embodiment, the actuator 5 is connected to the PEMFC stack 1, and the actuator 5 includes at least one actuator or actuator system selected from the group consisting of a temperature controller, a pressure controller, a flow controller, a current / voltage regulator, a humidification controller, an exhaust valve, and a fan / ventilation system.
[0040] In one embodiment, the computer 6 uses the Mamba algorithm framework to build a PEMFC life prediction model, and uses historical data and real-time data to train the model through a machine learning algorithm, and predicts the remaining life of the PEMFC in real time. The computer 6 is installed with a win10 operating system and LabVIEW software and a Python integrated environment. The acquisition system parameters are configured in the LabVIEW software, including sampling rate, range and trigger conditions, and the program is written to realize real-time data acquisition and storage.
[0041] In one of the embodiments, the computer 6 runs the PEMFC life prediction model in real time, and sends control parameter adjustment suggestions to the PID controller 4 according to the prediction results to optimize the operating state of the PEMFC stack 1.
[0042] The PEMFC life online prediction method based on machine learning in this embodiment performs online prediction based on the above-mentioned PEMFC life online prediction system based on machine learning, and includes the following steps:
[0043] S1: Start the online prediction system and start real-time monitoring of the operating status data of the PEMFC stack 1. Through the sensor 2 set at the key position of the PEMFC stack 1, the operating status data of at least one parameter such as temperature, pressure, gas flow, current, voltage, etc. are collected in real time, and the data is transmitted to the data acquisition system 3 through the signal line; ensure that all parameters are stable during the data acquisition process and record any abnormal conditions.
[0044] S2: The data acquisition system 3 receives the signal from the sensor 2 and converts it into digital data, and then sends the processed data to the computer 6 and the PID controller 4 through at least one data interface among USB, RS-485, CAN bus or Ethernet. The PID controller 4 calculates and outputs a control signal based on a preset reference value and the digital data from the data acquisition system 3.
[0045] S3: The computer 6 receives data from the data acquisition system 3, constructs a PEMFC life prediction model using the Mamba algorithm framework, and uses historical data and real-time data to train the model through a machine learning algorithm to predict the remaining life RUL of the PEMFC in real time. The RUL of the present invention refers to the time that the PEMFC fuel cell can continue to provide power before its performance deteriorates to the point where it cannot meet a specific power output or efficiency requirement.
[0046] S4: The computer 6 runs the PEMFC life prediction model in real time, and sends control parameter adjustment suggestions to the PID controller 4 according to the prediction results. The PID controller 4 receives the prediction results and preset reference values from the machine learning algorithm training model, and outputs the control signal after recalculation.
[0047] S5: The actuator 5 performs corresponding actions according to the control signal output by the PID controller 4 to adjust the operating conditions of the PEMFC stack 1, such as adjusting parameters such as temperature, pressure, flow, current, and voltage, so as to optimize the operating state of the PEMFC stack 1.
[0048] In the process of online prediction of PEMFC life, the PEMFC life online prediction system of the present invention requires an important step of data processing and model training, which specifically includes the steps of data processing and model training:
[0049] S01 Data preprocessing: Use Python to preprocess the collected PEMFC stack 1 operating status data; including normalizing the data to eliminate the impact of different dimensions and magnitudes; also includes processing missing values and outliers to ensure data quality and improve the accuracy and robustness of the model. Next, perform feature engineering to identify features that have a significant impact on PEMFC life prediction, such as temperature, humidity, pressure, etc., and consider introducing more relevant factors to further enhance the model's predictive ability.
[0050] S02 Model Construction: Use the deep learning framework PyTorch to build the Mamba architecture model; the model includes convolutional layers to extract the spatial features of the data; and introduces LSTM layers (Long Short-Term Memory Layers) to capture time series features.
[0051] S03 Model training: Use normalized data to train the model; select a suitable optimization algorithm, such as Adam or SGD, to adjust model parameters to optimize model performance.
[0052] S04 Model optimization: According to the performance of the model on the validation set, adjust the hyperparameters, such as learning rate, batch size, etc., to further improve the prediction accuracy of the model.
[0053] Deployment of S05 model online prediction system: deploy the trained Mamba architecture model to the online prediction system, receive the operating status data sent by the data acquisition system 3 and the sensor 2 in real time, and input the model for real-time life prediction.
[0054] S06 Model Integration: Integrate the output of the feedback control system based on the PID controller 4 with the life prediction model to send control parameter adjustment suggestions to the PID controller 4 based on the prediction results. The PID controller 4 combines the prediction results of the machine learning model and the preset reference values to output accurate control signals to optimize the operating state of the PEMFC stack 1.
[0055] Through the above steps, the PEMFC life online prediction system of the present invention can realize real-time analysis and rapid online prediction of the state of the PEMFC stack 1, thereby improving the performance of the fuel cell and extending its service life.
[0056] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments, and the above embodiments and descriptions only describe the principles of the present invention. The present invention may be subject to various changes and improvements without departing from the spirit and scope of the present invention, and these changes and improvements fall within the scope of the present invention claimed.
Claims
1. A PEMFC life online prediction system based on machine learning, characterized in that: The online prediction system comprises: A PEMFC stack, wherein the PEMFC stack comprises at least two single cells; A sensor is arranged at a key position of the PEMFC stack and is used to monitor the operating status data of the PEMFC stack in real time; at the same time, the sensor is connected to the data acquisition system through a signal line to transmit the monitored operating status data to the data acquisition system; A data acquisition system, wherein the data acquisition system receives the operation status data signal from the sensor and converts it into digital data; A PID controller, wherein the PID controller calculates and outputs a control signal based on a preset reference value and digital data from a data acquisition system; An actuator, wherein the actuator performs corresponding actions according to the control signal output by the PID controller to adjust the operating conditions of the PEMFC stack; and A computer receives data from the data acquisition system and runs a machine learning algorithm to train a PEMFC life prediction model using historical data and real-time data, and predict the remaining life of the PEMFC in real time.
2. The PEMFC life online prediction system based on machine learning as claimed in claim 1, characterized in that: The sensor includes at least one of a temperature sensor, a pressure sensor, a flow sensor, a current sensor, a voltage sensor, and a humidity sensor.
3. The PEMFC life online prediction system based on machine learning as claimed in claim 1, characterized in that: The operating status data of the PEMFC stack includes at least one parameter of temperature, pressure, gas flow, current, voltage, and humidity.
4. The PEMFC life online prediction system based on machine learning as claimed in claim 1, characterized in that: The data acquisition system is connected to a computer via at least one data interface of USB, RS-485, CAN bus or Ethernet, and sends the processed data to the computer.
5. The PEMFC life online prediction system based on machine learning as claimed in claim 1, characterized in that: The PID controller receives the prediction results from the machine learning algorithm training model, and recalculates and outputs a control signal based on a preset reference value.
6. The PEMFC life online prediction system based on machine learning as claimed in claim 1, characterized in that: The actuator is connected to the PEMFC stack and includes at least one actuator or actuator system selected from the group consisting of a temperature controller, a pressure controller, a flow controller, a current / voltage regulator, a humidification controller, an exhaust valve, and a fan / ventilation system.
7. The PEMFC life online prediction system based on machine learning as claimed in claim 1, characterized in that: The computer uses the Mamba algorithm framework to build a PEMFC life prediction model, and uses historical data and real-time data to train the model through a machine learning algorithm, and predicts the remaining life of the PEMFC in real time.
8. The PEMFC life online prediction system based on machine learning as claimed in claim 1, characterized in that: The computer runs the PEMFC life prediction model in real time, and sends control parameter adjustment suggestions to the PID controller according to the prediction results, so as to optimize the operation state of the PEMFC stack.
9. A PEMFC life online prediction method based on machine learning, characterized in that: The online prediction method is based on the online prediction system for PEMFC life based on machine learning according to any one of claims 1 to 8, and comprises the following steps: S1: real-time monitoring of the operating status data of the PEMFC stack, through sensors set at key positions of the PEMFC stack, real-time collection of operating status data of at least one parameter such as temperature, pressure, gas flow, current, voltage, etc., and transmission of the data to the data acquisition system through a signal line; S2: The data acquisition system receives the signal from the sensor and converts it into digital data, and then sends the processed data to the computer and the PID controller through at least one data interface of USB, RS-485, CAN bus or Ethernet. The PID controller calculates and outputs a control signal based on a preset reference value and the digital data from the data acquisition system; S3: The computer receives data from the data acquisition system, builds a PEMFC life prediction model using the Mamba algorithm framework, and uses historical data and real-time data to train the model through a machine learning algorithm to predict the remaining life of the PEMFC in real time; S4: The computer runs the PEMFC life prediction model in real time and sends control parameter adjustment suggestions to the PID controller based on the prediction results. The PID controller receives the prediction results and preset reference values from the machine learning algorithm training model, and outputs the control signal after recalculation. S5: The actuator performs corresponding actions according to the control signal output by the PID controller to adjust the operating conditions of the PEMFC stack, such as adjusting parameters such as temperature, pressure, flow, current, and voltage, so as to optimize the operating state of the PEMFC stack.
Citation Information
Cited By
Lithium battery life prediction method and system based on Mama model
CN119247194A
Mamba model-based lithium battery life prediction method, and system
WO2026118363A1
