CLASSIFICATION OF IMAGE QUALITY OF TUBAN LEGEN BEVERAGES USING CONVOLUTIONAL NEURAL NETWORK (CNN) METHOD BASED ON RANDOM FOREST
DOI:
https://doi.org/10.31328/jsae.v8i2.7298Keywords:
Image Classification, Convolutional Neural Network, Random Forest, Legen DrinkAbstract
This study focuses on developing a classification method for the quality of Tuban legen beverage using a combination of Convolutional Neural Network (CNN) and Random Forest. The siwalan plant (Borassus flabellifer L.), commonly found in Tuban Regency, East Java, produces sap that is susceptible to fermentation and microbial damage. Therefore, it is essential to process legen properly to maintain its taste and quality. The dataset used consists of 1280 images of legen beverage categorized into two classes: Steril and Campuran. The research process involves data collection, preprocessing, and splitting the dataset into training, validation, and testing sets with various ratios. CNN, specifically the VGG16 architecture, is used for feature extraction from images, while Random Forest serves as the classification algorithm. The model is optimized using GridSearchCV and evaluated with metrics
such as accuracy, precision, recall, F1-score, and confusion matrix. The results indicate that the combination of CNN and Random Forest can achieve optimal accuracy of up to 100% for certain data configurations, both for images with and without background, with a data ratio of 80% training, 10% validation, and 10% testing. Data augmentation is applied to enhance model variation and generalization, contributing to improved classification accuracy. Although these results demonstrate the model's ability to recognize patterns, the study suggests potential for further improvement. It is recommended to explore other classification methods, conduct deeper hyperparameter optimization, and apply transfer learning to enhance model performance. Additionally, further research is needed to understand the impact of background on classification and how to address it. This study makes a significant contribution to the development of a quality classification system for legen beverages by utilizing more robust and accurate deep learning technology. These findings can serve as an important reference for future research in image classification and food product quality, providing insights for developing more efficient and effective methods.
References
1] Smith, J., et al. (2021). 'Image processing techniques in beverage quality control', Journal of Food Engineering, vol. 264, pp. 109-120.
[2] Wu, Z., et al. (2017). 'Integration of deep learning and ensemble methods for image classification', Pattern Recognition Letters, vol. 101, pp. 106-112.
[3] Zhou, Y., et al. (2020). 'Applications of deep learning in food science', Trends in Food Science & Technology, vol. 106, pp. 433-442.
[4] Breiman, L. (2001) ‘Random Forests’, Machine Learning, 45(1), pp. 5–32. doi: 10.1023/A:1010933404324.
[5] Gonzalez, R.C. and Woods, R.E. (2018) Digital Image Processing. 4th edn. New York: Pearson.
[6] Goodfellow, I., Bengio, Y. and Courville, A. (2016) Deep Learning. Cambridge, MA: MIT Press.
[7] Guo, Y., Liu, Y., Oerlemans, A., Lao, S., Wu, S. and Lew, M.S. (2016) ‘Deep Learning for Visual Understanding: A Review’, Neurocomputing, 187, pp. 27–48. doi: 10.1016/j.neucom.2015.09.116.
[8] He, K., Zhang, X., Ren, S. and Sun, J. (2016) ‘Deep Residual Learning for Image Recognition’, in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR). Las Vegas, NV, pp. 770–778. doi: 10.1109/CVPR.2016.90.
[9] Jain, A.K., Kasturi, R. and Schunck, B.G. (1995) Machine Vision. New York: McGraw-Hill.
[10] Krizhevsky, A., Sutskever, I. and Hinton, G.E. (2012) ‘ImageNet Classification with Deep Convolutional Neural Networks’, in Advances in Neural Information Processing Systems, pp. 1097–1105. Available at: https://dl.acm.org/doi/10.5555/2999134.2999257 (Accessed: 15 August 2024).
[11] LeCun, Y., Bottou, L., Bengio, Y. and Haffner, P. (1998) ‘Gradient-Based Learning Applied to Document Recognition’, Proceedings of the IEEE, 86(11), pp. 2278–2324. doi: 10.1109/5.726791.
[12] Liaw, A. and Wiener, M. (2002) ‘Classification and Regression by RandomForest’, R News, 2(3), pp. 18–22. Available at: https://CRAN.R-project.org/doc/Rnews/ (Accessed: 15 August 2024).
[13] Pal, M. (2005) ‘Random Forest Classifier for Remote Sensing Classification’, International Journal of Remote Sensing, 26(1), pp. 217–222. doi: 10.1080/01431160412331269698.
[14] Simonyan, K. and Zisserman, A. (2014) ‘Very Deep Convolutional Networks for Large-Scale Image Recognition’,
arXiv preprint arXiv:1409.1556. Available at: https://arxiv.org/abs/1409.1556 (Accessed: 15 August 2024).
[15] Singh, A.K., Singh, D., Kumar, P. and Zhang, Y.-D. (2021) ‘A Comprehensive Survey on Emergent Convolutional Neural Network-Based Models for Medical Image Analysis’, Neural Computing and Applications, 33(11), pp. 5165–5191. doi: 10.1007/s00521-020-05624-9.
[16] Vlachos, I., Theodoridis, S., Vrochidis, S., Tzovaras, D. and Kompatsiaris, I. (2019) ‘Comprehensive Taxonomy of Feature Extraction Methods for Industrial Visual Inspection Systems’, Journal of Imaging, 5(8), p. 71. doi: 10.3390/jimaging5080071.
[17] Xu, Y., Zhu, J., Zhang, Z., Lu, G. and Chen, J. (2017) ‘Automatic Segmentation of Dental Plaque Images Based on Active Contour and Machine Learning’, Journal of Medical Imaging and Health Informatics, 7(2), pp. 342–348. doi: 10.1166/jmihi.2017.2023.
[18] Zhang, X., Zou, J., He, K. and Sun, J. (2018) ‘Accelerating Very Deep Convolutional Networks for Classification and Detection’, IEEE Transactions on Pattern Analysis and Machine Intelligence, 38(10), pp. 1943–1955. doi: 10.1109/TPAMI.2015.2502579.
[19] Zhou, Z.H. and Feng, J. (2017) ‘Deep Forest: Towards an Alternative to Deep Neural Networks’, in Proceedings of the 26th International Joint Conference on Artificial Intelligence (IJCAI). Melbourne, Australia, pp. 3553–3559. doi: 10.24963/ijcai.2017/497.