Abstract
We investigated an object tracking control method for a low-cost compact UAV using single-shot multibox detector-based real-time object detection. The model employs Da-Jiang Innovation Tello and performs all inference on an external personal computer using Wi-Fi, avoiding onboard computation. Distance was estimated from bounding box size using a pinhole camera model and smoothed with an exponential moving average. A proportional control scheme was applied for visual servoing. Experiment results under six conditions showed stable tracking at medium distances, achieving a detection persistence rate above 0.98, demonstrating its feasibility and limitations.
1. Introduction
Recent advances in unmanned aerial vehicle (UAV) technology have accelerated their deployment across diverse domains, including precision agriculture, infrastructure inspection, security surveillance, and disaster response. Among the enabling technologies, camera-based object detection and visual tracking are essential for UAV autonomy. The rapid development of deep learning has made it feasible to achieve high-accuracy recognition with a monocular camera, enabling practical integration with real-time control systems.
Object detection methods are broadly classified into two categories: two-stage detectors such as Faster Region-based Convolutional Neural Network (R-CNN) [1], which offer high accuracy at the expense of computational cost, and one-stage detectors such as single-shot multibox detector (SSD) [2] and You Only Look Once (YOLO) [3], which are designed for speed and are widely used in real-time applications. However, most of these systems presuppose a high-performance graphics processing unit (GPU) environment, and their application to resource-constrained platforms such as small drones requires careful design. Industrial-grade UAVs may be equipped with powerful GPUs and multiple sensors, but their high cost makes them difficult to deploy in educational institutions or small-scale research laboratories. Inexpensive consumer drones such as the Da-Jiang Innovation (DJI) Tello are readily available but have no onboard inference capability, requiring all computation to be offloaded to an external personal computer (PC) over Wi-Fi. This architecture introduces unavoidable communication latency and frame drops that directly affect control stability.
In this study, we built a minimal object tracking system for a low-cost compact drone using SSD-based object detection, monocular distance estimation via the pinhole model, and a simple proportional controller. No advanced state estimators or complex control architectures are employed. We evaluated which combination achieved stable visual tracking under limited computational resources and quantitatively assessed how the presence or absence of automatic tracking and differences in initial distance affect convergence behavior.
2. Related Work
Object detection methods are grouped into two-stage and one-stage approaches. Faster R-CNN [3], the representative two-stage method, separates region proposal from classification, achieving high accuracy but at high computational cost, not well-suited for real-time embedded control. By contrast, SSD [1] and YOLO [2] are one-stage detectors that perform detection and classification simultaneously within a single network, enabling fast inference. In particular, SSD arranges default boxes across multi-scale feature maps, allowing multi-scale detection.
In this study, SSD300 was adopted for its real-time capability on limited hardware. Visual servoing for UAV tracking has a long history [4,5]. However, most previous studies assume high-accuracy calibration or external sensors, making direct application to low-cost drones non-trivial. Monocular distance estimation is typically based on the pinhole projection model [6]. Detection noise and pixel quantization error directly affect accuracy, necessitating integrated design with the control system. Image data augmentation has been shown to improve detection robustness [7], particularly noise-based augmentation for transmission-degraded environments. Compared with prior work on fruit detection from UAVs [8] and YOLO-based UAV tracking [9,10], we developed a minimal-cost system with no onboard GPU and its use of only proportional control without any advanced estimator.
3. System Design
3.1. Overall Architecture
The developed tracking system comprises video acquisition, object detection, distance estimation, control computation, and velocity command transmission modules (Figure 1). Video is captured by the drone’s monocular camera and transmitted through Wi-Fi to an external PC. The PC performs object detection on each received frame, estimates target distance from the detected bounding box, computes the distance error relative to the target, and determines forward/backward velocity and yaw rate via proportional control. Commands are sent using the send_rc_control application programming interface at approximately 20 Hz, a rate chosen to balance control responsiveness and communication load. The drone platform is the DJI Tello (weight approx. 80 g, high-definition 720-pixel monocular camera). The drone has no onboard GPU or AI inference capability. All inference is executed on an external PC equipped with an Intel Core i7-10750H CPU (Intel Corporation, Santa Clara, CA, USA), 32 GB random access memory (RAM), and an NVIDIA GeForce MX350 GPU (NVIDIA Corporation, Santa Clara, CA, USA) [2 GB virtual RAM (VRAM)]. Experiments were conducted indoors under standard white fluorescent lighting.
Figure 1.
Inference and tracking-control flow of the proposed UAV monitoring system.
3.2. Object Detection Model
The object detection model employed in this study is Single-Shot Multibox Detector 300 with a Visual Geometry Group 16 backbone (Figure 2). Input images are resized to 300 × 300 pixels. The detection target classes are apple, orange, and banana. Training data consists of 300 original fruit images (238 for training and 62 for validation). To improve robustness against communication noise and image degradation, Gaussian noise was added to clean images to produce an augmented set, and the two sets were concatenated as a ConcatDataset for training. MultiBoxLoss is used as a loss function, minimizing the sum of localization and confidence losses. Training was performed on a GPU with automatic mixed precision. At inference time, detections with confidence below 0.5 are discarded; when multiple detections of the target class are present, the bounding box with the largest area is selected.
Figure 2.
Flowchart of the SSD-based transfer learning model used in this study.
3.3. Monocular Distance Estimation
Distance to the target is estimated from the bounding box height using the pinhole camera model. Let the image width be W, and the horizontal field of view be FOVh, and then, the horizontal focal length is approximated as
The vertical focal length fv is estimated analogously. Given the real diameter of the target D (m) and the bounding box height hpx (pixels), the distance Z (m) is estimated as
The target is an apple with representative diameter D = 0.05 m. To reduce frame-to-frame fluctuation, the distance estimation is conducted using exponential moving average (EMA) with smoothing factor α = 0.35:
Estimations outside the valid range (0.10–5.0 m) are treated as outliers and excluded from control input.
3.4. Proportional Tracking Control
As shown in Figure 3, the control system uses only proportional control. The distance error e = Z − Z* is calculated using the forward/backward velocity command vx:
when |e| ≤ 0.05 m, vx is set to zero. The normalized horizontal error drives the yaw rate command ω:
Figure 3.
Object tracking control flow with proportional control for UAV. The arrows indicate the tracking and positional correction process, while the green rectangles represent the bounding boxes of the detected target object.
When automatic tracking is enabled, and no manual override is active, the error is controlled. If the target is not detected, all velocity commands are set to zero and the drone hovers in place.
4. Experiment
Indoor experiments were conducted under six conditions: Autopilot ON/OFF × initial distances of 10, 20, and 30 cm. The target object (apple) was placed stationary in front of the drone. In the Autopilot OFF conditions, object detection and distance estimation were active, but no automatic control was applied. Frame-level logs recorded timestamp, frame number, detection mode (DETECT/LOST), confidence score, inference time, raw and EMA-smoothed distance estimates, bounding box coordinates, and RC velocity commands. Performance was evaluated using the following five metrics.
- Detection persistence ratio: Fraction of frames with mode = DETECT (not LOST);
- On-screen retention rate: Fraction of frames in which the target bounding box remained fully within the image;
- Mean detection confidence: average SSD confidence score of detected frames, with standard deviation;
- Distance error (p95): 95th-percentile of [m], indicating the upper bound of tracking error;
- Mean center tracking error: Mean of |cx − frame_width/2|[px], measuring horizontal alignment.
5. Results
Table 1 shows the quantitative results under all six experimental conditions. All conditions achieved an on-screen retention rate of 1.00, indicating that the target was never lost from the image frame. Detection persistence ratio, mean confidence, distance error, and center tracking error varied considerably with distance and control mode.
Table 1.
All experimental conditions.
5.1. Detection Persistence
Detection persistence was the highest at medium and long distances. OFF-20 achieved 0.99, and ON-30 achieved 0.98. The lowest persistence was observed in OFF-10 (0.74) and ON-10 (0.80), both at the closest initial distance (10 cm). At this distance, the target occupies a large portion of the image, causing bounding box instability as the object approaches the camera’s depth-of-field limit.
5.2. Detection Confidence
Mean detection confidence exceeded 0.95 for all conditions except OFF-30 (0.840 ± 0.101). This degradation at 30 cm in the OFF condition is attributed to the target appearing small in the image, reducing the SSD model’s certainty. In contrast, ON-30 maintained a confidence of 0.986 ± 0.013, suggesting that approach control kept the target at an effective detection range.
5.3. Distance Control Accuracy
The distance error p95 increased with target distance. For the Autopilot ON conditions, p95 values were 0.034, 0.083, and 0.099 m for 10, 20, and 30 cm. Comparing ON-30 and OFF-30, the autopilot reduced p95 from 0.152 m to 0.099 m—a 35% reduction. Figure 4B clearly shows this improvement. For ON-20, the distance time series (Figure 5) exhibits an overshoot (up to 0.27 m) before settling, typical of proportional control transient behavior. At 10 cm, both ON and OFF showed a slight positive bias of approximately +0.010 m. The signed error distributions for all conditions are shown in Figure 6.
Figure 4.
Performance metric comparison: Autopilot ON vs. OFF across three target distances: (A) detection ratio; (B) distance error p95; (C) mean center tracking error; (D) detection confidence (mean ± standard deviation).
Figure 5.
Time series of EMA-filtered distance estimation () for six experimental conditions. Blue and orange solid lines represent Autopilot ON and OFF, respectively. Dashed green lines indicate target distances; shaded green bands represent the ±5 cm tolerance zone. Background shading denotes tracking mode: green = DETECT, red = LOST.
Figure 6.
Box plots of signed distance error ( for Autopilot ON (blue) and OFF (orange) across three target distances. Dotted lines at ±0.05 m indicate the acceptance band.
5.4. Center Tracking Error
The mean center tracking error was lower under Autopilot ON in all cases, confirming yaw feedback control effectiveness (Figure 4C). ON-10 (69 pixels) substantially outperformed OFF-10 (121 pixels). The highest error was observed in OFF-20 (160 pixels), where the absence of yaw control prevented centering throughout the trial.
5.5. Inference Performance
Across all conditions, per-frame inference time ranged from approximately 30 to 40 ms on the NVIDIA GeForce MX350 (2 GB VRAM), confirming real-time operation at approximately 25–30 frames per second (FPS). This is sufficient for the 20 Hz control loop and demonstrates that SSD300 is viable even on entry-level discrete GPU hardware.
6. Discussion
6.1. Relationship Between Distance and Estimation Stability
The 20 cm condition yielded the most stable convergence behavior. At this distance, the target occupies a sufficient number of pixels for accurate bounding box estimation without extreme enlargement. At 10 cm, the nonlinear relationship Z = (fy · D)/hpx amplifies small pixel-level variations in hpx into large distance errors (visible in the time series of Figure 5, ON_10 panel), causing oscillation in the control input. At 30 cm, reduced pixel count per unit distance lowers estimation resolution, increasing variance (Figure 6, right panel). These findings suggest that monocular pinhole-based distance estimation has an optimal operating range around 15–25 cm for targets of this physical size.
6.2. Effectiveness of EMA Smoothing
EMA smoothing with α = 0.35 effectively attenuated frame-to-frame distance noise and reduced control input oscillation. The parameter α balances responsiveness and smoothness: larger α provides faster response but passes more noise to the control input; smaller α increases smoothness but delays convergence. Because only P control is used, EMA effectively acts as a first-order low-pass filter for the control loop, contributing substantially to practical stability.
6.3. Suitability of Proportional Control
Despite using only P control, convergence to the target distance was confirmed under medium-distance conditions. The proportional gain Kp = 150 provided a satisfactory balance between response speed and overshoot. The ON_20 condition in Figure 5 shows the classic proportional control transient: approach → overshoot → convergence, with the system settling within the ±5 cm band after approximately 20 s. The HOLD state was not triggered in any condition, indicating detection gaps were shorter than the HOLD threshold in all trials, which highlights a need for ablation experiments comparing systems with and without the HOLD mechanism.
6.4. Practical Utility of the Low-Cost Architecture
The successful real-time inference on a 2 GB GPU demonstrates that SSD300 is deployable even on modest hardware. However, the external-PC offload architecture is inherently subject to Wi-Fi latency. In the current low-speed indoor experiments, this did not cause instability, but higher flight speeds or longer distances would amplify latency effects. Future work should explore onboard inference or edge-AI accelerator boards to reduce this dependency.
7. Conclusions
We developed a minimal object tracking system for a low-cost UAV (DJI Tello) using SSD300-based object detection, monocular distance estimation with EMA smoothing, and proportional visual servoing. Experimental results under six conditions demonstrated stable tracking performance, particularly at medium distances, with high detection persistence and improved control accuracy under autopilot operation. Real-time inference was achieved on entry-level GPU hardware. These results confirm the feasibility of practical visual tracking on low-cost UAV platforms using simple detection and control schemes, while also revealing limitations at very short and long distances due to estimation instability. Further research is necessary to improve distance estimation accuracy, introduce adaptive control strategies, validate the system in outdoor environments, and enable onboard inference to reduce communication latency.
Author Contributions
Conceptualization, D.Y. and S.N.; methodology, D.Y.; software, D.Y.; validation, D.Y.; formal analysis, D.Y.; investigation, D.Y.; resources, S.N.; data curation, D.Y.; writing—original draft preparation, D.Y.; writing—review and editing, S.N.; visualization, D.Y.; supervision, S.N.; project administration, S.N. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by JSPS KAKENHI, grant number JP23K11277.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The data used in this study are available from the corresponding author upon reasonable request.
Acknowledgments
The authors would like to thank the members of the Nishide Laboratory at Kyoto Tachibana University for their support in the development of the system and the preparation of the experimental environment. During the preparation of this manuscript, the authors used ChatGPT (OpenAI, GPT-5.3, accessed in 2026) and Claude (Anthropic, Claude Sonnet 4.6, accessed in 2026) for language refinement. The authors have reviewed and edited the output and take full responsibility for the content of this publication.
Conflicts of Interest
The authors declare no conflicts of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| UAV | Unmanned Aerial Vehicle |
| SSD | Single-Shot MultiBox Detector |
| EMA | Exponential Moving Average |
| FOV | Field of View |
| GPU | Graphics Processing Unit |
| RC | Remote Control |
| AMP | Automatic Mixed Precision |
| FPS | Frames Per Second |
References
- Ren, S.; He, K.; Girshick, R.; Sun, J. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. IEEE Trans. Pattern Anal. Mach. Intell. 2017, 39, 1137–1149. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Liu, W.; Anguelov, D.; Erhan, D.; Szegedy, C.; Reed, S.; Fu, C.-Y.; Berg, A.C. SSD: Single Shot MultiBox Detector. In Proceedings of the 14th European Conference on Computer Vision (ECCV 2016), Amsterdam, The Netherlands, 11–14 October 2016; pp. 21–37. [Google Scholar] [CrossRef] [Scilit]
- Redmon, J.; Divvala, S.; Girshick, R.; Farhadi, A. You Only Look Once: Unified, Real-Time Object Detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016; pp. 779–788. [Google Scholar] [CrossRef] [Scilit]
- Chaumette, F.; Hutchinson, S. Visual Servo Control, Part II: Advanced Approaches. IEEE Robot. Autom. Mag. 2007, 14, 109–118. [Google Scholar] [CrossRef] [Scilit]
- Szeliski, R. Computer Vision: Algorithms and Applications; Springer: London, UK, 2011. [Google Scholar] [CrossRef] [Scilit]
- Chaumette, F.; Hutchinson, S. Visual Servo Control, Part I: Basic Approaches. IEEE Robot. Autom. Mag. 2006, 13, 82–90. [Google Scholar] [CrossRef] [Scilit]
- Shorten, C.; Khoshgoftaar, T.M. A Survey on Image Data Augmentation for Deep Learning. J. Big Data 2019, 6, 60. [Google Scholar] [CrossRef] [Scilit]
- Magalhães, S.A.; Castro, L.; Moreira, G.; dos Santos, F.N.; Cunha, M.; Dias, J.; Moreira, A.P. Evaluating the Single-Shot MultiBox Detector and YOLO Deep Learning Models for the Detection of Tomatoes in a Greenhouse. Sensors 2021, 21, 3569. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Cao, Z.; Kooistra, L.; Wang, W.; Guo, L.; Valente, J. Real-Time Object Detection Based on UAV Remote Sensing: A Systematic Literature Review. Drones 2023, 7, 620. [Google Scholar] [CrossRef] [Scilit]
- Redmon, J.; Farhadi, A. YOLOv3: An Incremental Improvement. arXiv 2018. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.





