Smart Agricultural Technology, Volume 12 , 01/12/2025

Optimizing watermelon leaf disease detection using Sam-based augmentation with YOLO for practical agricultural solutions

Hadee Madadum, Fazal E. Nasir, Kanjana Haruehansapong

Abstract

Automated plant disease detection systems are widely adopted in agriculture to increase production effectiveness. In watermelon plantations, where diseases spread rapidly over large areas, these systems reduce the labour and time required for disease inspection. Thus, this research introduces a deep learning-based watermelon disease detection on a field-collected dataset obtained from farms in Thailand. In contrast to lab-collected imagery, field-collected images present different challenges due to uncontrolled environmental conditions. In our field dataset, a clear class imbalance is observed. To mitigate this issue, we propose an efficient augmentation method that integrates the Segment Anything Model (SAM) with Photometric and Geometric (PG) augmentations. The PG process generates augmented images to diversify dataset. To further improve the detection of underrepresented objects, we employ SAM to extract precise object masks from the augmented data using bounding box annotations. A lightweight version of YOLO-based architectures is utilized to assist real-time detection of watermelon diseases. The experimental results show that YOLOv9t achieved the highest detection accuracy of 0.92 mAP50 and 0.71 mAP95. Moreover, we evaluate model performance using an Accuracy per Inference Time (APT) metric to identify efficient models for real-time applications. The results show that YOLOv11 achieved the highest APT score, followed by YOLOv5n, YOLOv9t, and YOLOv8, respectively.

Document Type

Article

Source Type

Journal

Keywords

Object detectionSegment anything model (Sam)Watermelon disease detectionLightweight architecture

ASJC Subject Area

Computer Science : Artificial IntelligenceAgricultural and Biological Sciences : Agricultural and Biological Sciences (all)Computer Science : Computer Science (miscellaneous)

Funding Agency

Walailak University


Bibliography


Madadum, H., Nasir, F., & Haruehansapong, K. (2025). Optimizing watermelon leaf disease detection using Sam-based augmentation with YOLO for practical agricultural solutions. Smart Agricultural Technology, 12doi:10.1016/j.atech.2025.101326

Copy | Save