A Lightweight Transformer-Based Network Intrusion Detection Method with Potential Application to UAV Networks
Abstract
: Unmanned aerial vehicle (UAV) networks are exposed to security threats arising from open wireless access, dynamic connectivity, and resource-constrained network devices. This study develops a lightweight Transformer-based network intrusion detection architecture with potential application to UAV-network security. The model combines rotary position embedding (RoPE), a local aggregation attention unit (LAAU), self-attention, and a lightweight feedforward network (FFN). Grouped linear transformations first aggregate local traffic representations, after which self-attention models global dependencies. The resulting representation is then refined by the lightweight FFN. Experiments on the CICIDS2017 and UNSW-NB15 benchmark datasets compare the proposed architecture with deep neural network (DNN), convolutional neural network (CNN), long short-term memory (LSTM), and hybrid CNN–gated recurrent unit (CNN-GRU) baselines. Noise-robustness, hyperparameter, and ablation analyses are also conducted. The results demonstrate the effectiveness of the proposed architecture in the tested benchmark settings. The results provide benchmark evidence for the development of intrusion detection methods with potential application to UAV networks.