Secure and Efficient UAV-Based Face Detection via Homomorphic Encryption and Edge Computing

Nguyen Van Duc, Bui Duc Manh, Quang-Trung Luu, Dinh Thai Hoang, Van-Linh Nguyen, Diep N. NguyenarXiv 2025 · DOI

TL;DR

This paper introduces a novel framework for secure UAV-based face detection by integrating Homomorphic Encryption (HE) with edge computing. This approach encrypts facial data on the UAV before transmission, allowing for privacy-preserving inference on edge servers without compromising detection accuracy, thus addressing critical privacy concerns in aerial surveillance.

What Problem Does This Paper Address?

Unmanned Aerial Vehicles (UAVs) are increasingly used for face detection in applications like security, disaster management, and crowd monitoring. However, their high-resolution cameras can capture sensitive personal data, raising significant privacy concerns. Traditional methods of offloading this data to edge servers for processing often involve transmitting unencrypted information, making it vulnerable to cyberattacks. Furthermore, UAVs have limited computational power and battery life, making it challenging to perform complex deep learning inference directly on board. This paper tackles the challenge of enabling efficient and private face detection on UAVs by addressing the trade-off between computational constraints, privacy protection, and detection accuracy.

Methods

The core of the proposed solution lies in the integration of Homomorphic Encryption (HE) with a deep learning approach for face detection on edge devices. Specifically, the authors utilize the Cheon-Kim-Kim-Song (CKKS) scheme, a type of HE that allows computations on encrypted real numbers.

Key methodological contributions include:

  • Privacy-Preserving Inference Framework: The framework encrypts facial images captured by the UAV using the customer's HE public key before they are sent to the edge server. This ensures that even the edge server cannot access the raw facial data.
  • SIMD-based Data Encoding for Encrypted Convolution: A novel encoding technique is developed to transform 2D facial image data and CNN kernels into a format compatible with CKKS ciphertexts. This allows for efficient 2D convolution operations to be performed as a single encrypted matrix multiplication, leveraging the Single Instruction Multiple Data (SIMD) capabilities of CKKS.
  • Secure CNN Inference on Encrypted Data: A CNN model is designed to perform inference directly on homomorphically encrypted data. This involves adapting non-linear activation functions (like ReLU and SiLU) using Chebyshev approximation to make them compatible with HE computations.
  • Edge Computing Integration: The computationally intensive deep learning inference is offloaded to edge AI servers, reducing the burden on the UAV and preserving its battery life and operational time.

Datasets

The paper uses the DroneFace dataset for performance evaluation. This dataset is described as a well-established open dataset specifically designed for assessing facial recognition algorithms in UAV-based applications. It contains images of 11 subjects captured at various heights and distances, with resolutions ranging from 23x31 to 384x384 pixels. The dataset was preprocessed by resizing to 28x28 pixels, normalizing, converting to grayscale, and transforming into PyTorch tensors.

Key Insights and Ideas

  • Privacy is Paramount, Accuracy Can Be Maintained: The research demonstrates that it's possible to achieve high face detection accuracy (within 1% of non-encrypted benchmarks) even when performing computations on fully encrypted data. This is a significant finding for privacy-sensitive applications.
  • HE is Viable for Real-World UAV Tasks: The paper moves beyond theoretical HE applications to show its practical utility in a resource-constrained environment like UAVs, specifically for a critical task like face detection.
  • Activation Function Choice Matters for HE: The choice of activation function in the CNN significantly impacts performance under HE. ReLU and SiLU show more stable and higher accuracy compared to the Square function when encrypted, likely due to their smoother mathematical properties in encrypted domains.
  • Security vs. Performance Trade-off: Increasing HE security levels (larger ring dimensions) leads to a slight decrease in accuracy, highlighting the need to balance security requirements with computational efficiency for specific UAV missions.

Key Results

  • The proposed HE-based face detection model achieves an accuracy of 95.139% with the ReLU activation function, which is very close to the benchmark non-encrypted model's accuracy of 95.602%.
  • The accuracy drop for the HE-encrypted model compared to the non-encrypted benchmark is less than 1%.
  • The model demonstrates robust performance across different HE security levels, maintaining accuracies above 93% even at the highest tested security level (32768).
  • The ReLU activation function, when used with HE, provides the closest performance to the non-encrypted model, making it a strong candidate for such applications.

Limitations and Future Work

  • Computational Overhead and Latency: While the paper focuses on demonstrating the feasibility and accuracy of the HE-based approach, it acknowledges that actual performance evaluation of latency, throughput, and energy consumption on edge hardware during real-world deployments has not yet been conducted. This requires separate implementation efforts for different hardware architectures.
  • Future Work: The authors plan to deploy the optimized CNN model with HE on practical edge computing environments. Future research will involve designing experiments to measure latency across different stages of the process (encryption, transmission, inference, decryption) and optimizing the system based on key performance factors like processing speed, energy consumption, and scalability. The goal is to develop a comprehensive UAV-edge system for secure mobile data processing and surveillance.

Summary updated

BibTeX
@misc{duc2025secure,
  author = {Nguyen Van Duc and Bui Duc Manh and Quang-Trung Luu and Dinh Thai Hoang and Van-Linh Nguyen and Diep N. Nguyen},
  title = {{Secure and Efficient UAV-Based Face Detection via Homomorphic Encryption and Edge Computing}},
  year = {2025},
  eprint = {2507.09860},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.09860},
}
Figure