arXiv:2610.19540cs.CVOct 2026

Manuscript Offprint

arXiv:2610.19540

Cross-Scenario Industrial Defect Detection via Domain-Robust Training and Metric-Aligned Selection

Dikai Li, Weijia Wang, Yuan-Gen Wang

Dikai Li, Weijia Wang*, and Yuan-Gen Wang*

School of Artificial Intelligence, Guangzhou University, Guangzhou 510006, China

dikaili@e.gzhu.edu.cn, wwj@gzhu.edu.cn, wangyg@gzhu.edu.cn

Abstract—Automated defect detection of industrial boards must remain highly reliable under cross-scenario variations in lighting, surface contaminants, and production line conditions. This makes cross-scenario defect detection a domain generalization problem, wherein models are required to detect, localize, and classify defects across unseen scenarios while minimizing false alarms on clean boards. For the IDA 2026 Track 1 challenge, we propose a cross-scenario defect detection method that includes four complementary modules: cross-scenario robust training, small-defect-aware learning, score calibration and inference threshold selection, and metric-aligned checkpoint selection. These four modules respectively introduce cross-scenario robust normalization and DSU-style statistic perturbation with progressive random convolution, NWD and parameter-free spatial attention, the VFL learning objective, and a custom SWAD variant driven by the Track 1-oriented proxy. Experimental results demonstrate that our model achieves a Track 1 score of 0.564 with a screening score of 0.696 on the test dataset on a single RTX 4090 GPU. The code is available at https://github.com/GZHU-DVL/Dikai.

Index Terms—industrial board, cross-scenario defect detection, domain generalization, screening reliability, metric-aligned checkpoint selection, YOLO

I. INTRODUCTION

Automated visual inspection algorithms of printed-circuit board assemblies and related industrial board products must remain reliable under various conditions, such as lighting, surface contamination, and production line configurations. In such settings, training images are typically collected from limited source scenarios, whereas deployment may involve samples with unseen conditions. This makes industrial defect analysis (IDA) a domain-generalization problem, rather than a simple defect detection task within a single domain. A practical inspection system must not only locate defects accurately on defective boards, but also screen clean boards correctly to reduce false alarms. The IDA 2026 Track 1 benchmark [1] turns this requirement into a composite metric STrack1S_{Track1} that aggregates scores of localization SlocS_{loc}, classification SclsS_{cls}, and screening SscreenS_{screen} (i.e., the ability to correctly accept clean images and reject defective ones). Among these, SscreenS_{screen} has the largest weight and is the most sensitive metric to domain shift between the training data distribution and the test set.

A widespread workflow in such challenges is to train multiple model variants, select checkpoints according to the local validation metric, and submit the best-performing one. However, for cross-scenario industrial inspection, this procedure can be unreliable when the selection criterion is dominated by defect localization accuracy. During deployment, a checkpoint with strong defect detection performance may produce excessive false alarms on defect-free boards after the appearance distribution changes. Therefore, checkpoint selection and score calibration should be treated as critical components of cross-scenario generalization, rather than as regular post-training choices.

Motivated by this observation, we design our framework with four components. First, the Cross-Scenario Robust Module improves domain robustness through IBN-a and MixRand. IBN-a splits shallow feature channels into instance-normalized and batch-normalized parts, while MixRand combines DSU and PRC to perturb feature statistics and local textures during training. Second, the Small-Defect-Aware Module preserves fine-grained spatial cues and strengthens localization signals for defects that occupy only a small image region. Third, the Score Calibration and Inference Threshold Selection calibrates confidence scores and selects deployment thresholds to reduce false alarms on clean boards. Finally, the Metric-Aligned Checkpoint Selection replaces localization-dominated checkpoint ranking with a Track-1-oriented proxy and SWAD-based averaging, so that the selected checkpoint better matches the official screening-aware objective.

This paper formulates IDA Track 1 as a cross-scenario domain-generalization problem for industrial defect detection. The screening-focused evaluation highlights the limitations of standard mAP-driven selection, and motivates a framework that improves appearance robustness, enhances small-defect detection, calibrates scores and inference thresholds, and aligns checkpoint selection with the objective metric. In summary, our contributions are summarized as follows:

• We identify cross-scenario industrial defect detection on IDA Track 1 as a deployment-oriented domain-generalization problem, and show that mAP-driven checkpoint selection can be misaligned with cross-scenario screening reliability.

• We present a practical single-model framework that combines appearance-robust training, small-defect preservation, screening-aware calibration, and metric-aligned

*Corresponding author. This work was partly supported by the National Natural Science Foundation of China under Grant No. 62502108.

This paper has been accepted for presentation in IEEE ICME 2026.

Figure

Fig. 1. Overview of the proposed method for cross-scenario industrial defect detection.

checkpoint averaging for robust industrial-board inspection under domain shift.

• We provide targeted ablations showing that metric-aligned SWAD selection is the clearest measured contributor under a unified local protocol, while composite feature perturbation mainly acts as a stability regularizer.

• With no ensemble, external data, pseudo-labels, or test-time augmentation, our best queried official challenge test feedback reaches STrack1=0.564S_{Track1}=0.564 with Sscreen=0.696S_{screen}=0.696 on a single RTX 4090 GPU.