IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v11y2023i22p4570-d1275762.html
   My bibliography  Save this article

A CNN-LSTM and Attention-Mechanism-Based Resistance Spot Welding Quality Online Detection Method for Automotive Bodies

Author

Listed:
  • Fengtian Chang

    (Institute of Smart Manufacturing Systems, Chang’an University, Xi’an 710064, China)

  • Guanghui Zhou

    (School of Mechanical Engineering, Xi’an Jiaotong University, Xi’an 710049, China)

  • Kai Ding

    (Institute of Smart Manufacturing Systems, Chang’an University, Xi’an 710064, China)

  • Jintao Li

    (School of Mechanical Engineering, Xi’an Jiaotong University, Xi’an 710049, China)

  • Yanzhen Jing

    (School of Mechanical Engineering, Xi’an Jiaotong University, Xi’an 710049, China)

  • Jizhuang Hui

    (Institute of Smart Manufacturing Systems, Chang’an University, Xi’an 710064, China)

  • Chao Zhang

    (School of Mechanical Engineering, Xi’an Jiaotong University, Xi’an 710049, China)

Abstract

Resistance spot welding poses potential challenges for automotive manufacturing enterprises with regard to ensuring the real-time and accurate quality detection of each welding spot. Nowadays, many machine learning and deep learning methods have been proposed to utilize monitored sensor data to solve these challenges. However, poor detection results or process interpretations are still unaddressed key issues. To bridge the gap, this paper takes the automotive bodies as objects, and proposes a resistance spot welding quality online detection method with dynamic current and resistance data based on a combined convolutional neural network (CNN), long short-term memory network (LSTM), and an attention mechanism. First, an overall online detection framework using an edge–cloud collaboration was proposed. Second, an online quality detection model was established. In it, the combined CNN and LSTM network were used to extract local detail features and temporal correlation features of the data. The attention mechanism was introduced to improve the interpretability of the model. Moreover, the imbalanced data problem was also solved with a multiclass imbalance algorithm and weighted cross-entropy loss function. Finally, an experimental verification and analysis were conducted. The results show that the quality detection accuracy was 98.5%. The proposed method has good detection performance and real-time detection abilities for the in-site welding processes of automobile bodies.

Suggested Citation

  • Fengtian Chang & Guanghui Zhou & Kai Ding & Jintao Li & Yanzhen Jing & Jizhuang Hui & Chao Zhang, 2023. "A CNN-LSTM and Attention-Mechanism-Based Resistance Spot Welding Quality Online Detection Method for Automotive Bodies," Mathematics, MDPI, vol. 11(22), pages 1-19, November.
  • Handle: RePEc:gam:jmathe:v:11:y:2023:i:22:p:4570-:d:1275762
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/11/22/4570/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/11/22/4570/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Wan, Anping & Chang, Qing & AL-Bukhaiti, Khalil & He, Jiabo, 2023. "Short-term power load forecasting for combined heat and power using CNN-LSTM enhanced by attention mechanism," Energy, Elsevier, vol. 282(C).
    Full references (including those not matched with items on IDEAS)

    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. Ma, Kai & Nie, Xuefeng & Yang, Jie & Zha, Linlin & Li, Guoqiang & Li, Haibin, 2025. "A power load forecasting method in port based on VMD-ICSS-hybrid neural network," Applied Energy, Elsevier, vol. 377(PB).
    2. He, Yan & Zhang, Hongli & Dong, Yingchao & Wang, Cong & Ma, Ping, 2024. "Residential net load interval prediction based on stacking ensemble learning," Energy, Elsevier, vol. 296(C).
    3. Zhang, Huan & Liu, Tao & Liu, Wang & Zhou, Jianzhao & Zhang, Quanguo & Ren, Jingzheng, 2025. "An interpretable deep learning framework for photofermentation biological hydrogen production and process optimization," Energy, Elsevier, vol. 322(C).
    4. Peng, Shiliang & Fan, Lin & Zhang, Li & Su, Huai & He, Yuxuan & He, Qian & Wang, Xiao & Yu, Dejun & Zhang, Jinjun, 2024. "Spatio-temporal prediction of total energy consumption in multiple regions using explainable deep neural network," Energy, Elsevier, vol. 301(C).
    5. Zhao, Xiaoyu & Duan, Pengfei & Cao, Xiaodong & Xue, Qingwen & Zhao, Bingxu & Hu, Jinxue & Zhang, Chenyang & Yuan, Xiaoyang, 2025. "A probabilistic load forecasting method for multi-energy loads based on inflection point optimization and integrated feature screening," Energy, Elsevier, vol. 327(C).
    6. Jiang, Ben & Li, Yu & Rezgui, Yacine & Zhang, Chengyu & Wang, Peng & Zhao, Tianyi, 2024. "Multi-source domain generalization deep neural network model for predicting energy consumption in multiple office buildings," Energy, Elsevier, vol. 299(C).
    7. Gomez, William & Wang, Fu-Kwun & Lo, Shih-Che, 2024. "A hybrid approach based machine learning models in electricity markets," Energy, Elsevier, vol. 289(C).
    8. Xu, Huifeng & Hu, Feihu & Liang, Xinhao & Zhao, Guoqing & Abugunmi, Mohammad, 2024. "A framework for electricity load forecasting based on attention mechanism time series depthwise separable convolutional neural network," Energy, Elsevier, vol. 299(C).
    9. Moreno, Sinvaldo Rodrigues & Seman, Laio Oriel & Stefenon, Stefano Frizzo & Coelho, Leandro dos Santos & Mariani, Viviana Cocco, 2024. "Enhancing wind speed forecasting through synergy of machine learning, singular spectral analysis, and variational mode decomposition," Energy, Elsevier, vol. 292(C).
    10. Wang, Danhao & Peng, Daogang & Huang, Dongmei & Zhao, Huirong & Qu, Bogang, 2025. "MMEMformer: A multi-scale memory-enhanced transformer framework for short-term load forecasting in integrated energy systems," Energy, Elsevier, vol. 322(C).
    11. Hu, Rong & Zhou, Kaile & Lu, Xinhui, 2025. "Integrated loads forecasting with absence of crucial factors," Energy, Elsevier, vol. 322(C).
    12. Fargalla, Mandella Ali M. & Yan, Wei & Deng, Jingen & Wu, Tao & Kiyingi, Wyclif & Li, Guangcong & Zhang, Wei, 2024. "TimeNet: Time2Vec attention-based CNN-BiGRU neural network for predicting production in shale and sandstone gas reservoirs," Energy, Elsevier, vol. 290(C).
    13. Minan Tang & Changyou Wang & Jiandong Qiu & Hanting Li & Xi Guo & Wenxin Sheng, 2024. "Short-Term Load Forecasting of Electric Vehicle Charging Stations Accounting for Multifactor IDBO Hybrid Models," Energies, MDPI, vol. 17(12), pages 1-19, June.
    14. Prajowal Manandhar & Hasan Rafiq & Edwin Rodriguez-Ubinas & Themis Palpanas, 2024. "New Forecasting Metrics Evaluated in Prophet, Random Forest, and Long Short-Term Memory Models for Load Forecasting," Energies, MDPI, vol. 17(23), pages 1-30, December.
    15. Huiqun Yu & Haoyi Sun & Yueze Li & Chunmei Xu & Chenkun Du, 2024. "Enhanced Short-Term Load Forecasting: Error-Weighted and Hybrid Model Approach," Energies, MDPI, vol. 17(21), pages 1-22, October.
    16. Li, Feng & Liu, Shiheng & Wang, Tianhu & Liu, Ranran, 2024. "Optimal planning for integrated electricity and heat systems using CNN-BiLSTM-Attention network forecasts," Energy, Elsevier, vol. 309(C).
    17. Gong, Zhipeng & Wan, Anping & Ji, Yunsong & AL-Bukhaiti, Khalil & Yao, Zhehe, 2024. "Improving short-term offshore wind speed forecast accuracy using a VMD-PE-FCGRU hybrid model," Energy, Elsevier, vol. 295(C).
    18. Song, Jiancai & Zhu, Shuo & Li, Wen & Xue, Guixiang & Gao, Xiaoyu, 2025. "A novel robust heating load prediction algorithm based on hybrid residual network and temporal fusion transformer model," Energy, Elsevier, vol. 318(C).
    19. Xiaoyu Liu & Jiangfeng Song & Hai Tao & Peng Wang & Haihua Mo & Wenjie Du, 2025. "Quarter-Hourly Power Load Forecasting Based on a Hybrid CNN-BiLSTM-Attention Model with CEEMDAN, K-Means, and VMD," Energies, MDPI, vol. 18(11), pages 1-29, May.
    20. Chen, Wenhao & Rong, Fei & Lin, Chuan, 2025. "A multi-energy loads forecasting model based on dual attention mechanism and multi-scale hierarchical residual network with gated recurrent unit," Energy, Elsevier, vol. 320(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:gam:jmathe:v:11:y:2023:i:22:p:4570-:d:1275762. 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: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    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.