A gated multi-scale framework for accurate tomato ripeness detection in occluded cultivation scenarios
Accurate tomato ripeness detection in cultivation environments is important for precision agriculture. Ripeness is read from colour and texture, and neighbouring stages differ only slightly. Occlusion and uneven illumination degrade these cues, and fruit size varies widely across the stages. Existing detectors lose part of that detail in the downsampling and fusion stages. We propose Tomato-YOLO, a gated multi-scale framework based on YOLO11 with five innovations. First, a context-guided downsampling module (CGBlock_Down) replaces the downsampling stages of the backbone and carries the boundary of a partly hidden fruit and its surroundings into the features passed to the neck. Second, a multi-stage group convolution (MSGC) module assigns channel groups to kernels of different spatial scales, so that the edge cues separating one fruit from its neighbours survive dense clusters. Third, a shared multi-sense convolution (SMSC) module uses learnable dilated kernels to broaden the perceptive scope while preserving spatial resolution, with the weights shared across the dilation rates so that fruit of different sizes is covered at little extra cost. Fourth, a bidirectional feature integration module (BFIM) selectively merges coarse semantic cues with fine spatial details through gating signals computed in both directions, so that the two are combined in the proportion each location needs. A 10 × 10 prediction level is added to the head for the largest fruit, which the original 20 × 20 level cannot cover. Experiments on the Tomato Grading dataset demonstrate that Tomato-YOLO achieves 96.66% mAP50 and 81.84% mAP50-95, improving Recall, Precision, F1-score, mAP50, mAP75 and mAP50–95 over the YOLO11n baseline by 2.05%, 0.73%, 1.41%, 2.03%, 1.19% and 1.59%, respectively, and providing support for automated field monitoring and post-harvest grading.
Authors
- Yuanhao Zhu (ORCID: https://orcid.org/0000-0002-3743-0552)
- Jing Hua
- Kai Su
- Jingqiu Zhang
- Yuanjun Zhu
Institutions
- Aviation Industry Corporation of China (China) (CN)
- Jiangxi Agricultural University (CN)
Publication Details
- Journal
- Frontiers in Plant Science
- Published
- 2026-12-03
- DOI
- https://doi.org/10.3389/fpls.2026.1989752
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 0.00