Physics-Guided Conditional Diffusion Model for Rare Event Synthesis and Diagnosis for the Water-Gas Shift Reaction
Organizations: Department of Chemical Engineering, Texas Tech University, Lubbock, TX 79409, USA
Abstract
As the world moves towards sustainable energy sources, hydrogen (H2) can be treated as an eco-friendly alternative to fossil fuels due to its high energy density and zero carbon emissions. The water-gas shift (WGS) reaction is a widely used industrial process for hydrogen production by converting carbon monoxide and steam into hydrogen and carbon dioxide. However, occurrences like severe fouling, catalyst deterioration, and thermal runaway can hamper the reaction kinetics/process safety and decrease the yield of H2. These incidents are rare, and gathering process data under such abnormal conditions is challenging. In this work, we propose a physics-guided conditional diffusion model to generate realistic rare-event trajectories for the WGS reaction. The proposed model integrates a conditional denoising diffusion probabilistic model (CDDPM) with governing laws of the reaction to generate physically consistent process trajectories. The conditioning features allow the model to produce high-quality synthetic profiles for rare-event domains that are typically beyond the training regimes. The generated rare-event trajectories then augment the raw dataset for a balanced distribution between normal and abnormal conditions. We further propose a hazard score to assess the risk severity of the operating condition based on the operating trajectory. Deep learning models are trained with the augmented dataset to diagnose the health status of the reaction. Simulation results show that the proposed physics-guided diffusion model outperforms data-driven models in terms of the quality of synthetic data and diagnosis performance for rare events.
Figures & tables
| Layer | Operation | Kernel | Stride | Channels (In Out) | Trajectory (In Out) |
| Input | Concatenate inputs | – | – | ||
| Resnet Block 1 | ResBlock 1D | 3 | 1 | ||
| Maxpooling 1 | MaxPool1D | 2 | 2 | ||
| Resnet Block 2 | ResBlock 1D | 3 | 1 | ||
| Maxpooling 2 | MaxPool1D | 2 | 2 | ||
| Bottleneck | ResBlock 1D | 3 | 1 |
| Parameter | Value | Parameter | Value |
| Deep-learning framework | PyTorch | Beta schedule | Linear |
| Optimizer | Adam | ||
| Learning rate | |||
| Loss function | MSE | Input channels | 9 |
| Batch size | 5 | Output channels | 7 |
| Number of epochs | 6000 | Base channels | 64 |
| Parameter | Value | Parameter | Value |
| Deep-learning framework | PyTorch | Fully connected activation | ReLU |
| Sequence length | 100 time steps | Number of output classes | 4 |
| Number of input features | 7 | Loss function | Cross-entropy |
| Input features | CO, H 2 O, CO 2 , H 2 , , , | Optimizer | Adam |
| GRU hidden size | 64 | Learning rate | |
| Number of GRU layers | 8 | Batch size | 50 |
| Input Variable | Symbol | Range |
| Coolant temperature | – | |
| Feed flow rate | – | |
| Input holding time | time steps |
| Initial reactor conditions | Feed conditions | ||||
| Parameter | Symbol | Value | Parameter | Symbol | Value |
| Initial CO concentration | – | Feed CO concentration | |||
| Initial H 2 O concentration | – | Feed H 2 O concentration | |||
| Initial CO 2 concentration | Feed CO 2 concentration | ||||
| Initial H 2 concentration | Feed H 2 concentration | ||||
| Initial reactor temperature | – | Feed temperature | |||
| Parameter | Symbol | Value | Parameter | Symbol | Value |
| Reactor volume | Base overall heat transfer coefficient | ||||
| Fluid density | Heat transfer efficiency factor | – | |||
| Heat capacity | Effective heat transfer coefficient | ||||
| Pre-exponential factor | Base activation energy | ||||
| Universal gas constant | Activation energy factor | – | |||
| Heat of reaction | Effective activation energy |
| Trajectory No. | Heat Transfer Efficiency Factor | Activation Energy Factor |
| 1–30 | 0.6–1.0 | 1.0–1.2 |
| 31–60 | 0.6–1.0 | 1.2–1.3 |
| 61–90 | 0.6–1.0 | 1.3–1.4 |
| 91–120 | 0.6–1.0 | 1.4–1.45 |
| 121–130 | 0.6–1.0 | 1.45–1.5 |
| Model | Temperature (K) | CO | H 2 O | H 2 |
| Without physics-guided loss | 0.0368 | 0.0377 | 0.0348 | |
| With physics-guided loss | 4.0 | 0.0283 | 0.0264 | 0.0267 |
| Model | Temperature (K) | CO | H 2 O | H 2 |
| Without physics-guided loss | 26.6 | 0.2643 | 0.2763 | 0.2573 |
| With physics-guided loss | 3.67 | 0.0262 | 0.0297 | 0.0227 |
| Training dataset | Normal | Slight | Extreme | Disaster | Total |
| Case 1: Simulation | 415 | 415 | 415 | 0 | 1245 |
| Case 2: Simulation + Pg-CDDPM | 415 | 415 | 415 | 415 | 1660 |
| Case 3: Simulation + Conventional CDDPM | 415 | 415 | 415 | 415 | 1660 |
| Metric | Case | Normal | Slightly Abnormal | Extreme | Disaster |
| Case 1 | 0.93 | 0.95 | 0.48 | 0.00 | |
| Precision | Case 2 | 0.93 | 0.92 | 0.91 | 0.94 |
| Case 3 | 0.89 | 0.93 | 0.51 | 0.67 | |
| Case 1 | 0.94 | 0.92 | 1.00 | 0.00 | |
| Recall | Case 2 | 0.93 | 0.93 | 0.91 | 0.92 |
| Case 3 | 0.93 | 0.91 | 0.88 | 0.21 |