Next Article in Journal
Molecular Mechanisms Underlying Sweet Potato (Ipomoea batatas L.) Responses to Phosphorus Deficiency
Previous Article in Journal
Alleviating Soil Compaction in an Asian Pear Orchard Using a Commercial Hand-Held Pneumatic Cultivator
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Article

A YOLOv8n-T and ByteTrack-Based Dual-Area Tracking and Counting Method for Cucumber Flowers

1
College of Science, China Agricultural University, Beijing 100193, China
2
College of Agricultural Engineering, Shanxi Agricultural University, Jinzhong 030801, China
3
College of Agricultural Unmanned System, China Agricultural University, Beijing 100193, China
4
State Key Laboratory of Agricultural and Forestry Biosecurity, MARA Key Laboratory of Surveillance and Management for Plant Quarantine Pests, College of Plant Protection, China Agricultural University, Beijing 100193, China
5
College of Engineering, China Agricultural University, Beijing 100083, China
*
Author to whom correspondence should be addressed.
Agronomy 2025, 15(7), 1744; https://doi.org/10.3390/agronomy15071744 (registering DOI)
Submission received: 7 June 2025 / Revised: 15 July 2025 / Accepted: 17 July 2025 / Published: 19 July 2025
(This article belongs to the Section Precision and Digital Agriculture)

Abstract

Accurate counting of cucumber flowers using intelligent algorithms to monitor their sex ratio is essential for intelligent facility agriculture management. However, complex greenhouse environments impose higher demands on the precision and efficiency of counting algorithms. This study proposes a dual-area counting algorithm based on an improved YOLOv8n-Track (YOLOv8n-T) and ByteTrack cascaded framework. This method accomplishes the cucumber flower counting task by detecting flower targets, tracking them frame-by-frame, and validating the count through dual-area counting. The YOLOv8n-T incorporates a Coordinate Attention (CA) mechanism and lightweight modules while optimizing the loss function, thereby improving floral feature extraction capabilities and reducing computational complexity. By integrating the ByteTrack tracking algorithm with a dual-area counting strategy, the robustness of flower counting in dynamic environments is strengthened. Experimental results show that the improved YOLOv8n-T achieves mAP and F1 scores of 86.9% and 82.1%, surpassing YOLOv8n by 3% and 2.6%, respectively, with a 0.3 G reduction in model parameters. The integrated framework achieves a detection accuracy of 82.4% for cucumber flower counting. This research provides a new method for monitoring cucumber flower sex ratios in facility agriculture, promoting the development of intelligent agricultural management.
Keywords: cucumber flowers; flower sex ratio; YOLOv8n-T; dual-area counting cucumber flowers; flower sex ratio; YOLOv8n-T; dual-area counting

Share and Cite

MDPI and ACS Style

Su, L.; Zhang, S.; Zhang, H.; Meng, X.; He, X. A YOLOv8n-T and ByteTrack-Based Dual-Area Tracking and Counting Method for Cucumber Flowers. Agronomy 2025, 15, 1744. https://doi.org/10.3390/agronomy15071744

AMA Style

Su L, Zhang S, Zhang H, Meng X, He X. A YOLOv8n-T and ByteTrack-Based Dual-Area Tracking and Counting Method for Cucumber Flowers. Agronomy. 2025; 15(7):1744. https://doi.org/10.3390/agronomy15071744

Chicago/Turabian Style

Su, Liyang, Shujuan Zhang, Hongtu Zhang, Xiangsen Meng, and Xiongkui He. 2025. "A YOLOv8n-T and ByteTrack-Based Dual-Area Tracking and Counting Method for Cucumber Flowers" Agronomy 15, no. 7: 1744. https://doi.org/10.3390/agronomy15071744

APA Style

Su, L., Zhang, S., Zhang, H., Meng, X., & He, X. (2025). A YOLOv8n-T and ByteTrack-Based Dual-Area Tracking and Counting Method for Cucumber Flowers. Agronomy, 15(7), 1744. https://doi.org/10.3390/agronomy15071744

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop