Cross-level attention and lightweight feature extraction for improved tomato ripeness detection in complex greenhouse environments

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, [email protected], and [email protected] 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 [email protected] and [email protected] 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.

Authors

Institutions

Publication Details

Journal
Frontiers in Plant Science
Published
2026-10-30
DOI
https://doi.org/10.3389/fpls.2026.1974752
Primary Topic
Smart Agriculture and AI
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Cross-level attention and lightweight feature extraction for improved tomato ripeness detection in complex greenhouse environments

Kaijie Yang, Yujin Guo, Jisheng LIU, Xiao Cui et al.
5 links
Frontiers in Plant Science
Smart Agriculture and AI
article

Cross-level attention and lightweight feature extraction for improved tomato ripeness detection in complex greenhouse environments

Kaijie Yang, Yujin Guo, Jisheng LIU, Xiao Cui, Enyu He, Jiayi Li, Fuzhong Li
article en

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, [email protected], and [email protected] 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 [email protected] and [email protected] 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.

Frontiers in Plant ScienceVol. 17
Shanxi Agricultural University (CN)
Zero hunger
Openalex Percentile: Top 15%
Smart Agriculture and AI
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon