Aim of study: Identifying flowering in pineapples is critical for the selective application of growth regulators and for achieving a uniform harvest. The objective of this study was to develop an efficient and accurate method for detecting flowering in pineapples (Ananas comosus) using drones and state-of-the-art deep learning models. Area of study: The research was conducted on 1.8 ha of agricultural plots provided by the company DIMASUR, located in Juan Rodríguez Clara, Veracruz, Mexico. Material and methods: A Mavic 3 drone, equipped with a Hasselblad camera, was used to capture images at an altitude of 14 meters, obtaining a nominal GSD of 0.38 cm/pixel. A robust dataset of 6,116 standardized images (640 x 640 tiles) and approximately 143,500 labels was generated under various lighting conditions, after applying tiling and data augmentation techniques. The performance of YOLOv8n, YOLOv10n, and YOLOv11n architectures was evaluated and compared using a unified set of hyperparameters (Adam optimizer, lr0 = 0.01) to ensure a fair comparison. Main results: The YOLOv11n model achieved the best overall performance, with an accuracy of 95.95%, a recall of 93.69%, a precision of 97.47%, and an mAP@0.5-0.95 of 80.47%. This model demonstrated superior stability in the face of occlusions and flower overlap, while also achieving the most efficient training time (5.6 hours). These results confirm that YOLOv11n offers the optimal balance between accuracy and sensitivity, while maintaining low computational costs ideal for real-time applications. Research highlights: The integration of high-resolution drones and YOLO algorithms enables flowering detection with an accuracy of over 97%. (1) The YOLOv11n model proved to be more reliable and consistent than its predecessors in the face of variations in lighting and crop density. (2) The proposed approach optimizes agricultural monitoring, enabling data-driven decision-making that maximizes profitability and operational efficiency in pineapple cultivation.