Sort:
Open Access Issue
Weed and rice seedling detection in field based on MAL-YOLOv5 model
International Journal of Agricultural and Biological Engineering 2026, 19(3): 256-266
Published: 30 June 2026
Abstract PDF (8.4 MB) Collect
Downloads:0

Weeds severely reduce rice yield and quality, making reliable in-field detection of weed and rice seedling essential for automated weed management. Although deep learning-based object detection techniques have shown significant potential in automatically distinguishing crops from weeds, existing models often suffer from large model sizes, high computational complexity, and insufficient feature extraction. To address these issues, this study proposes a lightweight multi-angle object detection model named MAL-YOLOv5 (Multi-Angle Lightweight YOLOv5), based on the YOLOv5 (You Only Look Once version 5) framework, which effectively reduces model complexity while maintaining detection performance. Specifically, the lightweight MobileNetV3 architecture is adopted to replace the original backbone network, significantly decreasing the number of parameters without compromising accuracy. Furthermore, the neck network of MAL-YOLOv5 is enhanced by integrating spatial and channel reconstruction convolution (SCConv) and a single-shot feature aggregation module (SCCSP), which reduces spatial and channel redundancies in the convolutional module, thereby compressing the neck network and improving feature representation. Additionally, a rotated bounding box with angular information is introduced for annotating and detecting rice seedling and weed, which effectively mitigates the interference from background and non-target objects, enabling more precise identification. Experimental results show that the precision, recall, and mAP of the MAL-YOLOv5 model are 93.1%, 91.9%, and 93.4%, respectively. Compared to YOLOv5s_obb, the MAL-YOLOv5 model reduces the number of parameters by 80.1% and computational cost in GFLOPs (Giga Floating-Point Operations) by 81.5%, significantly minimizing model size with only marginal loss in accuracy, conserving computational and storage costs while lowering the hardware requirements for intelligent mechanical weeding equipment.

Issue
Rice Leaf Disease Image Enhancement Based on Improved CycleGAN
Smart Agriculture 2024, 6(6): 96-108
Published: 01 November 2024
Abstract PDF (26.3 MB) Collect
Downloads:62
Objective

Rice diseases significantly impact both the yield and quality of rice production. Automatic recognition of rice diseases using computer vision is crucial for ensuring high yields, quality, and efficiency. However, rice disease image recognition faces challenges such as limited availability of datasets, insufficient sample sizes, and imbalanced sample distributions across different disease categories. To address these challenges, a data augmentation method for rice leaf disease images was proposed based on an improved CycleGAN model in this reseach which aimed to expand disease image datasets by generating disease features, thereby alleviating the burden of collecting real disease data and providing more comprehensive and diverse data to support automatic rice disease recognition.

Methods

The proposed approach built upon the CycleGAN framework, with a key modification being the integration of a convolutional block attention module (CBAM) into the generator's residual module. This enhancement strengthened the network's ability to extract both local key features and global contextual information pertaining to rice disease-affected areas. The model increased its sensitivity to small-scale disease targets and subtle variations between healthy and diseased domains. This design effectively mitigated the potential loss of critical feature information during the image generation process, ensuring higher fidelity in the resulting images. Additionally, skip connections were introduced between the residual modules and the CBAM. These connections facilitate improved information flow between different layers of the network, addressing common issues such as gradient vanishing during the training of deep networks. Furthermore, a perception similarity loss function, designed to align with the human visual system, was incorporated into the overall loss function. This addition enabled the deep learning model to more accurately measure perceptual differences between the generated images and real images, thereby guiding the network towards producing higher-quality samples. This adjustment also helped to reduce visual artifacts and excessive smoothing, while concurrently improving the stability of the model during the training process. To comprehensively evaluate the quality of the rice disease images generated by the proposed model and to assess its impact on disease recognition performance, both subjective and objective evaluation metrics were utilized. These included user perception evaluation (UPE), structural similarity index (SSIM), peak signal-to-noise ratio (PSNR), and the performance of disease recognition within object detection frameworks. Comparative experiments were conducted across multiple GAN models, enabling a thorough assessment of the proposed model's performance in generating rice disease images. Additionally, different attention mechanisms, including efficient channel attention (ECA), coordinate attention (CA), and CBAM, were individually embedded into the generator's residual module. These variations allowed for a detailed comparison of the effects of different attention mechanisms on network performance and the visual quality of the generated images. Ablation studies were further performed to validate the effectiveness of the CBAM residual module and the perception similarity loss function in the network's overall architecture. Based on the generated rice disease samples, transfer learning experiments were conducted using various object detection models. By comparing the performance of these models before and after transfer learning, the effectiveness of the generated disease image data in enhancing the performance of object detection models was empirically verified.

Results and Discussions

The rice disease images generated by the improved CycleGAN model surpassed those produced by other GAN variants in terms of image detail clarity and the prominence of disease-specific features. In terms of objective quality metrics, the proposed model exhibited a 3.15% improvement in SSIM and an 8.19% enhancement in PSNR compared to the original CycleGAN model, underscoring its significant advantage in structural similarity and signal-to-noise ratio. The comparative experiments involving different attention mechanisms and ablation studies revealed that embedding the CBAM into the generator effectively increased the network's focus on critical disease-related features, resulting in more realistic and clearly defined disease-affected regions in the generated images. Furthermore, the introduction of the perception similarity loss function substantially enhanced the network's ability to perceive and represent disease-related information, thereby improving the visual fidelity and realism of the generated images. Additionally, transfer learning applied to object detection models such as YOLOv5s, YOLOv7-tiny, and YOLOv8s led to significant improvements in disease detection performance on the augmented dataset. Notably, the detection accuracy of the YOLOv5s model increased from 79.7% to 93.8%, representing a considerable enhancement in both generalization ability and robustness. This improvement also effectively reduced the rates of false positives and false negatives, resulting in more stable and reliable performance in rice disease detection tasks.

Conclusions

The rice leaf disease image generation method based on the improved CycleGAN model, as proposed in this study, effectively transforms images of healthy leaves into those depicting disease symptoms. By addressing the challenge of insufficient disease samples, this method significantly improves the disease recognition capabilities of object detection models. Therefore, it holds considerable application potential in the domain of leaf disease image augmentation and offers a promising new direction for expanding datasets of disease images for other crops.

Total 2