IDEAS home Printed from https://ideas.repec.org/a/spr/joinma/v36y2025i6d10.1007_s10845-024-02446-8.html

Foreground–background separation transformer for weakly supervised surface defect detection

Author

Listed:
  • Xiaoheng Jiang

    (Zhengzhou University
    Ministry of Education
    National Supercomputing Center in Zhengzhou)

  • Jian Feng

    (Zhengzhou University)

  • Feng Yan

    (Zhengzhou University)

  • Yang Lu

    (Zhengzhou University
    Ministry of Education
    National Supercomputing Center in Zhengzhou)

  • Quanhai Fa

    (Zhengzhou University)

  • Wenjie Zhang

    (Zhengzhou University
    Ministry of Education
    National Supercomputing Center in Zhengzhou)

  • Mingliang Xu

    (Zhengzhou University
    Ministry of Education
    National Supercomputing Center in Zhengzhou)

Abstract

In industrial scenarios, weakly supervised pixel-level defect detection methods leverage image-level labels for training, significantly reducing the effort required for manual annotation. However, existing methods suffer from confusion or incompleteness in predicting defect regions since defects usually show weak appearances that are similar to the background. To address this issue, we propose a foreground–background separation transformer (FBSFormer) for weakly supervised pixel-level defect detection. FBSFormer introduces a foreground–background separation (FBS) module, which utilizes the attention map to separate the foreground defect feature and background feature and pushes their distance intrinsically by learning with opposite labels. In addition, we present an attention-map refinement (AMR) module, which aims to generate a more accurate attention map to better guide the separation of defect and background features. During the inference stage, the refined attention map is combined with the class activation map (CAM) corresponding to the defect feature of FBS to generate the final result. Extensive experiments are conducted on three industrial surface defect datasets including DAGM 2007, KolektorSDD2, and Magnetic Tile. The results demonstrate that the proposed approach achieves outstanding performance compared to the state-of-the-art methods.

Suggested Citation

  • Xiaoheng Jiang & Jian Feng & Feng Yan & Yang Lu & Quanhai Fa & Wenjie Zhang & Mingliang Xu, 2025. "Foreground–background separation transformer for weakly supervised surface defect detection," Journal of Intelligent Manufacturing, Springer, vol. 36(6), pages 4217-4232, August.
  • Handle: RePEc:spr:joinma:v:36:y:2025:i:6:d:10.1007_s10845-024-02446-8
    DOI: 10.1007/s10845-024-02446-8
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s10845-024-02446-8
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s10845-024-02446-8?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. Shuai Ma & Kechen Song & Menghui Niu & Hongkun Tian & Yunhui Yan, 2024. "Cross-scale fusion and domain adversarial network for generalizable rail surface defect segmentation on unseen datasets," Journal of Intelligent Manufacturing, Springer, vol. 35(1), pages 367-386, January.
    2. Chen Zhao & Shichang Du & Jun Lv & Yafei Deng & Guilong Li, 2023. "A novel parallel classification network for classifying three-dimensional surface with point cloud data," Journal of Intelligent Manufacturing, Springer, vol. 34(2), pages 515-527, February.
    3. Domen Tabernik & Samo Šela & Jure Skvarč & Danijel Skočaj, 2020. "Segmentation-based deep-learning approach for surface-defect detection," Journal of Intelligent Manufacturing, Springer, vol. 31(3), pages 759-776, March.
    4. Danqing Kang & Jianhuang Lai & Junyong Zhu & Yu Han, 2023. "An adaptive feature reconstruction network for the precise segmentation of surface defects on printed circuit boards," Journal of Intelligent Manufacturing, Springer, vol. 34(7), pages 3197-3214, October.
    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. Zichen Zhan & Congcong Han & Lai Zou & Jianmin Dong & Shengbo Yan & Wenxi Wang, 2026. "A new characterization method for rapid prediction of recrystallization damage in single crystal superalloys considering plastic deformation," Journal of Intelligent Manufacturing, Springer, vol. 37(3), pages 1145-1161, March.
    2. José M. Navarro-Jiménez & José V. Aguado & Grégoire Bazin & Vicente Albero & Domenico Borzacchiello, 2023. "Reconstruction of 3D surfaces from incomplete digitisations using statistical shape models for manufacturing processes," Journal of Intelligent Manufacturing, Springer, vol. 34(5), pages 2345-2358, June.
    3. Jiaqi Zhao & Xiaolong Qian & Yunzhou Zhang & Dexing Shan & Xiaozheng Liu & Sonya Coleman & Dermot Kerr, 2024. "A knowledge distillation-based multi-scale relation-prototypical network for cross-domain few-shot defect classification," Journal of Intelligent Manufacturing, Springer, vol. 35(2), pages 841-857, February.
    4. Shuo Meng & Ruru Pan & Weidong Gao & Jian Zhou & Jingan Wang & Wentao He, 2021. "A multi-task and multi-scale convolutional neural network for automatic recognition of woven fabric pattern," Journal of Intelligent Manufacturing, Springer, vol. 32(4), pages 1147-1161, April.
    5. Dexing Shan & Yunzhou Zhang & Shitong Liu, 2025. "Multi-modal background-aware for defect semantic segmentation with limited data," Journal of Intelligent Manufacturing, Springer, vol. 36(5), pages 3313-3325, June.
    6. Nhat-To Huynh, 2024. "A multi-subpopulation genetic algorithm-based CNN approach for ceramic tile defects classification," Journal of Intelligent Manufacturing, Springer, vol. 35(4), pages 1781-1792, April.
    7. David Ornelas & Daniel Canedo & António J. R. Neves, 2025. "Semantic Segmentation of Corrosion in Cargo Containers Using Deep Learning," Sustainability, MDPI, vol. 17(14), pages 1-28, July.
    8. Abtin Djavadifar & John Brandon Graham-Knight & Marian Kӧrber & Patricia Lasserre & Homayoun Najjaran, 2022. "Automated visual detection of geometrical defects in composite manufacturing processes using deep convolutional neural networks," Journal of Intelligent Manufacturing, Springer, vol. 33(8), pages 2257-2275, December.
    9. Li Wei & Mahmud Iwan Solihin & Sarah ‘Atifah Saruchi & Winda Astuti & Lim Wei Hong & Ang Chun Kit, 2024. "Surface Defects Detection of Cylindrical High-Precision Industrial Parts Based on Deep Learning Algorithms: A Review," SN Operations Research Forum, Springer, vol. 5(3), pages 1-71, September.
    10. Zichen Bai & Junfeng Jing, 2024. "Mobile-Deeplab: a lightweight pixel segmentation-based method for fabric defect detection," Journal of Intelligent Manufacturing, Springer, vol. 35(7), pages 3315-3330, October.
    11. Shuanlong Niu & Yaru Peng & Bin Li & Yuanhong Qiu & Tongzhi Niu & Weifeng Li, 2024. "A novel deep learning motivated data augmentation system based on defect segmentation requirements," Journal of Intelligent Manufacturing, Springer, vol. 35(2), pages 687-701, February.
    12. Jae-Eun Park & Young-Keun Kim, 2025. "Semi-supervised learning for steel surface inspection using magnetic flux leakage signal," Journal of Intelligent Manufacturing, Springer, vol. 36(2), pages 1021-1031, February.
    13. Zeqing Yang & Mingxuan Zhang & Yingshu Chen & Ning Hu & Lingxiao Gao & Libing Liu & Enxu Ping & Jung Il Song, 2024. "Surface defect detection method for air rudder based on positive samples," Journal of Intelligent Manufacturing, Springer, vol. 35(1), pages 95-113, January.
    14. Yuanyuan Wang & Ling Ma & Lihua Jian & Huiqin Jiang, 2023. "Conductive particle detection via efficient encoder–decoder network," Journal of Intelligent Manufacturing, Springer, vol. 34(8), pages 3563-3577, December.
    15. Alparslan Fişne & Alperen Kalay & Süleyman Eken, 2025. "Fast and efficient computing for deep learning-based defect detection models in lightweight devices," Journal of Intelligent Manufacturing, Springer, vol. 36(7), pages 5035-5050, October.
    16. Zhijie Yuan & Binjie Xin & Jing Zhang & Yingqi Xu, 2025. "Three-dimensional fabric smoothness evaluation using point cloud data for enhanced quality control," Journal of Intelligent Manufacturing, Springer, vol. 36(5), pages 3327-3343, June.
    17. Swarit Anand Singh & K. A. Desai, 2023. "Automated surface defect detection framework using machine vision and convolutional neural networks," Journal of Intelligent Manufacturing, Springer, vol. 34(4), pages 1995-2011, April.
    18. Ruiyang Hao & Bingyu Lu & Ying Cheng & Xiu Li & Biqing Huang, 2021. "A steel surface defect inspection approach towards smart industrial monitoring," Journal of Intelligent Manufacturing, Springer, vol. 32(7), pages 1833-1843, October.
    19. Feiyang Li & Nian Cai & Xueliang Deng & Jiahao Li & Jianfa Lin & Han Wang, 2022. "Serial number inspection for ceramic membranes via an end-to-end photometric-induced convolutional neural network framework," Journal of Intelligent Manufacturing, Springer, vol. 33(5), pages 1373-1392, June.
    20. Guzmán-Torres, J.A. & Domínguez-Mota, F.J. & Alonso Guzmán, E.M. & Tinoco-Guerrero, G. & Tinoco-Ruíz, J.G., 2025. "A digital twin approach based method in civil engineering for classification of salt damage in building evaluation," Mathematics and Computers in Simulation (MATCOM), Elsevier, vol. 233(C), pages 433-447.

    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:spr:joinma:v:36:y:2025:i:6:d:10.1007_s10845-024-02446-8. 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: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.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.