원시데이터 수집 시스템
선정목록으로

Identification of wood defect using pattern recognition technique

관련 산업용 섬유 · (9) 타이어코드

기본 정보

저자
  1. Teo Hong Chun — Department of Information Technology and Communication, Politeknik Mersing
  2. Ummi Rabaah Hashim — Centre for Advanced Computing Technology, Universiti Teknikal Malaysia Melaka (UTeM)
  3. Sabrina Ahmad — Centre for Advanced Computing Technology, Universiti Teknikal Malaysia Melaka (UTeM)
  4. Lizawati Salahuddin — Centre for Advanced Computing Technology, Universiti Teknikal Malaysia Melaka (UTeM)
  5. Ngo Hea Choon — Centre for Advanced Computing Technology, Universiti Teknikal Malaysia Melaka (UTeM)
  6. Kasturi Kanchymalay — Centre for Advanced Computing Technology, Universiti Teknikal Malaysia Melaka (UTeM)
  7. Nur Haslinda Ismail — Centre for Advanced Computing Technology, Universiti Teknikal Malaysia Melaka (UTeM)
DOI
10.26555/ijain.v7i2.588
저널
International Journal of Advances in Intelligent Informatics
발행년도
2021
발행기관
Ahmad Dahlan University
피인용수
8
라이선스
cc-by-sa
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.26555/ijain.v7i2.588
토픽
Surface Roughness and Optical Measurements
OpenAlex ID
W3157617012

평가 내용

관련도
관련
사업분야
산업용 섬유 · (9) 타이어코드
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '산업용 섬유 > 타이어코드' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

This study proposed a classification model for timber defect classification based on an artificial neural network (ANN). Besides that, the research also focuses on determining the appropriate parameters for the neural network model in optimizing the defect identification performance, such as the number of hidden layers nodes and the number of epochs in the neural network. The neural network's performance is compared with other standard classifiers such as Naïve Bayes, K-Nearest Neighbours, and J48 Decision Tree in finding their significant differences across the multiple timber species. The classifier's performance is measured based on the F-measure due to the imbalanced dataset of the timber species. The experimental results show that the proposed classification model based on the neural network outperforms the other standard classifiers in detecting many types of defects across multiple timber species with an F-measure of 84.01%. This research demonstrates that ANN can accurately classify the defects across multiple species while defining appropriate parameters (hidden layers and epochs) for the neural network model in optimizing defect identification performance.

본문 53,410자

본문 펼치기
International Journal of Advances in Intelligent Informatics ISSN 2442-6571 Vol. 7, No. 2, July 2021, pp. 163-176 163 # Identification of wood defect using pattern recognition technique Teo Hong Chun <sup>a,1,*</sup>, Ummi Raba'ah Hashim <sup>b,2</sup>, Sabrina Ahmad <sup>b,3</sup>, Lizawati Salahuddin <sup>b,4</sup>, Ngo Hea Choon <sup>b,5</sup>, Kasturi Kanchymalay <sup>b,6</sup>, Nur Haslinda Ismail <sup>b,7</sup> a Department of Information Technology and Communication, Politeknik Mersing, Johor, Malaysia b Centre for Advanced Computing Technology, Universiti Teknikal Malaysia Melaka (UTeM), Melaka, Malaysia 1 [hcteo11@gmail.com; 2 ummi@utem.edu.my; 3 sabrinaahmad@utem.edu.my, 4 lizawati@utem.edu.my; 5 heachoon@utem.edu.my;](mailto:hcteo11@gmail.com) [6 kasturi@utem.edu.my, 7 lynda@utem.edu.my](mailto:kasturi@utem.edu.my) - corresponding author ARTICLE INFO ABSTRACT Article history Received November 21, 2020 Revised March 22, 2021 Accepted March 24, 2021 Available online April 19, 2021 Keywords Automated vision inspection Defect identification Neural network Classification performance Epoch 1. Introduction This study proposed a classification model for timber defect classification based on an artificial neural network (ANN). Besides that, the research also focuses on determining the appropriate parameters for the neural network model in optimizing the defect identification performance, such as the number of hidden layers nodes and the number of epochs in the neural network. The neural network's performance is compared with other standard classifiers such as Naïve Bayes, K-Nearest Neighbours, and J48 Decision Tree in finding their significant differences across the multiple timber species. The classifier's performance is measured based on the Fmeasure due to the imbalanced dataset of the timber species. The experimental results show that the proposed classification model based on the neural network outperforms the other standard classifiers in detecting many types of defects across multiple timber species with an F-measure of 84.01%. This research demonstrates that ANN can accurately classify the defects across multiple species while defining appropriate parameters (hidden layers and epochs) for the neural network model in optimizing defect identification performance. [This is an open access article under the CC–BY-SA license.](http://creativecommons.org/licenses/by-sa/4.0/) Before introducing AVI in the wood industry, a normal inspection process would require human operators to visually inspect the timber to locate and identify the timber defects. The interpretation of the human operator on the timber defects would then determine how the timber defects are categorized, either as permissible or non-permissible. Nonetheless, human operators in the wood industry are usually tasked with the examination job, but due to tiredness and boredom, in the long run, their performance are usually unsatisfactory. A study had shown that three-quarters of the decision made by human operators are inaccurate, which leads to an absolute yield loss of roughly 16.1% from an overall yield of 63.5% to a lower yield of 47.4% [1]. On the contrary, Automated Vision Inspection (AVI) was being highlighted as one of the solutions to ensure the constant reliability of the product and at the same time cater to the current arising issues which resulted in the loss of the yield due to poor accuracy inspection done by human operators. This study attempts to refine one pattern recognition technique suitable for detecting nine defect types from four wood species, namely Rubberwood, Kembang Semangkuk (KSK), Merbau, and Meranti. Besides that, the study also tries to determine the relevance of using a neural network as a classification model in detecting wood defects. Aside from that, the parameters used for a neural network model could be used as a key reference on other standard classifiers. [https://doi.org/10.26555/ijain.v7i2.588](https://doi.org/10.26555/ijain.v7i2.588) [http://ijain.org](http://ijain.org/index.php/IJAIN/index) [ijain@uad.ac.id](mailto:ijain@uad.ac.id?subject=[IJAIN]) 164 International Journal of Advances in Intelligent Informatics ISSN 2442-6571 _Vol. 7, No. 2, July 2021, pp. 163-176_ In general, wood defect detection can be categorized into two general approaches: the segmentation approach and the non-segmentation approach. The difference in both approaches is in terms of image processing wherein the segmentation approach has a varied mixture of image processing techniques used to identify regions containing timber defects. Meanwhile, in the non-segmented approach, the images are split into non-overlapping rectangular regions regardless of their contents. Under the segmentation approach, a feature extracted from the segmented object will be fed to the classifier for training purposes, and the generation of a classifier model is used in the testing stage. Based on previous studies, several classifiers are used for timber surface defect detection based on segmentation approaches: k-nearest neighbour (KNN), variation of neutral network, fuzzy logic, rule-based classifier, and lastly, the furry min-Max neural network (FMMIS). There was a study done in 2019 which focus on wood defects classification using fusing near-infrared spectroscopy (NIR) based on discriminant partial least squares (DPLS) and backpropagation neural network (BPNN). The result shows that BPNN model exhibited better discrimination accuracy of 92.7% for the training set and 92.0% for the test set [2]. In a separate study, the researcher uses SIFT+KNN and convolution neural network (CNN) models to implement a model that can classify knots and analyze its accuracy. The CNN model showed better performance in knot classification with a maximum accuracy of 88.09% after the 1205 epoch compared to the SIFT+KNN model with an accuracy of up to 60.53% when the k-index was 17 [3]. In addition, research by Kamal _et al._ [4] using gray level co-occurrence matrix-based features with laws texture energy measures based features by taking contrast, correlation, energy, and homogeneity as input parameters to a feed-forward back propagation neural network to predict wood defects. Their work managed to obtain overall average classification accuracy of 90.5%. Besides that, a similar study was done by comparing neural network training speed and classification accuracy in searching for the best neural network models for identifying defects on the wood surface. The researcher found out that the highest overall accuracy of 80.6% was achieved using the ResNet152 pre-trained model, followed by the AlexNet model, which achieved an average accuracy of 80.2% [5]. On the other hand, [6] suggested a study for detecting wood knots based on a transfer residual neural network TL-RESNet-34 that successfully identified knot defects with a 98.69 percent accuracy on decayed knots, dry knots, and other five kinds of wood knots. Apart from that, a study on neural network training algorithms in detecting wood surface defects done by Thilagavathi _et al._ [7] found out that Bayesian regularization training algorithms can achieve an f-score of 94.6% in detecting wood surface defects. It compared to other training algorithms such as levenberg-marquardt, scaled conjugate gradient, gradient descent with adaptive learning rate and resilent backpropagation. Aside from that, there is also a study related to Minimum Distance Classifier (MCD) and wrapper-based method with Bees algorithm with at least 10% improvement in its accuracy performance in the training and test set when the proposed wrapper-based method was used in conjunction with the Bees algorithm to select a subset of features [8]. For the non-segmenting approach, a few classifiers were implemented throughout the research, including chi-square classifier, pairwise classifier, decision tree, Bayesian classifier, and Support Vector Machine (SVM) [9]. One research in the non-segmenting approach uses SVM as a classifier to detect a wood defect and compare the result with other classifiers such as J48, random forest, and KNN classifier. The highest classification rate was achieved by combining GLCM and SVM poly with 81.96% for correct classification rate and 82% for true positive rate [10]. Furthermore, an experimented-based study on solid wood board growth defects and biohazard defects using the depth extreme learning machine model by combining the deep learning feature extraction method and extreme learning machine (ELM) classification method shows that the SVM classifier can obtain a 91.55% accuracy rate [11]. Meanwhile, Sandak _et al._ [12] suggest that the best performance of wood defects discrimination was by using modeling spectra acquired with microNIR spectrometer and SVM classifier. The suggestion had a success rate of 91%. Although the performance of both segmenting and non-segmenting approaches are almost identical, there is a difference of 2.4% accuracy on both classifiers when they were fed with statistics calculated data from amplitude, attenuation, time of flight, and frequency of thermally modified timber (TMT). The result shows that KNN obtained 76% accuracy in detecting crack area of TMT compared to SVM, which only has 73.6% accuracy [13]. In addition, another study showed that the use _Chun et al. (Identification of wood defect using pattern recognition technique)_ ISSN 2442-6571 International Journal of Advances in Intelligent Informatics 165 _Vol. 7, No. 2, July 2021, pp. 163-176_ of Mahalanobis one class classifier (MC), with Fast Minimum Covariance Determinant estimator (MCFMCD) in wood defect detection across four types of timber species and eight various types of wood defects, had an average detection accuracy of 79% [9]. Table 1 shows previous related research that was done on wood defect classification. Hence, motivated by the previous finding on wood defect classification using machine-learning approaches, our research focused on developing a classification model for timber defect classification based on the neural network while determining appropriate parameters for the neural network model in optimizing defect identification performance. Additionally, a classification performance comparison between multiple species and other standard classifiers will also be conducted. Substantial evidence in previous researches showed that ANN is widely used and performed well on other wood-based products. Similarly, we anticipated that the neural network model would perform well on our dataset, which consists of nine types of wood defects across multiple wood species. Table 1. Previous research on wood defect classification <u><mark>Classification</mark></u> <u><mark>References</mark></u> [2], [3], [14], [5], [6], [7], [15], [16], [17], [18], Artificial Neural Network (ANN) [19], [20], [21], [22], [23], [24], [25], [26] Genetic Algorithm [27] Particle Swarm Algorithm [27], [28] k-Nearest Neighbour (KNN) [3], [29], [13] Bees Algorithms (BA) [30], [15] Minimum Distance Classifier (MDC) [30], [29], [15] Support Vector Machine (SVM) [11], [12], [13], [31] Mahalanobis one class classifier (MC) with Fast Minimum [32], [33] Covariance Determinant estimator (MC-FMCD) Affinity Propagation (AP) Clustering [34] Chi-Square [33] Decision Tree [29], [13] Classification and Regression Tree (CART) [35] Random Forest [29], [36], [37] 2. Method The cross-industry standard process for data mining (CRISP-DM) would be research methodology used for the proposed timber defect classification approach, which is potent in identifying multiple defects on multiple timber species using a pattern recognition technique. CRISP-DM is usually implemented as it involves the process model for data mining that outlines the commonly used approaches by data mining experts to tackle problems. This section further discusses the operational framework, which provides an overview of classification approaches used in identifying defects across the multiple timber species using a pattern recognition technique. The operational framework in Fig. 1 shows that the process of identification of timber defect is an extension from the defect detection phase produced using robust Mahalanobis one class classifier (MC) with Fast Minimum Covariance Determinant estimator (MC-FMCD) [33]. The overall process of the operational framework begins with the acquisition of surface images of selected timber, where those images are then converted to greyscale. Then, those greyscale images of the timber surface would be divided into sub-images with 60x60 pixels for the statistical features extraction based on orientation independent GLDM at a later stage. The feature vector would then be used as input for the MC-FMCD classifier, where the classifier would label whether the images are categorized to be a defect or clear wood. The defect images would then require various recognition techniques under the research of this study _Chun et al. (Identification of wood defect using pattern recognition technique)_ 166 International Journal of Advances in Intelligent Informatics ISSN 2442-6571 _Vol. 7, No. 2, July 2021, pp. 163-176_ to identify the nine types of wood defects, namely pocket, knot, split, check, blue stain, brown stain, hole, wane, and rot. Fig. 1. Operational framework 3. Results and Discussion This section aims to identify the appropriate parameters for the neural network model in optimizing defect identification performance, beginning with a comparison between multiple hidden layer types with the multiple numbers of epochs in the neural network classifier across the four types of wood species. Next, the comparison was made between the best performing scenario in a neural network with other standard classifiers such as Naïve Bayes, K-Nearest Neighbour (KNN), and J48 Decision Tree (J48). The classifiers were selected based on their classification strategies, whereby Naïve Bayes is based on class conditional independence (eager learner), KNN is based on proximity/distance (lazy learner), and J48 is based on data categorization (eager learner) [38]. In addition, the detailed classification performance for each dataset was analyzed to reveal the best classifier in identifying the wood defects across the multiple timber species. Finally, a T-test was performed on the top three performers based on a hidden layer type in the neural network classifier across the multiple timber species. Subsequently, the same test was conducted across the hidden layer type throughout the Meranti, Merbau, KSK and Rubberwood datasets. Besides that, we also used the Analysis of variance (ANOVA) to test the classifier's performance between multiple species and other standard classifiers. For this classification experiment, we used cross-validation with 10 folds and 20 repetitions, representing 200 runs for each dataset per classifier. 3.1. Data Preparation and Normalization The samples for timber defect images were obtained from UTeM's database [32], which consisted of four types of wood species (Rubberwood, KSK, Meranti, and Merbau). The datasets are made up of 3091 samples across the four different wood species and nine types of defects: Clear Wood, Pocket, Blue Stain, Brown Stain, Hole, Knots, Split, Wane, and Rot. For better data representation, the timber surface images were converted into greyscale images before they were divided into sub-images with the size of 60x60 pixels. These sub-images statistical features were then extracted based on the orientation _Chun et al. (Identification of wood defect using pattern recognition technique)_ ISSN 2442-6571 International Journal of Advances in Intelligent Informatics 167 _Vol. 7, No. 2, July 2021, pp. 163-176_ independent Grey Level Dependence Matrix (GLDM), which consists of several processes such as performing Equal Probability Quantization (EPQ) and selecting the displacement. Based on [39][32], the feature set with displacement parameter, d<5, and quantization level, q=32 was claimed to be the optimal value as it represents almost similar texture information with other higher quantization values. Finally, the dataset will be going through a normalization process that converts all datasets on the same scale ranging from 0 to 1 to ensure standardized features value weights all implicitly features equally in their representation. 3.2. Neural Network Parameters: Hidden Layer Wildcard and Epochs Artificial Neural Network (ANN) consists of several parameters, such as the number of nodes and epochs. In this study, we manipulated the number of nodes in the neural network classifier followed by the number of epochs searching for the highest F measure across four types of wood species. For the number of nodes in the neural network, we used several types of wildcard values that exist in the machine learning software known as the Waikato Environment for Knowledge Analysis (Weka). In Weka, the wildcard value for the hidden layer types consists of four which are "a", "i", "o", and "t". Each value type represents a different formula to calculate the number of units in the hidden layer. Referring to our Rubberwood, KSK, Meranti, and Merbau datasets, there were a total of 20 attributes with nine classes, which represent nine types of wood defects. Table 2 represents the formula to calculate the number of units based on the hidden layer wildcard types and also the exact number of nodes that we implemented across the experiment based on the hidden layer wildcard values. As for the epoch, in the neural network terminology, one epoch is defined as one forward pass and also one backward pass of all training examples. In Weka, the number of an epoch is represented as "Training Time" under the Multilayer Perceptron parameters. Throughout the experiments, we conducted a training time from a range of 1 epoch to 2000 epoch to find the best F-measure across the multiple wood species. Table 2. Number of nodes based on hidden layer wildcard. <u><mark>Type</mark></u> <u><mark>Definition</mark></u> <u><mark>Number Of Nodes In The Neural Network Classifier</mark></u> a (attributes + classes) / 2 (20+9)/2 = 14 i attributes 20 - classes 9 <u>t</u> <u>attributes + classes</u> <u>29</u> A total of 128 test cases were tested across the hidden layers "a", "i", "o", and "t" with the different number of training times ranging from 1 to 2000. It is expected that higher training time would provide a better result in term of F-measure. 3.3. Rubberwood Fig. 2 illustrates the F-measure for hidden layer "a" classifier increased with the number of epochs throughout the experiments, with some fluctuation in performance after epoch 200. The classification shows the highest F-measure recorded at 0.7780 (epoch 200), while the lowest performance for the neural network classifier was recorded at 0.0403 (epoch 1), where it proves the theory that more training time would increase the F-measure of the neural network. The differences between the highest and lowest F-measure were recorded at 94.8%, which shows an improvement in F-measure across the training time. For hidden layer "i", the highest F-measure was recorded at 0.7749 (epoch 300), and the lowest F-measure was recorded at epoch 1 where the score was valued at 0.0457. As we can see, there is a difference of 94.10% between the highest and lowest F-measure recorded during the experiment. On the other hand, we managed to record the highest F-measure during the epoch of 300 with a score of 0.7507 for hidden layer "o". The difference between the highest F-measure and lowest F-measure recorded based on the training time is 94.4% which is slightly better compared to the hidden layer "i". Finally, hidden layer "t" recorded the lowest F-score at the epoch 1 with a score of 0.0483. In contrast, the highest F-measure was recorded at 0.7839 (epoch 200) with a difference of 93.8% between the highest and the lowest recorded F-measure across the training time, which are also the worst differences being recorded among the four types of hidden layers "a", "i", "o", and "t". _Chun et al. (Identification of wood defect using pattern recognition technique)_ 168 International Journal of Advances in Intelligent Informatics ISSN 2442-6571 _Vol. 7, No. 2, July 2021, pp. 163-176_ Fig. 2. F-measure versus training time across hidden layer "a", "i", "o" and "t" in rubberwood 3.4. KSK For KSK dataset, a line graph was plotted for hidden layer "a" based on the F-measure recorded for each training time as shown in Fig. 3. The highest F-measure was recorded at epoch 500 (F-measure 0.8225) while the lowest F-measure was recorded at epoch 1 (F-measure 0.0430). The F-measure percentage difference recorded by the ANN classifier for the highest and lowest F-measure was at 94.8%. This shows that there is a huge gap between the highest and lowest F-measure recorded. Next, the lowest F-measure was recorded at epoch 1 with the score of 0.0432 for the hidden layer "i". Meanwhile, the highest F-measure was achieved by epoch 400 with the F-measure of 0.8373. There is a massive gap between the highest F-measure and lowest F-measure, with a difference of 94.8% among them. Although there is a huge gap between them, the percentage of difference is identical with the hidden layer "a" which also has a gap of 94.8%. Fig. 3. F-measure versus training time across hidden layer "a", "i", "o" and "t" in KSK In addition, hidden layer "o" shows that epoch 600 managed to score the highest F-measure with a value of 0.7984, followed by the lowest F-measure were recorded at epoch 1 (F-measure 0.0346). The difference between the highest and lowest F-measure is recorded at 95.7%, the highest compared to hidden layer "a" and hidden layer "i" in KSK wood species. Finally, hidden layer "t" recorded the lowest F-measure at epoch 1 with a value of 0.0441. Meanwhile, the highest F-measure was recorded at epoch _Chun et al. (Identification of wood defect using pattern recognition technique)_ ISSN 2442-6571 International Journal of Advances in Intelligent Informatics 169 _Vol. 7, No. 2, July 2021, pp. 163-176_ 400 with a score of 0.8401. For the difference in percentage among the highest and lowest F-measure, the hidden layer "t" managed to obtain a value of 94.8%, which is similar to the percentage difference of hidden layer "a" and hidden layer "i" but lower compared to hidden layer "o" for KSK wood species. 3.5. Meranti Referring to the line graph in Fig. 4, the lowest F-measure for hidden layer "a" was recorded during epoch 1 (F-measure 0.0360), while the highest F-measure was recorded by epoch 400 (F-measure 0.7395. The difference in highest and lowest F-measure recorded throughout the training was at 95.1%, which also shows that training time plays a vital role in ensuring the F-measure of the neural network classifier. Moreover, the training time at epoch 500 for hidden layer "i" managed to achieve the highest F-measure with a score of 0.7431, followed by the lowest F-measure was recorded by epoch 1 with a score of 0.0306. The percentage difference of F-measure among epoch 1, which is the lowest, and epoch 500, which is the highest, is set at 95.9%. In contrast, hidden layer "o" recorded the highest F- measure during epoch 1000 (F-measure 0.7305). Besides that, epoch 1 recorded the lowest F-measure with a score of 0.0295 with a difference of 96.0% between the highest F-measure and lowest F-measure achieved in this hidden layer "o". Lastly, hidden layer "t" achieved the highest F-measure at epoch 400 (F-measure 0.7579), and the lowest F-measure was recorded by epoch 1 (F-measure 0.0317). There is a difference of 95.8% between the highest F-measure and lowest F-measure achieved in this hidden layer "t". Fig. 4. F-measure versus training time across hidden layer "a", "i", "o" and "t" in meranti 3.6. Merbau Fig. 5 shows the neural network classifier performance across multiple epochs in hidden layer "a", "i", "o", and "t". For hidden layer "a", the top highest F-measure were recorded at epoch 2000 (Fmeasure 0.7174), and the lowest F-measure recorded was at epoch 1 (F-measure 0.0466) with a huge gap between the highest F-measure and lowest F-measure at a difference of 93.5%. In hidden layer "i", the lowest F-measure was recorded during epoch 1 (F-measure 0.0520). On the other hand, the highest F-measure was recorded at epoch 2000 (F-measure 0.7329). The highest and lowest F-measure in hidden layer "i" shows a difference of 92.9% where the score of F-measure increased with the number of training time. Nonetheless, the highest F-measure in hidden layer "o" was recorded at epoch 2000 (F-measure 0.6949). Meanwhile, the lowest F-measure was recorded at epoch 1 (F-measure 0.0492). There is a huge gap between the highest and lowest F-measure with the percentage difference of 92.9%, which is similar to the percentage difference of hidden layer "i". Finally, hidden layer "t" recorded highest F-measure at epoch 2000 (F-measure 0.7408), followed by the lowest F-measure was recorded by epoch 1 (F-measure 0.0537). There is a huge gap in F-measure between epoch 2000 and epoch 1 with a 92.8% difference, which proofed that F-measure increased along with the number of training times. In addition, the _Chun et al. (Identification of wood defect using pattern recognition technique)_ 170 International Journal of Advances in Intelligent Informatics ISSN 2442-6571 _Vol. 7, No. 2, July 2021, pp. 163-176_ percentage difference for hidden layer "t" is the lowest among the four hidden layers, with hidden layer "a" scoring the highest percentage of 93.5%. Fig. 5. F-measure versus training time across hidden layer "a", "i", "o" and "t" in merbau 3.7. T-Test on Top Three Performers in Hidden Layer "a", "i", "o" and "t" across Timber Species An independent t-test was conducted to compare the significant difference of classification among the top 3 highest F-measure in four types of hidden layer across the wood species. Thus, the result of the independent t-test across multiple hidden layer and wood species shows that the top three performers in each hidden layer type across the wood species are not statically significant. In other words, this means that to save time and computational cost, the researcher could use the lowest epochs in Table 3 for faster defect detection without compromising on the F-measure. Table 3. T-Test on Top Three Performers in Hidden Layer "a", "i", "o" and "t" across Wood Species Wood <u>Species</u> Rubberwood KSK Meranti Merbau Hidden Layer <u>Type</u> a 200 (0.7780) 300 (0.7773) 400 (0.7757) i 100 (0.7728) 300 (0.7749) 400 (0.7699) Significantly Similar - 300 (0.7507) 400 (0.7501) 500 (0.7503) <u>t</u> <u>200 (0.7839)</u> <u>300 (0.7810)</u> <u>400 (0.7797)</u> a 200 (0.8216) 400 (0.8208) 500 (0.8225) i 300 (0.8372) 400 (0.8373) 600 (0.8353) Significantly Similar - 600 (0.7984) 800 (0.7975) 900 (0.7971) <u>t</u> <u>300 (0.8395)</u> <u>400 (0.8401)</u> <u>1500 (0.8396)</u> a 400 (0.7395) 1000 (0.7377) 1500 (0.7380) i 500 (0.7431) 600 (0.7402) 800 (0.7405) Significantly Similar - 900 (0.7286) 1000 (0.7305) 1500 (0.7278) <u>t</u> <u>400 (0.7579)</u> <u>700 (0.7566)</u> <u>800 (0.7550)</u> a 1000 (0.7082) 1500 (0.7091) 2000 (0.7174) i 1000 (0.7280) 1500 (0.7306) 2000 (0.7329) Significantly Similar - 1000 (0.6866) 1500 (0.6925) 2000 (0.6949) <u>t</u> <u>800 (0.7397)</u> <u>900 (0.7402)</u> <u>2000 (0.7408)</u> _Chun et al. (Identification of wood defect using pattern recognition technique)_ Top Three Performers Training Time Result <u>(F-measure)</u> ISSN 2442-6571 International Journal of Advances in Intelligent Informatics 171 _Vol. 7, No. 2, July 2021, pp. 163-176_ 3.8. Evaluation of classification performance over hidden layer type across multiple wood species In this section, we visually and statically analyzed the performance of the neural network classifier in terms of its hidden layers and also the number of epochs across multiple species of timber. We compared the neural network classifier performance on multiple hidden layers across the multiple wood species, beginning with a comparison of F-measure between hidden layers "a", "i", "o" and "t" with Rubberwood species, followed by KSK, Meranti, and Merbau as shown in Fig. 6. The purpose of the hidden layer analysis is to analyze the performance of the neural network classifier performance for each hidden layer by gathering all the F-measure recorded throughout the experiment, consisting of multiple hidden layers and training times across the wood species. Fig. 6. F-measure versus training time across hidden layer wildcard for (a) rubberwood (b) KSK (c) meranti (d) merbau For rubberwood, we can see the F-measure for every hidden layer increase along with the number of epochs with hidden layer "t" scored the highest F-measure across all four hidden layers. On the contrary, the hidden layer "o" was the worst-performing hidden layer with the least F-measure across the training time. Although hidden layer "t" was the best performing hidden layer, we notice that the hidden layer "i" outperformed the rest of the hidden layers during the epoch 5 to 17. On the other hand, in KSK hidden layer "t" was the top performer among four hidden layers with the highest F-measure, followed by hidden layer "i", hidden layer "a", and lastly, hidden layer "o". Similar with the Rubberwood species, the hidden layer "i" seemed to outperform other hidden layers during epoch 5 to epoch 11. However, hidden layer "o" was still the worst performer among the hidden layer, similar to the Rubberwood species. Next, a further investigation on the hidden layer analysis was performed on the Meranti wood species where hidden layer "o" scored the lowest compared to other hidden layers, followed by hidden layer "i" and hidden layer "a". Apparently, the hidden layer "t" scored the highest among the other hidden layers along with multiple training times with some exceptions where hidden layer "a" managed to outperform others during the epoch 4 with F-measure 0.2676. Lastly, we conducted a hidden layer analysis on the Merbau wood species to find the best performing hidden layer for the neural network classifier. Results show that hidden layer "t" outperformed the other hidden layers, with the highest Fmeasure recorded at 0.7408. The worst performing hidden layer was the hidden layer "o" with the Fmeasure of 0.6949. However, the F-measure of hidden layer "o" managed to outperform other hidden layers during epochs 7 to 13 with an F-measure of 0.4993. _Chun et al. (Identification of wood defect using pattern recognition technique)_ 172 International Journal of Advances in Intelligent Informatics ISSN 2442-6571 _Vol. 7, No. 2, July 2021, pp. 163-176_ Besides that, a comparison was made between the best-performed epochs for each hidden layer across the multiple wood species in search of their significant differences as shown in Table 4. An independent t-test was being performed in Rubberwood species to test the significance of every top performer among the hidden layers with hidden layer "o", which scored the lowest F-measure among the hidden layers, being selected as the baseline schema. The result shows that they are statically similar among all four and we could use hidden layer "a" or "t" with epoch 200 for future research, which consumes less computational power. Similarly, among four hidden layers in the KSK dataset, hidden layer "t" outperformed other hidden layers with an F-measure of 0.8401 with the epoch of 400 and the least performed was hidden layer "o" with an F-measure of 0.7984. An independent t-test for F-measure was performed on the top performer of each hidden layer with hidden layer "o" act as baseline schema. The result shows that the F-measure hidden layer "t" is not statically significant compared to others. While in Meranti, hidden layer "t" scored the highest F-measure with 0.7579 in epoch 400. In order to test the significant difference among the top performers in the hidden layer, we conducted an independent t-test with hidden layer "o", which scored the lowest F-measure, being selected as a baseline. The t-test shows that the baseline F-measure is statically similar to the F-measure of hidden layer "t", which scored 0.7579 at epoch 400. Lastly, for Merbau dataset, hidden layer "t" scored the highest F-measure with 0.7408, with the worst-performing hidden layer was hidden layer "o" scoring an F-measure of 0.6949. The t-test result with hidden layer "o" act as baseline shows that performance improvement in F-measure compared to other hidden layers are not statically significant. Since all four top-performing hidden layers in Merbau achieved their highest F-measure at epoch 2000, we could conclude that selecting either hidden layer would be the same without affecting the defect detection accuracy. Table 4. Top f-measure performer based on hidden layer wildcard across the wood species <u><mark>Wood Species</mark></u> <u><mark>Hidden Layer Type</mark></u> <u><mark>Training Time</mark></u> <u><mark>F-measure</mark></u> <u><mark>Result</mark></u> - 300 0.7507 Rubberwood KSK Meranti Merbau a 200 0.7780 Significantly Similar i 300 0.7749 <u>t</u> <u>200</u> <u>0.7839</u> - 600 0.7984 a 500 0.8225 Significantly Similar i 400 0.8373 <u>t</u> <u>400</u> <u>0.8401</u> - 1000 0.7305 a 400 0.7395 Significantly Similar i 500 0.7431 <u>t</u> <u>400</u> <u>0.7579</u> - 2000 0.6949 a 2000 0.7174 Significantly Similar i 2000 0.7329 <u>t</u> <u>2000</u> <u>0.7408</u> 3.9. Evaluation of classification performance over hidden layer type across multiple wood species Hence, this section focused on the comparison between the top performing neural network classifier and other standard classifiers such as Naïve Bayes, KNN and J48 Decision tree across the multiple wood species. In addition, the Naïve Bayes, KNN and J48 Decision tree classifiers would be using the default parameter set by Weka. Fig. 7 shows the classification performance of the proposed classifiers (Multilayer Perceptron, Naïve Bayes, KNN and J48 decision tree). The neural network classifier seems to be outperforming other standard classifiers with a minimum performance increase of approximately 2.72% considering the minor gap between the ANN classifier and J48 classifier in Rubberwood species. Besides that, the highest performance increment in the neural network classifier was noticed in the Merbau wood species where there is approximately 25.19% in difference compared to other standard classifiers. Among the four classifiers compared, the Naïve Bayes classifier was the worst performing classifier in identifying the F-measure across the multiple wood species. Meanwhile, KNN and J48 Decision Tree _Chun et al. (Identification of wood defect using pattern recognition technique)_ ISSN 2442-6571 International Journal of Advances in Intelligent Informatics 173 _Vol. 7, No. 2, July 2021, pp. 163-176_ classifiers had an average performance, with some having a better F-measure in certain wood species and vice versa. Fig. 7. Classifiers performance on multiple timber species An independent analysis of variance (ANOVA) was conducted to compare the significant difference of classification F-measure across the multiple wood species. The one-way ANOVA is usually used to determine if there are statically significant differences between the mean of three or more unrelated groups. Based on Table 5, the neural network classifier was tested with other standard classifiers in a one-way ANOVA test to find the statistically significant F-measure differences between the independent groups. The results prove that F-measure performance of the neural network classifier are statistically significantly better compared with other standard classifiers across the multiple wood species. In addition, it also means that we accept the alternative hypothesis (HA), which proves that there are at least two group means that are statistically significantly different from each other. Table 5. Anova test result <u><mark>Timber Species</mark></u> <u><mark>Anova F-Statistic</mark></u> <u><mark>Sig</mark></u> Rubberwood 23.355 .000 KSK 251.745 .000 Meranti 70.302 .000 <u>Merbau</u> <u>120.665</u> <u>.000</u> 4. Conclusion This research proposed a classification model for timber defect classification based on neural network, determining appropriate parameters for a neural network model in optimizing defect identification performance and comparing the classification performance between multiple wood species and other standard classifiers. The proposed neural network has outperformed the other standard classifiers in Fmeasure across the multiple timber species. The neural network classifier is better than other standard classifiers with an F-measure of 0.8401. It can be seen that there is an increment in the neural network classifier performance with at least 2.72% to a maximum of 25.19% compared to other standard classifier performances among the multiple timber species. This also proves that the neural network classifier can handle the imbalanced datasets without affecting their performance. Furthermore, we also tested the performance of the neural network by manipulating the number of nodes in a hidden layer using the wildcard values set by the Waikato Environment for Knowledge Analysis (Weka) such as "a", "i", "o" _Chun et al. (Identification of wood defect using pattern recognition technique)_ 174 International Journal of Advances in Intelligent Informatics ISSN 2442-6571 _Vol. 7, No. 2, July 2021, pp. 163-176_ and "t". Each hidden layer wildcard value represents a different number of nodes existing in a hidden layer, with hidden layer "t" showing the best performance in both hidden layer wildcards and also across the multiple timber species. The higher performance in hidden layer "t" is due to the higher number of nodes used in the hidden layer than the other hidden layer wildcards. Thus, it is important to note that the number of nodes in a hidden layer plays an important role in determining the performance of the neural network classifier. In addition, the performance of the neural network classifier was tested with multiple numbers of Epochs (training time) across the multiple hidden layers and timber species. Throughout the experiment, every hidden layer and wood species were tested with a number of epochs ranging from 1 to 2000, and our results show that the neural network classifier performed the best during epochs 200 to 600 by having the highest F-measure across the hidden layer wildcard and multiple timber species except for the Merbau species which had the highest F-measure during epoch 2000. Although the highest F-measure was achieved during epoch 2000 in the Merbau species, we can conclude that the performance of the neural network classifier (F-measure) is not directly proportional to the number of epochs. To conclude, although the findings of this study are encouraging, there is still a lot of work to be done in the areas of timber defect detection, especially in finding the appropriate parameters for the neural network model to improve the defect detection performance. In this study, the search in optimizing defect identification performance is limited to the number of nodes in a hidden layer and the number of epochs in the neural network classifier. In order to improve the performance across multiple wood species, we suggest extending other parameters such as the number of hidden layers and the neural network classifier's learning rate. Finally, the neural network classifier could potentially identify wood defects in the wood manufacturing industry. Acknowledgment This research is supported by UniversitiTeknikal Malaysia Melaka (UTeM). Declarations Author contribution. All authors contributed equally to the main contributor to this paper. All authors read and approved the final paper. Funding Statement. None of the authors have received any funding or grants from any institution or funding body for the research. Conflict of interest. The authors declare no conflict of interest. Additional information. No additional information is available for this paper. References [1] U. Buehlmann and R. Edward Thomas, "Impact of human error on lumber yield in rough mills," _Robot._ _Comput. Integr. Manuf._ [, vol. 18, no. 3–4, pp. 197–203, Jun. 2002, doi: 10.1016/S0736-5845(02)00010-8.](https://doi.org/10.1016/S0736-5845%0x2802%0x2900010-8) [2] H. Yu, Y. Liang, H. Liang, and Y. Zhang, "Recognition of wood surface defects with near infrared spectroscopy and machine vision," _J. For. Res._, vol. 30, no. 6, pp. 2379–2386, Dec. 2019, doi: [10.1007/s11676-018-00874-w.](https://doi.org/10.1007/s11676-018-00874-w) [3] H. Kim _et al._, "Visual Classification of Wood Knots Using k-Nearest Neighbor and Convolutional Neural Network," _J. Korean Wood Sci. Technol._ [, vol. 47, no. 2, pp. 229–238, 2019. Available at: Google Scholar.](https://scholar.google.co.id/scholar?hl=id&as_sdt=0%2C5&q=H.+Kim+et+al.%2C+%22Visual+Classification+of+Wood+Knots+Using+k-Nearest+Neighbor+and+Convolutional+Neural+Network%2C%22+J.+Korean+Wood+Sci.+Technol.%2C+vol.+47%2C+no.+2%2C+pp.+229-238%2C+2019.&btnG=) [4] K. Kamal, R. Qayyum, S. Mathavan, and T. Zafar, "Wood defects classification using laws texture energy measures and supervised learning approach," _Adv. Eng. Informatics_, vol. 34, pp. 125–135, 2017, doi: [10.1016/j.aei.2017.09.007.](https://doi.org/10.1016/j.aei.2017.09.007) [5] A. Urbonas, V. Raudonis, R. Maskeliūnas, and R. Damaševičius, "Automated Identification of Wood Veneer Surface Defects Using Faster Region-Based Convolutional Neural Network with Data Augmentation and Transfer Learning," _Appl. Sci._ [, vol. 9, no. 22, p. 4898, Nov. 2019, doi: 10.3390/app9224898.](https://doi.org/10.3390/app9224898) [6] M. Gao, D. Qi, H. Mu, and J. Chen, "A Transfer Residual Neural Network Based on ResNet-34 for Detection of Wood Knot Defects," _Forests_ [, vol. 12, no. 2, p. 212, Feb. 2021, doi: 10.3390/f12020212.](https://doi.org/10.3390/f12020212) _Chun et al. (Identification of wood defect using pattern recognition technique)_ ISSN 2442-6571 International Journal of Advances in Intelligent Informatics 175 _Vol. 7, No. 2, July 2021, pp. 163-176_ [7] M. Thilagavathi and S. Abirami, "Study of Neural Network Training Algorithms in Detection of Wood Surface Defects," _Int. J. Autom. Smart Technol._, vol. 9, no. 3, pp. 107–113, 2019, doi: [10.5875/ausmt.v9i3.1924.](https://www.ausmt.org/index.php/AUSMT/article/view/1924) [8] M. S. Packianather and B. Kapoor, "A wrapper-based feature selection approach using Bees Algorithm for a wood defect classification system," _2015 10th Syst. Syst. Eng. Conf. SoSE 2015_, pp. 498–503, 2015, doi: [10.1109/SYSOSE.2015.7151902.](https://doi.org/10.1109/SYSOSE.2015.7151902) [9] U. R. Hashim, S. Z. Hashim, and A. K. Muda, "Image Collection for Non-Segmenting Approach of Timber Surface Defect Detection," _Int. J. Adv. Soft Comput. Its Appl._, vol. 7, no. 1, pp. 15–34, 2015. Available at: [Google Scholar.](https://scholar.google.co.id/scholar?hl=id&as_sdt=0%2C5&q=Image+Collection+for+Non-Segmenting+Approach+of+Timber+Surface+Defect+Detection%2C%22+Int.+J.+Adv.+Soft+Comput.+Its+Appl.%2C+vol.+7%2C+no.+1%2C+pp.+15-34%2C+2015.++hnol.%2C+vol.+9%2C+no.+3%2C+pp.+&btnG=) [10] H. L. Tong, H. Ng, T. V. T. Yap, W. Ahmad, and M. F. A. Fauzi, "Evaluation of feature extraction and selection techniques for the classification of wood defect images," _J. Eng. Appl. Sci_, vol. 12, no. 3, pp. 602– [608, 2017. Available at: Google Scholar.](https://scholar.google.co.id/scholar?hl=id&as_sdt=0%2C5&q=%22Evaluation+of+feature+extraction+and+selection+techniques+for+the+classification+of+wood+defect+images%2C%22+J.+Eng.+Appl.+Sci%2C+vol.+12%2C+no.+3%2C+pp.+602-608%2C+2017.&btnG=) [11] Y. Yang, X. Zhou, Y. Liu, Z. Hu, and F. Ding, "Wood Defect Detection Based on Depth Extreme Learning Machine," _Appl. Sci._ [, vol. 10, no. 21, p. 7488, Oct. 2020, doi: 10.3390/app10217488.](https://doi.org/10.3390/app10217488) [12] J. Sandak, A. Sandak, A. Zitek, B. Hintestoisser, and G. Picchi, "Development of Low-Cost Portable Spectrometers for Detection of Wood Defects," _Sensors_, vol. 20, no. 2, p. 545, Jan. 2020, doi: [10.3390/s20020545.](https://doi.org/10.3390/s20020545) [13] M. Tiitta, V. Tiitta, M. Gaal, J. Heikkinen, R. Lappalainen, and L. Tomppo, "Air-coupled ultrasound detection of natural defects in wood using ferroelectret and piezoelectric sensors," _Wood Sci. Technol._, vol. [54, no. 4, pp. 1051–1064, Jul. 2020, doi: 10.1007/s00226-020-01189-y.](https://doi.org/10.1007/s00226-020-01189-y) [14] K. Kamal, R. Qayyum, S. Mathavan, and T. Zafar, "Wood defects classification using laws texture energy measures and supervised learning approach," _Adv. Eng. Informatics_, vol. 34, pp. 125–135, Oct. 2017, doi: [10.1016/j.aei.2017.09.007.](https://doi.org/10.1016/j.aei.2017.09.007) [15] D. T. Pham, A. J. Soroka, A. Ghanbarzadeh, E. Koc, S. Otri, and M. Packianather, "Optimising neural networks for identification of wood defects using the bees algorithm," in _2006 IEEE International Conference_ _on Industrial Informatics, INDIN'06_ [, 2007, pp. 1346–1351, doi: 10.1109/INDIN.2006.275855.](https://doi.org/10.1109/INDIN.2006.275855) [16] T. He, Y. Liu, C. Xu, X. Zhou, Z. Hu, and J. Fan, "A fully convolutional neural network for wood defect location and identification," _IEEE_ _Access_, vol. 7, pp. 123453–123462, 2019, doi: [10.1109/ACCESS.2019.2937461.](https://doi.org/10.1109/ACCESS.2019.2937461) [17] N. Chen, X. Men, C. Hua, X. Wang, X. Han, and H. Chen, "Research on edge defects image recognition technology based on artificial neural network," _Proc. 13th IEEE Conf. Ind. Electron. Appl. ICIEA 2018_, pp. [1929–1933, 2018, doi: 10.1109/ICIEA.2018.8398024.](https://doi.org/10.1109/ICIEA.2018.8398024) [18] S. Y. Jung, Y. H. Tsai, W. Y. Chiu, J.-S. S. Hu, and C.-T. T. Sun, "Defect detection on randomly textured surfaces by convolutional neural networks," in _IEEE/ASME International Conference on Advanced Intelligent_ _Mechatronics, AIM_ [, 2018, vol. 2018-July, pp. 1456–1461, doi: 10.1109/AIM.2018.8452361.](https://doi.org/10.1109/AIM.2018.8452361) [19] C.-C. Huang and X.-P. Lin, "Study on machine learning based intelligent defect detection system," in _MATEC Web of Conferences_ [, 2018, vol. 201, p. 1010, doi: 10.1051/matecconf/201820101010.](https://doi.org/10.1051/matecconf/201820101010) [20] K. Hu, B. Wang, Y. Shen, J. Guan, and Y. Cai, "Defect identification method for poplar veneer based on progressive growing generated adversarial network and MASK R-CNN Model," _BioResources_, vol. 15, no. 2, [pp. 3041–3052, 2020, doi: 10.15376/biores.15.2.3041-3052.](https://doi.org/10.15376/biores.15.2.3041-3052) [21] T.-W. W. Tang, W.-H. H. Kuo, J.-H. H. Lan, C.-F. F. Ding, H. Hsu, and H.-T. T. Young, "Anomaly detection neural network with dual auto-encoders GAN and its industrial inspection applications," _Sensors_, [vol. 20, no. 12, p. 3336, 2020, doi: 10.3390/s20123336.](https://doi.org/10.3390/s20123336) [22] T. He, Y. Liu, Y. Yu, Q. Zhao, and Z. Hu, "Application of deep convolutional neural network on feature extraction and detection of wood defects," _Measurement_, vol. 152, p. 107357, 2020, doi: [10.1016/j.measurement.2019.107357.](https://doi.org/10.1016/j.measurement.2019.107357) [23] J. Shi, Z. Li, T. Zhu, D. Wang, and C. Ni, "Defect detection of industry wood veneer based on NAS and multi-channel mask R-CNN," _Sensors_ [, vol. 20, no. 16, p. 4398, 2020, doi: 10.3390/s20164398.](https://doi.org/10.3390/s20164398) _Chun et al. (Identification of wood defect using pattern recognition technique)_ 176 International Journal of Advances in Intelligent Informatics ISSN 2442-6571 _Vol. 7, No. 2, July 2021, pp. 163-176_ [24] X. Ji, H. Guo, and M. Hu, "Features extraction and classification of wood defect based on HU invariant moment and wavelet moment and BP neural network," _ACM Int. Conf. Proceeding Ser._, 2019, doi: [10.1145/3356422.3356459.](https://doi.org/10.1145/3356422.3356459) [25] A. Paulauskaite-Taraseviciene, K. Sutiene, and L. Pipiras, "Wooden dowels classification using convolutional neural network," _Proc. Rom. Acad. Ser. A-Mathematics Phys. Tech. Sci. Inf. Sci._, vol. 20, no. 4, [pp. 401–408, 2019. Available at: Google Scholar.](https://scholar.google.co.id/scholar?hl=id&as_sdt=0%2C5&q=%22Wooden+dowels+classification+using+convolutional+neural+network%2C%22+&btnG=) [26] Y. Huang, C. Qiu, X. Wang, S. Wang, and K. Yuan, "A compact convolutional neural network for surface defect inspection," _Sensors (Switzerland)_ [, vol. 20, no. 7, pp. 1–19, 2020, doi: 10.3390/s20071974.](https://doi.org/10.3390/s20071974) [27] Z.-N. N. Ke, Q.-J. J. Zhao, C.-H. H. Huang, P. Ai, and J.-G. G. Yi, "Detection of wood surface defects based on particle swarm-genetic hybrid algorithm," in _2016 International Conference on Audio, Language and_ _Image Processing (ICALIP)_ [, 2016, pp. 375–379, doi: 10.1109/ICALIP.2016.7846635.](https://doi.org/10.1109/ICALIP.2016.7846635) [28] Y. Li, H. Feng, X. Du, and Y. Fang, "Using PT-Kriging Method for Stress Wave Three Dimensional Imaging of Wood Internal Defects," in _2017 International Conference on Computer Technology, Electronics_ _and Communication (ICCTEC)_ [, 2017, pp. 671–675, doi: 10.1109/ICCTEC.2017.00150.](https://doi.org/10.1109/ICCTEC.2017.00150) [29] T. Hau Lee, N. Hu, T. Y. Tzen Vun, W. A. Wan Siti Halimatul Munirah, and A. F. Mohammad Faizal, "Evaluation of feature extraction and selection techniques for the classification of wood defect images," _J._ _Eng. Appl. Sci._ [, vol. 12, pp. 602–608, 2017. Available at: Google Scholar.](https://scholar.google.co.id/scholar?hl=id&as_sdt=0%2C5&q=%22Evaluation+of+feature+extraction+and+selection+techniques+for+the+classification+of+wood+defect+images%2C%22+J.+Eng.+Appl.+Sci.%2C+vol.+12%2C+pp.+602-608%2C+2017.&btnG=) [30] M. S. Packianather and B. Kapoor, "A wrapper-based feature selection approach using Bees Algorithm for a wood defect classification system," in _2015 10th System of Systems Engineering Conference (SoSE)_, 2015, pp. [498–503, doi: 10.1109/SYSOSE.2015.7151902.](https://doi.org/10.1109/SYSOSE.2015.7151902) [31] A. K. Patel, V. N. Mandhala, D. K. Anguraj, and S. R. Nayak, "Surface defect detection using SVM‐based machine vision system with optimized feature," _Mach. Vis. Insp. Syst. Vol. 2 Mach. Learn. Approaches_, pp. [109–127, 2021. doi: 10.1002/9781119786122.ch6](https://doi.org/10.1002/9781119786122.ch6) [32] U. R. Hashim, S. Z. Hashim, and A. K. Muda, "Image collection for non-segmenting approach of timber surface defect detection," _Int. J. Adv. Soft Comput. its Appl._, vol. 7, no. 1, pp. 15–34, 2015. Available at: [Google Scholar.](https://scholar.google.co.id/scholar?hl=id&as_sdt=0%2C5&q=U.+R.+Hashim%2C+S.+Z.+Hashim%2C+and+A.+K.+Muda%2C+%22Image+collection+for+non-segmenting+approach+of+timber+surface+defect+detection%2C%22+Int.+J.+Adv.+Soft+Comput.+its+Appl.%2C+vol.+7%2C+no.+1%2C+pp.+15-34%2C+2015.&btnG=) [33] U. R. ah Hashim, S. Z. M. Hashim, A. K. Muda, K. Kanchymalay, I. E. A. Jalil, and M. H. Othman, "Single class classifier using FMCD based non-metric distance for timber defect detection," _Int. J. Adv. Soft Comput._ _its Appl._ [, vol. 9, no. 3, pp. 199–216, 2017. doi: 10.26555/ijain.v3i2.94](https://doi.org/10.26555/ijain.v3i2.94) [34] D. Wu and N. Ye, "Wood defect recognition based on affinity propagation clustering," in _2010 Chinese_ _Conference on Pattern Recognition (CCPR)_ [, 2010, vol. 96, no. 5, pp. 1–5. doi: 10.1109/CCPR.2010.5659314](https://doi.org/10.1109/CCPR.2010.5659314) [35] Z. Chang, J. Cao, and Y. Zhang, "A novel image segmentation approach for wood plate surface defect classification through convex optimization," _J. For. Res._, vol. 29, no. 6, pp. 1789–1795, 2018, doi: [10.1007/s11676-017-0572-7. doi: 10.1007/s11676-017-0572-7](https://doi.org/10.1007/s11676-017-0572-7) [36] V. T. Nguyen, T. Constant, B. Kerautret, I. Debled-Rennesson, and F. Colin, "A machine-learning approach for classifying defects on tree trunks using terrestrial LiDAR," _Comput. Electron. Agric._, vol. 171, [no. February, 2020, doi: 10.1016/j.compag.2020.105332.](https://doi.org/10.1016/j.compag.2020.105332) [37] T. Pahlberg, M. Thurley, D. Popovic, and O. Hagman, "Crack detection in oak flooring lamellae using ultrasound-excited thermography," _Infrared Phys. Technol._, vol. 88, pp. 57–69, 2018, doi: [10.1016/j.infrared.2017.11.007.](https://doi.org/10.1016/j.infrared.2017.11.007) [38] D. D. Bhavani, A. Vasavi, and P. T. Keshava, "Machine learning: a critical review of classification tehnique," _Int. J. Adv. Res. Comput. Commun. Eng._ [, vol. 3, no. 11, pp. 17–23, 2014, doi: 10.17148/ijarcce.](https://doi.org/10.17148/IJARCCE) [39] N. D. Abdullah, U. R. Hashim, S. Ahmad, and L. Salahuddin, "Analysis of texture features for wood defect classification," _Bull. Electr. Eng. Informatics_ [, vol. 9, no. 1, pp. 121–128, 2020, doi: 10.11591/eei.v9i1.1553.](https://doi.org/10.11591/eei.v9i1.1553) _Chun et al. (Identification of wood defect using pattern recognition technique)_

섹션 본문 19문단 · 32,665자

(제목 없음)

1IntroductionBefore introducing AVI in the wood industry, a normal inspection process would require human operators to visually inspect the timber to locate and identify the timber defects. The interpretation of the human operator on the timber defects would then determine how the timber defects are categorized, either as permissible or non-permissible. Nonetheless, human operators in the wood industry are usually tasked with the examination job, but due to tiredness and boredom, in the long run, their performance are usually unsatisfactory. A study had shown that three-quarters of the decision made by human operators are inaccurate, which leads to an absolute yield loss of roughly 16.1% from an overall yield of 63.5% to a lower yield of 47.4% [1]. On the contrary, Automated Vision Inspection (AVI) was being highlighted as one of the solutions to ensure the constant reliability of the product and at the same time cater to the current arising issues which resulted in the loss of the yield due to poor accuracy inspection done by human operators. This study attempts to refine one pattern recognition technique suitable for detecting nine defect types from four wood species, namely Rubberwood, Kembang Semangkuk (KSK), Merbau, and Meranti. Besides that, the study also tries to determine the relevance of using a neural network as a classification model in detecting wood defects. Aside from that, the parameters used for a neural network model could be used as a key reference on other standard classifiers.This study proposed a classification model for timber defect classification based on an artificial neural network (ANN). Besides that, the research also focuses on determining the appropriate parameters for the neural network model in optimizing the defect identification performance, such as the number of hidden layers nodes and the number of epochs in the neural network. The neural network's performance is compared with other standard classifiers such as Naïve Bayes, K-Nearest Neighbours, and J48 Decision Tree in finding their significant differences across the multiple timber species. The classifier's performance is measured based on the Fmeasure due to the imbalanced dataset of the timber species. The experimental results show that the proposed classification model based on the neural network outperforms the other standard classifiers in detecting many types of defects across multiple timber species with an F-measure of 84.01%. This research demonstrates that ANN can accurately classify the defects across multiple species while defining appropriate parameters (hidden layers and epochs) for the neural network model in optimizing defect identification performance.This is an open access article under the CC-BY-SA license.In general, wood defect detection can be categorized into two general approaches: the segmentation approach and the non-segmentation approach. The difference in both approaches is in terms of image processing wherein the segmentation approach has a varied mixture of image processing techniques used to identify regions containing timber defects. Meanwhile, in the non-segmented approach, the images are split into non-overlapping rectangular regions regardless of their contents. Under the segmentation approach, a feature extracted from the segmented object will be fed to the classifier for training purposes, and the generation of a classifier model is used in the testing stage. Based on previous studies, several classifiers are used for timber surface defect detection based on segmentation approaches: k-nearest neighbour (KNN), variation of neutral network, fuzzy logic, rule-based classifier, and lastly, the furry min-Max neural network (FMMIS). There was a study done in 2019 which focus on wood defects classification using fusing near-infrared spectroscopy (NIR) based on discriminant partial least squares (DPLS) and backpropagation neural network (BPNN). The result shows that BPNN model exhibited better discrimination accuracy of 92.7% for the training set and 92.0% for the test set[2]. In a separate study, the researcher uses SIFT+KNN and convolution neural network (CNN) models to implement a model that can classify knots and analyze its accuracy. The CNN model showed better performance in knot classification with a maximum accuracy of 88.09% after the 1205 epoch compared to the SIFT+KNN model with an accuracy of up to 60.53% when the k-index was 17[3].

2In addition, research by Kamal et al. [4] using gray level co-occurrence matrix-based features with laws texture energy measures based features by taking contrast, correlation, energy, and homogeneity as input parameters to a feed-forward back propagation neural network to predict wood defects. Their work managed to obtain overall average classification accuracy of 90.5%. Besides that, a similar study was done by comparing neural network training speed and classification accuracy in searching for the best neural network models for identifying defects on the wood surface. The researcher found out that the highest overall accuracy of 80.6% was achieved using the ResNet152 pre-trained model, followed by the AlexNet model, which achieved an average accuracy of 80.2% [5]. On the other hand, [6] suggested a study for detecting wood knots based on a transfer residual neural network TL-RESNet-34 that successfully identified knot defects with a 98.69 percent accuracy on decayed knots, dry knots, and other five kinds of wood knots. Apart from that, a study on neural network training algorithms in detecting wood surface defects done by Thilagavathi et al. [7] found out that Bayesian regularization training algorithms can achieve an f-score of 94.6% in detecting wood surface defects. It compared to other training algorithms such as levenberg-marquardt, scaled conjugate gradient, gradient descent with adaptive learning rate and resilent backpropagation. Aside from that, there is also a study related to Minimum Distance Classifier (MCD) and wrapper-based method with Bees algorithm with at least 10% improvement in its accuracy performance in the training and test set when the proposed wrapper-based method was used in conjunction with the Bees algorithm to select a subset of features [8].

3For the non-segmenting approach, a few classifiers were implemented throughout the research, including chi-square classifier, pairwise classifier, decision tree, Bayesian classifier, and Support Vector Machine (SVM) [9]. One research in the non-segmenting approach uses SVM as a classifier to detect a wood defect and compare the result with other classifiers such as J48, random forest, and KNN classifier. The highest classification rate was achieved by combining GLCM and SVM poly with 81.96% for correct classification rate and 82% for true positive rate [10]. Furthermore, an experimented-based study on solid wood board growth defects and biohazard defects using the depth extreme learning machine model by combining the deep learning feature extraction method and extreme learning machine (ELM) classification method shows that the SVM classifier can obtain a 91.55% accuracy rate [11]. Meanwhile, Sandak et al. [12] suggest that the best performance of wood defects discrimination was by using modeling spectra acquired with microNIR spectrometer and SVM classifier. The suggestion had a success rate of 91%. Although the performance of both segmenting and non-segmenting approaches are almost identical, there is a difference of 2.4% accuracy on both classifiers when they were fed with statistics calculated data from amplitude, attenuation, time of flight, and frequency of thermally modified timber (TMT). The result shows that KNN obtained 76% accuracy in detecting crack area of TMT compared to SVM, which only has 73.6% accuracy [13]. In addition, another study showed that the use of Mahalanobis one class classifier (MC), with Fast Minimum Covariance Determinant estimator (MC-FMCD) in wood defect detection across four types of timber species and eight various types of wood defects, had an average detection accuracy of 79% [9]. Table 1 shows previous related research that was done on wood defect classification.

4Hence, motivated by the previous finding on wood defect classification using machine-learning approaches, our research focused on developing a classification model for timber defect classification based on the neural network while determining appropriate parameters for the neural network model in optimizing defect identification performance. Additionally, a classification performance comparison between multiple species and other standard classifiers will also be conducted. Substantial evidence in previous researches showed that ANN is widely used and performed well on other wood-based products. Similarly, we anticipated that the neural network model would perform well on our dataset, which consists of nine types of wood defects across multiple wood species.

Classification References

5Artificial Neural Network (ANN) [2], [3], [14], [5], [6], [7], [15], [16], [17], [18], [19], [20], [21], [22], [23], [24], [25], [26] Genetic Algorithm [27] Particle Swarm Algorithm [27], [28] k-Nearest Neighbour (KNN) [3], [29], [13] Bees Algorithms (BA) [30], [15] Minimum Distance Classifier (MDC) [30], [29], [15] Support Vector Machine (SVM) [11], [12], [13], [31] Mahalanobis one class classifier (MC) with Fast Minimum Covariance Determinant estimator (MC-FMCD) [32], [33] Affinity Propagation (AP) Clustering [34] Chi-Square [33] Decision Tree [29], [13] Classification and Regression Tree (CART) [35] Random Forest [29], [36], [37]

Method

6The cross-industry standard process for data mining (CRISP-DM) would be research methodology used for the proposed timber defect classification approach, which is potent in identifying multiple defects on multiple timber species using a pattern recognition technique. CRISP-DM is usually implemented as it involves the process model for data mining that outlines the commonly used approaches by data mining experts to tackle problems. This section further discusses the operational framework, which provides an overview of classification approaches used in identifying defects across the multiple timber species using a pattern recognition technique.

7The operational framework in Fig. 1 shows that the process of identification of timber defect is an extension from the defect detection phase produced using robust Mahalanobis one class classifier (MC) with Fast Minimum Covariance Determinant estimator (MC-FMCD) [33]. The overall process of the operational framework begins with the acquisition of surface images of selected timber, where those images are then converted to greyscale. Then, those greyscale images of the timber surface would be divided into sub-images with 60x60 pixels for the statistical features extraction based on orientation independent GLDM at a later stage. The feature vector would then be used as input for the MC-FMCD classifier, where the classifier would label whether the images are categorized to be a defect or clear wood. The defect images would then require various recognition techniques under the research of this study International Journal of Advances in Intelligent Informatics ISSN 2442-6571 Vol. 7, No. 2, July 2021, pp. 163-176 to identify the nine types of wood defects, namely pocket, knot, split, check, blue stain, brown stain, hole, wane, and rot.

Results and Discussion

8This section aims to identify the appropriate parameters for the neural network model in optimizing defect identification performance, beginning with a comparison between multiple hidden layer types with the multiple numbers of epochs in the neural network classifier across the four types of wood species. Next, the comparison was made between the best performing scenario in a neural network with other standard classifiers such as Naïve Bayes, K-Nearest Neighbour (KNN), and J48 Decision Tree (J48). The classifiers were selected based on their classification strategies, whereby Naïve Bayes is based on class conditional independence (eager learner), KNN is based on proximity/distance (lazy learner), and J48 is based on data categorization (eager learner) [38]. In addition, the detailed classification performance for each dataset was analyzed to reveal the best classifier in identifying the wood defects across the multiple timber species. Finally, a T-test was performed on the top three performers based on a hidden layer type in the neural network classifier across the multiple timber species. Subsequently, the same test was conducted across the hidden layer type throughout the Meranti, Merbau, KSK and Rubberwood datasets. Besides that, we also used the Analysis of variance (ANOVA) to test the classifier's performance between multiple species and other standard classifiers. For this classification experiment, we used cross-validation with 10 folds and 20 repetitions, representing 200 runs for each dataset per classifier.

Data Preparation and Normalization

9The samples for timber defect images were obtained from UTeM's database [32], which consisted of four types of wood species (Rubberwood, KSK, Meranti, and Merbau). The datasets are made up of 3091 samples across the four different wood species and nine types of defects: Clear Wood, Pocket, Blue Stain, Brown Stain, Hole, Knots, Split, Wane, and Rot. For better data representation, the timber surface images were converted into greyscale images before they were divided into sub-images with the size of 60x60 pixels. These sub-images statistical features were then extracted based on the orientation independent Grey Level Dependence Matrix (GLDM), which consists of several processes such as performing Equal Probability Quantization (EPQ) and selecting the displacement. Based on [39] [32], the feature set with displacement parameter, d<5, and quantization level, q=32 was claimed to be the optimal value as it represents almost similar texture information with other higher quantization values. Finally, the dataset will be going through a normalization process that converts all datasets on the same scale ranging from 0 to 1 to ensure standardized features value weights all implicitly features equally in their representation.

Neural Network Parameters: Hidden Layer Wildcard and Epochs

10Artificial Neural Network (ANN) consists of several parameters, such as the number of nodes and epochs. In this study, we manipulated the number of nodes in the neural network classifier followed by the number of epochs searching for the highest F measure across four types of wood species. For the number of nodes in the neural network, we used several types of wildcard values that exist in the machine learning software known as the Waikato Environment for Knowledge Analysis (Weka). In Weka, the wildcard value for the hidden layer types consists of four which are "a", "i", "o", and "t". Each value type represents a different formula to calculate the number of units in the hidden layer. Referring to our Rubberwood, KSK, Meranti, and Merbau datasets, there were a total of 20 attributes with nine classes, which represent nine types of wood defects. Table 2 A total of 128 test cases were tested across the hidden layers "a", "i", "o", and "t" with the different number of training times ranging from 1 to 2000. It is expected that higher training time would provide a better result in term of F-measure. Fig. 2 illustrates the F-measure for hidden layer "a" classifier increased with the number of epochs throughout the experiments, with some fluctuation in performance after epoch 200. The classification shows the highest F-measure recorded at 0.7780 (epoch 200), while the lowest performance for the neural network classifier was recorded at 0.0403 (epoch 1), where it proves the theory that more training time would increase the F-measure of the neural network. The differences between the highest and lowest F-measure were recorded at 94.8%, which shows an improvement in F-measure across the training time. For hidden layer "i", the highest F-measure was recorded at 0.7749 (epoch 300), and the lowest F-measure was recorded at epoch 1 where the score was valued at 0.0457. As we can see, there is a difference of 94.10% between the highest and lowest F-measure recorded during the experiment. On the other hand, we managed to record the highest F-measure during the epoch of 300 with a score of 0.7507 for hidden layer "o". The difference between the highest F-measure and lowest F-measure recorded based on the training time is 94.4% which is slightly better compared to the hidden layer "i". Finally, hidden layer "t" recorded the lowest F-score at the epoch 1 with a score of 0.0483. In contrast, the highest F-measure was recorded at 0.7839 (epoch 200) with a difference of 93.8% between the highest and the lowest recorded F-measure across the training time, which are also the worst differences being recorded among the four types of hidden layers "a", "i", "o", and "t". Fig. 2. F-measure versus training time across hidden layer "a", "i", "o" and "t" in rubberwood

KSK

11For KSK dataset, a line graph was plotted for hidden layer "a" based on the F-measure recorded for each training time as shown in Fig. 3. The highest F-measure was recorded at epoch 500 (F-measure 0.8225) while the lowest F-measure was recorded at epoch 1 (F-measure 0.0430). The F-measure percentage difference recorded by the ANN classifier for the highest and lowest F-measure was at 94.8%. This shows that there is a huge gap between the highest and lowest F-measure recorded. Next, the lowest F-measure was recorded at epoch 1 with the score of 0.0432 for the hidden layer "i". Meanwhile, the highest F-measure was achieved by epoch 400 with the F-measure of 0.8373. There is a massive gap between the highest F-measure and lowest F-measure, with a difference of 94.8% among them. Although there is a huge gap between them, the percentage of difference is identical with the hidden layer "a" which also has a gap of 94.8%. Fig. 3. F-measure versus training time across hidden layer "a", "i", "o" and "t" in KSK In addition, hidden layer "o" shows that epoch 600 managed to score the highest F-measure with a value of 0.7984, followed by the lowest F-measure were recorded at epoch 1 (F-measure 0.0346). The difference between the highest and lowest F-measure is recorded at 95.7%, the highest compared to hidden layer "a" and hidden layer "i" in KSK wood species. Finally, hidden layer "t" recorded the lowest F-measure at epoch 1 with a value of 0.0441. Meanwhile, the highest F-measure was recorded at epoch 400 with a score of 0.8401. For the difference in percentage among the highest and lowest F-measure, the hidden layer "t" managed to obtain a value of 94.8%, which is similar to the percentage difference of hidden layer "a" and hidden layer "i" but lower compared to hidden layer "o" for KSK wood species.

Meranti

12Referring to the line graph in Fig. 4, the lowest F-measure for hidden layer "a" was recorded during epoch 1 (F-measure 0.0360), while the highest F-measure was recorded by epoch 400 (F-measure 0.7395. The difference in highest and lowest F-measure recorded throughout the training was at 95.1%, which also shows that training time plays a vital role in ensuring the F-measure of the neural network classifier. Moreover, the training time at epoch 500 for hidden layer "i" managed to achieve the highest F-measure with a score of 0.7431, followed by the lowest F-measure was recorded by epoch 1 with a score of 0.0306. The percentage difference of F-measure among epoch 1, which is the lowest, and epoch 500, which is the highest, is set at 95.9%. In contrast, hidden layer "o" recorded the highest F-measure during epoch 1000 (F-measure 0.7305). Besides that, epoch 1 recorded the lowest F-measure with a score of 0.0295 with a difference of 96.0% between the highest F-measure and lowest F-measure achieved in this hidden layer "o". Lastly, hidden layer "t" achieved the highest F-measure at epoch 400 (F-measure 0.7579), and the lowest F-measure was recorded by epoch 1 (F-measure 0.0317). There is a difference of 95.8% between the highest F-measure and lowest F-measure achieved in this hidden layer "t". . 4. F-measure versus training time across hidden layer "a", "i", "o" and "t" in meranti 3.6. Merbau Fig. 5 shows the neural network classifier performance across multiple epochs in hidden layer "a", "i", "o", and "t". For hidden layer "a", the top highest F-measure were recorded at epoch 2000 (Fmeasure 0.7174), and the lowest F-measure recorded was at epoch 1 (F-measure 0.0466) with a huge gap between the highest F-measure and lowest F-measure at a difference of 93.5%. In hidden layer "i", the lowest F-measure was recorded during epoch 1 (F-measure 0.0520). On the other hand, the highest F-measure was recorded at epoch 2000 (F-measure 0.7329). The highest and lowest F-measure in hidden layer "i" shows a difference of 92.9% where the score of F-measure increased with the number of training time. Nonetheless, the highest F-measure in hidden layer "o" was recorded at epoch 2000 (F-measure 0.6949). Meanwhile, the lowest F-measure was recorded at epoch 1 (F-measure 0.0492). There is a huge gap between the highest and lowest F-measure with the percentage difference of 92.9%, which is similar to the percentage difference of hidden layer "i". Finally, hidden layer "t" recorded highest F-measure at epoch 2000 (F-measure 0.7408), followed by the lowest F-measure was recorded by epoch 1 (F-measure 0.0537). There is a huge gap in F-measure between epoch 2000 and epoch 1 with a 92.8% difference, which proofed that F-measure increased along with the number of training times. In addition, the percentage difference for hidden layer "t" is the lowest among the four hidden layers, with hidden layer "a" scoring the highest percentage of 93.5%. Fig. 5. F-measure versus training time across hidden layer "a", "i", "o" and "t" in merbau

T-Test on Top Three Performers in Hidden Layer "a", "i", "o" and "t" across Timber Species

13An independent t-test was conducted to compare the significant difference of classification among the top 3 highest F-measure in four types of hidden layer across the wood species. Thus, the result of the independent t-test across multiple hidden layer and wood species shows that the top three performers in each hidden layer type across the wood species are not statically significant. In other words, this means that to save time and computational cost, the researcher could use the lowest epochs in Table 3 for faster defect detection without compromising on the F-measure. Table 3. T-Test on Top Three Performers in Hidden Layer "a", "i", "o" and "t" across Wood Species

Evaluation of classification performance over hidden layer type across multiple wood species

14In this section, we visually and statically analyzed the performance of the neural network classifier in terms of its hidden layers and also the number of epochs across multiple species of timber. We compared the neural network classifier performance on multiple hidden layers across the multiple wood species, beginning with a comparison of F-measure between hidden layers "a", "i", "o" and "t" with Rubberwood species, followed by KSK, Meranti, and Merbau as shown in Fig. 6. The purpose of the hidden layer analysis is to analyze the performance of the neural network classifier performance for each hidden layer by gathering all the F-measure recorded throughout the experiment, consisting of multiple hidden layers and training times across the wood species. For rubberwood, we can see the F-measure for every hidden layer increase along with the number of epochs with hidden layer "t" scored the highest F-measure across all four hidden layers. On the contrary, the hidden layer "o" was the worst-performing hidden layer with the least F-measure across the training time. Although hidden layer "t" was the best performing hidden layer, we notice that the hidden layer "i" outperformed the rest of the hidden layers during the epoch 5 to 17. On the other hand, in KSK hidden layer "t" was the top performer among four hidden layers with the highest F-measure, followed by hidden layer "i", hidden layer "a", and lastly, hidden layer "o". Similar with the Rubberwood species, the hidden layer "i" seemed to outperform other hidden layers during epoch 5 to epoch 11. However, hidden layer "o" was still the worst performer among the hidden layer, similar to the Rubberwood species. Next, a further investigation on the hidden layer analysis was performed on the Meranti wood species where hidden layer "o" scored the lowest compared to other hidden layers, followed by hidden layer "i" and hidden layer "a". Apparently, the hidden layer "t" scored the highest among the other hidden layers along with multiple training times with some exceptions where hidden layer "a" managed to outperform others during the epoch 4 with F-measure 0.2676. Lastly, we conducted a hidden layer analysis on the Merbau wood species to find the best performing hidden layer for the neural network classifier. Results show that hidden layer "t" outperformed the other hidden layers, with the highest Fmeasure recorded at 0.7408. The worst performing hidden layer was the hidden layer "o" with the Fmeasure of 0.6949. However, the F-measure of hidden layer "o" managed to outperform other hidden layers during epochs 7 to 13 with an F-measure of 0.4993.

International Journal of Advances in Intelligent Informatics

15ISSN 2442-6571 Vol. 7, No. 2, July 2021, pp. 163-176 Besides that, a comparison was made between the best-performed epochs for each hidden layer across the multiple wood species in search of their significant differences as shown in Table 4. An independent t-test was being performed in Rubberwood species to test the significance of every top performer among the hidden layers with hidden layer "o", which scored the lowest F-measure among the hidden layers, being selected as the baseline schema. The result shows that they are statically similar among all four and we could use hidden layer "a" or "t" with epoch 200 for future research, which consumes less computational power. Similarly, among four hidden layers in the KSK dataset, hidden layer "t" outperformed other hidden layers with an F-measure of 0.8401 with the epoch of 400 and the least performed was hidden layer "o" with an F-measure of 0.7984. An independent t-test for F-measure was performed on the top performer of each hidden layer with hidden layer "o" act as baseline schema. The result shows that the F-measure hidden layer "t" is not statically significant compared to others. While in Meranti, hidden layer "t" scored the highest F-measure with 0.7579 in epoch 400. In order to test the significant difference among the top performers in the hidden layer, we conducted an independent t-test with hidden layer "o", which scored the lowest F-measure, being selected as a baseline. The t-test shows that the baseline F-measure is statically similar to the F-measure of hidden layer "t", which scored 0.7579 at epoch 400. Lastly, for Merbau dataset, hidden layer "t" scored the highest F-measure with 0.7408, with the worst-performing hidden layer was hidden layer "o" scoring an F-measure of 0.6949. The t-test result with hidden layer "o" act as baseline shows that performance improvement in F-measure compared to other hidden layers are not statically significant. Since all four top-performing hidden layers in Merbau achieved their highest F-measure at epoch 2000, we could conclude that selecting either hidden layer would be the same without affecting the defect detection accuracy.

Evaluation of classification performance over hidden layer type across multiple wood species

16Hence, this section focused on the comparison between the top performing neural network classifier and other standard classifiers such as Naïve Bayes, KNN and J48 Decision tree across the multiple wood species. In addition, the Naïve Bayes, KNN and J48 Decision tree classifiers would be using the default parameter set by Weka. Fig. 7 shows the classification performance of the proposed classifiers (Multilayer Perceptron, Naïve Bayes, KNN and J48 decision tree). The neural network classifier seems to be outperforming other standard classifiers with a minimum performance increase of approximately 2.72% considering the minor gap between the ANN classifier and J48 classifier in Rubberwood species. Besides that, the highest performance increment in the neural network classifier was noticed in the Merbau wood species where there is approximately 25.19% in difference compared to other standard classifiers. Among the four classifiers compared, the Naïve Bayes classifier was the worst performing classifier in identifying the F-measure across the multiple wood species. Meanwhile, KNN and J48 Decision Tree 173 Vol. 7, No. 2, July 2021, pp. 163-176 classifiers had an average performance, with some having a better F-measure in certain wood species and vice versa.

Fig. 7. Classifiers performance on multiple timber species

17An independent analysis of variance (ANOVA) was conducted to compare the significant difference of classification F-measure across the multiple wood species. The one-way ANOVA is usually used to determine if there are statically significant differences between the mean of three or more unrelated groups. Based on Table 5, the neural network classifier was tested with other standard classifiers in a one-way ANOVA test to find the statistically significant F-measure differences between the independent groups. The results prove that F-measure performance of the neural network classifier are statistically significantly better compared with other standard classifiers across the multiple wood species. In addition, it also means that we accept the alternative hypothesis (HA), which proves that there are at least two group means that are statistically significantly different from each other.

Conclusion

18This research proposed a classification model for timber defect classification based on neural network, determining appropriate parameters for a neural network model in optimizing defect identification performance and comparing the classification performance between multiple wood species and other standard classifiers. The proposed neural network has outperformed the other standard classifiers in Fmeasure across the multiple timber species. The neural network classifier is better than other standard classifiers with an F-measure of 0.8401. It can be seen that there is an increment in the neural network classifier performance with at least 2.72% to a maximum of 25.19% compared to other standard classifier performances among the multiple timber species. This also proves that the neural network classifier can handle the imbalanced datasets without affecting their performance. Furthermore, we also tested the performance of the neural network by manipulating the number of nodes in a hidden layer using the wildcard values set by the Waikato Environment for Knowledge Analysis (Weka) such as "a", "i", "o" and "t". Each hidden layer wildcard value represents a different number of nodes existing in a hidden layer, with hidden layer "t" showing the best performance in both hidden layer wildcards and also across the multiple timber species. The higher performance in hidden layer "t" is due to the higher number of nodes used in the hidden layer than the other hidden layer wildcards. Thus, it is important to note that the number of nodes in a hidden layer plays an important role in determining the performance of the neural network classifier. In addition, the performance of the neural network classifier was tested with multiple numbers of Epochs (training time) across the multiple hidden layers and timber species. Throughout the experiment, every hidden layer and wood species were tested with a number of epochs ranging from 1 to 2000, and our results show that the neural network classifier performed the best during epochs 200 to 600 by having the highest F-measure across the hidden layer wildcard and multiple timber species except for the Merbau species which had the highest F-measure during epoch 2000.

19Although the highest F-measure was achieved during epoch 2000 in the Merbau species, we can conclude that the performance of the neural network classifier (F-measure) is not directly proportional to the number of epochs. To conclude, although the findings of this study are encouraging, there is still a lot of work to be done in the areas of timber defect detection, especially in finding the appropriate parameters for the neural network model to improve the defect detection performance. In this study, the search in optimizing defect identification performance is limited to the number of nodes in a hidden layer and the number of epochs in the neural network classifier. In order to improve the performance across multiple wood species, we suggest extending other parameters such as the number of hidden layers and the neural network classifier's learning rate. Finally, the neural network classifier could potentially identify wood defects in the wood manufacturing industry.

참고문헌 36건

  1. A wrapper-based feature selection approach using Bees Algorithm for a wood defect classification system 2015 10.1109/sysose.2015.7151902
  2. Particle Swarm Algorithm Elsevier eBooks · Elsevier BV · 2013 10.1016/b978-0-12-405163-8.00006-5
  3. Optimising Neural Networks for Identification of Wood Defects Using the Bees Algorithm 2006 10.1109/indin.2006.275855
  4. Impact of human error on lumber yield in rough mills Robotics and Computer-Integrated Manufacturing · Elsevier BV · 2002 10.1016/s0736-5845(02)00010-8
  5. Wood Defect Recognition Based on Affinity Propagation Clustering 2010 10.1109/ccpr.2010.5659314
  6. Image Collection for Non-Segmenting Approach of Timber Surface Defect Detection 2015
  7. Detection of wood surface defects based on particle swarm-genetic hybrid algorithm 2016 10.1109/icalip.2016.7846635
  8. Systematic feature analysis on timber defect images International Journal of Advances in Intelligent Informatics · Ahmad Dahlan University · 2017 10.26555/ijain.v3i2.94
  9. Crack detection in oak flooring lamellae using ultrasound-excited thermography Infrared Physics & Technology · Elsevier BV · 2017 10.1016/j.infrared.2017.11.007
  10. Wood defects classification using laws texture energy measures and supervised learning approach Advanced Engineering Informatics · Elsevier BV · 2017 10.1016/j.aei.2017.09.007
  11. A novel image segmentation approach for wood plate surface defect classification through convex optimization Journal of Forestry Research · Springer Science+Business Media · 2018 10.1007/s11676-017-0572-7
  12. Research on edge defects image recognition technology based on artificial neural network 2018 10.1109/iciea.2018.8398024
  13. Defect Detection on Randomly Textured Surfaces by Convolutional Neural Networks 2022 IEEE/ASME International Conference on Advanced Intelligent Mechatronics (AIM) · 2018 10.1109/aim.2018.8452361
  14. Study on Machine Learning Based Intelligent Defect Detection System MATEC Web of Conferences · EDP Sciences · 2018 10.1051/matecconf/201820101010
  15. Recognition of wood surface defects with near infrared spectroscopy and machine vision Journal of Forestry Research · Springer Science+Business Media · 2019 10.1007/s11676-018-00874-w
  16. Using PT-Kriging Method for Stress Wave Three Dimensional Imaging of Wood Internal Defects 2017 International Conference on Computer Technology, Electronics and Communication (ICCTEC) · 2017 10.1109/icctec.2017.00150
  17. A Fully Convolutional Neural Network for Wood Defect Location and Identification IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2937461
  18. Study of Neural Network Training Algorithms in Detection of Wood Surface Defects International Journal of Automation and Smart Technology · International Journal of Automation and Smart Technology · 2019 10.5875/ausmt.v9i3.1924
  19. Analysis of texture features for wood defect classification Bulletin of Electrical Engineering and Informatics · Institute of Advanced Engineering and Science (IAES) · 2020 10.11591/eei.v9i1.1553
  20. Automated Identification of Wood Veneer Surface Defects Using Faster Region-Based Convolutional Neural Network with Data Augmentation and Transfer Learning Applied Sciences · Multidisciplinary Digital Publishing Institute · 2019 10.3390/app9224898
  21. Features Extraction and Classification of Wood Defect Based on Hu Invariant Moment and Wavelet Moment and BP Neural Network 2019 10.1145/3356422.3356459
  22. Application of deep convolutional neural network on feature extraction and detection of wood defects Measurement · Elsevier BV · 2019 10.1016/j.measurement.2019.107357
  23. Development of Low-Cost Portable Spectrometers for Detection of Wood Defects Sensors · Multidisciplinary Digital Publishing Institute · 2020 10.3390/s20020545
  24. A machine-learning approach for classifying defects on tree trunks using terrestrial LiDAR Computers and Electronics in Agriculture · Elsevier BV · 2020 10.1016/j.compag.2020.105332
  25. Defect identification method for poplar veneer based on progressive growing generated adversarial network and MASK R-CNN model BioResources · North Carolina State University · 2020 10.15376/biores.15.2.3041-3052
  26. A Compact Convolutional Neural Network for Surface Defect Inspection Sensors · Multidisciplinary Digital Publishing Institute · 2020 10.3390/s20071974
  27. Visual Classification of Wood Knots Using k-Nearest Neighbor and Convolutional Neural Network Journal of the Korean Wood Science and Technology · The Korean Society of Wood Science Technology · 2019 10.5658/wood.2019.47.2.229
  28. Air-coupled ultrasound detection of natural defects in wood using ferroelectret and piezoelectric sensors Wood Science and Technology · Springer Science+Business Media · 2020 10.1007/s00226-020-01189-y
  29. Anomaly Detection Neural Network with Dual Auto-Encoders GAN and Its Industrial Inspection Applications Sensors · Multidisciplinary Digital Publishing Institute · 2020 10.3390/s20123336
  30. Defect Detection of Industry Wood Veneer Based on NAS and Multi-Channel Mask R-CNN Sensors · Multidisciplinary Digital Publishing Institute · 2020 10.3390/s20164398
  31. Wood Defect Detection Based on Depth Extreme Learning Machine Applied Sciences · Multidisciplinary Digital Publishing Institute · 2020 10.3390/app10217488
  32. Surface Defect Detection Using SVM‐Based Machine Vision System with Optimized Feature 2021 10.1002/9781119786122.ch6
  33. A Transfer Residual Neural Network Based on ResNet-34 for Detection of Wood Knot Defects Forests · Multidisciplinary Digital Publishing Institute · 2021 10.3390/f12020212
  34. Identification of wood defect using pattern recognition technique International Journal of Advances in Intelligent Informatics · Ahmad Dahlan University · 2021 10.26555/ijain.v7i2.588
  35. IJARCCE IJARCCE · 2026 10.17148/ijarcce
  36. Classification and Regression Tree Chapman and Hall/CRC eBooks · Informa · 2009 10.1201/b17172-15