Skip to main content
Log in

Vision based inspection system for leather surface defect detection using fast convergence particle swarm optimization ensemble classifier approach

  • Published:
Multimedia Tools and Applications Aims and scope Submit manuscript

Abstract

Surface defect inspection plays a vital role in leather manufacturing. Current practice involves an expert to inspect each piece of leather individually and detect defects manually. However, such a manual inspection is highly subjective and varies quite considerably from one assorter to another. Computer vision system for natural material like leather is a challenging research problem. This study describes the application of computer vision system to capture leather surface images and use of a novel Fast Convergence Particle Swarm Optimization (FCPSO) algorithm on a set of handcrafted texture features viz., GLCM and classified using supervised classifiers viz., Multi Layer Perceptron (MLP), Decision Tree (DT), SVM, Naïve Bayes, K-Nearest Neighbors (KNN) and Random Forest (RF). FCPSO using modified fitness function by selective band Shannon entropy is implemented to segment industrial leather images. Segmentation efficiency of the proposed FCPSO algorithm is evaluated and its performance is compared with other optimization algorithms. Efficiency of the segmentation algorithms is evaluated using performance measures such as average difference (AD), Area Error Rate (AER), Edge-based structural similarity index (ESSIM), F-Score, Normalized correlation coefficient (NK), Overlap Error (OE), structural content (SC), Structural similarity index (SSIM) and Zijdenbos similarity index (ZSI). Correlation of the segmented area using FCPSO with the experts’ ground truth is found to be high with R value of 0.84. Feature extraction is carried out using GLCM texture features and the most prominent features were selected using statistical t-test and correlation coefficient. Experimental results showed encouraging results for random forest classifier confirming the potential of the proposed system for automatic leather defect classification.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Institutional subscriptions

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15
Fig. 16

Similar content being viewed by others

References

  1. Ahmed N, Natarajan T, Rao KR (1974) Discrete cosine transform. IEEE Trans Comput 23:90–93

    Article  MathSciNet  Google Scholar 

  2. Alkan A, Tuncer SA, Gunay A (2014) Comparative MR image analysis for thyroid nodule detection and quantification. Measurement 47:861–868

    Article  Google Scholar 

  3. Anil KJ, Mihran T (1998) Texture analysis. World Scientific Publishing Co, The Handbook of Pattern Recognition and Computer Vision, pp 207–248

    Google Scholar 

  4. Attila L, Dmitry C (1991) Knowledge-based Line-correction rules in a machine vision system for the Leather Industry. Engineering Applications of Artificial Intelligence 4:433–438

    Article  Google Scholar 

  5. Branca A, Attolico G, Distante A (1996) Multiscale data analysis for leather defect detection. Proc. SPIE 2908, machine vision applications, architectures, and systems. Integration.:97–108

  6. Branca A, Abbate MG, Lovergine FP, Attolico G, Distante A (1997a) Leather inspection through singularities detection using wavelet transforms. International Conference on Image Analysis and Processing 2:584–592

    Article  Google Scholar 

  7. Branca A, Lovergine FP, Attolico G, Distante A (1997b) Defect detection on leather by oriented singularities. International Conference on Computer Analysis of Images and Patterns 1296:223–230

    Article  Google Scholar 

  8. Breiman L (2001) Random forests. Mach Learn 45:5–32

    Article  Google Scholar 

  9. M. Bruder (June 2019) For the qualification of leather, you need a human! Is that really the case?,” Proceedings of the XXXV International Union of Leather Technologists and Chemists Societies (IULTCS), PG. 93.

  10. Cao L, Bao P, Shi Z (2008) The strongest schema learning GA and its application to multilevel thresholding. Image Vis Comput 146:387–390

    Google Scholar 

  11. Chang J-F, et al. (2005) A parallel particle swarm optimization algorithm with communication strategies. Journal of Information Science and Engineering.

  12. Chris, C.B., Peter J. H., Wayne, P.P., Michael, P.H., Richard, P.G. (1996) Sheep-pelt grading using laser scanning and pattern recognition. Proc. SPIE 2908, Machine Vision Applications, Architectures, and Systems Integration, 33, https://doi.org/10.1117/12.257274.

  13. Deng, J.; Dong, W.; Socher, R.; Li, L.J.; Li, K.; Li, F.-F. (2009) ImageNet: a large-scale hierarchical image database. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Miami, FL, USA, 20–25 June; pp. 248–255.

  14. Tabernik Domen, Sela Samo, Skvarc Jure, Skocaj Danijel, Segmentation-based deep-learning approach for surface-defect detection, J Intell Manuf, Vol.31, no. 3, pg. 759–776, 2020.

  15. Dongping Tian EFPSO (2018) An effective fuzzy particle swarm optimization and its applications. Journal of Information Hiding and Multimedia Signal Processing 9(6):1365–1379

    Google Scholar 

  16. Eberhart R, Shi Y, Kennedy J (2001) Swarm intelligence. Morgan Kaufmann, San Mateo

    Google Scholar 

  17. Ge, W.; Yu, Y. (2017) Borrowing treasures from the wealthy: Deep transfer learning through selective joint fine tuning. In Proceedings of the IEEE Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 21–26 July 2017; pp. 1086–1095.

  18. Ghamisi P, Couceiro MS, Benediktsson JL, Ferreira NMF (2012) An efficient method for segmentation of images based on fractional calculus and natural selection. Expert Syst Appl 39:12407–12417

    Article  Google Scholar 

  19. Girshick, R.; Donahue, J.; Darrell, T.; Malik, J. (June 2014) Rich feature hierarchies for accurate object detection and semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Columbus, OH, USA, 23–28 ; pp. 580–587.

  20. Hammouche K, Diaf M, Siarry P (2008) A multilevel automatic thresholding method based on a genetic algorithm for a fast image segmentation. Computer Vision Image Understanding 109:163–175

    Article  Google Scholar 

  21. Haralick RM, Shanmugam K, Dinstein I (1973) Textural features for image classification. IEEE Transactions on systems, man, and cybernetics 6:610–621

    Article  Google Scholar 

  22. He, F., Wang, W., Chen, Z. (2006a). Automatic defects detection based on adaptive wavelet packets for leather manufacture. In Technology and Innovation Conference (ITIC), IET International , 2024-2027.

  23. He FQ, Wen W, Zi CC (2006b) Automatic visual inspection for leather manufacture. In: Key Engineering Materials, Trans Tech Publications:469–472

  24. Hemerson, P., Willian P.A., Priscila, S.M., Mauro, C.P., Pereira, M.A., Jacinto, M.A.C. (2006) Defect detection in raw hide and wet blue leather. CompIMAGE, Computational Modelling of Objects Represented in Images: Fundamentals Methods and Applications, Coimbra, 355–360.

  25. Hoang K, Nachimuthu A (1996) Image processing techniques for leather hide ranking in the footwear industry. Mach Vis Appl 9:119–129

    Article  Google Scholar 

  26. Malathy Jawahar ,Chandra Babu N. K., Vani, K. (2014) Leather texture classification using wavelet feature extraction technique”, IEEE International Conference on Computational Intelligence and Computing Research, pg. 1–4

  27. Malathy Jawahar , Chandra Babu N. K., Vani, K. (2016) Compression of leather images for automatic leather grading system using Multiwavelet”, IEEE International Conference on Computational Intelligence and Computing Research, pg. 1–7.

  28. Malathy Jawahar , Chandra Babu N. K., Vani K. (2019) Machine Vision Inspection System For Detection of Leather Surface Defects, Journal of American Leather Chemist Association, vol.114, no.1.

  29. Jiang M, Luo YP, Yang SY (2007) Stochastic convergence analysis and parameter selection of the standard particle swarm optimization algorithm. Inf Process Lett 102:8–16

    Article  MathSciNet  Google Scholar 

  30. Kaloyan K, Georgieva L (2005) Identification of leather surface defects using fuzzy logic. Proceedings of the International Conference on Computer Systems and Technologies, IIIA. 12.

  31. Kasi MK, Rao JB, Sahu VK (2014) Identification of leather defects using an auto adaptive edge detection image processing algorithm. In high performance computing and applications (ICHPCA), International Conference, IEEE, 1–4.

  32. Kayalvizhi M, Kavitha G, Sujatha CM, Ramakrishnan S (2015) Minkowski functionals based brain to ventricle index for analysis of AD progression in MR images. Measurement 74:103–112

    Article  Google Scholar 

  33. Kennedy J, Eberhart R (1995) A new optimizer using particle swarm theory. In proceedings of the IEEE sixth international symposium on micro machine and human science:39–43

  34. Khan SA, Engelbrecht AP (2012) A fuzzy particle swarm optimization algorithm for computer communication network topology design. Appl Intell 36(1):161–177

    Article  Google Scholar 

  35. Kornblith, S.; Shlens, J.; Le, Q.V. (2018) Do better ImageNet models transfer better? arXiv 2018, arXiv:1805.08974.

  36. Krastev K, Georgieva L (2006) A method for leather quality determination using fuzzy neural networks. Proceedings of the International Conference on Computer Systems and Technologies

  37. Kulkarni RV, Venayagamoorthy GK (2010) Bio-inspired algorithms for autonomous deployment and localization of sensor nodes. IEEE Transactions, SMC 40:663–675

    Google Scholar 

  38. Kwak C, Ventura JA, Sazi KT (2000) A neural network approach for defect identification and classification on leather fabric. J Intell Manuf 11:485–499

    Article  Google Scholar 

  39. Kwak C, Ventura JA, Sazi KT (2001) Automated defect inspection and classification of leather fabric. Intelligent Data Analysis 5:355–370

    Article  Google Scholar 

  40. LeCun, Y.; Bengio, Y.; Hinton, G. Deep learning. Nature , 521, pg. 436–444, 2015.

  41. Limas Serafim, A.F. (1992) Segmentation of natural images based on multiresolution pyramids linking of the parameters of an autoregressive rotation invariant model, Application to leather defects detection. Proceedings, 11th IAPR International Conference on Pattern Recognition. Vol. III. Conference C: image, Speech and Signal Analysis, The Hague, 41–44.

  42. Limas-Serafim, A.F. (1993). Natural images segmentation for patterns recognition using edges pyramids and its application to the leather defects. Industrial Electronics, Control, and Instrumentation, Proceedings of the IECON '93. International Conference on, Maui, HI, 1357–1360.

  43. Liong, S.T.; Gan, Y.; Huang, Y.C.; Yuan, C.A.; Chang, H.C. (2019) Automatic defect segmentation on leather with deep learning. arXiv 2019, arXiv:1903.12139.

  44. Lovergine FP, Branca A, Attolico G, Distante A (1997) Leather inspection by oriented texture analysis with a morphological approach. Proceedings of International Conference on Image Processing, Santa Barbara, CA 2:669–671

    Article  Google Scholar 

  45. Maitra M, Chatterjee A (2008a) A hybrid cooperative-comprehensive learning based PSO algorithm for image segmentation using multilevel thresholding. Expert Syst Appl 34:1341–1350

    Article  Google Scholar 

  46. Maitra M, Chatterjee A (2008b) A novel technique for multilevel optimal magnetic resonance brain image thresholding using bacterial foraging. Measurement 41:1124–1134

    Article  Google Scholar 

  47. Mario MN, Oduvaldo V, Fusco JPA (2005) Automated system for leather inspection: the machine vision. Emerging Solutions for Future Manufacturing Systems 159:387–396

    Article  Google Scholar 

  48. Mohagheghian E, James LA (2018) Optimization of hydrocarbon water alternating gas in the Norne field: application of evolutionary algorithms. Fuel 223:86–98

    Article  Google Scholar 

  49. Nanni, L.; Ghidoni, S.; Brahnam, S Handcrafted vs non-handcrafted features for computer vision classification Pattern Recognit, Vol. 71, pg. 158–172, 2017.

  50. Pereira, R.F.; Medeiros, C.M.; Rebouças Filho, P.P. (July 2018) Goat leather quality classification using computer vision and machine learning. In Proceedings of the 2018 International Joint Conference on Neural Networks (IJCNN), Rio de Janeiro, Brazil, 8–13; pp. 1–8.

  51. Peters S, Koenig A (2007) A hybrid texture analysis system based on non-linear & oriented kernels, particle swarm optimization, and kNN vs. Support Vector Machines. 7th International Conference on Hybrid Intelligent Systems, 1–25.

  52. Pölzleitner W, Niel A (1994) Automatic inspection of leather surfaces. Society of Photooptical Instrumentation Engineers 2347:50–58

    Google Scholar 

  53. Ren R, Hung T, Tan K.C., A generic deep-learning-based approach for automated surface inspection. IEEE Trans Cybern 48, pg. 929–940, 2017.

  54. Sathya PD, Kayalvizhi R (2010a) PSO based thresholding selection procedure for image segmentation. International Journal of Computer Applications 5:39–46

    Article  Google Scholar 

  55. Sathya PD, Kayalvizhi R (2010b) A new multilevel thresholding method using swarm intelligence algorithm for image segmentation. J Intell Learn Syst Appl 2:126–138

    Google Scholar 

  56. Sezgin M, Tasaltin R (2000) A new dichotomization technique to multilevel thresholding devoted to inspection applications. Pattern Recogn Lett 21:151–161

    Article  Google Scholar 

  57. Shannon CE (1935) A mathematical theory of communication. Bell System Technical Journal 27:379–423

    Article  MathSciNet  Google Scholar 

  58. Sharon, J. Jenifa, L. Jani Anbarasi, and Benson Edwin Raj (2018) DPSO-FCM based segmentation and classification of DCM and HCM Heart Diseases." 2018 Fifth HCT Information Technology Trends (ITT). IEEE, 2018.

  59. Siva S, Sindhu S, Geetha S, Kannan A (2012) Evolving optimised decision rules for intrusion detection using particle swarm paradigm. International Journal of Systems Science 43(12):2334–2350

    Article  MathSciNet  Google Scholar 

  60. Sorbal JL (2005) Leather inspection based on wavelets. Iberian conference on pattern recognition and image analysis, LNCS 3523:682–688

    Article  Google Scholar 

  61. Sorwar G, Abraham A (2004) DCT based texture classification using soft computing approach. Malays J Comput Sci 17:13–23

    Google Scholar 

  62. Sun C, Shrivastava, A.; Singh, S.; Gupta, A. (2017) Revisiting unreasonable effectiveness of data in deep learning era. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Venice, Italy, 22–29 October 2017; pp. 843–852.

  63. Teng, Zhi-Jun, et al. (September 2018) Particle swarm optimization algorithm based on dynamic acceleration factor in wireless sensor network. Journal of Information Hiding and Multimedia Signal Processing, Volume 9, Number 5

  64. Villar, P., Mora, M., Gonzalez, P. A new approach for wet blue leather defect segmentation. In Ibero american Congress on Pattern Recognition, Springer Berlin Heidelberg, 2011, 591–598.

  65. Wang L, Liu C (1765-1768) Tanning leather classification using an improved statistical geometrical feature method. IEEE in Machine Learning and Cybernetics, International Conference 3:2007

    Google Scholar 

  66. Wang Q, Liu H, Liu J, Wu T (1992) A new method for leather texture image classification. Proceedings of the IEEE International Symposium Conference in Industrial Electronics:304–307

  67. Weszka JS, Dyer CR, Rosenfeld A (1976) A comparative study of texture measures for terrain classification. IEEE Transactions on Systems, Man, and Cybernetics: Systems 6:269–285

    Article  Google Scholar 

  68. Woo KJ, Choo YY, Choi HH, Cho JM, Kil GS (2004) Development of leather quality discrimination system by texture analysis. TENCON Region 10 Conference:327–330

  69. Xiaohui, H., Yuhui, S., Eberhart, R. (2004) Recent advances in particle swarm. IEEE Proceedings of the 2004 Congress on Evolutionary Computation, 19–23.

  70. Yamille DV, Ganesh KV, Salman M, Jean-Carlos H, Ronald GH (2008) Particle swarm optimization: basic concepts variants and applications in power systems. IEEE Transactions On Evolutionary Computing:171–195

  71. Yeh C, Perng DB (2005) A reference standard of defect compensation for leather transactions. Int J Adv Manuf Technol 25:1197–1204

    Article  Google Scholar 

  72. Yin PY (1999) A fast scheme for optimal thresholding using genetic algorithms. Signal Process 72:85–95

    Article  Google Scholar 

  73. Zweig MH, Campbell G (1993) Receiver-operating characteristic (ROC) plots: a fundamental evaluation tool in clinical medicine. Clin Chem 39:561–577

    Article  Google Scholar 

Download references

Acknowledgments

The authors acknowledge the financial support from CSIR, New Delhi under the Supra Institutional Project S&T Revolution in Leather with a Green Touch (STRAIT) communication no. A/2018/LPT/CSC0201/1275.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Malathy Jawahar.

Additional information

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Appendix

Appendix

1.1 Derivation of Haralick’s texture features from grey level co-occurrence matrix

P(i,j) is (i,j) th entry in normalized GLCM; Px(i) is ith entry in the marginal probability matrix obtained by summing the rows of P(i,j); Px(i)= \( {\sum}_{\mathrm{j}=1}^{\mathrm{G}}\mathrm{P}\left(\mathrm{i},\mathrm{j}\right) \); Py(j) is jth entry in the marginal probability matrix obtained by summing the columns of P(i,j); Py(j)=\( {\sum}_{\mathrm{j}=1}^{\mathrm{G}}\mathrm{P}\left(\mathrm{i},\mathrm{j}\right) \); G is number of gray levels in quantized image. μx, μyiσj are the means and standard deviation of px and py, respectively.

No.

Feature name

Equation

Description

1

Autocorrelation

\( \sum \limits_{i,j=1}^N\left(\mathsf{i}\mathsf{j}\right)\mathsf{P}\left(\mathsf{i},\mathsf{j}\right) \)

Returns probability occurrence of the specific a pixel

2

Contrast

\( \sum \limits_{i,j=1}^N\mathsf{P}\left(\mathsf{i},\mathsf{j}\right){\left(\mathsf{i},\mathsf{j}\right)}^2 \)

Returns the local variation boundary of the gray levels in a texture

3

Correlation

\( \sum \limits_{i,j=1}^N\left(\mathsf{i}-{\mathsf{\mu}}_i\right)\left(\mathsf{i},{\mathsf{\mu}}_j\right)\mathsf{P}\left(\mathsf{i},\mathsf{j}\right)/{\mathsf{\sigma}}_i{\mathsf{\sigma}}_j \)

Returns the probability occurrence of the specific pixel pair

4

Cluster prominence

\( \sum \limits_{i,j=1}^N{\left(\mathsf{i}+\mathsf{j}-{\mathsf{\mu}}_x-{\mathsf{\mu}}_y\right)}^4\mathsf{P}\left(\mathsf{i},\mathsf{j}\right) \)

Measures the skewness of the matrix (asymmetry)

5

Cluster shade

\( \sum \limits_{i,j=1}^N{\left(\mathsf{i}+\mathsf{j}-{\mathsf{\mu}}_x-{\mathsf{\mu}}_y\right)}^3\mathsf{P}\left(i,\mathsf{j}\right) \)

Measures the skewness of the GLCM (asymmetry)

6

Dissimilarity

\( \sum \limits_{i,j=1}^N\mid i-j\mid P\left(i,\mathrm{j}\right) \)

Returns linear local variation boundary of the gray levels in a texture

7

Energy (uniformity)

\( \sum \limits_{i,j=1}^NP{\left(\mathsf{i},\mathsf{j}\right)}^2 \)

Returns the sum of squared elements in the GLCM.

8

Entropy

\( -\sum \limits_{i,j=1}^NP\left(\mathsf{i},\mathsf{j}\right)\mathit{\log}\left(i,\mathsf{j}\right) \)

Returns the degree of randomness and complexity of a texture

9

Homogeneity

\( \sum \limits_{i,j=1}^N\frac{\mathsf{P}\left(i,\mathsf{j}\right)}{1+\mid \mathsf{i}-\mathsf{j}\mid } \)

Returns the distribution consistency of the GLCM elements

10

Maximum probability

\( ma{x}_{i,j}\mathsf{P}\left(i,\mathsf{j}\right) \)

Returns the largest P(i,j) value found within the window

11

Sum of square (variance)

\( \sum \limits_{i,j=1}^N{\left(\mathsf{i}-\mathsf{\mu}\right)}^2\mathsf{P}\left(\mathsf{i},\mathsf{j}\right) \)

Measures the dispersion of the values around the mean

12

Sum average

\( \sum \limits_{i=0}^{2G}\mathsf{i}{P}_{x+y} \)

Measures the mean value of Px and Py

13

Sum variance

\( \sum \limits_{i=1}^{2G}{\left(\mathsf{i}-\left(\mathsf{sum}\ \mathsf{entropy}\right)\right)}^2{P}_{x+y}(i) \)

Measures the variance of sum entropy

14

Sum entropy

\( \sum \limits_{i=0}^{2G}{P}_{x+y}(i)\mathsf{\log}\left({P}_{x+y}(i)\right) \)

Measures the sum of Px and Pyentropy

15

Difference variance

VarianceP(x + y)

Measures the variance difference between two values

16

Difference entropy

\( -\sum \limits_{i=0}^G{P}_{x-y}(i)\mathit{\log}\left({P}_{x-y}(i)\right) \)

Measures the difference of Px and Pyentropy

17

Information measure of correlation (1)

\( \frac{HXY- HXY1}{\mathsf{\max}\left( HX, HY\right)} \)

Measures the linear dependency of gray levels on those of neighboring pixels.

18

Information measure of correlation (2)

\( {\left(1-\mathsf{\exp}\left[-2\left(\mathsf{HXY}2-\mathsf{HXY}\right)\right]\right)}^{0.5} \)

Measures the linear dependency of gray levels on those of neighboring pixels.

19

Inverse difference normalized (INN)

\( \sum \limits_{i,j=1}^G\frac{1}{1+{\left|i-j\right|}^2/{G}^2}P\left(i,j\right) \)

Returns the linear normalized distribution consistency of the GLCM elements

20

Inverse difference moment normalized

\( \sum \limits_{i,j=1}^G\frac{1}{1+{\left(i-j\right)}^2/{G}^2}P\left(i,j\right) \)

Returns the normalized distribution consistency of the GLCM elements

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Jawahar, M., Babu, N.K.C., Vani, K. et al. Vision based inspection system for leather surface defect detection using fast convergence particle swarm optimization ensemble classifier approach. Multimed Tools Appl 80, 4203–4235 (2021). https://doi.org/10.1007/s11042-020-09727-3

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11042-020-09727-3

Keywords

Navigation