MCS-DETR: An Efficient Multi-Scale Context-Aware Detection Model for the Selective Harvesting of Greenhouse Cucumbers
Source abstract
Abstract
Selective harvesting of greenhouse cucumbers requires accurate detection with low inference latency. In greenhouse canopies, mature cucumbers are often partly occluded and visually similar to surrounding stems and leaves, which makes harvestability recognition difficult. Existing real-time detectors still struggle to preserve fine boundary cues, capture long-range context, and remain compact enough for on-device inference under these conditions. This study proposes MCS-DETR, an efficient multi-scale context-aware detector built on RT-DETR. Instead of increasing model scale, MCS-DETR redesigns shallow feature extraction, high-level contextual interaction, and cross-scale feature aggregation within a compact framework. A shallow feature level is also retained to preserve fine contour information. On the greenhouse cucumber dataset, MCS-DETR achieved 93.4% mAP@0.5 and 76.8% mAP@0.5:0.95, outperforming RT-DETR-R18 while requiring fewer parameters and less computation. On an NVIDIA Jetson Orin NX Super (Hunan ChuangLebo Intelligent Technology Co., Ltd., Room 2003, Building C, Xinchanghai Digital Center, Changsha Economic and Technological Development Zone, Changsha, Hunan, China) platform, it reached 26.3 FPS after TensorRT acceleration. These results indicate that MCS-DETR can provide an efficient on-device perception module for real-time greenhouse cucumber detection.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Smart Agriculture and AI · Advanced Neural Network Applications · Greenhouse Technology and Climate Control
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
College of Mechanical and Electrical Engineering, Qingdao Agricultural University, Qingdao 266109, China
College of Electrical and Information Engineering, Changchun Institute of Technology, Changchun 130012, China
Funding
Science and Technology Development Program of Jilin Province · Zhimin Tong
References (36)
Show source-provided references
1. Liu, W., Sun, H., Xia, Y., and Kang, J. (2024). Real-Time Cucumber Target Recognition in Greenhouse Environments Using Color Segmentation and Shape Matching. Appl. Sci., 14.10.3390/app14051884 ↗
2. Evaluation of cucumber yield, economic benefit and water productivity under different soil matric potentials in solar greenhouses in North China10.1016/j.agwat.2020.106442 ↗
3. Cucumber picking robots: Technological progress, challenges, and future directions10.1016/j.atech.2026.101813 ↗
4. Human-centered approach for an efficient cucumber harvesting robot system: Harvest ordering, visual servoing, and end-effector10.1016/j.compag.2023.108116 ↗
5. Huang, Y., Xu, S., Chen, H., Li, G., Dong, H., Yu, J., Zhang, X., and Chen, R. (2025). A review of visual perception technology for intelligent fruit harvesting robots. Front. Plant Sci., 16.10.3389/fpls.2025.1646871 ↗
6. Automatic Detection of Field-Grown Cucumbers for Robotic Harvesting10.1109/ACCESS.2018.2851376 ↗
7. Image segmentation algorithm for greenhouse cucumber canopy under various natural lighting conditions
8. Cucumber Detection Based on Texture and Color in Greenhouse10.1142/S0218001417540167 ↗
9. Multi-template matching algorithm for cucumber recognition in natural environment10.1016/j.compag.2016.08.001 ↗
10. Automatic cucumber recognition algorithm for harvesting robots in the natural environment using deep learning and multi-feature fusion10.1016/j.compag.2020.105254 ↗
11. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks10.1109/TPAMI.2016.2577031 ↗
12. Redmon, J., Divvala, S., Girshick, R., and Farhadi, A. (2016). You Only Look Once: Unified, Real-Time Object Detection. Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016, IEEE.10.1109/CVPR.2016.91 ↗
13. Wang, N., Qian, T., Yang, J., Li, L., Zhang, Y., Zheng, X., Xu, Y., Zhao, H., and Zhao, J. (2022). An Enhanced YOLOv5 Model for Greenhouse Cucumber Fruit Recognition Based on Color Space Features. Agriculture, 12.10.3390/agriculture12101556 ↗
14. Su, L., Sun, H., Zhang, S., Lu, X., Wang, R., Wang, L., and Wang, N. (2023). Cucumber Picking Recognition in Near-Color Background Based on Improved YOLOv5. Agronomy, 13.10.3390/agronomy13082062 ↗
15. Cucumber Fruits Detection in Greenhouses Based on Instance Segmentation10.1109/ACCESS.2019.2942144 ↗
16. Multi-network fusion algorithm with transfer learning for green cucumber segmentation and recognition under complex natural environment10.1016/j.compag.2022.106789 ↗
17. Application of amodal segmentation on cucumber segmentation and occlusion recovery10.1016/j.compag.2023.107847 ↗
18. Luo, W., Li, Y., Urtasun, R., and Zemel, R. (2016, January 5–10). Understanding the effective receptive field in deep convolutional neural networks. Proceedings of the Advances in Neural Information Processing Systems 29, Barcelona, Spain.
19. Carion, N., Massa, F., Synnaeve, G., Usunier, N., Kirillov, A., and Zagoruyko, S. (2020). End-to-End Object Detection with Transformers. Proceedings of the European Conference on Computer Vision (ECCV), Glasgow, UK, 23–28 August 2020, Springer Nature.10.1007/978-3-030-58452-8_13 ↗
20. Zhu, X., Su, W., Lu, L., Li, B., Wang, X., and Dai, J. (2020). Deformable DETR: Deformable transformers for end-to-end object detection. arXiv.
21. Zhao, Y., Lv, W., Xu, S., Wei, J., Wang, G., Dang, Q., Liu, Y., and Chen, J. (2024). DETRs Beat YOLOs on Real-time Object Detection. Proceedings of the 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 16–22 June 2024, IEEE.10.1109/CVPR52733.2024.01605 ↗
22. Jin, X., Zhang, J., Wang, F., Zhao, M., Wang, Y., Yang, J., Wu, J., and Zhou, B. (2025). PHRF-RTDETR: A lightweight weed detection method for upland rice based on RT-DETR. Front. Plant Sci., 16.10.3389/fpls.2025.1556275 ↗
23. GP-DETR: A lightweight real-time intelligent model for near-background color pepper detection in complex agricultural environments10.1016/j.atech.2025.101219 ↗
24. Song, S., Qu, H., Wang, S., Yang, H., Hao, Y., and Zhang, G. (2026). RGHD: A Risk-Gated Harvestability Decision Framework for Occlusion-Aware Greenhouse Melon Harvesting. Agriculture, 16.10.3390/agriculture16050589 ↗
25. Huang, Z., Zhang, X., Wang, H., Wei, H., Zhang, Y., and Zhou, G. (2025). Pear Fruit Detection Model in Natural Environment Based on Lightweight Transformer Architecture. Agriculture, 15.10.3390/agriculture15010024 ↗
26. An efficient scale-aware model based on the improved RT-DETR for pomegranate growth stage detection10.1016/j.neucom.2025.130462 ↗
27. Wu, M., Qiu, Y., Wang, W., Su, X., Cao, Y., and Bai, Y. (2025). Improved RT-DETR and its application to fruit ripeness detection. Front. Plant Sci., 16.10.3389/fpls.2025.1423682 ↗
28. Wang, C.Y., Liao, H.Y.M., Wu, Y.H., Chen, P.Y., Hsieh, J.W., and Yeh, I.H. (2020). CSPNet: A New Backbone that can Enhance Learning Capability of CNN. Proceedings of the 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), Seattle, WA, USA, 14–19 June 2020, IEEE.10.1109/CVPRW50498.2020.00203 ↗
29. Yu, W., and Wang, X. (2025). MambaOut: Do We Really Need Mamba for Vision?. Proceedings of the 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, TN, USA, 11–15 June 2025, IEEE.10.1109/CVPR52734.2025.00423 ↗
30. Ding, X., Zhang, Y., Ge, Y., Zhao, S., Song, L., Yue, X., and Shan, Y. (2024). UniRepLKNet: A Universal Perception Large-Kernel ConvNet for Audio, Video, Point Cloud, Time-Series and Image Recognition. Proceedings of the 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 16–22 June 2024, IEEE.10.1109/CVPR52733.2024.00527 ↗
31. Yun, S., and Ro, Y. (2024). SHViT: Single-Head Vision Transformer with Memory Efficient Macro Design. Proceedings of the 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 16–22 June 2024, IEEE.10.1109/CVPR52733.2024.00550 ↗
32. Michel, P., Levy, O., and Neubig, G. (2019, January 8–14). Are sixteen heads really better than one?. Proceedings of the Advances in Neural Information Processing Systems 32, Vancouver, BC, Canada.
33. Tan, M., Pang, R., and Le, Q.V. (2020). EfficientDet: Scalable and Efficient Object Detection. Proceedings of the 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 13–19 June 2020, IEEE.10.1109/CVPR42600.2020.01079 ↗
34. Chen, J., Kao, S.H., He, H., Zhuo, W., Wen, S., Lee, C.H., and Chan, S.H.G. (2023). Run, Don’t Walk: Chasing Higher FLOPS for Faster Neural Networks. Proceedings of the 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Vancouver, BC, Canada, 17–24 June 2023, IEEE.10.1109/CVPR52729.2023.01157 ↗
35. Ding, X., Zhang, X., Ma, N., Han, J., Ding, G., and Sun, J. (2021). RepVGG: Making VGG-style ConvNets Great Again. Proceedings of the 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, TN, USA, 20–25 June 2021, IEEE.10.1109/CVPR46437.2021.01352 ↗
36. Chattopadhay, A., Sarkar, A., Howlader, P., and Balasubramanian, V.N. (2018). Grad-CAM++: Generalized Gradient-Based Visual Explanations for Deep Convolutional Networks. Proceedings of the 2018 IEEE Winter Conference on Applications of Computer Vision (WACV), Lake Tahoe, NV, USA, 12–15 March 2018, IEEE.10.1109/WACV.2018.00097 ↗