Real-time Target Tracking and Obstacle Avoidance System for Unmanned Aerial Vehicles Based on Improved YOLOv7 and DeepSORT
The Unmanned Aerial Vehicles used in a surveillance, inspection, search-and-rescue and traffic monitoring should be able to safely chase moving objects without collisions in crowded and dynamic areas. In this paper, a real-time end-to-end target tracking and obstacle avoidance system is introduced, which integrates a better YOLOv7 detection network with DeepSORT multi-object tracking algorithm and a safety-considering avoidance control. The better YOLOv7 model has been enhanced to handle UAV images and enhances detection robustness in small-object scenarios, fast scale change, motion blur, and complicated backgrounds, thus offering more precise and predictable bounding boxes in the tracking process. DeepSORT proceeds to ensure identity-consistent trajectories using a combination of Kalman-filter motion prediction and deep appearance embeddings and optimal association, which minimizes track fragmentation and identity switches during occlusions and high-velocity camera motion. Simultaneously, an obstacle-risk estimation module will assess the risk of collision in the forward direction of the UAV and determine safe directions of motion. The priority based fusion controller combines both the pursuit commands and avoidance control so that the target following is provided under safe conditions and the avoidance control is provided in immediate action in case the risk is above a certain threshold. The experimental comparison with the five methods that are already existing proves that the suggested framework enhances detection, tracking strength, security, and real-time practicability. The best detection accuracy of 0.94 and the best tracking accuracy of MOTA = 0.86, IDF1 = 0.85 and the lowest number of identity switches (IDS = 45) are achieved by the proposed approach. In the worst-case low-light condition, the system is able to achieve 78% avoidance with just 13% collision rate, whereas the system has a larger safety margin (0.70 m minimum obstacle distance) and lower detour (2.9 m path deviation). In addition, the entire pipeline has an real-time performance, with 60 FPS on a laptop-based GPU, which proves that the proposed design is more accurate and safer without impairing the runtime performance.
Authors
- Chunhong Zhao
- Jiehua Zong
- Xing Yu
Institutions
- Jiangxi Vocational College of Industry & Engineering (CN)
Publication Details
- Journal
- Research Square
- Published
- 2026-11-24
- DOI
- https://doi.org/10.21203/rs.3.rs-8683930/v1
- Primary Topic
- Video Surveillance and Tracking Methods
- Type
- preprint
Funders
- Education Department of Jiangxi Province