A Hybrid CNN-Transformer Deep Learning Framework for Accurate Wi-Fi Indoor Positioning

Authors

  • Abdurrhaman Isa Federal Institute of Industrial Research, Oshodi, South West Zonal Office, Akure, Ondo State
  • Jimoh Akanni University of Ilorin
  • Rasaq Atanda Alao University of Ilorin

DOI:

https://doi.org/10.11113/elektrika.v24n3.735

Keywords:

CNN-Transformer, Deep Learning, Indoor Positioning System, Mean Position Error, Regression Modeling, Wi-Fi Fingerprinting

Abstract

Accurate indoor positioning remains a significant challenge due to the unpredictable nature of indoor radio signal propagation. This study presents a novel Wi-Fi fingerprinting-based positioning system using a hybrid deep learning architecture that combines Convolutional Neural Networks (CNN) with Transformer encoders. Unlike traditional algorithms such as KNN, WKNN, SVR, and DeepFi, the proposed CNN-Transformer model leverages the spatial feature extraction capabilities of CNN and the global sequence learning strength of Transformers to enhance indoor positioning accuracy. A unique regression head is integrated to predict precise coordinates directly from raw RSSI input vectors. The proposed CNN-Transformer model outperformed all other algorithms with a Mean position error (MPE) of 1.76 m and a 95th percentile error of 3.2 m. Furthermore, the Cumulative Distribution Function (CDF) analysis revealed that 90% of predictions were within 2.8 m, demonstrating high accuracy and consistency. Although the model incurs higher inference and training times, the significant improvement in accuracy makes it suitable for real-time applications in complex indoor environments. These results underscore the effectiveness of combining CNN and Transformer architectures for robust and scalable indoor localization systems.

Downloads

Published

2025-12-22

How to Cite

Isa, A., Akanni, J., & Alao, R. A. (2025). A Hybrid CNN-Transformer Deep Learning Framework for Accurate Wi-Fi Indoor Positioning. ELEKTRIKA- Journal of Electrical Engineering, 24(3), 344–350. https://doi.org/10.11113/elektrika.v24n3.735

Issue

Section

Articles