收藏切换
An Improved YOLOv10-Based Tomato Ripeness Detection Algorithm with LAMP Channel Pruning
收藏切换
PDF
Licheng ZHAO1, 2, Xinyu LU2, Qian WU2, Ni REN2, Lingli ZHOU2, Yawen CHENG2, Anqi HU2, Chao QI2
Smart Agriculture | 2026, 8(2) : 133 - 146
Less
收藏切换
Smart Agriculture | 2026, 8(2): 133-146
Information Processing and Decision Making
An Improved YOLOv10-Based Tomato Ripeness Detection Algorithm with LAMP Channel Pruning
Full
Licheng ZHAO1, 2, Xinyu LU2, Qian WU2, Ni REN2, Lingli ZHOU2, Yawen CHENG2, Anqi HU2, Chao QI2
Affiliations
  • 1.School of Chemical Engineering, Huaiyin Institute of Technology, Huai'an 223003, China
  • 2.Institute of Agricultural Information, Jiangsu Academy of Agricultural Sciences, Nanjing 210014, China
  • biography:ZHAO Licheng, E-mail:

Published: 2026-03-30 doi: 10.12133/j.smartag.SA202507045
Outline
收藏切换

[Objective] As a major crop in protected horticulture, cluster tomatoes grow in clusters with dense overlapping fruits. In greenhouse environments, light conditions are complex and variable, and the fruit color transitions continuously from green to red across different ripening stages, showing continuous gradation characteristics. These factors result in the low efficiency and strong subjectivity of traditional manual recognition methods. Meanwhile, deep learning-based detection models often suffer from decreased detection accuracy, large localization errors, and slow inference speed when facing complex backgrounds and color interference, making it difficult to meet the dual requirements of real-time performance and high precision in practical applications. Therefore, to meet the practical application requirements of high accuracy, high real-time performance, and strong robustness for cluster tomato ripeness detection, this paper proposes a lightweight target detection model for cluster tomato ripeness, namely LampCT-YOLO (Cluster Tomato YOLO with LAMP pruning), which is based on improved YOLOv10. Through structural optimization and lightweight transformation of the baseline model, the detection accuracy, inference speed, and robustness are effectively improved, providing a novel technical solution for cluster tomato ripeness detection. [Methods] Taking YOLOv10 as the baseline model, first, the issue of insufficient feature extraction capability in complex scenarios was addressed by introducing the SegNeXt attention mechanism into the backbone network. By adaptively adjusting attention weights and calculating the correlation matrix between different feature channels, the mechanism automatically identified color channels strongly associated with the three ripeness levels of cluster tomatoes and assigned them higher attention weights, while suppressing feature responses from irrelevant background channels such as greenhouse frames, soil, and irrigation pipes. To achieve lightweight deployment of the model and meet the real-time detection requirements of edge devices, a gradient-based global channel importance method—LAMP channel pruning technology—was introduced after model training. The core principle of this technology was to evaluate the contribution of each channel to the model's detection performance by calculating the gradient magnitude of channels in each network layer, thereby eliminating redundant channels. This significantly reduced the model size and computational complexity while effectively maintaining the model's high detection performance for the three-category ripeness classification of cluster tomatoes. [Results and Discussions] Experiments showed that under the environment of NVIDIA A100 graphics card, for 240 cluster tomato images in the test set, the LampCT-YOLO model exhibited excellent detection performance. The mean average precision at 50 intersection over union (mAP50) for the early ripe, mid-ripe, and late ripe stages of cluster tomatoes was 84.6%, 89.5%, and 88.4%, respectively, which represented increases of 5.5, 7.7, and 0.9 percentage points compared with YOLOv10. The average mAP50 for the three ripeness categories of cluster tomatoes reached 87.6%, a 4.7 percentage points improvement over YOLOv10, demonstrating outstanding performance in both detection accuracy and stability. In addition, the model was found to maintain high recognition accuracy when facing variations in light intensity, fruit occlusion ratio, and background complexity, indicating good robustness and environmental adaptability. Regarding the lightweight effect, after applying the LAMP channel pruning technology, the number of model parameters and computational complexity were reduced by 63.07% and 50.06%, respectively, while the inference speed was improved by 23.1%. This effectively met the requirements of edge computing devices for real-time detection and low power consumption, alleviating the trade-off between model accuracy and inference speed. To verify the practical application value of the LampCT-YOLO model, the model was deployed on a self-developed fruit and vegetable inspection robot, which conducted field tests on 456 clusters of tomatoes in a real greenhouse environment. The results showed that the inspection robot successfully identified 78, 61, and 248 clusters of early ripe, mid-ripe, and late ripe cluster tomatoes, respectively, with detection accuracies of 84.8%, 87.1%, and 84.4%, and an average accuracy of 85.4%. Meanwhile, there were 5, 7, and 10 false detections, as well as 9, 2, and 36 missed detections for the early ripe, mid-ripe, and late ripe stages respectively, which to a certain extent reflected the practical application potential of the model. [Conclusions] The optimized LampCT-YOLO model not only significantly improves the recognition accuracy of cluster tomatoes at different ripening stages but also greatly reduces the model complexity, successfully achieving efficient deployment in resource-constrained scenarios. This model effectively balances the dual requirements of detection accuracy and real-time performance for inspection robots, and further constructs a reusable technical framework for the ripeness detection of protected horticultural fruits and vegetables. It provides strong support for the transformation of protected agriculture from labor-intensive to technology-intensive, and injects key innovative impetus into the large-scale and diversified implementation of smart agriculture.

cluster tomato  /  ripeness detection  /  attention mechanism  /  channel pruning  /  fruit and vegetable inspection robot  /  YOLOv10
Licheng ZHAO, Xinyu LU, Qian WU, Ni REN, Lingli ZHOU, Yawen CHENG, Anqi HU, Chao QI. An Improved YOLOv10-Based Tomato Ripeness Detection Algorithm with LAMP Channel Pruning[J]. Smart Agriculture, 2026 , 8 (2) : 133 -146 . DOI: 10.12133/j.smartag.SA202507045
  • Jiangsu Provincial Agricultural Science and Technology Independent Innovation Fund(CX(24)1021)
Year 2026 volume 8 Issue 2
PDF
81
30
Cite this Article
BibTeX
Article Info
doi: 10.12133/j.smartag.SA202507045
  • Receive Date:2025-07-30
  • Online Date:2026-07-08
  • Published:2026-03-30
Article Data
Affiliations
History
  • Received:2025-07-30
Funding
Jiangsu Provincial Agricultural Science and Technology Independent Innovation Fund(CX(24)1021)
Affiliations
    1.School of Chemical Engineering, Huaiyin Institute of Technology, Huai'an 223003, China
    2.Institute of Agricultural Information, Jiangsu Academy of Agricultural Sciences, Nanjing 210014, China

Corresponding:

QI Chao, E-mail:
References
Share
https://castjournals.cast.org.cn/joweb/zhny/EN/10.12133/j.smartag.SA202507045
Share to
QR

Scan QR to access full text

Cite this article
BibTeX
Citations
表12种不同金属材料的力学参数

Family
属数
Number of
genus
种数
Number of
species
占总种数比例
Percentage of
total species (%)

Genus
种数
Number of
species
占总种数比例
Percentage of total
species (%)
鹅膏菌科Amanitaceae 2 11 5.26 鹅膏菌属 Amanita 10 4.78
小菇科 Mycenaceae 2 12 5.74 丝盖伞属 Inocybe 5 2.39
多孔菌科 Polyporaceae 8 14 6.70 蜡蘑属 Laccaria 5 2.39
红菇科 Russulaceae 3 23 11.00 小皮伞属 Marasmius 6 2.87
小菇属 Mycena 11 5.26
光柄菇属 Pluteus 5 2.39
红菇属 Russula 17 8.13
栓菌属 Trametes 5 2.39
关闭全屏
  • BibTeX
  • EndNote
  • RefWorks
  • TxT