IDEAS home Printed from https://ideas.repec.org/a/eee/energy/v335y2025ics0360544225037387.html

Pipeformer: A multi-channel patching-based transformer method with pyramid cross-attention for leak detection of energy transportation system

Author

Listed:
  • Wang, Junkai
  • Wang, Tianbiao
  • Ma, Dazhong

Abstract

Accurate leak detection in an energy transportation system can effectively reduce the likelihood of a disaster. To enhance detection accuracy and reduce false alarm rate, a multi-channel patching-based transformer method with pyramid cross-attention for pipeline (Pipeformer) in energy transportation system is proposed. First, a transformer encoder-based representation learning framework is presented to tackle the pipeline leak detection task by utilizing unsupervised clustering algorithms. Then, given the interconnections among pressure data in pipeline, a multi-channel patch embedding strategy is proposed to patch the multivariate time series at unequal time steps to capture pressure variation features at different scales. Specifically, within the same scale, it can adequately capture the differences between local and global features by patching the data, as well as consolidate comprehensive feature information through fusion among different scales. Moreover, a pyramid cross-attention mechanism is designed with the help of the feature pyramid structure that has been constructed through patching. Cross-attention between different layers is used to convey feature information, while relying on this structure to capture both short-term fine-grained patterns and long-term coarse-grained trends. The interaction of information among features at different scales enables the model to effectively learn cross-scale dependencies. Finally, leak detection task of energy transportation system is implemented by a clustering algorithm and a series of comparison and ablation experiments are carried out using the collected data. The detection accuracy and false alarm rates can achieve satisfactory results, which verifies the validity of the method.

Suggested Citation

  • Wang, Junkai & Wang, Tianbiao & Ma, Dazhong, 2025. "Pipeformer: A multi-channel patching-based transformer method with pyramid cross-attention for leak detection of energy transportation system," Energy, Elsevier, vol. 335(C).
  • Handle: RePEc:eee:energy:v:335:y:2025:i:c:s0360544225037387
    DOI: 10.1016/j.energy.2025.138096
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0360544225037387
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.energy.2025.138096?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    References listed on IDEAS

    as
    1. Tylman, Wojciech & Kolczyński, Jakub & Anders, George J., 2010. "Fully automatic AI-based leak detection system," Energy, Elsevier, vol. 35(9), pages 3838-3848.
    2. Liu, Shengli & Liang, Yongtu, 2021. "Statistics of catastrophic hazardous liquid pipeline accidents," Reliability Engineering and System Safety, Elsevier, vol. 208(C).
    3. Zhu, Hongjun & Lin, Pengzhi & Pan, Qian, 2014. "A CFD (computational fluid dynamic) simulation for oil leakage from damaged submarine pipeline," Energy, Elsevier, vol. 64(C), pages 887-899.
    4. Yu, Shuai & Yan, Xingqing & He, Yifan & Yu, Jianliang & Chen, Shaoyun, 2024. "Study on the leakage morphology and temperature variations in the soil zone during large-scale buried CO2 pipeline leakage," Energy, Elsevier, vol. 288(C).
    5. Li, Kehua & Ma, Zhenjun & Robinson, Duane & Ma, Jun, 2018. "Identification of typical building daily electricity usage profiles using Gaussian mixture model-based clustering and hierarchical clustering," Applied Energy, Elsevier, vol. 231(C), pages 331-342.
    6. Hu, Xuguang & Ma, Jilong & Zhao, Haoran & Ma, Dazhong, 2024. "A weak leak location method based on signal attenuation mechanism for energy transportation system," Energy, Elsevier, vol. 307(C).
    7. He, Guoxi & Li, Yansong & Huang, Yuanjie & Sun, Liying & Liao, Kexi, 2019. "A framework of smart pipeline system and its application on multiproduct pipeline leakage handling," Energy, Elsevier, vol. 188(C).
    8. Zheng, Jianqin & Wang, Chang & Liang, Yongtu & Liao, Qi & Li, Zhuochao & Wang, Bohong, 2022. "Deeppipe: A deep-learning method for anomaly detection of multi-product pipelines," Energy, Elsevier, vol. 259(C).
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Lin, Zhirong & Wang, Yishou & Fu, Xibin & Zou, Zhijian & Feng, Ligang & Fang, Linlin & Qing, Xinlin, 2026. "Defect localization and quantification of energy transportation pipeline based on multiscale 1DCNN and BiLSTM with multidimensional attention mechanism," Energy, Elsevier, vol. 344(C).

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Wang, Chang & Zheng, Jianqin & Liang, Yongtu & Wang, Bohong & Klemeš, Jiří Jaromír & Zhu, Zhu & Liao, Qi, 2022. "Deeppipe: An intelligent monitoring framework for operating condition of multi-product pipelines," Energy, Elsevier, vol. 261(PB).
    2. Liu, Benxi & Liu, Tengyuan & Liao, Shengli & Lu, Jia & Cheng, Chuntian, 2023. "Short-term coordinated hybrid hydro-wind-solar optimal scheduling model considering multistage section restrictions," Renewable Energy, Elsevier, vol. 217(C).
    3. Lin, Zhirong & Wang, Yishou & Fu, Xibin & Zou, Zhijian & Feng, Ligang & Fang, Linlin & Qing, Xinlin, 2026. "Defect localization and quantification of energy transportation pipeline based on multiscale 1DCNN and BiLSTM with multidimensional attention mechanism," Energy, Elsevier, vol. 344(C).
    4. Dabirian, Sanam & Miller, Clayton & Adli, Alireza & Eicker, Ursula, 2024. "Gaussian-based plug load profile prediction in non-residential buildings archetype," Applied Energy, Elsevier, vol. 374(C).
    5. Du, Jian & Zheng, Jianqin & Liang, Yongtu & Xia, Yuheng & Wang, Bohong & Shao, Qi & Liao, Qi & Tu, Renfu & Xu, Bin & Xu, Ning, 2023. "Deeppipe: An intelligent framework for predicting mixed oil concentration in multi-product pipeline," Energy, Elsevier, vol. 282(C).
    6. Csereklyei, Zsuzsanna & Anantharama, Nandini & Kallies, Anne, 2021. "Electricity market transitions in Australia: Evidence using model-based clustering," Energy Economics, Elsevier, vol. 103(C).
    7. Chen, Jian & Chen, Wukun & Dong, Ruixing & Shi, Jihao & Zhang, Yanni & Wang, Weilin & Zhou, Kuibin, 2025. "Experimental study on fire thermal characteristics of flammable gases leakage underwater," Energy, Elsevier, vol. 316(C).
    8. Talha Ahmed & Yasir Mahmood & Nita Yodo & Ying Huang, 2024. "Weather-Related Combined Effect on Failure Propagation and Maintenance Procedures towards Sustainable Gas Pipeline Infrastructure," Sustainability, MDPI, vol. 16(13), pages 1-30, July.
    9. Chen, Siliang & Liang, Xinbin & Liu, Ying & Li, Xilin & Jin, Xinqiao & Du, Zhimin, 2025. "Customized large-scale model for human-AI collaborative operation and maintenance management of building energy systems," Applied Energy, Elsevier, vol. 393(C).
    10. Do-Hyeon Ryu & Ryu-Hee Kim & Seung-Hyun Choi & Kwang-Jae Kim & Young Myoung Ko & Young-Jin Kim & Minseok Song & Dong Gu Choi, 2020. "Utilizing Electricity Consumption Data to Assess the Noise Discomfort Caused by Electrical Appliances between Neighbors: A Case Study of a Campus Apartment Building," Sustainability, MDPI, vol. 12(20), pages 1-16, October.
    11. Xue, Qi & Jin, Xinqiao & Lyu, Yuan & Jia, Zhiyang & Du, Zhimin, 2026. "Graph network-based design optimization of multiple chiller systems with knowledge from existing systems," Energy, Elsevier, vol. 346(C).
    12. Grillone, Benedetto & Mor, Gerard & Danov, Stoyan & Cipriano, Jordi & Sumper, Andreas, 2021. "A data-driven methodology for enhanced measurement and verification of energy efficiency savings in commercial buildings," Applied Energy, Elsevier, vol. 301(C).
    13. E. Catalina Vallejo-Coral & Ricardo Garzón & Miguel Darío Ortega López & Javier Martínez-Gómez & Marcelo Moya, 2024. "Determine the Profiles of Power Consumption in Commercial Buildings in a Very Hot Humid Climate Using a Temporary Series," Sustainability, MDPI, vol. 16(22), pages 1-18, November.
    14. Li, Cong & Xu, Wenbo & Wang, Yuqing & Jin, Yanke & Wei, Shanyang & Yang, Rui, 2023. "Analysis of internal energy and mass loss rate of fuel with water sublayer at different initial temperatures," Energy, Elsevier, vol. 283(C).
    15. Liu, Aaron & Miller, Wendy & Cholette, Michael E. & Ledwich, Gerard & Crompton, Glenn & Li, Yong, 2021. "A multi-dimension clustering-based method for renewable energy investment planning," Renewable Energy, Elsevier, vol. 172(C), pages 651-666.
    16. Jian Zhang & Shujun Li & Lili Li & Guoqiang Zu & Yongchun Wang & Ting Yang, 2025. "A Bi-Level Method for Flexibility Feature Extraction and User Clustering Based on Real-World Data from Independent Smart Meters of Residential Electric Vehicle Users," Energies, MDPI, vol. 18(4), pages 1-23, February.
    17. Brkovic, Aleksandar & Gajic, Dragoljub & Gligorijevic, Jovan & Savic-Gajic, Ivana & Georgieva, Olga & Di Gennaro, Stefano, 2017. "Early fault detection and diagnosis in bearings for more efficient operation of rotating machinery," Energy, Elsevier, vol. 136(C), pages 63-71.
    18. Zhan, Sicheng & Liu, Zhaoru & Chong, Adrian & Yan, Da, 2020. "Building categorization revisited: A clustering-based approach to using smart meter data for building energy benchmarking," Applied Energy, Elsevier, vol. 269(C).
    19. Debnath, Ramit & Bardhan, Ronita & Misra, Ashwin & Hong, Tianzhen & Rozite, Vida & Ramage, Michael H., 2022. "Lockdown impacts on residential electricity demand in India: A data-driven and non-intrusive load monitoring study using Gaussian mixture models," Energy Policy, Elsevier, vol. 164(C).
    20. Hu, Xuguang & Ma, Jilong & Zhao, Haoran & Ma, Dazhong, 2024. "A weak leak location method based on signal attenuation mechanism for energy transportation system," Energy, Elsevier, vol. 307(C).

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:eee:energy:v:335:y:2025:i:c:s0360544225037387. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Catherine Liu (email available below). General contact details of provider: http://www.journals.elsevier.com/energy .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.