| Literature DB >> 34307930 |
Dwiza Riana1, Sri Rahayu1, Muhamad Hasan1.
Abstract
The largest income for Southeast Asian countries comes from the export activities of wood production. The potential for timber exports in Indonesia continues to increase each year. This soaring potential needs to be continually improved by maintaining quality so that trust and good cooperation can continue to be established with partner countries. Wood quality is closely related to wood defects. The faster the detection of wood defects is, the faster the quality of the wood will be determined. The wood industry which is still manual is also very susceptible to human eye fatigue. Technology is currently developing rapidly to help human productive activities and image processing is a breakthrough to detect wood defects. This study aims to identify swietenia mahagoni wood defects using the euclidean distance method from the extraction of 6 texture and shape features GLCM (Gray Level Co-Occurance Method) including metric, eccentricity, contrast, correlation, energy, and homogeneity, which was previously segmented with the best segmentation from the comparison results of thresholding and k-means segmentation and produced an average accuracy of 95.33% with an F1 score value of 0.95. The dataset used is the primary dataset with a total of 54 images on 3 types of wood defects, namely growing skin defects on wood ends, rotten wood eye on the body, and healthy wood eye on the body. Cross validation is also applied to test the reliability of the proposed model. By using 3-fold cross validation, the optimal average accuracy is 88.90%. Validation with other similar datasets was also carried out by identifying potato leaf defects resulting in an average accuracy of 92.86% with the most optimal 3-fold cross validation value achieved an average accuracy of 83.33%. Image augmentation is also carried out in order to reproduce the image so that the reliability test of the proposed method can be carried out, namely by rotating the image 45 degrees,90 degrees,120 degrees,180 degrees which produces 84 images of augmentation, so that the total image is 138 images and gets an average accuracy from the image augmentation is 80%.Entities:
Keywords: Euclidean distance; GLCM; K-means; Swietenia mahagoni; Thresholding; Wood defects
Year: 2021 PMID: 34307930 PMCID: PMC8258648 DOI: 10.1016/j.heliyon.2021.e07417
Source DB: PubMed Journal: Heliyon ISSN: 2405-8440
Example of images of wood defects.
| Types of wood defects | Image examples |
|---|---|
| Growing Skin Defects | |
| Defect of Rotten Wood Eyes | |
| Healthy Wood Eye Defects |
Figure 1Research method.
Result of RGB to YIQ color convertion.
| Types | RGB | YIQ |
|---|---|---|
| Growing Skin | ||
| Rotten Wood Eyes | ||
| Healthy Wood Eyes |
Thresholding segmentation result.
| Types | YIQ | Thresholding |
|---|---|---|
| Growing Skin | ||
| Rotten Wood Eyes | ||
| Healthy Wood Eyes |
The result of RGB to L*a*b color conversion.
| Types | RGB | L*a*b |
|---|---|---|
| Growing Skin | ||
| Rotten Wood Eyes | ||
| Healthy Wood Eye |
K-means segmentation results.
| Types | L*a*b | K-means |
|---|---|---|
| Growing Skin | ||
| Rotten Wood Eyes | ||
| Healthy Wood Eye |
Feature extraction results (GS).
| metric | ecce.. | cont.. | corr.. | energy | homog.. |
|---|---|---|---|---|---|
| 0.25593 | 0.96287 | 0.19558 | 0.78772 | 0.86178 | 0.97241 |
| 0.45566 | 0.83270 | 0.09871 | 0.92436 | 0.91742 | 0.98927 |
| 0.52705 | 0.87966 | 0.01708 | 0.75836 | 0.93984 | 0.99421 |
| 0.11666 | 0.97730 | 0.16084 | 0.87175 | 0.78966 | 0.96929 |
| 0.21702 | 0.68259 | 0.08297 | 0.91672 | 0.94112 | 0.99151 |
| 0.34107 | 0.87920 | 0.01962 | 0.73336 | 0.93988 | 0.99384 |
| 0.25693 | 0.97262 | 0.14819 | 0.86697 | 0.77981 | 0.96798 |
| 0.96907 | 0.78290 | 0.09427 | 0.69889 | 0.86367 | 0.97792 |
| 0.75625 | 0.90002 | 0.10236 | 0.84988 | 0.88433 | 0.98267 |
| 0.40585 | 0.95676 | 0.19089 | 0.79309 | 0.86224 | 0.97247 |
| 0.49323 | 0.92908 | 0.06558 | 0.89443 | 0.84461 | 0.98392 |
GS (Growing Skin).
Feature extraction results (RWE).
| metric | ecce.. | cont.. | corr.. | energy | homog.. |
|---|---|---|---|---|---|
| 0.06936 | 0.80588 | 0.38945 | 0.95649 | 0.33104 | 0.91148 |
| 0.05254 | 0.81303 | 0.42294 | 0.95189 | 0.34053 | 0.91078 |
| 0.27835 | 0.88242 | 0.42727 | 0.92957 | 0.29329 | 0.89094 |
| 0.52631 | 0.76974 | 0.45262 | 0.88434 | 0.32686 | 0.88585 |
| 0.06617 | 0.82344 | 0.80945 | 0.89416 | 0.37195 | 0.85958 |
| 0.28467 | 0.97953 | 0.45553 | 0.93660 | 0.40145 | 0.88588 |
| 0.44143 | 0.97475 | 0.66281 | 0.91858 | 0.29140 | 0.85736 |
| 0.19005 | 0.96760 | 0.42514 | 0.92989 | 0.29417 | 0.89128 |
| 0.27315 | 0.56414 | 0.66002 | 0.91860 | 0.29351 | 0.85794 |
| 0.16944 | 0.89818 | 0.81321 | 0.89378 | 0.37202 | 0.85879 |
| 0.60276 | 0.90143 | 0.45867 | 0.93643 | 0.39697 | 0.88575 |
RWE (Rotten Wood Eye).
Feature extraction results (HWE).
| metric | ecce.. | cont.. | corr.. | energy | homog.. |
|---|---|---|---|---|---|
| 0.30037 | 0.96445 | 0.07218 | 0.93916 | 0.87083 | 0.98099 |
| 0.14344 | 0.51099 | 0.24420 | 0.90693 | 0.78708 | 0.95831 |
| 0.29278 | 0.99056 | 0.18185 | 0.89756 | 0.86615 | 0.97277 |
| 0.21392 | 0.95417 | 0.14414 | 0.92360 | 0.78521 | 0.96583 |
| 1.05426 | 0.57703 | 0.38704 | 0.92970 | 0.48200 | 0.91068 |
| 0.47009 | 0.92663 | 0.17659 | 0.89849 | 0.86881 | 0.97329 |
| 0.28745 | 0.98434 | 0.30609 | 0.93864 | 0.53525 | 0.92025 |
| 0.32914 | 0.97561 | 0.24118 | 0.88167 | 0.74675 | 0.95096 |
| 0.41955 | 0.94783 | 0.12785 | 0.95519 | 0.71038 | 0.96284 |
| 0.23938 | 0.61842 | 0.12102 | 0.91057 | 0.86325 | 0.97659 |
| 1.05426 | 0.73244 | 0.42155 | 0.83448 | 0.70751 | 0.93572 |
HWE (Healthy Wood Eye).
Program testing result.
| Testing data | Actual | Identification | Information |
|---|---|---|---|
| 1 | GS | GS | True |
| 2 | GS | GS | True |
| 3 | GS | GS | True |
| 4 | GS | GS | True |
| 5 | GS | GS | True |
| 6 | GS | RWE | False |
| 7 | GS | GS | True |
| 8 | RWE | RWE | True |
| 9 | RWE | RWE | True |
| 10 | RWE | RWE | True |
| 11 | RWE | RWE | True |
| 12 | RWE | RWE | True |
| 13 | RWE | RWE | True |
| 14 | RWE | RWE | True |
| 15 | HWE | HWE | True |
| 16 | HWE | HWE | True |
| 17 | HWE | HWE | True |
| 18 | HWE | HWE | True |
| 19 | HWE | HWE | True |
| 20 | HWE | HWE | True |
| 21 | HWE | HWE | True |
GS (Growing Skin), RWE (Rotten Wood Eye), HWE (Healthy Wood Eye)
Feature extraction results (HWE).
| Prediction | |||||
|---|---|---|---|---|---|
| GS | RWE | HWE | Total | ||
| GS | 6 | 1 | 0 | 7 | |
| Actual | RWE | 0 | 7 | 0 | 7 |
| HWE | 0 | 0 | 7 | 7 | |
GS (Growing Skin), RWE (Rotten Wood Eye), HWE (Healthy Wood Eye).
The result of accuracy, precision & recall.
| Class | Accuracy | Precision | Recall |
|---|---|---|---|
| Growing Skin | 86% | 0,86 | 1 |
| Rotten Wood Eyes | 100% | 1 | 0,86 |
| Healthy Wood Eyes | 100% | 1 | 1 |
| Mean | 95,33% | 95,33% | 95,33% |
Figure 2Illustration of 3-fold cross validation.
The result of accuracy, precision & recall.
| Accuracy | |||
|---|---|---|---|
| Type | Fold 1 | Fold 2 | Fold 3 |
| Growing Skin | 50% | 50% | 83,3% |
| Rotten Wood Eyes | 100% | 100% | 100% |
| Healthy Wood Eyes | 50% | 83,3% | 83,3% |
| Mean | 66% | 77,8% | 88,9% |
The result of RGB to L*a*b color convertion.
| Types | RGB | L*a*b |
|---|---|---|
| Early Blight | ||
| Late Blight |
Feature extraction results (LB).
| metric | ecce.. | cont.. | corr.. | energy | homog.. |
|---|---|---|---|---|---|
| 0.46515 | 0.42244 | 0.57051 | 0.90808 | 0.35171 | 0.86942 |
| 0.27131 | 0.48696 | 0.59976 | 0.89118 | 0.31713 | 0.85707 |
| 0.17672 | 0.83020 | 0.52401 | 0.86980 | 0.50194 | 0.89478 |
| 0.38035 | 0.74105 | 0.43102 | 0.87342 | 0.29809 | 0.87229 |
| 0.19595 | 0.53013 | 0.38244 | 0.92228 | 0.33720 | 0.89821 |
| 0.39449 | 0.74127 | 0.43647 | 0.90734 | 0.38091 | 0.88943 |
| 0.51368 | 0.25294 | 0.50059 | 0.86365 | 0.36407 | 0.87258 |
| 0.55481 | 0.82165 | 0.32094 | 0.90903 | 0.30904 | 0.89836 |
| 0.14386 | 0.86179 | 0.20813 | 0.92381 | 0.48454 | 0.93617 |
| 0.32861 | 0.95655 | 0.33653 | 0.93463 | 0.39689 | 0.91896 |
| 0.37036 | 0.92498 | 0.36868 | 0.91414 | 0.37781 | 0.89760 |
LB (Late Blight).
Figure 3Illustration of 3-fold cross validation.
The result of K-means segmentation.
| Types | L*a*b | K-means |
|---|---|---|
| Early Blight | ||
| Late Blight |
Feature extraction results (EB).
| metric | ecce.. | cont.. | corr.. | energy | homog.. |
|---|---|---|---|---|---|
| 0.37352 | 0.55194 | 0.63387 | 0.94868 | 0.27692 | 0.86526 |
| 0.53539 | 0.86224 | 0.59358 | 0.93057 | 0.25843 | 0.85574 |
| 0.27369 | 0.64349 | 0.83059 | 0.89150 | 0.26793 | 0.83096 |
| 0.07941 | 0.41121 | 0.65123 | 0.95852 | 0.36533 | 0.92086 |
| 0.28734 | 0.83009 | 0.56213 | 0.92482 | 0.30194 | 0.87220 |
| 0.34282 | 0.86135 | 0.44330 | 0.87174 | 0.27995 | 0.87483 |
| 0.19453 | 0.63586 | 0.80612 | 0.90614 | 0.27741 | 0.83854 |
| 0.60102 | 0.64012 | 0.80756 | 0.89666 | 0.21782 | 0.82873 |
| 0.53421 | 0.79517 | 0.58056 | 0.91533 | 0.28320 | 0.85895 |
| 1.01457 | 0.74787 | 0.46952 | 0.95963 | 0.30067 | 0.88037 |
| 0.13815 | 0.32437 | 0.75316 | 0.92449 | 0.34002 | 0.86194 |
EB (Early Blight).
Program testing result.
| Testing data | Actual | Identification | Information |
|---|---|---|---|
| 1 | EB | EB | True |
| 2 | EB | EB | True |
| 3 | EB | EB | True |
| 4 | EB | EB | True |
| 5 | EB | EB | True |
| 6 | EB | EB | True |
| 7 | EB | EB | True |
| 8 | LB | LB | True |
| 9 | LB | LB | True |
| 10 | LB | LB | True |
| 11 | LB | EB | False |
| 12 | LB | LB | True |
| 13 | LB | LB | True |
| 14 | LB | LB | True |
EB (Early Blight), LB (Late Blight).
Confusion matrix.
| Prediction | |||
|---|---|---|---|
| Actual | EB | LB | Total |
| EB | 7 | 0 | 7 |
| LB | 1 | 6 | 7 |
EB (Early Blight), LB (Late Blight).
Image rotations.
| Level | Accuracy |
|---|---|
| 0 degrees | |
| 45 degrees | |
| 90 degrees | |
| 120 degrees | |
| 180 degrees |
Accuracy.
| Class | Accuracy |
|---|---|
| Early Blight | 100% |
| Late Blight | 85,71% |
| Mean | 92,86% |
Result of 3-fold cross validation other datasets.
| Accuracy | |||
|---|---|---|---|
| Type | Fold 1 | Fold 2 | Fold 3 |
| Early Blight | 66,67% | 83,33% | 83,33% |
| Late Blight | 33,33% | 66,67% | 83,33% |
| Mean | 50% | 75% | 83,33% |
Figure 4Result of 3-fold cross validation other dataset.
Accuracy.
| Class | Accuracy |
|---|---|
| Growing Skin | 75% |
| Rotten Wood Eye | 64% |
| Healthy Wood Eye | 100% |
| Mean | 80% |
Confution matrix of augmenting image.
| Prediction | |||||
|---|---|---|---|---|---|
| GS | RWE | HWE | Total | ||
| GS | 21 | 2 | 0 | 28 | |
| Actual | RWE | 0 | 18 | 0 | 28 |
| HWE | 7 | 8 | 28 | 28 | |
GS (Growing Skin), RWE (Rotten Wood Eye), HWE (Healthy Wood Eye).
Figure 5Result of 3-fold cross validation other dataset.