Abstract:Aiming to address the issues of reduced positioning robustness caused by the steep topography of hilly and mountainous orchards, as well as the difficulty of accurately guiding agricultural machinery for autonomous navigation in such environments due to the lack of terrain semantics and elevation data in traditional SLAM, a semantic SLAM algorithm that deeply integrated instance segmentation with visual inertial odometry was proposed. In the frontend, a dynamic IMU pre-integration strategy was adopted, which introduced the Runge-Kutta method under intense motion conditions to capture high-frequency motion features, thereby enhancing the accuracy of pose estimation. Simultaneously, an improved YOLO v8-seg algorithm integrated with CBAM and FPIoU-v2 loss function was utilized for pixel-level semantic extraction. A 2.5D semantic elevation map containing multi-dimensional terrain information, including height, slope, roughness, and semantic attributes was finally constructed through semantic projection. Experimental results indicated that the root mean square error (RMSE) of the absolute pose error (APE) for the improved localization algorithm in different hilly orchard field tests was 0.38 m and 0.24 m, respectively, which outperformed VINS and ORB-SLAM3. The improved YOLO v8-seg algorithm achieved an mAP@0.5 of 73.79% on a self-built dataset with an inference speed of 39.09 f/s, satisfying real-time detection requirements. The proposed algorithm enhanced the localization and perception capabilities of the system, providing theoretical and technical guidance for the navigation and operation of tracked orchard vehicles in unstructured environments.