Banana quality classification using lightweight CNN model with microservice integration system

Main Article Content

Vasutorn Chaowalittawin
Woranidtha Krungseanmuang
Posathip Sathaporn
Fuka Morita
Tuanjai Archevapanich
Boonchana Purahong

Abstract

Banana sorting has been performed manually, which often leads to human error due to the high volume and diverse characteristics involved. This paper presents a banana quality classification system using ConsolutechMobileNetV2 (CST-MobileNetV2) to classify banana ripeness into four categories unripe, ripe, overripe, and rotten. A lightweight deep learning model is proposed and integrated with a uniquely designed microservice system to optimize performance while minimizing computational demands. A publicly available dataset containing 13,478 images was used, and the data split into 56% for training, 14% for validation, and 30% for testing. Image normalization and augmentation techniques were applied to enhance the model's robustness. The model's performance was evaluated using a confusion matrix, achieving 98% precision, recall, and F1-score. The proposed model was compared with other deep learning models to benchmark its performance and deployed in different operating systems to evaluate its flexibility and capabilities. The LINE platform was employed as the user interface, enabling practical interaction with users. The system also demonstrated an average response time of 9.25 seconds per image, ensuring efficient processing, delivers high accuracy and scalability making it a practical and efficient solution for automated banana quality classification.

Article Details

How to Cite
Chaowalittawin, V., Krungseanmuang, W., Sathaporn, P., Morita, F., Archevapanich, T., & Purahong, B. (2025). Banana quality classification using lightweight CNN model with microservice integration system. Engineering and Applied Science Research, 52(4), 430–438. retrieved from https://ph01.tci-thaijo.org/index.php/easr/article/view/260433
Section
ORIGINAL RESEARCH

References

Mordor Intelligence. Banana market size - industry report on share, growth trends & forecasts analysis (2024 – 2029) [Internet]. 2024 [cited 2024 Oct 3]. Available from: https://www.mordorintelligence.com/industry-reports/banana-market.

Fiallos-Cárdenas M, Pérez-Martínez S, Ramirez AD. Prospectives for the development of a circular bioeconomy around the banana value chain. Sustain Prod Consum. 2022;30:541-55.

Shuprajhaa T, Mathav Raj J, Paramasivam SK, Sheeba KN, Uma S. Deep learning based intelligent identification system for ripening stages of banana. Postharvest Biol Technol. 2023;203:112410.

Nikhilesh N, Rajesh SG, Praveen TS, Raghuram AS, Prerena N. Banana grading using deep learning model. Int Res J Mod Eng Technol Sci. 2023;5(5):5144-8.

Saragih RE, Emanuel AWR. Banana ripeness classification based on deep learning using convolutional neural network. The 3rd East Indonesia Conference on Computer and Information Technology (EIConCIT); 2021 Apr 9-11; Surabaya, Indonesia. USA: IEEE; 2021. p. 85-9.

Zheng Z, Chen L, Wei L, Huang W, Du D, Qin G, et al. An efficient and lightweight banana detection and localization system based on deep CNNs for agricultural robots. Smart Agric Technol. 2024;9:100500.

Kakati JB, Das TK. Classification of healthy and unhealthy banana leaves using deep learning approach: a comparative assessment. The 4th International Conference on Computing and Communication Systems (I3CS); 2023 Mar 16-18; Shillong, India. USA: IEEE; 2023. p. 1-5.

Rangkuti AH, Lau SL, Hasbi VA, Indallah FH, Ranny, Aryanto R. Comparison of CNN models for optimizing banana image classification. 2023 IEEE International Conference on Computing (ICOCO); 2023 Oct 9-12; Langkawi, Malaysia. USA: IEEE; 2024. p. 456-61.

Upadhyay A, Singh S, Kanojiya S. Segregation of ripe and raw bananas using convolutional neural network. Procedia Comput Sci. 2023;218:461-8.

Arunima PL, Gopinath PP, Geetha Lekshmi PR, Esakkimuthu M. Digital assessment of post-harvest Nendran banana for faster grading: CNN-based ripeness classification model. Postharvest Biol Technol. 2024;214:112972.

Sangeetha K, Vishnu Raja P, Siranjeevi S, Suman J, Rohith S. Classification of fruits and its quality prediction using deep learning. The 5th International Conference on Intelligent Communication Technologies and Virtual Mobile Networks (ICICV); 2024 Mar 11-12; Tirunelveli, India. USA: IEEE; 2024. p. 342-6.

Christian S, Murwantara IM, Lazarusli I. A mobile application for food and its ingredients detection using deep learning. The 1st International Conference on Technology Innovation and Its Applications (ICTIIA); 2022 Sep 23-23; Tangerang, Indonesia. USA: IEEE; 2022. p. 1-6.

Chompookham T, Surinta O. Ensemble methods with deep convolutional neural networks for plant leaf recognition. ICIC Express Lett. 2021;15(6):553-65.

Puangsuwan T, Surinta O. Enhancement of plant leaf disease classification based on snapshot ensemble convolutional neural network. ICIC Express Lett. 2021;15(6):669-80.

Arampongsanuwat S, Chaowalit O. Application of deep convolutional neural networks for mangosteen ripeness classification. ICIC Express Lett. 2021;15(6):649-57.

Gatchalee P, Waijanya S, Promrit N. Thai text classification experiment using CNN and transformer models for timely-timeless content marketing. ICIC Express Lett. 2023;17(1):91-101.

Pandey DK, Mishra R. Towards sustainable agriculture: harnessing AI for global food security. Artif Intell Agric. 2024;12:72-84.

Dhanya VG, Subeesh A, Kushwaha NL, Vishwakarma DK, Nagesh Kumar T, Ritika G, et al. Singh. Deep learning based computer vision approaches for smart agricultural applications. Artif Intell Agric. 2022;6:211-29.

Bhatti MA, Syam MS, Chen H, Hu Y, Keung LW, Zeeshan Z, et al. Utilizing convolutional neural networks (CNN) and U-Net architecture for precise crop and weed segmentation in agricultural imagery: a deep learning approach. Big Data Res. 2024;36:100465.

Yin Y, Zhao M. Application of AI, big data and cloud computing technology in smart factories. The 6th International Conference on Artificial Intelligence and Big Data (ICAIBD); 2023 May 26-29; Chengdu, China. USA: IEEE; 2023. p. 192-6.

Ahmad S, Shakeel I, Mehfuz S, Ahmad J. Deep learning models for cloud, edge, fog, and IoT computing paradigms: survey, recent advances, and future directions. Comput Sci Rev. 2023;49:100568.

Yang X, Li Y, Chen Q. Automated image-based fire detection and alarm system using edge computing and cloud-based platform. Internet of Things. 2024;28:101402.

Sithiyopasakul P, Piyatananugoon C, Chaowalittawin V, Krungseanmuang W, Sathaporn P, Kanjanasurat I. Inventory management system based on IoT and microservices architecture design. 2023 International Electrical Engineering Congress (iEECON); 2023 Mar 8-10; Krabi, Thailand. USA: IEEE; 2023. p. 395-9.

Roh BH, Choi G, Lee S, Kim SJ, Kang J. Mixed reality-enabled multilateral collaboration application platform with AI and IoT convergence. 2023 IEEE International Conference on Consumer Electronics (ICCE); 2023 Jan 6-8; Las Vegas, USA. USA: IEEE; 2023. p. 1-4.

Mehmood A, Ahmad M, Ilyas QM. On precision agriculture: enhanced automated fruit disease identification and classification using a new ensemble classification method. Agriculture. 2023;13(2):500.

Lee KB, Shin HS. An application of a deep learning algorithm for automatic detection of unexpected accidents under bad CCTV monitoring conditions in tunnels. 2019 International Conference on Deep Learning and Machine Learning in Emerging Applications (Deep-ML); 2019 Aug 26-28; Istanbul, Turkey. USA: IEEE; 2019. p. 7-11.

Liu Y, Matsui K, Kageyama Y, Shirai H, Ishizawa C. Improving a faster R-CNN model for vehicle detection and human action recognition at night via infrared thermal imaging using transfer learning. Int J Innov Comput Inf Control. 2024;20(6):1573-85.

Kanjanasurat I, Purahong B, Aoyama H, Benjangkaprasert C, Pintavirooj C. Personal identification using a delaunay triangle and optic disc retinal vascular pattern. Int J Innov Comput Inf Control. 2020;16(3):879-97.

Anisuzzaman DM, Patel Y, Niezgoda JA, Gopalakrishnan S, Yu Z. A mobile app for wound localization using deep learning. IEEE Access. 2022;10:61398-409.

Estonilo CG, Festijo ED. Development of deep learning-based mobile application for predicting diabetes mellitus. The 4th International Conference of Computer and Informatics Engineering (IC2IE); 2021 Sep 14-15; Depok, Indonesia. USA: IEEE; 2021. p. 13-8.

Antony A, Ganesh Kumar R. Enhancing food crop classification in agriculture through dipper throat optimization and deep learning with remote sensing. e-Prime - Adv Electr Eng Electron Energy. 2024;9:100732.

Thakar A. Banana Classification [Internet]. 2024 [cited 2024 Oct 3]. Available from: https://www.kaggle.com/datasets/atrithakar/banana-classification.

Sandler M, Howard A, Zhu M, Zhmoginov A, Chen LC. Mobilenetv2: inverted residuals and linear bottlenecks. Proceedings of the IEEE conference on computer vision and pattern recognition; 2018 Jun 18-22; Salt Lake City, USA. USA: IEEE; 2018. p. 4510-20.

Mazen FMA, Nashat AA. Ripeness classification of bananas using an artificial neural network. Arab J Sci Eng. 2019;44(8):6901-10.