Uncertainty-Guided Global-Local Refinement for Defect Segmentation in X-Ray Images of Aluminum Alloy Wheels
Internal defects in aluminum alloy wheel X-ray images vary widely in size and often exhibit low contrast and blurred boundaries, while whole-image resizing can obscure small defects. To address these challenges, we propose PPA-GLUDNet, a global--local segmentation network that combines attention-enhanced global feature modeling with uncertainty-guided local refinement at the original resolution to preserve structural context and defect details. The global branch incorporates parallelized patch-aware attention into DoubleU-Net to enhance multiscale feature representation. The local branch uses a heuristic uncertainty map derived from global predictions to select original-resolution windows and learn residual corrections. A scale-preserving gate fuses these corrections with global predictions while limiting unnecessary changes in high-confidence regions. Both branches are jointly optimized under a unified training objective. On the test set of an in-house aluminum alloy wheel X-ray image dataset, PPA-GLUDNet achieves Dice, intersection over union, and Boundary F1 scores of 0.8836, 0.7913, and 0.8770, respectively, exceeding the DoubleU-Net baseline by 5.66, 8.62, and 5.43 percentage points. Ablation experiments support the complementary contributions of global feature enhancement and local refinement. Reducing the local-window routing ratio from 100% to 50% decreases inference time by approximately 25.2%, with a Dice decrease of only 0.02 percentage points. These results indicate improved region overlap and boundary accuracy, with a favorable balance between segmentation performance and computational efficiency on the evaluated dataset.
Authors
- Jian Yang (ORCID: https://orcid.org/0000-0002-4617-7114)
- Mingquan Wang
- Guoqing Li
Institutions
- North University of China (CN)
Publication Details
- Journal
- Research Square
- Published
- 2026-12-01
- DOI
- https://doi.org/10.21203/rs.3.rs-11079974/v1
- Primary Topic
- Industrial Vision Systems and Defect Detection
- Type
- preprint