journal article·2025-10-23Open access

DAFSF: A Defect-Aware Fine Segmentation Framework Based on Hybrid Encoder and Adaptive Optimization for Image Analysis

Xiaoyi Liu, Jianyu Zhu, Zhanyu Zhu, Jianjun He

Applied Sciences· Volume 15· Issue 21

Abstract

Accurate image segmentation is a fundamental requirement for fine-grained image analysis, providing critical support for applications such as medical diagnostics, remote sensing, and industrial fault detection. However, in complex industrial environments, conventional deep learning-based methods often struggle with noisy backgrounds, blurred boundaries, and highly imbalanced class distributions, which make fine-grained fault localization particularly challenging. To address these issues, this paper proposes a Defect-Aware Fine Segmentation Framework (DAFSF) that integrates three complementary components. First, a multi-scale hybrid encoder combines convolutional neural networks for capturing local texture details with Transformer-based modules for modeling global contextual dependencies. Second, a boundary-aware refinement module explicitly learns edge features to improve segmentation accuracy in damaged or ambiguous fault regions. Third, a defect-aware adaptive loss function jointly considers boundary weighting, hard-sample reweighting, and class balance, which enables the model to focus on challenging pixels while alleviating class imbalance. The proposed framework is evaluated on public benchmarks including Aeroscapes, Magnetic Tile Defect, and MVTec AD. The proposed DAFSF achieves mF1 scores of 85.3%, 85.9%, and 87.2%, and pixel accuracy (PA) of 91.5%, 91.8%, and 92.0% on the respective datasets. These findings highlight the effectiveness of the proposed framework for advancing fine-grained fault localization in industrial applications.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Advanced Neural Network Applications · Industrial Vision Systems and Defect Detection · Medical Image Segmentation Techniques

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Automation, Central South University, Changsha 410083, China

School of Computer and Electronic Information, Guangxi University, Nanning 530004, China

Funding

National Natural Science Foundation of China · Project of State Key Laboratory of High Performance Complex Manufacturing, Central South University

References (37)

Show source-provided references
1. Ronneberger, O., Fischer, P., and Brox, T. (2015, January 5–9). U-net: Convolutional networks for biomedical image segmentation. Proceedings of the International Conference on Medical Image Computing and Computer-Assisted Intervention, Munich, Germany.10.1007/978-3-319-24574-4_28 ↗
2. Zhao, H., Shi, J., Qi, X., Wang, X., and Jia, J. (2017, January 21–26). Pyramid scene parsing network. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA.10.1109/CVPR.2017.660 ↗
3. Long, J., Shelhamer, E., and Darrell, T. (2015, January 7–12). Fully convolutional networks for semantic segmentation. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Boston, MA, USA.10.1109/CVPR.2015.7298965 ↗
4. Yu, H., Jiang, H., Liu, Z., Zhou, S., and Yin, X. (2022). Edtrs: A superpixel generation method for sar images segmentation based on edge detection and texture region selection. Remote Sens., 14.10.3390/rs14215589 ↗
5. Gould, S., Fulton, R., and Koller, D. (October, January 29). Decomposing a scene into geometric and semantically consistent regions. Proceedings of the 2009 IEEE 12th International Conference on Computer Vision, Kyoto, Japan.10.1109/ICCV.2009.5459211 ↗
6. Infrared small target detection based on adaptive region growing algorithm with iterative threshold analysis
7. Gaussiancut: Interactive segmentation via graph cut for 3d gaussian splatting
8. Deep choroid layer segmentation using hybrid features extraction from OCT images10.1007/s00371-023-02985-w ↗
9. Fully convolutional network-based fast UAV detection in pulse Doppler radar
10. Semi-supervised deep learning framework based on modified pyramid scene parsing network for multi-label fine-grained classification and diagnosis of apple leaf diseases10.1016/j.engappai.2025.110743 ↗
11. DSNet: A novel way to use atrous convolutions in semantic segmentation10.1109/TCSVT.2024.3509504 ↗
12. Chen, L.C., Papandreou, G., Schroff, F., and Adam, H. (2017). Rethinking atrous convolution for semantic image segmentation. arXiv.
13. Chen, L.C., Zhu, Y., Papandreou, G., Schroff, F., and Adam, H. (2018, January 8–14). Encoder-decoder with atrous separable convolution for semantic image segmentation. Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany.10.1007/978-3-030-01234-2_49 ↗
14. Wang, Y., Yang, L., Liu, X., and Yan, P. (2024). An improved semantic segmentation algorithm for high-resolution remote sensing images based on DeepLabv3+. Sci. Rep., 14.10.1038/s41598-024-60375-1 ↗
15. Nigam, I., Huang, C., and Ramanan, D. (2018, January 12–15). Ensemble knowledge transfer for semantic segmentation. Proceedings of the 2018 IEEE Winter Conference on Applications of Computer Vision (WACV), Lake Tahoe, NV, USA.10.1109/WACV.2018.00168 ↗
16. Surface defect saliency of magnetic tile10.1007/s00371-018-1588-5 ↗
17. Bergmann, P., Fauser, M., Sattlegger, D., and Steger, C. (2019, January 15–20). MVTec AD–A comprehensive real-world dataset for unsupervised anomaly detection. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA.10.1109/CVPR.2019.00982 ↗
18. Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs10.1109/TPAMI.2017.2699184 ↗
19. Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., and Gelly, S. (2020). An image is worth 16x16 words: Transformers for image recognition at scale. arXiv.
20. Liu, Z., Lin, Y., Cao, Y., Hu, H., Wei, Y., Zhang, Z., Lin, S., and Guo, B. (2021, January 11–17). Swin transformer: Hierarchical vision transformer using shifted windows. Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, BC, Canada.10.1109/ICCV48922.2021.00986 ↗
21. Chen, J., Lu, Y., Yu, Q., Luo, X., Adeli, E., Wang, Y., Lu, L., Yuille, A.L., and Zhou, Y. (2021). Transunet: Transformers make strong encoders for medical image segmentation. arXiv.
22. Li, J., Xia, X., Li, W., Li, H., Wang, X., Xiao, X., Wang, R., Zheng, M., and Pan, X. (2022). Next-vit: Next generation vision transformer for efficient deployment in realistic industrial scenarios. arXiv.
23. Efficient inference in fully connected crfs with gaussian edge potentials
24. Bertasius, G., Shi, J., and Torresani, L. (2016, January 27–30). Semantic segmentation with boundary neural fields. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA.10.1109/CVPR.2016.392 ↗
25. Takikawa, T., Acuna, D., Jampani, V., and Fidler, S. (November, January 27). Gated-scnn: Gated shape cnns for semantic segmentation. Proceedings of the IEEE/CVF International Conference on Computer Vision, Seoul, Republic of Korea.
26. Qin, X., Fan, D.P., Huang, C., Diagne, C., Zhang, Z., Sant’Anna, A.C., Suarez, A., Jagersand, M., and Shao, L. (2021). Boundary-aware segmentation network for mobile and web applications. arXiv.
27. Per-pixel classification is not all you need for semantic segmentation
28. Milletari, F., Navab, N., and Ahmadi, S.A. (2016, January 25–28). V-net: Fully convolutional neural networks for volumetric medical image segmentation. Proceedings of the 2016 Fourth International Conference on 3D Vision (3DV), Stanford, CA, USA.10.1109/3DV.2016.79 ↗
29. Lin, T.Y., Goyal, P., Girshick, R., He, K., and Dollár, P. (2017, January 22–29). Focal loss for dense object detection. Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy.10.1109/ICCV.2017.324 ↗
30. Kervadec, H., Bouchtiba, J., Desrosiers, C., Granger, E., Dolz, J., and Ayed, I.B. (2019, January 9–15). Boundary loss for highly unbalanced segmentation. Proceedings of the International Conference on Medical Imaging with Deep Learning, PMLR, Long Beach, CA, USA.
31. Berman, M., Triki, A.R., and Blaschko, M.B. (2018, January 18–23). The lovász-softmax loss: A tractable surrogate for the optimization of the intersection-over-union measure in neural networks. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA.10.1109/CVPR.2018.00464 ↗
32. Margin-aware adaptive-weighted-loss for deep learning based imbalanced data classification10.1109/TAI.2023.3275133 ↗
33. He, B., Wu, D., Wang, L., and Xu, S. (2024). FA-HRNet: A New Fusion Attention Approach for Vegetation Semantic Segmentation and Analysis. Remote Sens., 16.10.3390/rs16224194 ↗
34. UIU-Net: U-Net in U-Net for Infrared Small Object Detection10.1109/TIP.2022.3228497 ↗
35. Qin, J., Wu, J., Yan, P., Li, M., Yuxi, R., Xiao, X., Wang, Y., Wang, R., Wen, S., and Pan, X. (2023, January 17–24). FreeSeg: Unified, Universal and Open-Vocabulary Image Segmentation. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Vancouver, BC, Canada.
36. Hausler, S., Garg, S., Xu, M., Milford, M., and Fischer, T. (2021, January 20–25). Patch-NetVLAD: Multi-Scale Fusion of Locally-Global Descriptors for Place Recognition. Proceedings of the 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, TN, USA.10.1109/CVPR46437.2021.01392 ↗
37. Yu, C., Gao, C., Wang, J., Yu, G., Shen, C., and Sang, N. (2020). BiSeNet V2: Bilateral Network with Guided Aggregation for Real-time Semantic Segmentation. arXiv.10.1007/s11263-021-01515-2 ↗