ZHANG Conghua, REN Ling, CUI Jianpu, et al. YOLO-SFEP: A lightweight model for missing tomato plug seedling detection in natural light environmentsJ. Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 2025, 41(22): 215-225. DOI: 10.11975/j.issn.1002-6819.202504135
    Citation: ZHANG Conghua, REN Ling, CUI Jianpu, et al. YOLO-SFEP: A lightweight model for missing tomato plug seedling detection in natural light environmentsJ. Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 2025, 41(22): 215-225. DOI: 10.11975/j.issn.1002-6819.202504135

    YOLO-SFEP: A lightweight model for missing tomato plug seedling detection in natural light environments

    • Intelligent transplantation is often required to accurately detect the missing seedlings in the densely arranged tomato plug seedlings in the greenhouse. In this study, an improved YOLOv8n-based model (named YOLO-SFEP) was proposed to detect the missing-seedlings in greenhouse environments. Small-target detection was also improved by the illumination robustness. Computational complexity was also reduced to optimize the training efficiency. Four innovations were integrated into the framework: feature extraction refinement, attention-driven interference suppression, network lightweighting, and adaptive optimization of the loss function. Extensive experiments were carried out to validate the practical deployment. Firstly, the P3 detection layer of YOLOv8n was reconstructed to integrate the SPDConv (space-to-depth convolution) into an Omni-Kernel module. Dual enhancement strengthened the feature extraction for small targets, effectively improving the detection accuracy in dense seedling arrangements. Secondly, an EMA (efficient multi-scale attention) mechanism was embedded into the neck network, in order to amplify the critical features of missing seedlings, while suppressing interference from uneven lighting conditions in greenhouses. Thirdly, the lightweight deployment was achieved to replace the Bottleneck modules in C2f (cross-stage partial bottleneck with two convolutions) layers with FasterNet Block modules from FasterNet. Redundant parameters were then reduced without compromising recognition accuracy, indicating compatibility with the resource-constrained devices. Finally, the CIoU (complete intersection over union) loss function was replaced by PIoU (powerful-IoU). The adaptive penalty factors were introduced into the target scales. Thereby, the convergence stability was optimized under the varying seedling sizes. Experimental results revealed that the YOLO-SFEP model attained a precision of 96.7%, a recall of 98.8%, and a mean average precision at an intersection over union threshold of 0.5 (mAP50) of 97.9%, in order to detect the missing seedlings in tomato plug trays. There was an improvement over the baseline YOLOv8n model, where the precision was enhanced by 2.4 percentage points. The parameter count and computational load of the proposed model are 2.62 million(M) and 7.6 Gigaflops(G), respectively, representing a reduction of 0.39 M and 0.5 G compared with YOLOv8n. The model size was compacted to 5.5 megabytes(MB), decreasing by 0.8 MB relative to the baseline. Importantly, the model showed high robustness across a spectrum of natural light intensities (low, medium, and high), attaining mAP50 values of 96.7%, 98.9%, and 98.1%, respectively, which underscores its superior performance in challenging illumination environments. The improved model was also deployed on an edge computing device, the Raspberry Pi 5. A detection speed of 13.8 frames per second was achieved, equal to an inference time of 72 milliseconds(ms) per image. This speed was 12.2 ms faster than that of the baseline YOLOv8n model on the same platform. These outcomes highlighted the model’s aptitude for real-time greenhouse applications, enabling it to deliver precise and prompt positional data on missing seedlings to support automated replenishment by transplantation equipment. In conclusion, the YOLO-SFEP model markedly improves the detection of missing seedlings in tomato plug trays within greenhouse environments. By integrating advanced modules for small target detection, attention mechanisms for feature enhancement, and efficient components for model lightweighting, it achieves elevated detection accuracy alongside reduced computational complexity. Its successful deployment on an edge device underscores its viability for on-site use. This research offers a solid technical foundation for intelligent missing seedling detection and automated seedling replenishment in greenhouse tomato cultivation. For further research, techniques such as knowledge distillation, quantization and pruning can be considered in the future to lighten the YOLO-SFEP model, and at the same time, analyze the resource consumption of the model in actual deployment, including memory occupation and power consumption, in order to comprehensively evaluate its applicability on edge devices, and eventually build an inspection system to realize the integration of image acquisition and processing by using edge devices.
    • loading

    Catalog

      /

      DownLoad:  Full-Size Img  PowerPoint
      Return
      Return