YOLO-RCM: An Improved Tomato Maturity Detection Model for Complex Greenhouse Environments
Open Access
Abstract
To reduce confusion between adjacent maturity categories, as well as false detections and low detection accuracy caused by complex backgrounds in tomato object detection, this study develops an improved YOLOv7-based model, named YOLO-RCM (Reduce classes misjudgment). First, a stability-enhanced ECANet channel attention module is embedded into the feature pyramid network (FPN) to strengthen discriminative channel responses. Second, a DCNv2-based deformable convolution enhancement module, namely DCNConv with adaptive magnitude constraints, is incorporated into the backbone network to alleviate feature misalignment caused by shape variation, partial occlusion, and fine-grained appearance differences in tomato maturity detection. Third, the WIoU v3 loss function is adopted to refine bounding box regression stability. The model was evaluated on the public Laboro Tomato dataset and TomatOD dataset. Experimental results indicate that YOLO-RCM obtains 83.7% Precision and 89.6% mAP@0.5, exceeding the baseline by 3.3 and 1.2 percentage points, respectively. Its Recall is 80.5%, with a decrease of 0.8 percentage points, whereas GFLOPs are reduced to 96.9, 6.3 lower than the baseline. These results indicate that the proposed method improves detection accuracy and computational efficiency while maintaining an almost unchanged model scale. The confusion matrix and PR curves further show that YOLO-RCM can effectively mitigate misdetections associated with adjacent maturity stages and complex scenes. In the external-dataset robustness test, Precision and mAP@0.5 are improved by 5.8 and 4.0 percentage points over the baseline, respectively, confirming the generalization ability of the proposed model. The main contribution of this study lies in improving tomato maturity detection from three complementary aspects: channel feature discrimination, local geometric perception, and bounding box regression stability. The study offers a practical technical reference for intelligent tomato harvesting systems in complex agricultural environments.Keywords
This publication has 40 references indexed in Scilit:
- TinyML-Enabled IoT Edge Framework With Knowledge Distillation for Weed ClassificationIEEE Internet of Things Journal, 2026
- DDM-YOLO: A lightweight oriented detection model for mature daylily fruits in complex environmentsJournal of King Saud University Computer and Information Sciences, 2026
- A review of object detection: Datasets, performance evaluation, architecture, applications and current trendsMultimedia Tools and Applications, 2024
- MTD-YOLO: Multi-task deep convolutional neural network for cherry tomato fruit bunch maturity detectionComputers and Electronics in Agriculture, 2023
- Fruit ripeness classification: A surveyArtificial Intelligence in Agriculture, 2023
- Focal and efficient IOU loss for accurate bounding box regressionNeurocomputing, 2022
- EfficientDet: Scalable and Efficient Object Detection2020
- Grad-CAM: Visual Explanations from Deep Networks via Gradient-Based LocalizationInternational Journal of Computer Vision, 2019
- A methodology for fresh tomato maturity detection using computer visionComputers and Electronics in Agriculture, 2018
- Evaluation of tomato maturity by electronic noseComputers and Electronics in Agriculture, 2006