With the advancement of industrial automation, surface defect inspection has become crucial for battery manufacturing quality assurance. However, existing public datasets lack sufficient resources for battery surface defects, hindering the process of battery defect inspection. To address this, we developed the Multi-class Battery Surface Defect dataset (M-BSD), which contains 2,491 images and 6,639 samples spanning three defect types. Meanwhile, deep learning-based methods have made progress in industrial quality inspection but face challenges in handling complex battery defect details, defect category similarities, and small target defects. These issues hinder accurate, quantitative analysis of defects. To overcome above challenges, we propose the DS2A-Former, a novel Dual Stream Spatial Attention Transformer Network that integrates semantic and spatial information to enhance segmentation performance under complex conditions. The Dual Scale Spatial Cross Attention (DSSCA) module facilitates information exchange across scales and suppresses background noise, while the Dual Query Gated Spatial Attention (DQGSA) module uses a spatial gating mechanism to prioritize knowledge between two queries, improving representation of defect information. Extensive experiments on the M-BSD dataset validate the effectiveness of our approach. We also experimented it on Crack-500 dataset, demonstrating its broad applicability in defect segmentation across domains.

DS2A-Former: Battery Surface Defect Segmentation via Dual Stream Spatial Attention Transformer Network / H. Zhu, J. You, Y. Zhai, Y. Xu, T. Wang, Y. Chen, J. Zhou, P. Coscia, A. Genovese, C.L.P. Chen. - In: IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT. - ISSN 0018-9456. - 74:(2025), pp. 2530917.1-2530917.17. [10.1109/tim.2025.3572164]

DS2A-Former: Battery Surface Defect Segmentation via Dual Stream Spatial Attention Transformer Network

P. Coscia;A. Genovese
Penultimo
;
2025

Abstract

With the advancement of industrial automation, surface defect inspection has become crucial for battery manufacturing quality assurance. However, existing public datasets lack sufficient resources for battery surface defects, hindering the process of battery defect inspection. To address this, we developed the Multi-class Battery Surface Defect dataset (M-BSD), which contains 2,491 images and 6,639 samples spanning three defect types. Meanwhile, deep learning-based methods have made progress in industrial quality inspection but face challenges in handling complex battery defect details, defect category similarities, and small target defects. These issues hinder accurate, quantitative analysis of defects. To overcome above challenges, we propose the DS2A-Former, a novel Dual Stream Spatial Attention Transformer Network that integrates semantic and spatial information to enhance segmentation performance under complex conditions. The Dual Scale Spatial Cross Attention (DSSCA) module facilitates information exchange across scales and suppresses background noise, while the Dual Query Gated Spatial Attention (DQGSA) module uses a spatial gating mechanism to prioritize knowledge between two queries, improving representation of defect information. Extensive experiments on the M-BSD dataset validate the effectiveness of our approach. We also experimented it on Crack-500 dataset, demonstrating its broad applicability in defect segmentation across domains.
battery surface defect; Deep Learning; defect segmentation; spatial information;
Settore INFO-01/A - Informatica
Settore IINF-05/A - Sistemi di elaborazione delle informazioni
2025
26-mag-2025
Article (author)
File in questo prodotto:
File Dimensione Formato  
DS2A-Former_Battery_Surface_Defect_Segmentation_via_Dual_Stream_Spatial_Attention_Transformer_Network (early).pdf

accesso aperto

Tipologia: Post-print, accepted manuscript ecc. (versione accettata dall'editore)
Dimensione 6.47 MB
Formato Adobe PDF
6.47 MB Adobe PDF Visualizza/Apri
DS2A-Former_Battery_Surface_Defect_Segmentation_via_Dual-Stream_Spatial_Attention_Transformer_Network (final).pdf

accesso riservato

Tipologia: Publisher's version/PDF
Dimensione 6.81 MB
Formato Adobe PDF
6.81 MB Adobe PDF   Visualizza/Apri   Richiedi una copia
Pubblicazioni consigliate

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/2434/1167079
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? 0
  • OpenAlex ND
social impact