1.西南石油大学石油与天然气工程学院,四川 成都 610500
2.国家管网集团生产部,北京 100013
孔德志(2002—),男,硕士研究生,2421830512@qq.com
贾文龙(1986—),男,博士,教授,jiawenlong08@126.com
收稿:2026-01-13,
修回:2026-03-31,
录用:2026-04-01,
纸质出版:2026-10-25
移动端阅览
孔德志, 贾文龙, 向敏, 李长俊, 刘珈铨. 基于BO-CNN与Grad-CAM的天然气管道可解释性多工况识别方法[J]. 化工学报, 2026, 77(10): 6189-6199
KONG Dezhi, JIA Wenlong, XIANG Min, LI Changjun, LIU Jiaquan. Interpretable multi-condition identification method for natural gas pipelines based on BO-CNN and Grad-CAM[J]. CIESC Journal, 2026, 77(10): 6189-6199
孔德志, 贾文龙, 向敏, 李长俊, 刘珈铨. 基于BO-CNN与Grad-CAM的天然气管道可解释性多工况识别方法[J]. 化工学报, 2026, 77(10): 6189-6199 DOI: 10.11949/0438-1157.20260055.
KONG Dezhi, JIA Wenlong, XIANG Min, LI Changjun, LIU Jiaquan. Interpretable multi-condition identification method for natural gas pipelines based on BO-CNN and Grad-CAM[J]. CIESC Journal, 2026, 77(10): 6189-6199 DOI: 10.11949/0438-1157.20260055.
准确识别天然气管道调压、调流、堵塞、泄漏及阀门关断等多类工况,是管道故障诊断和在线仿真数字滤波的基础。本研究提出一种融合贝叶斯优化与梯度加权类激活映射(gradient-weighted class activation mapping,Grad-CAM)可解释性分析的多工况智能识别框架。基于某输气管道的动态仿真数据,建立卷积神经网络模型(convolutional neural network,CNN);采用Grad-CAM方法对CNN模型进行改进;利用贝叶斯优化算法(Bayesian optimization,BO)对L2正则化系数、学习率以及丢弃率进行优化,形成了CNN-Grad-CAM模型;利用覆盖压力(7.5~9.5 MPa)、流量(1250×10⁴~1550×10⁴ m³·d⁻¹)等多种运行条件的时序数据集,对模型进行检验。结果表明:分类识别率达到了98.75%;与其他模型相比,CNN-Grad-CAM模型能够更好地提取到局部特征,面对易混淆的工况也能够准确识别。在数据缺失和噪声干扰等复杂场景下模型依旧能够保持稳定性能。对某输气管道的泄漏信号识别准确率为100%。
Accurate identification of multiple operating conditions in natural gas pipelines
such as pressure and flow regulation
blockage
leakage
and valve shut-off
serves as the foundation for pipeline fault diagnosis and digital filtering in online simulations. This paper proposes an intelligent identification framework for multiple operating conditions that integrates Bayesian optimization (BO) with the interpretability analysis of gradient-weighted class activation mapping (Grad-CAM). First
a convolutional neural network (CNN) model is established based on dynamic simulation data from a gas pipeline. The model is then improved using the Grad-CAM method. Subsequently
Bayesian optimization is employed to optimize the L2 regularization coefficient
learning rate
and dropout rate
resulting in the developed CNN-Grad-CAM model. The model is validated using a time-series dataset covering various operating conditions
including pressures ranging from 7.5 MPa to 9.5 MPa and flow rates from 1250×10
4
m
3
·d⁻
1
to 1550×10
4
m
3
·d⁻
1
. The results indicate that the classification recognition rate reaches 98.75%. Compared with other models
the CNN-Grad-CAM model demonstrates superior capability in extracting local features and accurately identifying easily confused operating conditions. Furthermore
the model maintains stable performance even in complex scenarios involving data loss and noise interference. The identification accuracy for actual leakage signals from a specific gas pipeline achieves 100%.
李洪兵 , 韩咪 , 刘可 , 等 . 中国城市天然气需求趋势预测 [J ] . 油气与新能源 , 2024 , 36 ( 3 ): 6 - 13 .
Li H B , Han M , Liu K , et al . Forecast of urban natural gas demand trend in China [J ] . Petroleum and New Energy , 2024 , 36 ( 3 ): 6 - 13 .
冯卓 , 姜美君 , 潘凯 . 新型天然气市场竞争博弈研究 [J ] . 油气与新能源 , 2024 , 36 ( 3 ): 14 - 20 .
Feng Z , Jiang M J , Pan K . Research on competition game in the new natural gas market [J ] . Petroleum and New Energy , 2024 , 36 ( 3 ): 14 - 20 .
刘玥奇 , 侯磊 , 唐帅帅 , 等 . 基于费用函数的天然气管道系统供气可靠性优化分配 [J ] . 油气与新能源 , 2024 , 36 ( 6 ): 63 - 74 .
Liu Y Q , Hou L , Tang S S , et al . Optimal allocation of gas supply reliability in natural gas pipeline system based on cost function [J ] . Petroleum and New Energy , 2024 , 36 ( 6 ): 63 - 74 .
刘帅 . “双碳”目标下天然气发电与新能源融合产业碳减排技术路径 [J ] . 油气与新能源 , 2025 , 37 ( 4 ): 83 - 88 .
Liu S . Carbon reduction technology pathways for natural gas power generation and new energy integration under the “dual carbon” goals [J ] . Petroleum and New Energy , 2025 , 37 ( 4 ): 83 - 88 .
Korlapati N V S , Khan F , Noor Q , et al . Review and analysis of pipeline leak detection methods [J ] . Journal of Pipeline Science and Engineering , 2022 , 2 ( 4 ): 100074 .
Adegboye M A , Fung W K , Karnik A . Recent advances in pipeline monitoring and oil leakage detection technologies: principles and approaches [J ] . Sensors , 2019 , 19 ( 11 ): 2548 .
郭洪猛 . 基于瞬变流法管道泄漏检测若干技术研究 [D ] . 天津 : 天津大学 , 2007 .
Guo H M . Study on leak detection technology of pipeline based on transient fluid methods [D ] . Tianjin : Tianjin University , 2007 .
郑杰 , 吴荔清 , 刘润华 , 等 . 输油管道泄漏检测信号的统计处理方法 [J ] . 石油大学学报(自然科学版) , 2001 , 25 ( 3 ): 84 - 85 .
Zheng J , Wu L Q , Liu R H , et al . A statistic processing method for automatic detection of signal of pipe laying leakage [J ] . Journal of the University of Petroleum China , 2001 , 25 ( 3 ): 84 - 85 .
Xu D L , Liu J , Yang J B , et al . Inference and learning methodology of belief-rule-based expert system for pipeline leak detection [J ] . Expert Systems with Applications , 2007 , 32 ( 1 ): 103 - 113 .
Wu Y D , Sicard B , Gadsden S A . Physics-informed machine learning: a comprehensive review on applications in anomaly detection and condition monitoring [J ] . Expert Systems with Applications , 2024 , 255 : 124678 .
朱群雄 , 高慧慧 , 徐圆 . 工业过程报警管理研究进展 [J ] . 自动化学报 , 2017 , 43 ( 6 ): 955 - 968 .
Zhu Q X , Gao H H , Xu Y . A survey on alarm management for industrial processes [J ] . Acta Automatica Sinica , 2017 , 43 ( 6 ): 955 - 968 .
Wang Q K , Lu H F . Machine learning methods for predicting residual strength in corroded oil and gas steel pipes [J ] . npj Materials Degradation , 2025 , 9 : 30 .
张丽 , 苏怀 , 范霖 , 等 . 基于时序片段的油气管道运行工况识别方法 [J ] . 中国安全生产科学技术 , 2022 , 18 ( 11 ): 99 - 104 .
Zhang L , Su H , Fan L , et al . Recognition method on operating conditions of oil and gas pipelines based on sequential segment [J ] . Journal of Safety Science and Technology , 2022 , 18 ( 11 ): 99 - 104 .
李苗 , 李凌波 , 左志恒 , 等 . 基于机器学习的成品油管道运行工况识别 [J ] . 中国安全科学学报 , 2024 , 34 ( 6 ): 127 - 135 .
Li M , Li L B , Zuo Z H , et al . Machine learning-based recognition for recognizing operating conditions of multi-product pipelines [J ] . China Safety Science Journal , 2024 , 34 ( 6 ): 127 - 135 .
毛兴翔 , 吴世德 , 王文明 , 等 . 基于支持向量机的燃气管道泄漏识别方法研究 [J ] . 石油机械 , 2021 , 49 ( 7 ): 147 - 154 .
Mao X X , Wu S D , Wang W M , et al . Research on gas pipeline leakage identification method based on support vector machine [J ] . China Petroleum Machinery , 2021 , 49 ( 7 ): 147 - 154 .
吴瑕 , 陈红环 , 贾文龙 , 等 . 基于SVM的干线输气管道泄漏压降速率信号识别 [J ] . 中国安全科学学报 , 2024 , 34 ( 6 ): 119 - 126 .
Wu X , Chen H H , Jia W L , et al . Dentification of leakage pressure drop rate signal of trunk gas pipeline based on SVM [J ] . China Safety Science Journal , 2024 , 34 ( 6 ): 119 - 126 .
贾文龙 , 孙溢彬 , 汤丁 , 等 . 基于支持向量机的输气管道泄漏压降信号智能识别方法 [J ] . 化工进展 , 2022 , 41 ( 9 ): 4713 - 4722 .
Jia W L , Sun Y B , Tang D , et al . Intelligent recognition method for pressure drop signals of gas pipeline leakage based on support vector machine [J ] . Chemical Industry and Engineering Progress , 2022 , 41 ( 9 ): 4713 - 4722 .
贾文龙 , 陈浚哲 , 李长俊 , 等 . 基于TPE-XGBoost模型的输气管道泄漏定位方法 [J ] . 化工学报 , 2025 , 76 ( 10 ): 5510 - 5521 .
Jia W L , Chen J Z , Li C J , et al . Leak localization method for gas pipeline based on TPE-XGBoost modeling [J ] . CIESC Journal , 2025 , 76 ( 10 ): 5510 - 5521 .
郑坚钦 , 杜渐 , 梁永图 , 等 . 基于CAE-TSNE的成品油管道运行工况识别 [J ] . 石油科学通报 , 2024 , 9 ( 1 ): 148 - 157 .
Zheng J Q , Du J , Liang Y T , et al . Research on pipeline operating condition recognition based on CAE-TSNE [J ] . Petroleum Science Bulletin , 2024 , 9 ( 1 ): 148 - 157 .
郑颢 . 基于IHBA-VMD和多特征提取的不同管道工况识别技术 [J ] . 油气田地面工程 , 2025 , 44 ( 3 ): 44 - 50 .
Zheng H . Recognition technology for different pipeline working conditions based on IHBA-VMD and multi-feature extraction [J ] . Oil-Gas Field Surface Engineering , 2025 , 44 ( 3 ): 44 - 50 .
Ma Y B , Shang Z Y , Zheng J , et al . Research on leak detection and localization algorithm for oil and gas pipelines using wavelet denoising integrated with long short-term memory (LSTM)–transformer models [J ] . Sensors , 2025 , 25 ( 8 ): 2411 .
An Y , Wang X C , Chu R H , et al . Event classification for natural gas pipeline safety monitoring based on long short-term memory network and Adam algorithm [J ] . Structural Health Monitoring , 2020 , 19 ( 4 ): 1151 - 1159 .
李琅 , 蒋忠胜 , 胡洲畅 , 等 . 基于CNN-Transformer的DAS管道泄漏信号识别方法 [J ] . 光学学报 , 2025 , 45 ( 10 ): 114 - 123 .
Li L , Jiang Z S , Hu Z C , et al . Pipeline leak signal recognition method based on CNN-transformer for DAS [J ] . Acta Optica Sinica , 2025 , 45 ( 10 ): 114 - 123 .
Wang C , Zheng J Q , Liang Y T , et al . Deeppipe: operating condition recognition of multiproduct pipeline based on KPCA-CNN [J ] . Journal of Pipeline Systems Engineering and Practice , 2022 , 13 ( 2 ): 04022006 .
李传宪 , 刘定宏 , 李剑 , 等 . 基于优化BP网络的液体管道工况识别方法研究 [J ] . 石油化工高等学校学报 , 2018 , 31 ( 6 ): 73 - 81 .
Li C X , Liu D H , Li J , et al . Condition recognition of liquid pipeline based on optimized BP artificial neural network [J ] . Journal of Petrochemical Universities , 2018 , 31 ( 6 ): 73 - 81 .
Minaee S , Kalchbrenner N , Cambria E , et al . Deep learning: based text classification: a comprehensive review [J ] . ACM Computing Surveys , 2022 , 54 ( 3 ): 1 - 40 .
Shi B G , Bai X , Yao C . An end-to-end trainable neural network for image-based sequence recognition and its application to scene text recognition [J ] . IEEE Transactions on Pattern Analysis and Machine Intelligence , 2017 , 39 ( 11 ): 2298 - 2304 .
Deng J K , Guo J , Xue N N , et al . ArcFace: additive angular margin loss for deep face recognition [C ] // Proceedings of IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) , 2020 : 4685 - 4694 .
Selvaraju R R , Cogswell M , Das A , et al . Grad-CAM: visual explanations from deep networks via gradient-based localization [J ] . International Journal of Computer Vision , 2020 , 128 ( 2 ): 336 - 359 .
Sun S L , Cao Z H , Zhu H , et al . A survey of optimization methods from a machine learning perspective [J ] . IEEE Transactions on Cybernetics , 2020 , 50 ( 8 ): 3668 - 3681 .
Zhou B L , Khosla A , Lapedriza A , et al . Learning deep features for discriminative localization [C ] // Proceedings of IEEE Conference on Computer Vision and Pattern Recognition (CVPR) , 2016 : 2921 - 2929 .
Bergstra J , Bengio Y . Random search for hyper-parameter optimization [J ] . The Journal of Machine Learning Research , 2012 , 13 : 281 - 305 .
Jones D R , Schonlau M , Welch W J . Efficient global optimization of expensive black-box functions [J ] . Journal of Global Optimization , 1998 , 13 ( 4 ): 455 - 492 .
0
浏览量
24
下载量
0
CSCD
关联资源
相关文章
相关作者
相关机构
京公网安备11010102001995号