Deployment Validity of a StitchingNet-Lineage Sewing Defect Classifier: A Cross-Domain, Cold-Start, and Edge-Deployment Evaluation
DOI:
https://doi.org/10.57159/jcmm.5.5.261421Keywords:
Sewing Defect Detection, Deep Transfer Learning, Domain Generalization, Cold-Start Adaptation, Model Calibration, Edge DeploymentAbstract
High accuracy on a held-out test split from the training distribution is a necessary but insufficient condition for factory-floor reliability, since production lines encounter fabric-thread, lighting, and hardware conditions that a single-domain benchmark does not exercise. This study evaluates that gap for a MobileNetV1-based sewing-stitch defect classifier built on a published stitching-defect dataset and pipeline that reported an in-distribution macro-F1 of 0.99. The model was retrained and evaluated along five deployment-relevant axes: leave-one-domain-out (LODO) generalization, cold-start recovery, robustness to eight input perturbations, calibration reliability, and edge-device feasibility after TensorFlow Lite quantization. The retrained model reproduces the original in-distribution result closely (accuracy 0.9804, macro-F1 0.9805). Under a zero-effort LODO protocol, performance falls to a mean accuracy of 35.4% (macro-F1 32.9%) across eleven domains and three seeds, and a repeated-measures analysis of variance confirms that the spread is driven by domain rather than seed. Matching the LODO fine-tuning budget to the in-distribution schedule for four domains does not close this gap, indicating a genuine domain-shift limitation rather than under-training. A cold-start budget of fifty labeled images per class, on a query set held fixed across budgets, recovers most of the lost performance (macro-F1 91.2%). The model is well calibrated in-distribution (expected calibration error 0.0055) but degrades sharply under LODO shift (0.30 to 0.82 across four domains), failing confidently rather than only inaccurately. Quantization reduces model size by 91.3% at a cost of 1.17 accuracy points. For this lineage and dataset, an in-distribution F1 of 0.99 does not imply deployment readiness.
References
[1] P. W. Koh, S. Sagawa, H. Marklund, S. M. Xie, M. Zhang, A. Balsubramani, W. Hu, M. Yasunaga, R. L. Phillips, I. Gao, T. Lee, E. David, I. Stavness, W. Guo, B. A. Earnshaw, I. S. Haque, S. Beery, J. Leskovec, A. Kundaje, E. Pierson, S. Levine, C. Finn, and P. Liang, “WILDS: A benchmark of in-the-wild distribution shifts,” in Proceedings of the 38th International Conference on Machine Learning (ICML), vol. 139 of Proceedings of Machine Learning Research, pp. 5637–5664, PMLR, 2021.
[2] S. Wang, H. Kong, B. Li, and F. Zheng, “Fab-ME: A vision state-space and attention-enhanced framework for fabric defect detection,” in Advanced Intelligent Computing Technology and Applications, Lecture Notes in Computer Science, (Singapore), pp. 103–114, Springer, 2025.
[3] X. Yang, “Research on real-time detection of fabric defects based on an improved Elo rating algorithm,” Scientific Reports, vol. 15, p. 32065, 2025.
[4] Y. Kahraman and A. Durmuşoğlu, “Deep learning-based fabric defect detection: A review,” Textile Research Journal, vol. 93, no. 5–6, pp. 1485–1503, 2023.
[5] F. P. Dharma, M. L. Singgih, and D. D. Prastyo, “Beyond architecture: Hyperparameter optimization for YOLOv8m in multi-class textile defect detection,” Results in Engineering, vol. 28, p. 108356, 2025.
[6] F. P. Dharma, H. Pujianto, G. Y. Astrini, H. S. Bintang, M. Mohadi, W. D. Novianto, and M. L. Singgih, “Hyperparameter optimization outperforms architectural complexity: A systematic study on neural network design for industrial fabric defect detection,” in 2026 6th International Conference on Neural Networks, Information and Communication Engineering (NNICE), pp. 465–470, IEEE, 2026.
[7] H. Chen, Y. Zhang, Y. Zhang, X. Zhang, and X. Yan, “GDDS: A single domain generalized defect detection frame of open world scenario using gather and distribute domain-shift suppression network,” arXiv preprint arXiv:2407.13417, 2024.
[8] A. G. Khoee, Y. Yu, and R. Feldt, “Domain generalization through meta-learning: A survey,” Artificial Intelligence Review, vol. 57, no. 10, p. 285, 2024.
[9] W.-K. Jung, J. Kang, W. Kwon, and H. Kim, “StitchingNet and deep transfer learning method for sewing stitch defect detection,” Journal of Computational Design and Engineering, vol. 12, no. 4, pp. 140–154, 2025.
[10] S. J. Pan and Q. Yang, “A survey on transfer learning,” IEEE Transactions on Knowledge and Data Engineering, vol. 22, no. 10, pp. 1345–1359, 2010.
[11] R. R. Selvaraju, M. Cogswell, A. Das, R. Vedantam, D. Parikh, and D. Batra, “Grad-CAM: Visual explanations from deep networks via gradient-based localization,” in Proceedings of the IEEE International Conference on Computer Vision (ICCV), pp. 618–626, 2017.
[12] T. Mu, F. Duan, B. Zhou, D. Xue, and M. Huang, “NexViTAD: Few-shot unsupervised cross-domain defect detection via vision foundation models and multi-task learning,” arXiv preprint arXiv:2507.07579, 2025.
[13] C. Guo, G. Pleiss, Y. Sun, and K. Q. Weinberger, “On calibration of modern neural networks,” in Proceedings of the 34th International Conference on Machine Learning (ICML), vol. 70 of Proceedings of Machine Learning Research, pp. 1321–1330, PMLR, 2017.
[14] C. Wang, “Calibration in deep learning: A survey of the state-of-the-art,” arXiv preprint arXiv:2308.01222, 2023.
[15] C. M. Bhushan, P. Koppuravuri, N. Prasanthi, F. Gazi, M. M. Hussain, M. Abdussami, A. A. Devi, and J. Faizi, “Deploying TinyML for energy-efficient object detection and communication in low-power edge AI systems,” Scientific Reports, vol. 15, p. 44299, 2025.
[16] B. Jacob, S. Kligys, B. Chen, M. Zhu, M. Tang, A. Howard, H. Adam, and D. Kalenichenko, “Quantization and training of neural networks for efficient integer-arithmetic-only inference,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2704–2713, 2018.
[17] M. N. Ahangar, Z. A. Farhat, A. Sivanathan, N. Ketheesram, and S. Kaur, “Explainable AI-driven quality and condition monitoring in smart manufacturing,” Sensors, vol. 26, no. 3, p. 911, 2026.
[18] F. P. Dharma and M. L. Singgih, “Surface defect detection using deep learning: A comprehensive investigation and emerging trends,” in AI Technologies and Virtual Reality (K. Nakamatsu, S. Patnaik, and R. Kountchev, eds.), vol. 382 of Smart Innovation, Systems and Technologies, pp. 247–260, Singapore: Springer, 2024.
[19] A. G. Howard, M. Zhu, B. Chen, D. Kalenichenko, W. Wang, T. Weyand, M. Andreetto, and H. Adam, “MobileNets: Efficient convolutional neural networks for mobile vision applications,” arXiv preprint arXiv:1704.04861, 2017.
[20] K. Simonyan and A. Zisserman, “Very deep convolutional networks for large-scale image recognition,” in Proceedings of the 3rd International Conference on Learning Representations (ICLR), (San Diego, CA, USA), 2015.
[21] C. Szegedy, V. Vanhoucke, S. Ioffe, J. Shlens, and Z. Wojna, “Rethinking the inception architecture for computer vision,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2818–2826, 2016.
[22] K. He, X. Zhang, S. Ren, and J. Sun, “Deep residual learning for image recognition,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 770–778, 2016.
[23] G. Huang, Z. Liu, L. van der Maaten, and K. Q. Weinberger, “Densely connected convolutional networks,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2261–2269, 2017.
[24] F. Chollet, “Xception: Deep learning with depthwise separable convolutions,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1800–1807, 2017.
Downloads
Published
How to Cite
Issue
Section
Categories
License
Copyright (c) 2026 The Author(s)

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
Articles published in the Journal of Computers, Mechanical and Management are licensed under a CC BY-NC 4.0 license. Authors retain copyright of their work and grant the journal a non-exclusive license to publish, distribute, and archive the article. Full terms are on the Copyright and Licensing page.