Implementation of the CNN Deep Learning Method in Tajong (Sarung) Samarinda Classification
58 Journal of Applied Sciences, Management and Engineering Technology, Vol 5, No 2, 2024: 58–66
Implementation of The CNN Deep Learning Method in Tajong (Sarung)
Samarinda Classification
Sitti Muhartini1, Andi Sunyoto2, Alva Hendi Muhammad3
1,2,3
Master of Informatics Engineering Department, Universitas Amikom Yogyakarta, Yogyakarta
Email:
Received: 2024-08-06 Received in revised from 2024-08-20 Accepted: 2024-09-30
Abstract
Samarinda sarongs are one of Indonesia's traditional fabrics that are famous for their beautiful
motifs and textures. This fabric is made using traditional weaving techniques using non-machine
looms (ATBMs), resulting in a unique and distinctive diversity of textures. The difference between
the loom, namely the machine and the non-machine, resulting in a difference in the texture of the
Samarinda sarong. This difference can be seen from the thread density, texture smoothness, and
sharpness of the motif. On certain Samarinda sarong motifs that do not require special details. This
study aims to develop a classification model of Samarinda sarong texture based on the loom
(machine and non-machine) using the Deep Learning method. This model is expected to help,
increase the selling value of Samarinda sarongs, preserve and promote traditional fabrics In this
context, the choice between DenseNet121 and VGG16 can depend on user preferences or specific
needs, such as computing speed or model size.
Keywords: ATBM; CNN; DenseNet121; Sarong; VGG16
1. Introduction
The Samarinda sarong is a traditional Indonesian fabric which is famous for its beautiful motifs
and textures. This fabric is made using traditional weaving techniques using non-machine looms
(ATBM), producing a variety of unique and distinctive textures. The differences in looms, namely
machines and non-machines, result in differences in the texture of the Samarinda sarong. This difference
can be seen from the density of the thread, the smoothness of the texture, and the sharpness of the motif.
For certain Samarinda sarong motifs that do not require special details, machine weaving results in the
appearance of woven sarongs that almost resemble non-machine woven products. This can of course be
an opening for irresponsible sellers to deceive consumers who don't really understand the differences
between these fabrics.
The proposed deep learning-based model with data augmentation and transfer learning for
automatic woven fabric classification [1], was proven to be more accurate and reliable than other
methods with the application of the ResNet-50 method which was proven to be more accurate than
VGGNet. [2] applies a pre-processing stage where the fabric image is converted to grayscale format,
blurred using Gaussian blur, and binarized to remove noise. Then, fabric texture features are extracted
using the LSTM model. The extracted fabric texture features are features that represent dark and light
patterns in the fabric image. Test results show that this method can classify fabric texture with an
accuracy of 98.8% and detect fabric defects with an accuracy of 97.2%.
This research aims to develop a texture classification model for Samarinda sarongs based on the
loom (machine and non-machine) using the Deep Learning method. It is hoped that this model can help
increase the selling value of Samarinda sarongs, preserve and promote traditional fabrics. Based on
previous research, this study used 500 images of Samarinda sarongs (250 machines, 250 non-machines).
The main model used is ResNet, and compared with other models such as VGGNet and LeNet. In
previous research, Gaussian blur was used to clarify defects in fabric, but it is more appropriate to use
it on images that need to be smoothed. Meanwhile, this research applies and compares the evaluation
results of the CNN LeNet, VGG16, ResNet50 and DenseNet50 models. Using 1000 texture image data
Muhartini, Implementation of the CNN Deep Learning Method in Tajong (Sarung) Samarinda Classification
59
of Samarinda woven fabric produced by non-machine looms and 1000 texture image data of Samarinda
woven fabric produced by machine looms. This image was taken manually using a digital microscope
X4 1600X. It is hoped that the results of this research can contribute to the development of texture
detection and fabric detection systems for traditional Indonesian fabrics.
2. Method
Provide sufficient detail methods to allow the work to be reproduced. Methods already
published should be indicated by a reference: only relevant modifications should be described.
Raw Data
Preprocessing
Resize
Normalization
Augmentation
Data Training
Data Validation
Data Testing
Various CNN Architectures
Evaluation
Figure 1. Flowchart of Research Methodology
Based on Figure 1. above regarding the flow of the research process, it can be briefly explained
as follows:
1. Raw Data
Sarong texture images are divided into two types, which will later be separated into each folder
to help the classification process. To take the picture itself, use a digital microscope model X4
with a resolution of 1920x1440. For sarong texture images produced from machine looms, add
them to the ATM folder and for sarong texture images produced from non-machine looms, add
them to the ATBM folder.
2. Pre-Processing
The texture image of ATBM and ATm sheaths becomes 256x256 pixels and is pre-processed
using various techniques such as rotation, scale and translation.
3. Training and Training Model
Carrying out the training process using the Samarinda sarong dataset which has been classified
based on the loom. At this stage two scenarios are implemented with the first scenario using
60 Journal of Applied Sciences, Management and Engineering Technology, Vol 5, No 2, 2024: 58–66
80% of the data for training and 20% for testing. Meanwhile, the second scenario uses 70% of
the data for training and 30% of the data for testing.
4. Testing and Testing Models
The testing process of the test image uses CNN classification, and is evaluated using a confusion
matrix. Where the previous data has been resized, normalized and augmented and Gabor Filter
and G2RGB have been applied as additional data variants.
5. Trial and Evaluation
Carry out the testing process by testing several test process flows as an evaluation process to
determine the accuracy of model performance.
3. Results and Discussion
This research uses the Deep Learning CNN method with DenseNet121 and VGG16 which will
be processed using Google Colab: https://colab.research.google.com/ using Python language. The
scenario used is in accordance with the explanation regarding the Training and Model Training stages
where the first scenario uses 80% of the data for training and 20% for testing. Meanwhile, the second
scenario uses 70% of the data for training and 30% of the data for testing.
1. Discussion for the VGG16 Split Data Model
The research used the CNN VGG16 Deep Learning method by applying two scenarios to obtain the
following confusion matrix and graph (...truncated)