Ripe and unripe tomato counting from handheld camera images using deep-learning detection and segmentation-based classification

Handheld RGB imaging could support tomato-count assessment, but occlusion and variable illumination can impair counting. We compared direct YOLO12m detection with Segment Anything Model (SAM) masks classified by YOLO11-cls. After a provenance review identified overlap between the original counting row and model-development data, evaluation was repeated on 52 images of 13 plants from an independent row, with four views per plant. Manual image-level counts were the reference, and inference used paired errors averaged within plants. On 136 real detector-test tiles, YOLO12m achieved precision 0.868, recall 0.774, [email protected] of 0.817 and [email protected]:0.95 of 0.616. Mean absolute counting errors were 1.08 and 2.12 fruit per image for unripe and ripe fruit with YOLO12m, compared with 1.73 and 8.19 with SAM. Plant-level paired t-tests favoured YOLO12m strongly for ripe fruit (p = 0.000035) and marginally for unripe fruit (p = 0.041, unadjusted). The results support direct detection for image-level counting under the tested conditions. SAM fragmentation remains an unquantified explanation, and transfer across cultivars, seasons, sites and cameras requires independent validation.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-11-26
DOI
https://doi.org/10.1038/s41598-026-82131-3
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
NOV
article

Ripe and unripe tomato counting from handheld camera images using deep-learning detection and segmentation-based classification

Anikó Nyéki, Bálint Ambrus, László Moldvai
Scientific Reports
Smart Agriculture and AI
article

Ripe and unripe tomato counting from handheld camera images using deep-learning detection and segmentation-based classification

Anikó Nyéki, Bálint Ambrus, László Moldvai
article en

Abstract

Handheld RGB imaging could support tomato-count assessment, but occlusion and variable illumination can impair counting. We compared direct YOLO12m detection with Segment Anything Model (SAM) masks classified by YOLO11-cls. After a provenance review identified overlap between the original counting row and model-development data, evaluation was repeated on 52 images of 13 plants from an independent row, with four views per plant. Manual image-level counts were the reference, and inference used paired errors averaged within plants. On 136 real detector-test tiles, YOLO12m achieved precision 0.868, recall 0.774, [email protected] of 0.817 and [email protected]:0.95 of 0.616. Mean absolute counting errors were 1.08 and 2.12 fruit per image for unripe and ripe fruit with YOLO12m, compared with 1.73 and 8.19 with SAM. Plant-level paired t-tests favoured YOLO12m strongly for ripe fruit (p = 0.000035) and marginally for unripe fruit (p = 0.041, unadjusted). The results support direct detection for image-level counting under the tested conditions. SAM fragmentation remains an unquantified explanation, and transfer across cultivars, seasons, sites and cameras requires independent validation.

Scientific Reports
Széchenyi István University (HU)
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
Ripe and unripe tomato counting from handheld camera images using deep-learning detection and segmentation-based classification — Anikó Nyéki, Bálint Ambrus, et al. · Scientific Reports (2026) | TGRS Research Map | TGRS