高级检索+

基于改进YOLOv12+Deep OC-Sort的桃蛀螟飞行轨迹跟踪方法

Flight trajectory tracking method of peach borer based on improved YOLOv12+Deep OC-Sort

  • 摘要: 针对无可见光环境下桃蛀螟成虫飞行轨迹监测中存在目标尺度小、运动非线性强及短时遮挡易引发轨迹断裂的问题,该研究通过目标检测与多目标跟踪方法的协同优化,提升飞行轨迹的连续性与身份保持。在目标检测阶段,引入C3k2_DEAB模块增强复杂背景下的小目标表征能力,结合BiFPN实现多尺度特征自适应融合,并通过DIoU_NMS优化密集目标场景中的非极大值抑制,提高检测完整性与定位精度。在多目标跟踪阶段,构建基于迭代运动平滑的卡尔曼滤波预测优化策略,并提出基于目标数量先验的轨迹一致性约束策略,以减弱短时漏检对轨迹的影响;同时设计针对短时断裂的轨迹优化与关联修复方法,提高复杂运动条件下的个体身份一致性。试验结果表明,所提出的方法相较于原始YOLOv12+Deep OC-Sort取得显著提升,其中关联准确率(association accuracy,AssA)提高3.42个百分点,轨迹断裂次数(fragmentations,Frag)减少305次轨迹断裂,身份一致性F1值(identity F1-score,IDF1)提高3.74个百分点,高阶目标跟踪精度(higher order tracking accuracy,HOTA)提高1.85个百分点,多目标跟踪精度(multiple object tracking precision,MOTP)提高2.22个百分点,多目标跟踪准确率(multiple object tracking accuracy,MOTA)提高3.85个百分点。可视化结果进一步显示,改进方法有效减少高速运动和短时遮挡引起的轨迹断裂及身份重分配,使飞行轨迹更加完整平滑。该研究通过检测与跟踪阶段的系统优化,实现了无可见光条件下桃蛀螟成虫飞行轨迹的精确表征,为飞行行为分析与害虫智能监测提供数据基础和方法参考。

     

    Abstract: In view of the significant challenges posed by small target scale, strong motion nonlinearity, and frequent short-term occlusions in the flight trajectory monitoring of peach borer (Carposina sasakii) adults under the absence of visible light, this study proposes a collaboratively optimized framework that integrates target detection and multi-object tracking to achieve robust, continuous, and identity-consistent trajectory acquisition. In nocturnal or infrared imaging environments, peach borer adults typically exhibit rapid, irregular, and highly nonlinear flight behaviors, accompanied by weak visual contrast, blurred contours, and intermittent target disappearance. These characteristics substantially increase the difficulty of reliable detection and tracking, often leading to incomplete detections, frequent identity switches, and severe trajectory fragmentation, which in turn undermine the validity of long-term trajectory-based behavioral analysis.To address these challenges, this study argues that isolated optimization of either the detection or tracking module is insufficient. Instead, a joint optimization strategy across both stages is required to enhance the overall robustness of the trajectory acquisition pipeline. Accordingly, a detection–tracking collaborative framework is developed, in which the detection stage is optimized to provide more complete and stable observations, while the tracking stage is designed to better tolerate short-term detection failures and abrupt motion changes.In the target detection phase, an improved detection architecture is constructed to enhance robustness against complex backgrounds, weak infrared contrast, and dense target distributions. Specifically, a novel C3k2_DEAB module is introduced into the backbone network to strengthen feature representation for small-scale flying targets. By expanding the effective local receptive field and incorporating attention-driven feature discrimination mechanisms, the proposed module improves the detector’s sensitivity to weak, fragmented, and low-contrast target cues commonly observed in infrared imagery. In addition, a BiFPN-based multi-scale feature fusion strategy is employed to enable adaptive integration of semantic and spatial information across different feature levels. This design enhances detection completeness for targets with varying scales, motion states, and imaging conditions, thereby reducing missed detections caused by scale variation and rapid motion.To further address target overlap and dense flight scenarios, Distance-IoU-based Non-Maximum Suppression (DIoU-NMS) is incorporated into the inference stage. By jointly considering overlap and center distance between bounding boxes, DIoU-NMS effectively reduces false suppression in crowded scenes, improving both localization accuracy and detection recall for closely spaced flying insects.In the multi-object tracking phase, a Kalman filter–based prediction optimization strategy incorporating iterative motion smoothing is proposed to better model the nonlinear and abrupt motion patterns of peach borer adults. By introducing iterative smoothing into the state prediction process, the tracker becomes more resilient to sudden velocity changes and short-term observation noise, which are common in insect flight trajectories. Furthermore, a trajectory consistency constraint strategy based on a predefined target number prior is designed to mitigate the adverse effects of short-term missed detections. This constraint prevents premature trajectory termination and erroneous identity reassignment caused by transient detection failures or occlusions.To further enhance tracking robustness, a trajectory optimization and association repair mechanism for short-term trajectory fragmentation is developed. Within a limited temporal window, temporarily unmatched trajectories are maintained and continuously evaluated based on motion consistency and spatial feasibility. This mechanism enables effective identity recovery and continuity maintenance under conditions of short-term occlusion, rapid directional changes, and dense interactions, while avoiding erroneous long-term trajectory associations.Extensive experiments conducted under laboratory-controlled infrared imaging conditions demonstrate that the proposed method significantly outperforms the baseline YOLOv12 + Deep OC-Sort framework. Quantitative results show that AssA is improved by 3.42%, IDF1 is increased by 3.74%, HOTA is enhanced by 1.85%, MOTP is improved by 2.22%, and MOTA is increased by 3.85%, while the number of trajectory fragmentations (Frag) is reduced by 305 instances. Visualization results further confirm that the proposed framework effectively suppresses trajectory fragmentation and identity redistribution caused by high-speed motion and short-term occlusions, producing smoother, longer, and more coherent flight trajectories.Through systematic and collaborative optimization of both detection and tracking stages, this study enables accurate and reliable characterization of peach borer adult flight trajectories under no-visible-light conditions. The proposed framework provides a solid data foundation and methodological reference for subsequent quantitative analysis of flight behavior, phototactic response modeling, and the development of intelligent pest monitoring technologies in complex agricultural environments.

     

/

返回文章
返回