In recent years, the rapid proliferation of low-altitude UAV drone platforms has created significant challenges for airspace security and public safety. My research focuses on the detection and tracking of small UAV drone targets in complex environments. I propose an improved detection algorithm named PCCS-YOLOv8 and a tracking algorithm named PK-ByteTrack, and I deploy the system on an embedded platform for real-world validation. This article summarizes my work, presents the theoretical foundations, describes the algorithmic improvements, and reports experimental results.

1. Introduction
The widespread use of UAV drone systems in military, industrial, and consumer domains has brought about numerous security risks. Incidents involving unauthorized UAV drone flights over critical infrastructure, airports, and public events have highlighted the urgent need for effective counter-UAV drone technologies. Traditional radar, radio frequency, and acoustic sensors struggle to detect small UAV drone targets due to their low radar cross-section, low altitude, and composite materials. Visual detection based on deep learning has emerged as a promising solution. However, detecting small UAV drone targets in complex backgrounds remains challenging because of their tiny size, scale variations, and occlusion. Tracking such targets is further complicated by prediction lag and infrared image noise.
My work addresses these challenges through three main contributions: (1) I propose PCCS-YOLOv8, a detection algorithm that enhances small target detection while maintaining a lightweight model; (2) I propose PK-ByteTrack, a tracking algorithm that improves trajectory prediction for infrared UAV drone targets; (3) I implement the system on an embedded platform and validate it in real-world scenarios.
2. Theoretical Foundations
2.1 Deep Learning and Convolutional Neural Networks
Deep learning models, especially convolutional neural networks (CNNs), have become the cornerstone of modern computer vision. A CNN typically consists of convolutional layers, pooling layers, and fully connected layers. The convolution operation for a single filter can be expressed as:
$$y(t) = x(t) * w(t) + b$$
where \(x\) is the input, \(w\) is the kernel weight, and \(b\) is the bias. The output feature map size is given by:
$$O = \frac{I – K + 2P}{S} + 1$$
where \(I\) is the input size, \(K\) is the kernel size, \(P\) is the padding, and \(S\) is the stride. Pooling layers reduce spatial dimensions and provide translation invariance. Common pooling operations include max pooling and average pooling. The softmax function is often used for classification:
$$P(y=i|x) = \frac{e^{z_i}}{\sum_{j=1}^{K} e^{z_j}}$$
2.2 Object Detection Algorithms
Object detection algorithms can be categorized into two-stage and one-stage methods. Two-stage detectors such as R-CNN, Fast R-CNN, and Faster R-CNN first generate region proposals and then classify them. One-stage detectors such as YOLO and SSD directly predict bounding boxes and classes. The YOLO series has evolved significantly, and Table 1 summarizes key improvements.
| Year | Model | Key Features |
|---|---|---|
| 2016 | YOLOv1 | End-to-end training, fast inference, poor small object detection |
| 2017 | YOLOv2 | Anchor boxes, batch normalization, higher resolution |
| 2018 | YOLOv3 | Darknet-53, multi-scale prediction, residual connections |
| 2020 | YOLOv4 | CSPDarknet53, PANet, SPP, bag of freebies |
| 2020 | YOLOv5 | Lightweight, PyTorch, mosaic augmentation |
| 2021 | YOLOv6 | EfficientRep, Rep-PAN, anchor-assisted training |
| 2022 | YOLOv7 | ELAN, model scaling, trainable bag-of-freebies |
| 2023 | YOLOv8 | Anchor-free, C2f, decoupled head, TAL |
2.3 Target Tracking Algorithms
Tracking algorithms can be generative or discriminative. Generative methods model the target appearance and search for the most similar region, while discriminative methods train a classifier to separate foreground from background. In my work, I use a tracking-by-detection approach. The Kalman filter is a key component for state estimation. Its prediction and update equations are:
$$\hat{x}_{k|k-1} = A \hat{x}_{k-1|k-1} + B u_{k-1}$$
$$P_{k|k-1} = A P_{k-1|k-1} A^T + Q$$
$$K_k = P_{k|k-1} H^T (H P_{k|k-1} H^T + R)^{-1}$$
$$\hat{x}_{k|k} = \hat{x}_{k|k-1} + K_k (z_k – H \hat{x}_{k|k-1})$$
$$P_{k|k} = (I – K_k H) P_{k|k-1}$$
The Hungarian algorithm solves the assignment problem between detections and tracks by minimizing the total cost. It constructs a bipartite graph and finds the optimal matching.
3. PCCS-YOLOv8 Detection Method
YOLOv8 is a state-of-the-art one-stage detector. However, its smallest detection layer is at 8× downsampling, which limits small UAV drone detection. I propose PCCS-YOLOv8 to address this. The architecture is shown in the following description.
3.1 P2 Small Object Detection Layer
I add a P2 detection head at 4× downsampling, enabling detection of objects as small as 4×4 pixels. The detection scales are summarized in Table 2.
| Head | Feature Map Size | Minimum Object Size |
|---|---|---|
| P2 (new) | 160×160 | 4×4 |
| P3 | 80×80 | 8×8 |
| P4 | 40×40 | 16×16 |
| P5 | 20×20 | 32×32 |
3.2 Lightweight C2f Module: CSPPC
To reduce the computational cost introduced by P2, I replace the standard convolution in the Bottleneck of C2f with Partial Convolution (PConv). The resulting module is called CSPPC. PConv performs convolution on only a subset of input channels, reducing FLOPs and memory access. The comparison of convolution types is given in Table 3.
| Convolution Type | FLOPs | Memory Access | Feature Preservation |
|---|---|---|---|
| Standard Conv | High | High | Good |
| Depthwise Conv | Low | Low | Moderate |
| PConv | Low | Low | Good |
3.3 CBAM Attention Mechanism
I integrate the Convolutional Block Attention Module (CBAM) into the backbone and head. CBAM sequentially applies channel attention and spatial attention. The channel attention is computed as:
$$M_c(F) = \sigma(MLP(AvgPool(F)) + MLP(MaxPool(F)))$$
The spatial attention is computed as:
$$M_s(F) = \sigma(f^{7\times7}([AvgPool(F); MaxPool(F)]))$$
3.4 SPPELAN Module
I replace SPPF with SPPELAN, which combines spatial pyramid pooling with an efficient layer aggregation network. This enhances multi-scale feature extraction while reducing redundant computation.
3.5 Experimental Results
I conduct experiments on a custom dataset containing 7,785 images from public and self-collected sources. The dataset includes small UAV drone targets in various backgrounds. The experimental setup is shown in Table 4.
| Parameter | Setting |
|---|---|
| Optimizer | SGD |
| Batch size | 4 |
| Epochs | 150 |
| Image size | 640 |
| Learning rate | 0.01 |
I compare PCCS-YOLOv8 with other detectors. The results are shown in Table 5.
| Algorithm | mAP@0.5 (%) | mAP@0.5:0.95 (%) | FLOPs (G) | Params (M) |
|---|---|---|---|---|
| YOLOv5 | 89.3 | 45.6 | 7.2 | 2.51 |
| YOLOv8 | 91.1 | 48.4 | 8.2 | 3.01 |
| YOLOv10n | 90.2 | 49.1 | 8.4 | 2.71 |
| RT-DETR-L | 92.2 | 46.4 | 103.4 | 32 |
| PCCS-YOLOv8 | 94.0 | 50.6 | 11.1 | 2.81 |
I also perform attention comparison and ablation studies. Table 6 shows the effect of different attention modules.
| Algorithm | mAP@0.5 (%) | mAP@0.5:0.95 (%) | FLOPs (G) | Params (M) |
|---|---|---|---|---|
| YOLOv8 | 91.1 | 48.4 | 8.2 | 3.01 |
| YOLOv8+CBAM | 91.9 | 48.7 | 8.2 | 3.09 |
| YOLOv8+ECA | 91.5 | 48.9 | 8.2 | 3.10 |
| YOLOv8+GAM | 90.0 | 47.7 | 18.2 | 11.7 |
| YOLOv8+SE | 91.6 | 48.3 | 8.1 | 3.01 |
The ablation study is presented in Table 7.
| P2 | CSPPC | CBAM | SPPELAN | mAP@0.5 (%) | mAP@0.5:0.95 (%) | FLOPs (G) | Params (M) |
|---|---|---|---|---|---|---|---|
| – | – | – | – | 91.1 | 48.4 | 8.2 | 3.01 |
| √ | – | – | – | 94.0 | 50.5 | 12.2 | 2.92 |
| – | √ | – | – | 91.4 | 48.5 | 7.2 | 2.57 |
| – | – | √ | – | 91.9 | 48.7 | 8.2 | 3.09 |
| – | – | – | √ | 91.1 | 48.7 | 8.1 | 2.85 |
| – | – | √ | √ | 91.7 | 48.8 | 8.2 | 3.02 |
| √ | – | √ | √ | 94.2 | 50.8 | 12.5 | 3.26 |
| √ | √ | √ | √ | 94.0 | 50.6 | 11.1 | 2.81 |
The results show that PCCS-YOLOv8 achieves the best accuracy while maintaining a lightweight model. The P2 layer significantly improves small UAV drone detection, while CSPPC reduces computational cost.
4. PK-ByteTrack Tracking Method
ByteTrack is a tracking-by-detection algorithm that associates every detection box. I improve it by using PCCS-YOLOv8 as the detector and modifying the Kalman filter state vector. The original ByteTrack uses an 8-dimensional state vector:
$$x = [u, v, r, h, \dot{u}, \dot{v}, \dot{r}, \dot{h}]^T$$
where \(u, v\) are the center coordinates, \(r\) is the aspect ratio, and \(h\) is the height. I replace \(r\) with the width \(w\) and predict width and height independently:
$$x = [u, v, w, h, \dot{u}, \dot{v}, \dot{w}, \dot{h}]^T$$
I also adjust the noise covariance matrices to adapt to target scale changes:
$$Q = \text{diag}([\sigma_p w, \sigma_p h, \sigma_p w, \sigma_p h, \sigma_v w, \sigma_v h, \sigma_v w, \sigma_v h]^T)^2$$
$$R = \text{diag}([\sigma_p w, \sigma_p h, \sigma_p w, \sigma_p h]^T)^2$$
$$P = \text{diag}([2\sigma_p w, 2\sigma_p h, 2\sigma_p w, 2\sigma_p h, 10\sigma_v w, 10\sigma_v h, 10\sigma_v w, 10\sigma_v h]^T)^2$$
The tracking pipeline includes high-confidence detection matching, low-confidence detection matching, and track management. The MOTA metric is used for evaluation:
$$\text{MOTA} = 1 – \frac{\text{FN} + \text{FP} + \text{IDSW}}{\text{GT}}$$
I test on a custom MOT-format infrared UAV drone dataset with four sequences of 1,000 frames each. Table 8 compares the tracking performance.
| Sequence | Algorithm | FP↓ | FN↓ | IDSW↓ | MOTA↑ | FPS↑ |
|---|---|---|---|---|---|---|
| Sequence 1 | DeepSORT | 15 | 124 | 103 | 75.8 | 31.88 |
| BoT-SORT | 9 | 90 | 127 | 77.4 | 50.33 | |
| ByteTrack | 5 | 87 | 128 | 78.0 | 52.58 | |
| PK-ByteTrack | 0 | 83 | 115 | 80.2 | 49.6 | |
| Sequence 2 | DeepSORT | 33 | 62 | 51 | 85.4 | 29.3 |
| BoT-SORT | 1 | 64 | 102 | 83.3 | 52.91 | |
| ByteTrack | 3 | 60 | 89 | 84.8 | 50.94 | |
| PK-ByteTrack | 3 | 46 | 46 | 90.5 | 48.22 | |
| Sequence 3 | DeepSORT | 34 | 119 | 126 | 72.1 | 29.44 |
| BoT-SORT | 5 | 126 | 137 | 73.2 | 51.68 | |
| ByteTrack | 6 | 102 | 149 | 74.3 | 46.9 | |
| PK-ByteTrack | 4 | 89 | 143 | 76.4 | 37.88 | |
| Sequence 4 | DeepSORT | 63 | 103 | 78 | 75.9 | 31.73 |
| BoT-SORT | 36 | 114 | 116 | 73.4 | 59.02 | |
| ByteTrack | 23 | 110 | 83 | 78.4 | 53.34 | |
| PK-ByteTrack | 18 | 87 | 60 | 83.5 | 52.71 |
PK-ByteTrack achieves higher MOTA and lower FP, FN, and IDSW in most sequences. It effectively reduces missed detections and identity switches, especially in complex backgrounds.
5. Embedded Platform Implementation
To validate the practical feasibility, I deploy the algorithms on an Orange Pi 5 Pro embedded board. The hardware specifications are compared in Table 9.
| Parameter | Orange Pi 5 Pro | Raspberry Pi 5 | Jetson Orin Nano |
|---|---|---|---|
| CPU | 4×A76 + 4×A55 | 4×A76 | 6×A78AE |
| GPU | Mali-G610 MP4 | VideoCore VII | Ampere GPU |
| Memory | LPDDR5 4/8/16 GB | LPDDR4X 4/8 GB | LPDDR5 4/8 GB |
| NPU | 6 TOPS | External accelerator | 40 TOPS |
| Price (USD) | 100–150 | 85–115 | 300+ |
| Power | 10–15 W | 5–10 W | 10–25 W |
I use an OV2710 camera with 1080p resolution and 120° field of view. The model conversion process includes PyTorch to ONNX and ONNX to RKNN. The system is built with PyQT5 and provides image detection, video tracking, and real-time camera monitoring.
In real-world tests, the system successfully detects and tracks a UAV drone at a distance of about 120 meters. The embedded platform maintains stable performance, demonstrating the effectiveness of the proposed algorithms in resource-constrained scenarios.
6. Conclusion and Future Work
I have presented a comprehensive study on UAV drone detection and tracking. The PCCS-YOLOv8 algorithm improves small target detection through the P2 layer, CBAM attention, SPPELAN, and CSPPC lightweight module. The PK-ByteTrack algorithm enhances tracking by modifying the Kalman filter state vector and using the improved detector. The embedded implementation on Orange Pi 5 Pro validates the practical applicability. Future work will focus on multi-modal fusion, model compression, and dedicated hardware acceleration for edge devices.
The key contributions of my work can be summarized in Table 10.
| Contribution | Method | Key Result |
|---|---|---|
| Detection | PCCS-YOLOv8 | mAP@0.5: 94.0%, Params: 2.81M |
| Tracking | PK-ByteTrack | MOTA improvement up to 5.7% |
| Embedded | Orange Pi 5 Pro | Real-time tracking at 120m |
In conclusion, my research provides effective solutions for UAV drone detection and tracking in complex environments, and the embedded implementation demonstrates strong potential for practical deployment.
