Research Article

Cross-Domain Few-Shot Hand Gesture Recognition on Edge Devices via Lightweight CLIP-KNN Fusion

Zenghui Yin*
Shanghai University

* Corresponding author: [email protected]

Abstract

Hand-gesture interfaces are rapidly proliferating in AR/VR headsets, in-vehicle infotainment and battery-powered mobile devices. Yet large-scale annotated datasets are expensive to collect on edge hardware due to privacy, latency and energy constraints. We present CLIP-KNN Fusion, a parameter-efficient 5-shot adapter that achieves 93.2 percent top-1 accuracy at 32 FPS on an RTX 3050 4 GB laptop under unseen lighting, users and backgrounds. The system keeps the 86 M-parameter ViT-B/32 CLIP vision encoder completely frozen, and trains only a 5 kB cosine-distance 3-nearest-neighbor classifier on 25 RGB images (5-way × 5-shot). Compared to a CNN trained from scratch, we improve accuracy by 25.2 % while reducing trainable parameters by six orders of magnitude. Extensive cross-domain experiments confirm robustness to illumination shifts, novel users and cluttered backgrounds, echoing recent findings in cross-domain object detection. The plug-and-play codebase, 25-shot dataset and live webcam demo are released anonymously. To our knowledge, this is the first work to combine a frozen CLIP encoder with an on-device KNN head for real-time gesture recognition at the extreme edge.

Keywords: Few-Shot Learning; Edge AI; CLIP; KNN; Gesture Recognition
Published: August 13, 2025
DOI: 10.54254/2755-2721/2025.26036
Volume: ACE Vol.173
pp. 191-197
Download PDF

References

  1. Mohamed, N., Mustafa, M. B., & Jomhari, N. “A review of the hand gesture recognition system: Current progress and future directions.” IEEE Access 9 (2021): 157422-157436.
  2. Qi, J., et al. “Computer vision-based hand gesture recognition for human-robot interaction: a review.” Complex & Intelligent Systems 10.1 (2024): 1581-1606.
  3. Mujahid, A., et al. “Real-time hand gesture recognition based on deep learning YOLOv3 model.” Applied Sciences 11.9 (2021): 4164.
  4. Kapitanov, A., et al. “HaGRID—HAnd Gesture Recognition Image Dataset.” Proc. WACV (2024).
  5. Singh, R., & Gill, S. S. “Edge AI: a survey.” Internet of Things and Cyber-Physical Systems 3 (2023): 71-92.
  6. Deng, J., et al. “Harmonious teacher for cross-domain object detection.” Proc. CVPR (2023).
  7. He, M., et al. “Cross domain object detection by target-perceived dual branch distillation.” Proc. CVPR (2022).
  8. Parnami, A., & Lee, M. “Learning from few examples: A summary of approaches to few-shot learning.” arXiv preprint arXiv: 2203.04291 (2022).
  9. Antonelli, S., et al. “Few-shot object detection: A survey.” ACM Computing Surveys 54.11s (2022): 1-37.
  10. Shen, S., et al. “How much can CLIP benefit vision-and-language tasks?” arXiv preprint arXiv: 2107.06383 (2021).
  11. Zhao, Z., et al. “CLIP in medical imaging: A comprehensive survey.” arXiv preprint arXiv: 2312.07353 (2023).
  12. Zhang, S. “Challenges in KNN classification.” IEEE Transactions on Knowledge and Data Engineering 34.10 (2021): 4663-4675.
  13. Zhang, S., et al. “Learning k for KNN classification.” ACM Transactions on Intelligent Systems and Technology 8.3 (2017): 1-19.
  14. Sun, R., et al. “Survey of image edge detection.” Frontiers in Signal Processing 2 (2022): 826967.