A Recognition Method for Marigold Picking Points Based on the Lightweight SCS-YOLO-Seg Model
Abstract
1. Introduction
- (1)
- To reduce the model size and parameter count, the StarNet model was employed to replace the original backbone network, and a novel lightweight feature extraction module, C2f-Star, was constructed.
- (2)
- A Seg-Marigold segmentation head featuring a dual-path collaborative architecture was designed, further minimizing the model scale while enhancing segmentation efficiency.
- (3)
- Based on the extracted corolla and stem masks, a picking point identification method was proposed, integrating corolla contour fitting with skeleton refinement techniques.
2. Materials and Methods
2.1. Image Acquisition and Data Processing
2.2. Overall Overview of Marigold Picking Point Recognition Method
2.3. Improvements of the YOLOv8n-Seg Model
2.3.1. YOLOv8n-Seg Model
2.3.2. The SCS-YOLO-Seg Segmentation Model
2.3.3. The Network Structure of StarNet
2.3.4. C2f-Star Module
2.3.5. Segmentation Head
2.4. Picking Point Recognition Strategy
- (1)
- Image segmentation and mask binarization: We processed a segmented marigold image to precisely extract masks corresponding to the corolla (category index 0) and stem (category index 1), obtaining their distinct regions of interest (ROIs). These masks were then binarized to isolate clear target regions for subsequent morphological analysis, specifically corolla ellipse fitting and stem characterization.
- (2)
- Corolla ellipse fitting and optimization (circles in the Figure 7): To accurately define the marigold corolla picking region and simulate its natural morphology, we fit an ellipse to the binary corolla mask. Reflecting the natural tilted orientation observed in the corolla, the initial fitting used an inclination angle of 30°. Additionally, to incorporate a safety margin during harvesting—preventing corolla damage and reducing stem detachment risk—we scaled the minor axis of the fitted ellipse by a factor of 1.4. This optimization expanded the ellipse’s coverage of the target corolla region, improving the reliability of picking-point identification.
- (3)
- Skeleton extraction of the stem: To extract the stem skeleton, the contour was first refined using morphological opening and closing operations to eliminate small noise points and fill minor holes, thereby enhancing structural integrity and continuity. Subsequently, the Zhang–Suen thinning algorithm [26] was applied to the processed binary region to obtain a preliminary central skeleton. As the initial skeleton often contains extraneous small branches that are not representative of the primary stem structure and could potentially complicate downstream analysis, connected component analysis was employed to identify and prune branches shorter than 10 pixels. This step ensured the retention of only the core stem skeleton.
- (4)
- Determination of picking point (dots in the Figure 7): The intersection between the optimized corolla ellipse and the stem skeleton was determined by performing a pixel-wise comparison of the binary stem skeleton image and the ellipse mask image. An intersection was registered at pixel coordinates where both images exhibited non-zero values. If the initial 30° oriented ellipse yielded no intersections, the ellipse was rotated by 90°, and the comparison was repeated. If intersections were found after rotation, the point with the minimum Y-coordinate (the uppermost position in the image coordinate system) was selected as the optimal picking point. The procedure terminated if no intersections were detected after the 90° rotation.
2.5. Experimental Environment and Model Evaluation Indicators
2.5.1. Experimental Environment Configuration
2.5.2. Evaluation Metrics of Model
3. Results
3.1. Model Training
3.2. Comparison Experiment of Lightweight Models
3.3. Ablation Experiment
3.4. Comparison of Segmentation Performance for Different Models
3.5. Picking Point Recognition Result
4. Discussion
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Parklak, W.; Ounjaijean, S.; Kulprachakarn, K.; Boonyapranai, K. In Vitro a-Amylase and a-Glucosidase Inhibitory Effects, Antioxidant Activities, and Lutein Content of Nine Different Cultivars of Marigold Flowers (Tagetes spp.). Molecules 2023, 28, 3314. [Google Scholar] [CrossRef] [PubMed]
- Zhang, Z.; Zeng, C.; Xing, Z.; Xu, P.; Guo, Q.; Shi, R.; Wang, Y. Discrete element modeling and parameter calibration of safflower biomechanical properties. Int. J. Agric. Biol. Eng. 2024, 17, 37–46. [Google Scholar] [CrossRef]
- Yang, Q.H.; Chang, C.; Bao, G.J.; Fan, J.; Xun, Y. Recognition and localization system of the robot for harvesting Hangzhou White Chrysanthemums. Int. J. Agric. Biol. Eng. 2018, 11, 88–95. [Google Scholar] [CrossRef]
- Yang, Q.; Luo, S.; Chang, C.; Xun, Y.; Bao, G. Segmentation algorithm for Hangzhou white chrysanthemums based on least squares support vector machine. Int. J. Agric. Biol. Eng. 2019, 12, 127–134. [Google Scholar] [CrossRef]
- Zhang, Z.G.; Shi, R.M.; Xing, Z.Y.; Guo, Q.F.; Zeng, C. Improved Faster Region-Based Convolutional Neural Networks (R-CNN) Model Based on Split Attention for the Detection of Safflower Filaments in Natural Environments. Agronomy 2023, 13, 2596. [Google Scholar] [CrossRef]
- Zhang, Z.G.; Wang, Y.Z.; Xu, P.; Shi, R.M.; Xing, Z.Y.; Li, J.Y. WED-YOLO: A Detection Model for Safflower Under Complex Unstructured Environment. Agriculture 2025, 15, 205. [Google Scholar] [CrossRef]
- Zhao, W.; Wu, D.; Zheng, X. Detection of Chrysanthemums Inflorescence Based on Improved CR-YOLOv5s Algorithm. Sensors 2023, 23, 4234. [Google Scholar] [CrossRef]
- Qi, C.; Gao, J.F.; Pearson, S.; Harman, H.; Chen, K.J.; Shu, L. Tea chrysanthemum detection under unstructured environments using the TC-YOLO model. Expert Syst. Appl. 2022, 193, 116473. [Google Scholar] [CrossRef]
- Chen, B.B.; Ding, F.; Ma, B.J.; Wang, L.Q.; Ning, S.P. A Method for Real-Time Recognition of Safflower Filaments in Unstructured Environments Using the YOLO-SaFi Model. Sensors 2024, 24, 4410. [Google Scholar] [CrossRef]
- Fan, Y.; Tohti, G.; Geni, M.; Zhang, G.; Yang, J. A marigold corolla detection model based on the improved YOLOv7 lightweight. Signal Image Video Process. 2024, 18, 4703–4712. [Google Scholar] [CrossRef]
- Fatehi, F.; Bagherpour, H.; Parian, J.A. Enhancing the Performance of YOLOv9t Through a Knowledge Distillation Approach for Real-Time Detection of Bloomed Damask Roses in the Field. Smart Agric. Technol. 2025, 10, 100794. [Google Scholar] [CrossRef]
- Hanlin, Z.; Jianlong, L.; Qiuping, Y.; Wenjun, L.; Jingfeng, Q.; Jing, L.; Xiaoyu, X.; Yilan, S.; Shiguo, H.; Jie, P. Advancing jasmine tea production: YOLOv7-based real-time jasmine flower detection. J. Sci. Food Agric. 2024, 104, 9297–9311. [Google Scholar] [CrossRef]
- Hee-Mun, P.; Jin-Hyun, P. YOLO Network with a Circular Bounding Box to Classify the Flowering Degree of Chrysanthemum. AgriEngineering 2023, 5, 1530–1543. [Google Scholar] [CrossRef]
- Zhang, J.Y.; Lu, J.S.; Qi, Q.M.; Sun, M.X.; Zheng, G.J.; Zhang, Q.Y.; Chen, F.D.; Chen, S.M.; Zhang, F.; Fang, W.M.; et al. Classification of Garden Chrysanthemum Flowering Period Using Digital Imagery from Unmanned Aerial Vehicle (UAV). Agronomy 2025, 15, 421. [Google Scholar] [CrossRef]
- Zhang, H.; Ge, Y.; Xia, H.; Sun, C. Safflower picking points localization method during the full harvest period based on SBP-YOLOv8s-seg network. Comput. Electron. Agric. 2024, 227, 109646. [Google Scholar] [CrossRef]
- Xing, Z.; Zhang, Z.; Shi, R.; Guo, Q.; Zeng, C. Filament-necking localization method via combining improved PSO with rotated rectangle algorithm for safflower-picking robots. Comput. Electron. Agric. 2023, 215, 108464. [Google Scholar] [CrossRef]
- Xing, Z.; Zhang, Z.; Wang, Y.; Xu, P.; Guo, Q.; Zeng, C.; Shi, R. SDC-DeepLabv3+: Lightweight and Precise Localization Algorithm for Safflower-Harvesting Robots. Plant Phenomics 2024, 6, 0194. [Google Scholar] [CrossRef]
- Wang, X.; Zhou, J.; Xu, Y.; Cui, C.; Liu, Z.; Chen, J. Location of safflower filaments picking points in complex environment based on improved Yolov5 algorithm. Comput. Electron. Agric. 2024, 227, 109463. [Google Scholar] [CrossRef]
- Chunlin, C.; Jinzhu, L.; Mingchuan, Z.; Jiao, Y.; Min, L.; Zongmei, G. A YOLOv3-based computer vision system for identification of tea buds and the picking point. Comput. Electron. Agric. 2022, 198, 107116. [Google Scholar] [CrossRef]
- Li, Y.T.; He, L.Y.; Jia, J.M.; Lv, J.; Chen, J.N.; Qiao, X.; Wu, C.Y. In-field tea shoot detection and 3D localization using an RGB-D camera. Comput. Electron. Agric. 2021, 185, 106149. [Google Scholar] [CrossRef]
- Chen, B.; Ding, F.; Ma, B.; Yao, Q.; Ning, S. Research on detection and location method of safflower filament picking points during the blooming period in unstructured environments. Sci. Rep. 2025, 15, 10851. [Google Scholar] [CrossRef]
- Zeng, J.; Ouyang, H.; Liu, M.; Leng, L.; Fu, X. Multi-scale YOLACT for instance segmentation. J. King Saud Univ.-Comput. Inf. Sci. 2022, 34, 9419–9427. [Google Scholar] [CrossRef]
- McNally, W.; Wong, A.; McPhee, J. STAR-Net: Action recognition using spatio-temporal activation reprojection. In Proceedings of the 2019 16th Conference on Computer and Robot Vision (CRV), Kingston, QC, Canada, 29–31 May 2019; pp. 49–56. [Google Scholar]
- Guo, J.; Li, Y.; Lin, W.; Chen, Y.; Li, J. Network decoupling: From regular to depthwise separable convolutions. arXiv 2018, arXiv:1808.05517. [Google Scholar] [CrossRef]
- Wu, Y.; He, K. Group normalization. In Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany, 8–14 September 2018; pp. 3–19. [Google Scholar]
- Milewski, P. A Review of Image Thinning Algorithms. In Proceedings of the International Conference on Computer Information Systems and Industrial Management, Bialystok, Poland, 27–29 September 2024; pp. 3–16. [Google Scholar]
- Qin, D.; Leichner, C.; Delakis, M.; Fornoni, M.; Luo, S.; Yang, F.; Wang, W.; Banbury, C.; Ye, C.; Akin, B. MobileNetV4: Universal models for the mobile ecosystem. In Proceedings of the European Conference on Computer Vision, Milan, Italy, 29 September–4 October 2024; pp. 78–96. [Google Scholar]
- Chen, J.; Kao, S.-h.; He, H.; Zhuo, W.; Wen, S.; Lee, C.-H.; Chan, S.-H.G. Run, don’t walk: Chasing higher FLOPS for faster neural networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Vancouver, BC, Canada, 17–24 June 2023; pp. 12021–12031. [Google Scholar]
- Liu, X.; Peng, H.; Zheng, N.; Yang, Y.; Hu, H.; Yuan, Y. Efficientvit: Memory efficient vision transformer with cascaded group attention. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Vancouver, BC, Canada, 17–24 June 2023; pp. 14420–14430. [Google Scholar]
- Wang, A.; Chen, H.; Lin, Z.; Han, J.; Ding, G. Repvit: Revisiting mobile cnn from vit perspective. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 16–22 June 2024; pp. 15909–15920. [Google Scholar]
- Zheng, S.; Liu, Y.; Weng, W.; Jia, X.; Yu, S.; Wu, Z. Tomato recognition and localization method based on improved YOLOv5n-seg model and binocular stereo vision. Agronomy 2023, 13, 2339. [Google Scholar] [CrossRef]
- Paul, A.; Machavaram, R. Advanced segmentation models for automated capsicum peduncle detection in night-time greenhouse environments. Syst. Sci. Control. Eng. 2024, 12, 2437162. [Google Scholar] [CrossRef]
- Xie, Y.; Chen, L. CBLN-YOLO: An Improved YOLO11n-Seg Network for Cotton Topping in Fields. Agronomy 2025, 15, 996. [Google Scholar] [CrossRef]
- Chen, Z.; Liu, B. A High-Accuracy PCB Defect Detection Algorithm Based on Improved YOLOv12. Symmetry 2025, 17, 978. [Google Scholar] [CrossRef]
- Selvaraju, R.R.; Cogswell, M.; Das, A.; Vedantam, R.; Parikh, D.; Batra, D. Grad-CAM: Visual explanations from deep networks via gradient-based localization. Int. J. Comput. Vis. 2020, 128, 336–359. [Google Scholar] [CrossRef]
- Sun, S.; Li, C.; Chee, P.W.; Paterson, A.H.; Jiang, Y.; Xu, R.; Robertson, J.S.; Adhikari, J.; Shehzad, T. Three-dimensional photogrammetric mapping of cotton bolls in situ based on point cloud segmentation and clustering. ISPRS J. Photogramm. Remote Sens. 2020, 160, 195–207. [Google Scholar] [CrossRef]
- Cai, B.; Wang, H.; Yao, M.; Fu, X. Focus more on what? Guiding multi-task training for end-to-end person search. IEEE Trans. Circuits Syst. Video Technol. 2025, 35, 7266–7278. [Google Scholar] [CrossRef]
- Yao, M.; Wang, H.; Chen, Y.; Fu, X. Between/within view information completing for tensorial incomplete multi-view clustering. IEEE Trans. Multimed. 2024, 27, 1538–1550. [Google Scholar] [CrossRef]
Backbone | Category | P (%) | R (%) | mAP@0.5(%) | Model Size (MB) | Parameter Count | GFLOPs |
---|---|---|---|---|---|---|---|
EfficientViT | corolla | 78.0 | 84.6 | 88.9 | 8.8 | 4,261,078 | 13.30 |
stem | 77.8 | 68.1 | 77.5 | ||||
MobileNetV4 | corolla | 76.1 | 84.0 | 88.2 | 11.7 | 5,952,694 | 26.4 |
stem | 78.9 | 67.9 | 77.4 | ||||
Fastnet | corolla | 79.2 | 83.5 | 89.1 | 8.7 | 4,424,986 | 14.6 |
stem | 81.3 | 68.8 | 78.6 | ||||
Repvit | corolla | 77.8 | 82.4 | 87.8 | 13.8 | 4,470,816 | 22.4 |
stem | 81.1 | 71.1 | 78.6 | ||||
Starnet | corolla | 79.2 | 83.5 | 89.1 | 5.2 | 2,465,590 | 10.4 |
stem | 81.6 | 68.8 | 78.6 |
Baseline Model | Starnet | C2f-Star | Seg-Marigold | Category | P (%) | R (%) | mAP@0.5 (%) | Model Size (MB) | Parameter Count | GFLOPs |
---|---|---|---|---|---|---|---|---|---|---|
YOLOv8n | × | × | × | corolla | 77.1 | 83.4 | 88.5 | 6.5 | 3,258,454 | 12 |
stem | 83.5 | 69.3 | 79.7 | |||||||
YOLOv8n | √ | × | × | corolla | 79.2 | 83.5 | 89.1 | 5.2 | 2,465,590 | 10.4 |
stem | 81.6 | 68.8 | 78.6 | |||||||
YOLOv8n | √ | √ | × | corolla | 76.6 | 82.5 | 88.0 | 4.6 | 2,265,430 | 10 |
stem | 80.3 | 69.4 | 76.9 | |||||||
YOLOv8n | √ | × | √ | corolla | 78.4 | 82.1 | 87.9 | 3.5 | 1,707,509 | 8.4 |
stem | 77.7 | 67.4 | 76.1 | |||||||
YOLOv8n | √ | √ | √ | corolla | 78.7 | 82.6 | 88 | 3.1 | 1,507,349 | 8.1 |
stem | 82.3 | 67.4 | 78 |
Different Models | Category | P (%) | R (%) | mAP@0.5(%) | Model Size (MB) | Parameter Count | GFLOPs |
---|---|---|---|---|---|---|---|
YOLOv5n | corolla | 80.1 | 82.2 | 87.8 | 3.9 | 1,881,103 | 6.7 |
stem | 81.0 | 69.3 | 77.0 | ||||
YOLOv9c | corolla | 74.7 | 85.9 | 88.9 | 56.3 | 27,626,070 | 157.6 |
stem | 79.6 | 72.3 | 79.3 | ||||
YOLOv11n | corolla | 76.5 | 85.4 | 88.8 | 5.8 | 2,834,958 | 10.2 |
stem | 79.3 | 72.4 | 79.4 | ||||
YOLOv12n | corolla | 74.7 | 83.1 | 87.6 | 5.7 | 2,761,150 | 9.2 |
stem | 81.8 | 67.8 | 77.4 | ||||
YOLOv8n | corolla | 77.1 | 83.4 | 88.5 | 6.5 | 3,258,454 | 12.0 |
stem | 83.5 | 69.3 | 79.7 | ||||
SCS-YOLO-Seg | corolla | 78.7 | 82.6 | 88.0 | 3.1 | 1,507,349 | 8.1 |
stem | 82.3 | 67.4 | 78.0 |
Segmentation Model | Point_all | Point_a | Point_e | AP (%) | WP (%) | Composition of Time (ms) | ||
---|---|---|---|---|---|---|---|---|
Preprocessing | Reasoning | Identification | ||||||
SCS-YOLO-Seg | 572 | 534 | 38 | 93.36 | 6.64 | 2.53 | 26.73 | 28.66 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Ma, B.; Wu, Z.; Ge, Y.; Chen, B.; Zhang, H.; Xia, H.; Wang, D. A Recognition Method for Marigold Picking Points Based on the Lightweight SCS-YOLO-Seg Model. Sensors 2025, 25, 4820. https://doi.org/10.3390/s25154820
Ma B, Wu Z, Ge Y, Chen B, Zhang H, Xia H, Wang D. A Recognition Method for Marigold Picking Points Based on the Lightweight SCS-YOLO-Seg Model. Sensors. 2025; 25(15):4820. https://doi.org/10.3390/s25154820
Chicago/Turabian StyleMa, Baojian, Zhenghao Wu, Yun Ge, Bangbang Chen, He Zhang, Hao Xia, and Dongyun Wang. 2025. "A Recognition Method for Marigold Picking Points Based on the Lightweight SCS-YOLO-Seg Model" Sensors 25, no. 15: 4820. https://doi.org/10.3390/s25154820
APA StyleMa, B., Wu, Z., Ge, Y., Chen, B., Zhang, H., Xia, H., & Wang, D. (2025). A Recognition Method for Marigold Picking Points Based on the Lightweight SCS-YOLO-Seg Model. Sensors, 25(15), 4820. https://doi.org/10.3390/s25154820