arXiv:2610.23661cs.CVOct 2026

Manuscript Offprint

arXiv:2610.23661

An Efficient Approach to Beetle Damage Detection of Banana Using Deep Learning

Md. Mehedi Hasan Naeem, Ishtiyak Ahmmad Araf, Md. Arefin Haque Mahir, Tushar Kanti Saha

Md. Mehedi Hasan Naeem, Ishtiyak Ahmad Araf, Md. Arefin Haque Mahir, Tushar Kanti Saha

Department of Computer Science and Engineering

Jatiya Kabi Kazi Nazrul Islam University

Trishal, Mymensingh-2224, Bangladesh

mehedinaeem00@gmail.com, ishtiyakahmmad1149@gmail.com

arefinmahir2026@gmail.com, tushar@jkkniu.edu.bd

Abstract—Visible surface damage of banana fruits by Basilepta subcostata (the banana fruit scarring beetle) can reduce their market value. Here, manual inspection of Banana fruits is subjective and difficult to scale. This study presents a lightweight framework based on YOLOv8n deep learning model for locating individual bananas and classifying their visible surface condition as healthy or unhealthy. The term beetle damage in the paper title is used operationally for the locally observed scar-like surface condition; the model does not identify a specific beetle species or biological cause. A custom dataset of 2,473 images containing 5,827 annotated banana instances was prepared from local-market imagery in Bangladesh. The reported experiment used an 80/20 protocol with 1,982 training images and 491 test images. A pretrained YOLOv8n model was trained at 640×640640 \times 640 resolution for 50 epochs with a batch size of 4. On the test partition, it achieved 81.36% precision, 74.30% recall, 77.67% F1-score, 87.04% mAP@0.50 and 59.33% mAP@0.50:0.95. A YOLOv8s comparison gave slightly lower F1 and mAP while using a substantially larger checkpoint. The YOLOv8n checkpoint occupied 5.96 MB and required 6.54 ms/image for inference on an NVIDIA Tesla T4. The results support YOLOv8n as a compact baseline for instance-level banana surface inspection within the studied acquisition conditions.

Index Terms—banana, surface-condition detection, surface defect detection, YOLOv8n, object detection, computer vision

I. INTRODUCTION

Banana quality is strongly influenced by external appearance, which affects consumer preference, market value and postharvest acceptance. Surface scars, rough regions, dark marks and related abnormalities can reduce commercial quality. These characteristics are commonly assessed through manual visual inspection, but such assessment can become time-consuming and inconsistent when large numbers of fruits must be examined before sending them to the market. Recent advances in computer vision and deep learning have enabled automated banana-quality assessment. Real-time deep-learning systems have been developed for banana freshness grading [1], while CNN-based methods have also been investigated for export-grade classification [2]. However, image-level classification is less suitable when several bananas appear in one image because each fruit may have a different surface condition. Object detection can address this limitation by localizing and classifying individual banana instances.

In Bangladesh, bananas with scarred, rough or dark-marked surfaces are sometimes locally described as Bitol caused by Basilepta subcostata (the banana fruit scarring beetle). In this study, the term refers only to visible surface condition and not to a confirmed biological diagnosis. Banana pests, diseases, mechanical damage, and environmental factors can produce similar visual symptoms [3]. Field research in Bangladesh has reported that banana leaf- and fruit-beetle feeding can produce visible scars and reduce fruit quality [4]. Moreover, taxonomic studies have identified multiple banana-scarring beetle species [5]. Therefore, the present work uses two operational visual classes, healthy and unhealthy, without attempting species-level pest identification. Here an efficient classifier can be useful to detect healthy and unhealthy bananas. We can devise this efficient classifier if we can perform object localization effectively.

YOLO-family [6] (YOLOv5, YOLOv8, YOLOv9, and so on) are popular deep learning models widely used in agricultural computer vision because they combine object localization and classification within an efficient one-stage framework [7]. Banana appearance-quality studies have also demonstrated the suitability of YOLO-based methods for localized surface assessment [8]. For this experiment, YOLOv8n was selected mainly because it is compact while still providing instance-level localization and classification. The banana images were not visually uniform: illumination, ripening stage, shadows, occlusion, fruit overlap and background complexity changed from scene to scene. In some cases, dark but healthy skin could resemble damaged areas, while subtle surface abnormalities were harder to localize. Comparable difficulties have been reported in natural-scene fruit detection and surface-defect analysis [9], [10]. These conditions require a lightweight instance detector suitable for the classification and localization task, provided that useful localization performance could be retained at practical computational cost.

This study investigates close-range, instance-level detection of visible banana surface damage using a locally collected and manually annotated dataset. The main contributions are:

  1. A custom banana dataset with instance-level bounding-box annotations for healthy and visibly abnormal surface conditions called unhealthy.

  2. A lightweight deep learning framework using YOLOv8n for simultaneous banana localization and healthy/unhealthy surface-condition classification.

979-8-3195-2804-9/26/$31.00 © 2026 IEEE

  1. Quantitative and qualitative evaluation using precision, recall, F1-score, mean Average Precision (mAP), diagnostic curves, confusion analysis, and computational efficiency.

References (20)