JURNAL FOURIER | April 2025. Vol. No. 1, 9-20 DOI: 10. 14421/fourier. ISSN 2252-763X E-ISSN 2541-5239 Classification of Wood Types Based on Wood Fiber Texture Using GLCM - ANN Intan Karunia Septiani1. Wika Dianita Utami2. Nurissaidah Ulinnuha3. Dino Ramadhan4 1,2Program Studi Matematika. Fakultas Sains dan Teknologi. Universitas Islam Negeri Sunan Ampel. Jl. Dr. Ir. Soekarno No. 682 Gunung. Anyar. Surabaya 60294. Indonesia 3,4Analisis Data dan Sistem Informasi. Divisi Regional Jawa Timur. Perum Perhutani. Jl. Genteng Kali No. 49 Tromol Pos 840. Surabaya 6008. Indonesia Korespondensi. Wika Dianita Utami. Email: wikadianita@uinsa. Abstrak Di Indonesia, berbagai jenis kayu tumbuh dan berkembang dengan karakteristik dan manfaat yang beragam. Setiap jenis kayu memiliki perbedaan tekstur dan serat, untuk mengklasifikasikannya harus memiliki pengetahuan yang cukup tentang tekstur dan serat kayu. Sistem identifikasi jenis kayu diperlukan untuk membantu proses klasifikasi tersebut. Tujuan dari penelitian ini adalah untuk mengklasifikasikan Kayu Jati. Kayu Sengon. Kayu Mahoni, dan Kayu Gmelina yang banyak diperjualbelikan di Indonesia. Metode klasifikasi yang digunakan dalam penelitian ini adalah Jaringan Syaraf Tiruan dengan ekstraksi Gray Level Co-occurrence Matrix (GLCM). Tahapan pra-pemrosesan meliputi Histogram Equalization, filtering, konversi citra ke dalam bentuk grayscale, dan augmentasi data. Ekstraksi fitur hasil pre-processing menggunakan GLCM yang diambil yaitu kontras, korelasi, energi, homogenitas, dan entropi. Dari hasil penelitian, klasifikasi menggunakan Jaringan Syaraf Tiruan diperoleh akurasi 46%, presisi 43%, recall 42,5%, dan F1-Score 42% dengan sudut kemiringan GLCM 90A. Jadi, metode ini dapat digunakan untuk mengklasifikasikan jenis kayu, namun kurang akurat karena masih terdapat kekurangan pada model. Kata Kunci: Kayu. Citra Digital. GLCM. Artificial Neural Ntework Abstract In Indonesia, various types of wood grow and develop with various characteristics and benefits. Each type of wood has differences in texture and fiber, to classify it must have sufficient knowledge about the texture and fiber of wood. A wood species identification system is needed to help the classification process. The purpose of this research is to classify Teak Wood. Sengon Wood. Mahogany Wood, and Gmelina Wood which are often sold in Indonesia. The classification method used in this research is Artificial Neural Network with Gray Level Co- occurrence Matrix (GLCM) extraction. Pre-processing stages include Histogram Equalization, filtering, converting images into grayscale form, and data augmentation. Feature extraction of pre-processing results using GLCM is taken, namely contrast, correlation, energy, homogeneity, and entropy. From the research results, classification using Artificial Neural Network was obtained with 46% accuracy, 43% precision, 5% recall, and 42% F1-Score with a GLCM inclination angle of 90A. So, this method can be used to classify the types of wood, but it is less accurate because there are still deficiencies in the model. Keywords: Wood. Digital Image. GLCM. Artificial Neural Network Introduction Indonesia is known for its diverse and abundant natural resources, including its rich forests that produce a lot of wood for industrial purposes, both household industries and large industries globally. A 2025 JURNAL FOURIER Versi online via w. Intan Karunia Septiani, dkk Indonesia, various types of wood grow and develop with various characteristics and benefits. Revenue from exports of wood products is indeed one of the main sources of income for most countries in Southeast Asia, including Indonesia . Perum Perhutani is a State-Owned Enterprise (BUMN) engaged in the forestry sector. Perum Perhutani's main task is to maintain, manage, and utilize state forests in a sustainable and sustainable The company has an important function in maintaining ecological balance, providing timber resources, and contributing to the economy and welfare of the community . Perum Perhutani is also involved in forest restoration activities, replanting, plant maintenance, forest fire control, and various other activities related to forest management. The main objective is to optimize the utilization of forest resources responsibly for the welfare of the environment and society. In the 1970s, the beginning of Indonesia's forestry renaissance, the wood species known and utilized for the wood processing industry almost entirely came from one source, namely natural production forests . These wood species are generally characterized by large diameters, straight trunks and excellent wood properties. The types of wood that grow in Indonesia which include commonly traded wood species as many as 10 species, the main types of plant wood as many as 10 species and underutilized wood species as many as 23 species . Each type of wood has differences in texture and different fibers, to make a classification of course must have sufficient knowledge about the texture and fiber of wood. For humans who are still laymen, it will certainly be difficult to distinguish with the naked eye. Consequently, a system of categorization techniques was created in order to use the GLCM method to identify wood species. This technique determines the typical amount of grayness in an image by analyzing a single pixel. This research aims to develop a system to classify four types of wood traded in Indonesia, namely Teak Wood. Sengon Wood. Mahogany Wood, and Gmelina Wood. The four types of wood have similar textures and colors that are difficult to distinguish with the naked eye, therefore clustering is needed using the Gray Level Co-occurrence Matrix (GLCM) based Artificial Neural Network (ANN) method so that they can be grouped accurately . Wood identification methods can be learned as science, but the ability to identify wood species can only be obtained through a long, repetitive and continuous training process. Problems that arise if the officer who identifies the wood is not yet skilled, the business process will take longer and of course will increase costs . A wood species identification system is needed to provide a solution to this With regard to wood identification using GLCM-based ANN is a combination of algorithms and feature extraction methods that are appropriate for identifying wood species. The advantages of Artificial Neural Network in classification include its ability to handle difficult problems even in the presence of imperfect or noisy data. ANN has been proven to be a very effective tool in various applications, especially in data classification. ANNs can learn from given data examples and adapt to complex patterns in the data. This allows them to classify data with a high degree of accuracy even in cases where the relationship between the input and output features is very complex or non-linear . In research . using the ANN method to classify the maturity stage of mangosteen fruit using color and texture obtained an accuracy of 90% accuracy in the hidden layer. In research . the results of using the Gray Level Co-Occurrence Matrix (GLCM) method in extracting the characteristics of spinach leaves . litum albu. using the Artificial Neural Network method can produce an accuracy rate calculated using the counfusion matrix which is 90%. Research . can determine the performance of using the GLCM and ANN methods in identifying the quality of shrimp, that the use of these methods has excellent performance indicated by the acquisition of an accuracy value of 93%. In research . JURNAL FOURIER . 14 9-20 Classification of Wood Types Based on Wood A shows a comparison in classifying diabetes diagnoses, the accuracy value for the ANN method is 77. while the accuracy value for the SVM method is 65. This means that the use of the ANN method is better than SVM to classify someone suffering from diabetes or not. This research aims to develop a system to classify four types of wood traded in Indonesia, namely Teak Wood. Sengon Wood. Mahogany Wood, and Gmelina Wood. The four types of wood have similar textures and colors that are difficult to distinguish with the naked eye, therefore grouping is needed using the Gray Level Co-occurrence Matrix (GLCM) based Artificial Neural Network (ANN) method so that they can be grouped accurately. It is hoped that this research can contribute to the analysis of wood species and become a strong foundation in classifying wood defects at Perum Perhutani. Basic Theory Type of Wood Wood is part of the stem, branch, or twig of a plant that undergoes hardening due to the process of lignification or ossification. The use of wood varies greatly, from cooking purposes to making household furniture such as tables and chairs, building materials such as doors and windows, to papermaking materials . Since long time ago Teak Wood (Tectona grandis L. ) is the most demanded wood because it has an elegant and unique style, strong, stable, durable, and the workmanship is quite easy. Teak wood has characteristics such as colors that vary from golden brown to dark brown, with beautiful and unique fibers . Mahogany wood is a type of wood derived from mahogany trees (Swietenia ), which is famous for its rich wood color and the beauty of its grain. Mahogany wood has characteristics such as a rich brownish-red color, with attractive wood grain . Gmelina wood is a type of wood derived from the Gmelina Tree (Gliricidia sepiu. , which is also known by other names such as Gliricidia, gamal, or mata-rata. The color of this wood varies from light brown to dark brown, with fine fibers and a slightly rough texture . Sengon wood comes from the sengon tree (Falcataria moluccan. , which is a type of fast-growing tree and is a member of the Fabaceae family. Sengon wood has characteristics such as fine fibers and colors that tend to be white to yellowish . Histogram Equaization Histogram Equalization is a program running on a computer system that is effective in enhancing contrast in the grayscale level range of an image by adjusting the intensity of pixel values in the input image so that the output image has an even distribution of pixel value intensity distribution. Pixel values are depicted in a histogram that represents both the probability and frequency of various gray levels in the image . Canny Edge Detection The initial stage in enclosing information in a picture is edge detection, which is the process of creating the edges of image objects. Canny, sometimes referred to as optimal edge detection, is a method that locates edge points, has a low error rate, and returns a single response for each edge . Data Augmentation Data augmentation is a method that helps practitioners greatly expand the variety of data used for training models without needing to gather new data. Common techniques for data augmentation include cropping, padding, and horizontal flipping, which are often employed to train large networks. Despite this, many methods rely primarily on these fundamental types of augmentation. JURNAL FOURIER . 8 57-64 Intan Karunia Septiani, dkk Grey Level Co-occurance Matrix The term "cooccurrence" refers to the frequency with which one pixel value level occurs adjacent to another within a given pixel distance . and angular orientation . uE). Pixels are used to describe distance, and degrees are used to express orientation. Four angular directions 0A, 45A, 90A, and 135A with 45A angular intervals are used to construct orientation. In the meantime, 1 pixel is typically used as the separation between pixels . Figure 1 can be used to depict the four directions. 135A [Oeycc Oe yc. Pixel of interest 90A [Oeycc . 45A [Oeycc yc. 0A . Figure 1. Four-way Degree of Grey The shape of the co-occurrence matrix is square when the number of entries in the matrix is equal to the square of the number of pixel intensity levels in the image. The probability of a pixel of value . neighboring a pixel of value . at a distance . and orientation . Oe yuE) is contained at each point . cn, y. in the oriented cooccurrence matrix. The steps in creating a cooccurrence matrix are: Create a matrix work area. Ascertain the spatial correlation between neighboring pixels and reference pixels about the pixel distance . and angle value . uE). Calculates the cooccurrence sum and populates it in the matrix work area. Sum the cooccurrence matrix with its transpose to make it symmetric. Normalise the matrix to convert it to probability form. Cooccurrence refers to the frequency with which one level of pixel value is adjacent to another level in terms of both distance . and angular orientation . uE). Orientation is formed in the right angular direction with 45A intervals, namely 0A, 45A, 90A, and 135A. While the distance between pixels is usually set by 1 pixel, 2 pixels, 3 pixels and so on. For example, a 4 x 4 matrix has grey levels from 0 to 6. The cooccurrence matrix will be calculated with a value of ycc = 1 and yuE = 0A. The number of times a pair . cn, y. appears is calculated for the entire Extraction of GLCM Features After obtaining the GLCM cooccurrence matrix, proceed to find the value of the GLCM features. In this research, the GLCM features used include energy, contrast, correlation and homogeneity features. The following is an explanation of each feature . Energy Energyindicates a measure of the concentration of intensity pairs in the cooccurrence matrix. The energy value increases when the pixel pairs that qualify the cooccurrence intensity matrix are concentrated at a few coordinates and decreases when they are spread out. yce1 = Ocycn Ocyc ycE. cn, y. JURNAL FOURIER . 14 9-20 Classification of Wood Types Based on Wood A Correlation Correlation is a representation of the linear relationship in the degree of a grayscale image. Correlation ranges from -1 to 1. cnOeyuNyc. cOeyuNy. yce2 = Ocycn Ocyc ycE. cn, y. yuaycnyuayc Contrast The picture matrix elements' dispersion . oment of inerti. is indicated by contrast. They have a high contrast value if they are far from the main diagonal. In terms of visuals, the contrast value is a measurement of the difference in an image region's shades of grey. yce3 = Ocycn Ocyc. cn, y. 2 ycEycc . cn, y. Homogenity Homogeneity represents a measure of the similarity of the variation value of the image intensity. If all pixel values have uniform values then homogeneity has a maximum value. ycEycc . cn,y. yce4 = Ocycn Ocyc ycn . cnOey. Where: ycn = i-th row matrix, i = 1, 2, . , i yc = j-th row matrix, j = 1, 2, . , j ycyycn,yc = Pixel value in matrix pair . = . , . , . , . yuNycn = Calculation of the average value of row i, i = 1, 2, . , i yuNyc = Calculation of the average value of row j, j = 1, 2, . , j yuaycn = Variance of matrix i yuayc = Variance of matrix j K-fold Cross Validation In machine learning. K-fold Cross Validation is a technique used to evaluate model performance and make sure the model successfully generalizes to new data. It addresses the issue of overfitting that can arise when a model is evaluated on just one dataset. The dataset is divided into K segments of identical size for K-fold cross validation, and the testing and training procedures are performed K times. Artificial Neural Network The Artificial Neural Network (ANN) approach uses the human brain's nerve system to solve problems. There are many different kinds of network architecture, including Single Layer. Multi Layer, and Recurrent. The input layer, hidden layer, and output layer are the three network layers that make up the Multi Layer Networks architecture. The hidden layer is situated between the output and input layers . The structure of Multi Layer Networks is composed of three layers: the input layer, the hidden layer, and the output layer, as shown in Figure 2 below: Figure 2. Architecture of Artificial Neural Network JURNAL FOURIER . 8 57-64 Intan Karunia Septiani, dkk An artificial neural network is made up of several neuron groups organized into three layers, which are as follows: Input Layer, which functions as a link between the network and the data used. These neurons do not do anything to the data, only forward the data to the next layer. Hidden Layer, functions as a modifier of input received from the input layer which will then be connected to the output unit. Hidden layer is located between the input and output layer. Using the following formula, each neuron in the hidden layer will determine the sum of the products between the input values . cuycn ) and the weights . uiycn ), plus the bias . yc = Ocycuycn=1 yuiycn ycuycn yca` . Where: = Total number of inputs of the neuron = Weight connected to input-ycn = Input value to input-ycn = Bias Sigmoid = 1 yce Oeyc Where: = Output of the sigmoid function yc = Total input to the neuron . um of the weights and input. yce = Euler's number, which is a mathematical constant of about 2. ReLU yce. = ycoycaycu. , y. Where: = Output of the ReLU function yc = Total input to the neuron . um of weights and input. Output Layer, has a function as a layer that provides output as a result of the process that has been carried out. Confussion Matrix A table called a confusion matrix is frequently used in machine learning to assess how well categorization models perform. In this research, test data will be used to evaluate the classification model that has been used. The Confusion Matrix, which comprises accuracy, precision, recall, and F1score, will be calculated to test the model. The success rate of the classification process is known as Precision quantifies the degree of accuracy with which our model produces favorable Recall is the chance of cases with positive categories that are correctly predicted to be F1-score is an evaluation matrix that is useful in dealing with the weaknesses of recall and precision . ycNycE ycyycyceycaycnycycycnycuycu = ycNycE yaycE y 100% . ycNycE ycyceycaycaycoyco = ycNycE yaycA y 100% . ycaycaycaycycycaycayc = ycNycE ycNycA yaycE yaycA ya1 Oe ycycaycuycyce = . ycNycE ycNycA 2yycyycyceycaycnycycycnycuycuyycyceycaycaycoyco ycyycyceycaycnycycycnycuycu ycyceycaycaycoyco Retrieved from: JURNAL FOURIER . 14 9-20 Classification of Wood Types Based on Wood A ycNycE = True Positive (Number of positive samples correctly classified by the mode. ycNycA = True Negative (Number of negative samples correctly classified by the mode. yaycE = False Positive (Number of negative samples misclassified as positive by the mode. yaycA = False Negative (Number of positive smples incorrectly classified as negative by the mode. Methods Data Source The data used is primary data taken by the author using an Iphone 6s smartphone camera on Thursday. February 29, 2024 at the Wuluhan Timber Stockpile (TPK). Jember Regency. The data taken is image data from 4 types of wood, namely Teak Wood. Mahogany Wood. Gmelina Wood, and Sengon Wood with data format (. Has a total of 139 data with a combination of 41 Teak Wood image data, 42 Mahogany Wood image data, 24 Gmelina Wood image data, and 32 Sengon Wood image data. Steps The flowchart used in this research is as follows: Figure 3. Flowchart The stages of analysis that can be carried out are as follows: Prepare research data. Data pre-processing which consists of performing histogram equalization, converting images into grayscale form, and data augmentation until new data appears. Performing shape extraction using Canny Edge Detection to detect the edges of objects in the Perform image extraction using Gray Level Co-occurrence Matrix (GLCM) to obtain GLCM Feature Matrix values consisting of Energy. Contrast. Homogeneity. Entropy, and Correlation In addition, variables such as Perimeter. Area. Aspect Ratio. Bounding Rectangle Width. Bounding Rectangle Height. Diss_sim. Energy_sobel. Corr_sobel. Diss_sim_sobel Homogeneity_sobel. Contrast_sobel. Entropy_sobel are also obtained. K-Fold Cross Validation is used in the data division process to obtain training and testing data. Training the data to get the best model for classification Testing the data that has been created using training data Interpretation of classification results and model output. Summarizing the results of data testing. Results and Discussion JURNAL FOURIER . 8 57-64 Intan Karunia Septiani, dkk Pre-processing First step in the data acquisition process is data pre-processing. Data pre-processing is adjusted to the sequence of available data obtained and is good for processing to the next stage. In the pre-processing process starts from data filtering, histogram equalization, then converting the image into grayscale form, then the data augmentation process into 556 images. The results of pre-processing can be shown in Figure 4 and Figure 5. Figure 4 shows the improvement of image quality using histogram equalisation and Figure 5 is the result of converting the image into grayscale. Figure 4. Result of Histogram Equalization Figure 5. Result of Greyscale Canny Edge Detection In this phase, the image can be retrieved in grey scale, then processed for object edge detection in each The results of object edge detection are obtained variables including Perimeter. Area. Aspect Ratio. Bounding Rectangle Width, and Bounding Rectangle Height. JURNAL FOURIER . 14 9-20 Classification of Wood Types Based on Wood A Figure 6. Result of Canny Edge Detection Based on Figure 6, the Canny Edge Detection sample identification is obtained as in Table 1. Table 1. Canny Edge Detection Sample Data Aspect Ratio Bounding Rectangle Width Perimeter Area Bounding Rectangle Height Class Sengon Mahogan Teak Mahogan Sengon Image Extraction using GLCM In this phase, the data is processed using the GLCM method to obtain Contrast. Correlation. Energy. Homogeneity, and Entropy values. The sample results of this GLCM feature extraction can be presented in Table 2. To acquire classification results, the obtained statistical data will be processed using the Artificial Neural Network model classifier. Table 2. Sample GLCM Image Extraction Data No. Contrast Feature Extraction Correlation Energy Homogeneity Entropy Class Sengon Mahogany Teak Mahogany Sengon Model Evaluation The data entered for this process are features that have been extracted using the GLCM method. Next, the data is divided using K-Fold Cross Validation. This research uses k-fold = 10, because the test results show that k-fold = 10 is better than k-fold = 5. Following that, the classification results will yield JURNAL FOURIER . 8 57-64 Intan Karunia Septiani, dkk percentages for accuracy, precision, recall, and F1-Score after being confirmed using a confusion matrix. This classification experiment was conducted by varying the degree of the GLCM. Table 3. Result Class K-Fold Degree Precision Recall Jati Sengon Mahoni Gmelina Jati Sengon Mahoni Gmelina Jati F1Score Accuracy From the experimental results. Table 3 shows that the best results are obtained at 90A GLCM. True Negative (TN). False Positive (FP). False Negative (FN), and True Positive (TP), which are shown in the table, are the best model findings. Conclusion From the results of the study, it can be seen that the use of Artificial Neural Network method and GLCM feature extraction with k-fold = 10 produces better classification results than k-fold = 5, which is able to produce an accuracy value calculated using a confusion matrix of 46%, precision 43%, recall JURNAL FOURIER . 14 9-20 Classification of Wood Types Based on Wood A 5%, and F1-Score 42% with a GLCM inclination angle of 90A. From the accuracy value obtained in this study, it can be concluded that the Artificial Neural Network method in this study is not good at classifying 4 types of wood. Based on the research that has been done, the author suggests that for data collection the wood image to be used has the same felling age so that the colour has not faded and is still clearly visible. The device used is expected to be able to take clear images according to the standard so that the texture of the wood can be read clearly. As for the image capture technique, it is hoped that the image data will be taken per section of the same size to facilitate research to produce a better accuracy value. References