Abstract:Small target size, leaf occlusion, and interference from artificial illumination at night can readily cause missed detection of pineapple plant cores during precision flowering induction. When the plant core is completely occluded, its direct visual information is unavailable, while plants that have already entered the early flowering or fruiting stage should not be subjected to repeated flowering induction. To address these problems, a detection and localization method for different visibility states of pineapple plant cores was developed. A field dataset containing 5 220 images acquired under daytime and nighttime conditions was constructed, with three detection classes defined as plant core, plant-core extended region, and early-flowering fruit. Based on YOLO 11n, PineCore-YOLO was developed by incorporating a P2 detection layer, DySample dynamic upsampling, and an efficient multi-scale attention (EMA) mechanism to enhance the representation of small-scale and partially occluded plant cores while suppressing interference caused by leaf reflections, dew highlights, and complex illumination. For completely occluded plant cores with no direct visual evidence, the detected plant-core extended region was used as a local constraint, and the directional information of surrounding leaves was extracted by using the structure tensor;the hidden plant-core position was then inferred from the multi-directional convergence of leaf orientations. Detected early-flowering fruits were used as a basis for suppressing unnecessary spraying. Experimental results showed that PineCore-YOLO achieved a precision of 92.2%, a recall of 90.2%, an mAP@0.5 of 96.3%, and an mAP@0.5:0.95 of 79.5%, representing improvements of 7.3, 9.9, 10.3, and 21.6 percentage points, respectively, over YOLO 11n. The AP@0.5 for plant-core detection was increased from 75.4% to 93.5%, while the model size was 5.9 MB and the detection speed reached 135 f/s. For completely occluded samples, the multi-directional convergence localization method achieved a localization hit rate of 92.9%, which was 12.5 percentage points higher than localization using the geometric center of the plant-core extended region, and the overall success rate of the complete detection and localization pipeline reached 91.2%. These results demonstrated that PineCore-YOLO can improve pineapple plant-core detection and localization under complex field conditions and provide visual perception support for precision pineapple flowering induction.