FlawMatch: Conditional defect image generation via flow matching for improved surface defect classification
- Authors
- Oh, Hyunwoo; Choi, Seunghee; Baek, Jinho; Kim, Dongjin; Joung, Junegak
- Issue Date
- Nov-2025
- Publisher
- Pergamon Press Ltd.
- Keywords
- Flow matching; Conditional image generation; Surface defect synthesis; Defect classification
- Citation
- Advanced Engineering Informatics, v.68, no.C, pp 1 - 11
- Pages
- 11
- Indexed
- SCIE
SCOPUS
- Journal Title
- Advanced Engineering Informatics
- Volume
- 68
- Number
- C
- Start Page
- 1
- End Page
- 11
- URI
- https://scholarworks.bwise.kr/hanyang/handle/2021.sw.hanyang/209340
- DOI
- 10.1016/j.aei.2025.103704
- ISSN
- 1474-0346
1873-5320
- Abstract
- Developing robust binary classification models for surface defect detection is essential for ensuring quality and reliability in industrial inspection systems. A persistent challenge in this context is data imbalance, wherein positive (e.g., defective instances) samples are scarce and underrepresented. This scarcity further limits the diversity of rare defect patterns, thereby impeding the generalization capabilities of classifiers. Although generative models have been employed to augment minority-class data, many existing approaches fail to synthesize realistic and diverse defect patterns, limiting their effectiveness for classifier training. This study presents FlawMatch, a class-aware conditional generation framework that synthesizes realistic defect images using flow matching. FlawMatch captures spatial and geometric attributes from real defects and encodes them into discrete class labels, which subsequently condition a flow matching model. The generated defects are composited onto defect-free backgrounds to construct full training images. Experiments on both proprietary semiconductor and public (KolektorSDD2) datasets demonstrate the superiority of FlawMatch over state-of-the-art diffusion-based methods. Specifically, FlawMatch demonstrates a 37% improvements in both Fréchet Inception Distance and 43% in Kernel Inception Distance, indicating a more accurate generation of image distributions. Furthermore, it improves the downstream classification performance, yielding average gains of 2% in recall and 1% in F1 score, while also achieving a 17× reduction in sampling time compared to DDPM-based diffusion models. In summary, FlawMatch delivers an efficient and structurally grounded solution for defect synthesis under conditions of data scarcity, offering practical value for industrial surface inspection applications.
- Files in This Item
-
Go to Link
- Appears in
Collections - 서울 공과대학 > ETC > 1. Journal Articles
- 서울 산업융합학부 > 서울 산업융합학부 > 1. Journal Articles

Items in ScholarWorks are protected by copyright, with all rights reserved, unless otherwise indicated.