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

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 search for a different version of it.

    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.

    We have no bibliographic references for this item. You can help adding them by using 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.