The research addresses the safety imperative of preventing flammable gas explosions in enclosed pipelines by establishing a predictive model for the critical quenching diameter within porous media flame arresters. A novel predictive framework was developed based on a comprehensive nine-dimensional feature space incorporating gas composition parameters (e.g., hydrogen equivalence ratio), pipeline geometry dimensions (length-to-diameter ratio), initial thermodynamic conditions (pressure), and porous medium structural characteristics (thickness, material thermal conductivity). A systematic investigation was conducted to identify the optimal hyperparameter configurations for both convolutional neural network (CNN) and Transformer architectures. Rigorous validation demonstrated that the Transformer model exhibits statistically significant superiority over the CNN model across all key performance metrics. Specifically, the model achieved a δMAE (mean absolute error, MAE) of 0.068, a δMSE (mean squared error, MSE) of 0.008, and an coefficient of determination R2 of 0.928. The performance notably surpassed the CNN results (δMAE=0.079, δMSE=0.012, R2=0.906). Beyond evaluation indicators, detailed error distribution analysis confirmed the Transformer's enhanced predictive accuracy and reduced susceptibility to outliers. The superior performance is attributed to the Transformer’s intrinsic self-attention mechanism, which excels at dynamically identifying and weighting critical interdependencies among the diverse input features governing the complex quenching process. The capability enables more precise capture of the nonlinear phenomena defining the quenching limit. Furthermore, robustness testing involving diverse data normalization schemes revealed that the Transformer model exhibits greater stability. This resilience stems from its inherent layer normalization mechanism, which effectively decouples feature dependencies and mitigates sensitivity to input scaling variations. Consequently, the Transformer architecture is established as the definitive optimal model for this critical safety prediction task. Its significant advantage lies in the minimal data preprocessing required before deployment, a feature that greatly enhances its practical utility. The model provides robust quantitative decision-making support essential for formulating effective gas explosion mitigation strategies and optimizing the safety design parameters of pipeline flame arresters. By accurately predicting the critical quenching diameter across various scenarios, this work delivers a valuable tool for enhancing inherent safety in industries handling combustible gases within confined pipeline systems.
| 科 Family | 属数 Number of genus | 种数 Number of species | 占总种数比例 Percentage of total species (%) | 属 Genus | 种数 Number of species | 占总种数比例 Percentage of total species (%) |
|---|---|---|---|---|---|---|
| 鹅膏菌科Amanitaceae | 2 | 11 | 5.26 | 鹅膏菌属 Amanita | 10 | 4.78 |
| 小菇科 Mycenaceae | 2 | 12 | 5.74 | 丝盖伞属 Inocybe | 5 | 2.39 |
| 多孔菌科 Polyporaceae | 8 | 14 | 6.70 | 蜡蘑属 Laccaria | 5 | 2.39 |
| 红菇科 Russulaceae | 3 | 23 | 11.00 | 小皮伞属 Marasmius | 6 | 2.87 |
| 小菇属 Mycena | 11 | 5.26 | ||||
| 光柄菇属 Pluteus | 5 | 2.39 | ||||
| 红菇属 Russula | 17 | 8.13 | ||||
| 栓菌属 Trametes | 5 | 2.39 |