Cross-level attention and lightweight feature extraction for improved tomato ripeness detection in complex greenhouse environments.
Xiao Cui, Jisheng Liu, Yujin Guo, Jiayi Li, Enyu He, Kaijie Yang, Fuzhong Li
Faculty of Software Technologies, Shanxi Agricultural University, Jinzhong, Shanxi, China. · College of Animal Science, Shanxi Agricultural University, Jinzhong, Shanxi, China.
Key points
From the paper's conclusion- With the parameter scale remaining largely unchanged, it improves detection accuracy, robustness to luminance perturbations, and generalization performance under an independent cross-domain setting, providing real-time visual support for greenhouse tomato grading and selective harvesting.
Abstract
Misclassification of tomato ripeness in greenhouses can lead to premature harvesting, spoilage due to overripeness, and incorrect or missed picks during automated harvesting. However, the color similarity between unripe fruits and leaves, low-contrast changes between adjacent ripeness stages, occlusion by branches and leaves, and the attenuation of small-scale target features make it difficult for existing detection models to simultaneously maintain both ripeness classification accuracy and cross-scenario stability. To address these issues, this paper proposes YOLO26-CUH, an enhanced tomato ripeness detection model based on YOLO26n. This model employs the C2PSA-CC module to jointly model spatial positions and ripeness-related channel responses, thereby suppressing interference from complex backgrounds; it utilizes the C3k2-UIB module to enhance the extraction efficiency of fruit edges, local coloration, and surface textures; further designs the HV-LCA cross-layer feature interaction module to enable selective fusion of shallow-layer spatial details with deep-layer semantic information. This paper constructed a dataset comprising 5, 296 Provence tomato images, classifying the fruits into three maturity levels: unripe, color-changing, and ripe, and employed a separate cherry tomato dataset-which was not used in model training or parameter tuning-for independent external validation. On the Provence tomato test set, YOLO26-CUH achieved precision, recall, mAP@0.50, and mAP@0.50-0.95 of 0.917, 0.896, 0.946, and 0.897, respectively. Compared to the original YOLO26n, these four metrics improved by 6.7, 5.1, 1.9, and 1.9 percentage points, respectively, while the number of model parameters increased only from 2, 375, 421 to 2, 380, 194, and the inference speed reached 93.9 FPS. On the cherry tomato dataset, YOLO26-CUH's mAP@0.50 and mAP@0.50-0.95 reached 0.808 and 0.656, respectively, representing improvements of 5.3 and 4.1 percentage points over the baseline, with a recall increase of 8.4 percentage points. Luminance perturbation and ablation experiments further demonstrate that this model can enhance the expression of maturity-related features, preserve local details, and reduce missed detections of low-contrast and occluded targets. With the parameter scale remaining largely unchanged, it improves detection accuracy, robustness to luminance perturbations, and generalization performance under an independent cross-domain setting, providing real-time visual support for greenhouse tomato grading and selective harvesting.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Embedding of ripening topology into one-stage detection for tomato cluster phenotypingJournal of Zhejiang University SCIENCE B · 2026
- FDA-YOLO: A Feature Fusion and Attention-Based Network for Multiscale Tomato Maturity Detection in Real-World Agricultural ScenariosSensors · 2026
- Efficient-tomato: a high-precision and lightweight method for cherry tomato ripeness and disease detection.Frontiers in plant science · 2026
- ToRLNet: A Lightweight Deep Learning Model for Tomato Detection and Quality Assessment Across Ripeness StagesHorticulturae · 2025
- MTRD-Net: An RGB-NIR Multimodal Fusion Network for Tomato Ripeness Detection in Complex Greenhouse EnvironmentsApplied Sciences · 2026
- CGW-DETR: a multi-scale feature enhanced RT-DETR Qianxi cherry tomato maturity detection model for dense small targets.Frontiers in plant science · 2026