Real-time Target Tracking and Obstacle Avoidance System for Unmanned Aerial Vehicles Based on Improved YOLOv7 and DeepSORT
This paper presents a real-time end-to-end system for UAVs that integrates an enhanced YOLOv7 detector, DeepSORT tracker, and a priority-based fusion controller to achieve robust target tracking and safe obstacle avoidance in dynamic environments, demonstrating superior accuracy and safety with 60 FPS performance.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
In the sky above our cities and wild landscapes, unmanned aerial vehicles, or drones, are becoming increasingly common. They patrol traffic, search for missing people, inspect power lines, and deliver packages. For these machines to be truly useful, they must do more than just fly; they must understand the world around them. They need to see a moving car or a person and follow them smoothly, even as the drone itself speeds up, slows down, or turns. At the same time, they must navigate a cluttered environment filled with trees, buildings, and wires without crashing. This dual challenge requires a system that can instantly recognize what it is looking at, keep track of a specific target among many similar objects, and make split-second decisions to avoid danger. It is a complex balancing act where the machine must be both a keen observer and a cautious pilot, all while processing information faster than a human eye could blink.
Researchers Jiehua Zong, Chunhong Zhao, and Xing Yu from the Jiangxi Vocational College of Industry and Engineering have developed a new system designed to solve this exact problem. They created a real-time framework that allows a drone to chase a moving target while simultaneously avoiding obstacles. The core of their solution is a three-part team working together. First, a highly tuned visual detector scans the video feed from the drone's camera to find objects. Second, a tracking system keeps a consistent identity on the chosen target, ensuring the drone doesn't lose its focus when the target is briefly hidden or when the camera shakes. Third, a safety module constantly scans the path ahead for collisions and intervenes if the drone is about to hit something. By combining these elements into a single, fast-moving pipeline, the team aimed to create a drone that can pursue its mission safely, even in difficult conditions like low light or crowded areas.
The researchers started by improving a popular object-detection tool known as YOLOv7. While this tool is already good at finding things in images, the team found it struggled with the specific challenges of aerial photography. From high up, targets appear very small, and the drone's own movement can cause motion blur, making objects look fuzzy. To fix this, the team refined the detector's internal structure to pay closer attention to tiny details and to handle rapid changes in size and clarity. This allowed the system to spot small targets more reliably and draw tighter, more accurate boxes around them. This precision is critical because if the detector misses a target or draws a box in the wrong place, the tracking system that follows it will fail. With this improved detector, the system could maintain a clear view of the target even when the drone was moving quickly or the image was shaky.
Once the objects were detected, the system needed to keep track of them over time. This is where the DeepSORT algorithm comes in. Imagine a drone flying over a busy street; it sees many cars and people. If the target car is briefly blocked by a tree, a simple tracker might lose it and start following a different car instead. The DeepSORT system prevents this by remembering what the target looks like. It combines the movement of the object with a digital "fingerprint" of its appearance. Even if the target disappears for a moment, the system predicts where it should reappear and matches it based on its visual features. This ensures the drone follows the same person or vehicle throughout the entire flight, without confusing it with others. The researchers tuned this process specifically for drone footage, reducing the number of times the system accidentally switches its focus to the wrong object.
The final piece of the puzzle is the obstacle avoidance system. A drone that follows a target blindly could easily fly into a building or a power line. The researchers added a safety layer that analyzes the forward view of the camera to estimate how close obstacles are. It divides the view into sections and assigns a risk score to each one. If the drone is heading toward a tree or a wall, the system calculates the danger and immediately generates a command to slow down or steer away. Crucially, this safety system works in harmony with the tracking system. If the path is clear, the drone focuses entirely on following the target. If a risk is detected, the safety commands take priority, guiding the drone around the obstacle before it returns to its pursuit. This priority-based fusion ensures that the drone never sacrifices safety for the sake of the mission, nor does it abandon the target unnecessarily.
To test their creation, the researchers compared their new system against five other existing methods using a dataset of flight samples and simulated scenarios. They put the systems through their paces in various environments, including indoor spaces, dense urban areas, and conditions with very low light. The results showed that their improved approach was superior in almost every category. In terms of detecting objects, their system achieved a precision score of 0.94, meaning it correctly identified targets more often than any of the other methods tested. For tracking, it maintained the correct identity of the target with a high level of accuracy, resulting in far fewer mistakes where the drone would switch to the wrong object. In the most challenging low-light scenarios, where other systems struggled significantly, their drone successfully avoided collisions 78% of the time, with a collision rate of only 13%. Furthermore, when it did have to maneuver around obstacles, it did so with a smaller detour, deviating from its path by an average of just 2.9 meters, compared to much larger deviations by the other systems.
Perhaps most importantly, the system proved to be fast enough for real-world use. The researchers ran the entire process on a standard laptop equipped with a graphics card, and the drone was able to process video and make decisions at a rate of 60 frames per second. This speed means the system can react instantly to changes in the environment, a necessity for safe flight. The study demonstrates that by carefully refining the detection, tracking, and safety components, it is possible to build a drone that is both highly effective at following targets and exceptionally cautious about its surroundings. The work suggests that with these improvements, autonomous drones can operate more safely in the complex, dynamic spaces where they are most needed, from crowded city streets to dimly lit rescue zones, without requiring expensive or heavy hardware.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.