KAM-Net: Kilobyte-Scale Ultralightweight Attention-Based Network for Glass Defect Detection With Algorithm/Hardware Co-Design
Glass manufacturing processes often yield complex defects such as bubbles, stones, and scratches. While machine vision systems powered by deep learning offer effective defect detection, real-time inference on production lines remains a hurdle. To address this, we propose KAM-Net, an ultralightweight kilobyte-scale defect detection model utilizing depthwise separable convolution (DSC) and improved triplet attention (TA). With just 4.2 kB of parameter storage, KAM-Net achieves impressive performance, achieving a 92.3% mIOU and <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"> <tex-math notation="LaTeX">$91.5\%~F1$ </tex-math></inline-formula>-score on the glass defect dataset, surpassing traditional models like UNet. It also demonstrates competitive performance in public classification datasets. Then, we design an efficient algorithm/hardware codesign for KAM-Net on field programmable gate array (FPGA). Leveraging parallelism and pipeline techniques, KAM-Net achieves a remarkable processing speed of 2564 FPS, outperforming GPU-based processors. Notably, our work marks the first hardware implementation of the TA mechanism, showcasing its practical application potential. Our detection system ensures high-precision defect identification, matching real-time image acquisition speeds of production lines.
Authors
- Yaonan Wang (ORCID: https://orcid.org/0000-0002-0519-6458)
- Bingrui Zhao (ORCID: https://orcid.org/0000-0002-3731-5204)
- Jinzhou Zhang (ORCID: https://orcid.org/0000-0002-1086-5388)
- Jiaxuan Liu (ORCID: https://orcid.org/0000-0002-8011-8943)
- Hui Zhang (ORCID: https://orcid.org/0000-0002-1803-3148)
Institutions
- Hunan University (CN)
- Changsha University (CN)
- Changsha University of Science and Technology (CN)
- Hunan University of Technology and Business (CN)
Publication Details
- Journal
- IEEE Transactions on Instrumentation and Measurement
- Published
- 2025-01-01
- DOI
- https://doi.org/10.1109/tim.2025.3593602
- Primary Topic
- Industrial Vision Systems and Defect Detection
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China