Research on Leather Defect Detection and Recognition Algorithm Based on Improved Multilayer Perceptron
Abstract
:1. Introduction
2. Materials and Methods
2.1. Dataset
2.1.1. System Configuration
2.1.2. Image Data Collection
2.1.3. Data Augmentation
2.1.4. Image Preprocessing
2.2. Texture Feature Extraction of Leather Defect Images
2.2.1. Feature Extraction Algorithm for Leather Images Based on the Gray-Level Co-Occurrence Matrix
2.2.2. Feature Extraction Algorithm for Leather Images Based on Gray-Level Distribution
2.3. Evaluation Methods for Neural Network Classification Models
3. Construction of the Multilayer Perceptron Neural Network Model
4. Experimental Results
4.1. Algorithm Training and Experimental Results Analysis
4.2. Comparison of Leather Defect Detection and Recognition Algorithms
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Han, X.X.; Geng, S.Y.; Li, H.Y. Application Review of Defect Detection Based on Machine Vision. Electr. Eng. 2019, 14, 117–118+132. [Google Scholar]
- Zhang, T.; Liu, Y.T.; Yang, Y.N.; Wang, X.; Jing, Y. Review of surface defect detection based on machine vision. Sci. Technol. Eng. 2020, 20, 14366–14376. [Google Scholar]
- Tang, B.; Kong, J.Y.; Wu, S.Q. Review of surface defect detection based on machine vision. J. Image Graph. 2017, 22, 1640–1663. [Google Scholar]
- Tsai, D.M.; Huang, T.Y. Automated surface inspection for statistical textures. Image Vis. Comput. 2003, 21, 307–323. [Google Scholar] [CrossRef]
- Sobral, J.L. Optimised filters for texture defect detection. In Proceedings of the IEEE International Conference on Image Processing 2005, Genova, Italy, 14 September 2005; IEEE: Piscataway, NJ, USA, 2005; Volume 3, p. III-565. [Google Scholar]
- Liong, S.T.; Gan, Y.S.; Huang, Y.C.; Yuan, C.A.; Chang, H.C. Automatic defect segmentation on leather with deep learning. arXiv 2019, arXiv:1903.12139. [Google Scholar]
- Liong, S.T.; Gan, Y.S.; Huang, Y.C.; Liu, K.H.; Yau, W.C. Integrated neural network and machine vision approach for leather defect classification. arXiv 2019, arXiv:1905.11731. [Google Scholar]
- Ding, C.H.; Huang, H.; Peng, M. Inspection Method of Leather Defect Based on Convolutional Neural Network and Salient Feature. J. Donghua Univ. Nat. Sci. 2020, 46, 408–413. [Google Scholar]
- Deng, J.H.; Wu, C.Z.; Liang, H.J.; Gu, G.; Wong, S. Classification of leather defects based on a parameter-optimized residual network. Sci. Technol. Eng. 2020, 20, 3143–3148. [Google Scholar]
- Jawahar, M.; Babu, N.K.C.; Vani, K. Leather texture classification using wavelet feature extraction technique. In Proceedings of the 2014 IEEE International Conference on Computational Intelligence and Computing Research, Coimbatore, India, 18–20 December 2014; IEEE: Piscataway, NJ, USA, 2014; pp. 1–4. [Google Scholar]
- Pereira, R.F.; Dias, M.L.; de Sá Medeiros, C.M.; Rebouças Filho, P.P. Classification of Failures in Goat Leather Samples Using Computer Vision and Machine Learning. In Proceedings of the SIBGRAPI 2017—Conference on Graphics, Patterns and Images (Workshop of Industry Applications), Niterói, Brazil, 17–20 October 2017; pp. 1–9. [Google Scholar]
- Villar, P.; Mora, M.; Gonzalez, P. A new approach for wet blue leather defect segmentation. In Iberoamerican Congress on Pattern Recognition; Springer: Berlin/Heidelberg, Germany, 2011; pp. 591–598. [Google Scholar]
- Mohammed, K.M.C.; Prasad, G. Defective texture classification using optimized neural network structure. Pattern Recognit. Lett. 2020, 135, 228–236. [Google Scholar] [CrossRef]
- The Songyuan Municipal Bureau of Commerce. Project for Deep Processing of 500,000 High-Grade Cowhides Per Year. Available online: http://sw.jlsy.gov.cn/zsxm/xdny/201807/t20180713_223995.html (accessed on 28 March 2022).
- Pan, Y.F.; Yang, F.; Yang, B. Research on the Design of a Part Dimension Measurement System Based on Machine Vision. J. Shandong Ind. Technol. 2017, 20, 138. [Google Scholar]
- Gabor, D. Theory of communication. J. Inst. Electr. Eng. 1946, 93, 429–457. [Google Scholar] [CrossRef]
- Daugman, J.G. Uncertainty relation for resolution in space, spatial frequency, and orientation optimized by two-dimensional visual cortical filters. JOSA A 1985, 2, 1160–1169. [Google Scholar] [CrossRef] [PubMed]
- Hu, G.H. Automated defect detection in textured surfaces using optimal elliptical Gabor filters. Optik 2015, 126, 1331–1340. [Google Scholar] [CrossRef]
- Pistori, H.; Paraguassu, W.A.; Martins, P.S.; Conti, M.P.; Pereira, M.A.; Jacinto, M.A. Defect detection in raw hide and wet blue leather. In Computational Modelling of Objects Represented in Images; CRC Press: Boca Raton, FL, USA, 2018; pp. 355–360. [Google Scholar]
- Wenxia, B.; Qing, S.; Qing, S.; Linsheng, H.; Dong, L.; Jian, Z. Image recognition of field wheat scab based on multi-way convolutional neural network. Trans. Chin. Soc. Agric. Eng. Trans. CSAE 2020, 36, 174–181. [Google Scholar]
- Pal, S.K.; Mitra, S. Multilayer perceptron, fuzzy sets, and classification. IEEE Trans. Neural Netw. 1992, 3, 683–697. [Google Scholar] [CrossRef] [PubMed]
- Zhang, K.F.; Su, H.Y.; Dou, Y. A new multi-classification task accuracy evaluation method based on confusion matrix. Comput. Eng. Sci. 2021, 43, 1910–1919. [Google Scholar]
- Yin, Z.F. Research and Development for Leather Defect Inspection System Based on Machine Vision Detection Technology. Master’s Thesis, Guangdong University of Technology, Guangzhou, China, 2019. [Google Scholar]
- Liao, J.H. Intelligent Visual Inspection Technology for Flexible Leather Material Defects. Master’s Thesis, Guangdong University of Technology, Guangzhou, China, 2020. [Google Scholar]
- Xu, Q.; Zhao, Q.; Wang, L.; Shen, T. Rail defect detection method based on BP neural network. In International Conference on Computer Engineering and Networks; Springer: Singapore, 2020; pp. 68–78. [Google Scholar]
- Moganam, P.K.; Seelan, D.A.S. Perceptron Neural Network Based Machine Learning Approaches for Leather Defect Detection and Classification. Instrum. Mes. Métrologies 2020, 19, 421–429. [Google Scholar] [CrossRef]
- Wu, C.Z. Leather Defects Recognition and Classification Based on a Parameter Optimized Residual Network. Master’s Thesis, Guangdong University of Technology, Guangzhou, China, 2020. [Google Scholar]
- Fang, X.X. Research on Leather Material Defect Detection Based on Improved Faster RCNN. Master’s Thesis, Taiyuan University of Technology, Taiyuan, China, 2021. [Google Scholar]
Sample | Precision (%) | Recall (%) | F1_Score (%) | Sample Size |
---|---|---|---|---|
Hole | 90.78 | 73.78 | 81.4 | 347 |
Scratch | 92.28 | 78.74 | 84.98 | 334 |
Stain | 83.00 | 96.32 | 89.16 | 299 |
Defect-free | 78.42 | 95.67 | 86.19 | 300 |
Arithmetic mean | 86.12 | 86.13 | 85.43 | 1280 |
Weighted average | 86.46 | 85.47 | 85.27 | 1280 |
Sample | Precision (%) | Recall (%) | F1_Score (%) | Sample Size |
---|---|---|---|---|
Hole | 78.23 | 28.96 | 42.27 | 335 |
Scratch | 94.10 | 96.81 | 95.43 | 313 |
Stain | 98.32 | 97.99 | 98.16 | 299 |
Defect-free | 58.96 | 94.89 | 72.73 | 333 |
Arithmetic mean | 82.40 | 79.66 | 77.15 | 1280 |
Weighted average | 81.79 | 78.83 | 76.25 | 1280 |
Sample | Precision (%) | Recall (%) | F1_Score (%) | Sample Size |
---|---|---|---|---|
Hole | 92.20 | 69.07 | 78.98 | 291 |
Scratch | 92.88 | 97.60 | 95.18 | 334 |
Stain | 99.37 | 98.43 | 98.90 | 319 |
Defect-free | 82.03 | 96.43 | 88.65 | 336 |
Arithmetic mean | 91.62 | 90.38 | 90.43 | 1280 |
Weighted average | 91.49 | 91.02 | 90.71 | 1280 |
Sample | Precision (%) | Recall (%) | F1_Score (%) | Sample Size |
---|---|---|---|---|
Hole | 98.83 | 99.41 | 99.12 | 339 |
Scratch | 100.00 | 98.80 | 99.40 | 333 |
Stain | 100.00 | 100.00 | 100.00 | 309 |
Defect-free | 99.34 | 100.00 | 99.67 | 299 |
Arithmetic mean | 99.54 | 99.55 | 99.55 | 1280 |
Weighted average | 99.53 | 99.53 | 99.53 | 1280 |
Classification Algorithm Scheme | Hole (%) | Scratch (%) | Stain (%) | Defect-Free (%) | Overall Accuracy (%) |
---|---|---|---|---|---|
Support vector machine | 90.5 | 88.5 | 84.5 | — | 88.3 |
Convolutional neural network | 95.5 | 93.2 | 94.2 | — | 94.3 |
Perceptron neural network | 95.3 | — | — | 94.4 | 94.8 |
Residual network | 93.0 | 96.0 | — | 97.0 | 95.3 |
Faster_RCNN | 97.2 | — | — | — | 97.2 |
Algorithm in this study | 99.4 | 98.8 | 100.0 | 100.0 | 99.5 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Liu, L.; Li, X.; Wang, R.; Li, X.; Zheng, L.; Lan, L.; Zhao, F.; Li, X. Research on Leather Defect Detection and Recognition Algorithm Based on Improved Multilayer Perceptron. Processes 2025, 13, 1298. https://doi.org/10.3390/pr13051298
Liu L, Li X, Wang R, Li X, Zheng L, Lan L, Zhao F, Li X. Research on Leather Defect Detection and Recognition Algorithm Based on Improved Multilayer Perceptron. Processes. 2025; 13(5):1298. https://doi.org/10.3390/pr13051298
Chicago/Turabian StyleLiu, Lin, Xizhao Li, Ruiyu Wang, Xingke Li, Liwang Zheng, Lihua Lan, Fangwei Zhao, and Xibing Li. 2025. "Research on Leather Defect Detection and Recognition Algorithm Based on Improved Multilayer Perceptron" Processes 13, no. 5: 1298. https://doi.org/10.3390/pr13051298
APA StyleLiu, L., Li, X., Wang, R., Li, X., Zheng, L., Lan, L., Zhao, F., & Li, X. (2025). Research on Leather Defect Detection and Recognition Algorithm Based on Improved Multilayer Perceptron. Processes, 13(5), 1298. https://doi.org/10.3390/pr13051298