| Literature DB >> 34064975 |
Alberto Tellaeche Iglesias1, Miguel Ángel Campos Anaya1, Gonzalo Pajares Martinsanz2, Iker Pastor-López1.
Abstract
Defects in textured materials present a great variability, usually requiring ad-hoc solutions for each specific case. This research work proposes a solution that combines two machine learning-based approaches, convolutional autoencoders, CA; one class support vector machines, SVM. Both methods are trained using only defect free textured images for each type of analyzed texture, labeling the samples for the SVMs in an automatic way. This work is based on two image processing streams using image sensors: (1) the CA first processes the incoming image from the input to the output, producing a reconstructed image, from which a measurement of correct or defective image is obtained; (2) the second process uses the latent layer information as input to the SVM to produce a measurement of classification. Both measurements are effectively combined, making an additional research contribution. The results obtained achieve a percentage of success of 92% on average, outperforming results of previous works.Entities:
Keywords: SVM; autoencoder; hybridization; image sensors; texture inspection
Year: 2021 PMID: 34064975 PMCID: PMC8150843 DOI: 10.3390/s21103339
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Figure 1Main schema of the combined solution.
Figure 2Main structure of the proposed convolutional autoencoder.
Figure 3Reconstruction error for a latent layer with 1024 neurons (left, images (a,b)) and with 2048 neurons (right, images (c,d)).
Reconstruction error obtained for both optimizers.
| Optimizer | Number of Tile Texture Correct Images | Mean Reconstruction Error Obtained (%) |
|---|---|---|
| ADAM | 1000 | 7.66 |
| RMSprop | 1000 | 5.25 |
Defect free texture images in the dataset.
| Carpet | Grid | Leather | Tile | Wood | |
|---|---|---|---|---|---|
| Number of images | 279 | 263 | 244 | 229 | 246 |
Figure 4Basic textures used in this research work.
Number of images for each texture.
| Defects | |||||
|---|---|---|---|---|---|
| Type 1 | Type 2 | Type 3 | Type 4 | Type 5 | |
| Carpet | 18 | 16 | 16 | 16 | 18 |
| Grid | 11 | 11 | 10 | 10 | 10 |
| Leather | 18 | 18 | 16 | 18 | 17 |
| Tile | 16 | 17 | 15 | 17 | 14 |
| Wood | 7 | 9 | 9 | 20 | 10 |
Typology of defects present in the different textures.
| Defect Type 1 | Defect Type 2 | Defect Type 3 | Defect Type 4 | Defect Type 5 | |
|---|---|---|---|---|---|
| Carpet |
|
|
|
|
|
| Grid |
|
|
|
|
|
| Leather |
|
|
|
|
|
| Tile |
|
|
|
|
|
| Wood |
|
|
|
|
|
Mean defect size in pixels for each texture.
| Texture | Area (pix) |
|---|---|
| Carpet | 13,256 |
| Grid | 3173 |
| Leather | 3655 |
| Tile | 61,587 |
| Wood | 9066 |
Figure 5Subdivision of images for the tile texture.
Figure 6Subdivision of images for the carpet texture.
Final number of images available in the modified dataset.
| Carpet | Grid | Leather | Tile | Wood | |
|---|---|---|---|---|---|
| Correct images | 6975 | 6575 | 6100 | 5725 | 6150 |
| Defect 1 | 450 | 275 | 450 | 400 | 175 |
| Defect 2 | 400 | 275 | 450 | 425 | 225 |
| Defect 3 | 400 | 250 | 400 | 375 | 225 |
| Defect 4 | 400 | 250 | 450 | 425 | 500 |
| Defect 5 | 450 | 250 | 425 | 350 | 250 |
Number of images in the modified and resized dataset for training and testing stages.
| Carpet | Grid | Leather | Tile | Wood | |
|---|---|---|---|---|---|
| Training images without defects | 4883 | 4603 | 4270 | 4008 | 4305 |
| Testing images without defects | 2092 | 1972 | 1830 | 1717 | 1845 |
| Testing images with defects | 2100 | 1300 | 2175 | 1975 | 1375 |
Figure 7Evolution of the training loss.
Figure 8Reconstruction errors for the different textures.
Mean reconstruction error for all textures and their respective errors.
| Correct | Defect 1 | Defect 2 | Defect 3 | Defect 4 | Defect 5 | |
|---|---|---|---|---|---|---|
| Carpet | 7.05 | 9.04 | 9.82 | 10.29 | 7.41 | 10.45 |
| Grid | 2.76 | 5.26 | 5.70 | 5.06 | 5.40 | 5.89 |
| Leather | 2.60 | 4.09 | 4.83 | 5.55 | 4.73 | 4.61 |
| Tile | 5.25 | 7.24 | 5.35 | 7.60 | 6.10 | 7.17 |
| Wood | 3.09 | 4.26 | 5.19 | 4.56 | 3.57 | 4.52 |
CCP obtained with the convolutional autoencoder for all textures and errors.
| Defect 1 | Defect 2 | Defect 3 | Defect 4 | Defect 5 | Mean | |
|---|---|---|---|---|---|---|
| Carpet | 78.37 | 90 | 100 | 57.14 | 70.21 | 79.144 |
| Grid | 95 | 85 | 93.75 | 86.66 | 84.21 | 88.924 |
| Leather | 100 | 68 | 91.66 | 58.62 | 90 | 81.656 |
| Tile | 86.59 | 55.78 | 83.87 | 78.88 | 69.38 | 74.9 |
| Wood | 84.93 | 88.23 | 90.59 | 72 | 84.44 | 84.038 |
CCP results obtained with one class SVMs for all textures.
| Defect 1 | Defect 2 | Defect 3 | Defect 4 | Defect 5 | Mean | |
|---|---|---|---|---|---|---|
| Carpet | 100 | 96.66 | 88.88 | 95.23 | 93.61 | 94.88 |
| Grid | 95 | 100 | 87.5 | 100 | 97.36 | 95.97 |
| Leather | 97.8 | 98.9 | 100 | 94 | 96.5 | 97.44 |
| Tile | 97.43 | 95.78 | 100 | 98.7 | 100 | 98.38 |
| Wood | 100 | 99.1 | 98.9 | 100 | 99 | 99.4 |
Final results of texture error detection after hybridization of algorithms.
| Defect 1 | Defect 2 | Defect 3 | Defect 4 | Defect 5 | Mean | |
|---|---|---|---|---|---|---|
| Carpet | 89.3 | 95.1 | 93.2 | 80.4 | 87.3 | 89.06 |
| Grid | 95 | 92.7 | 90 | 94.3 | 96.4 | 93.68 |
| Leather | 98.7 | 85.3 | 96.2 | 84.5 | 93.1 | 91.56 |
| Tile | 94.4 | 84.8 | 96.4 | 89 | 86.1 | 90.14 |
| Wood | 96.4 | 97.3 | 94.9 | 81.4 | 96.4 | 93.28 |