Recurrent Neural Networks with Attention for Indoor Localization in 5G: Evaluation on the xG-Loc Dataset
Open Access
- 28 January 2026
- journal article
- research article
- Published by MDPI AG in Electronics
- Vol. 15 (3) , 575
Abstract
Accurate indoor localization in 5G remains challenging due to multipath propagation, signal blockage, and limited bandwidth in frequency range 1 (FR1). This study evaluates attention-based recurrent neural networks for two-dimensional user equipment (UE) localization using only positioning reference signal (PRS) magnitude data. We compare five models on the xG-Loc dataset (InF-DH scenario at 3.5 GHz, 5 MHz bandwidth): a simple GRU (M1), a deeper GRU with dropout (M2), a GRU optimized via Optuna (M3), a stacked GRU with multi-head attention (M4), and a bidirectional GRU with attention (M5). Model performance is quantified using the area above the cumulative distribution function (CDF) curve (AAC) metric, where lower values indicate better localization accuracy. Attention-based models significantly outperform baselines, and M4 achieves the lowest AAC of 6.71 (17% reduction versus M1’s 8.09), while M5 attains an AAC of 6.90. Statistical analysis confirms that M4 and M5 significantly outperform M3 (ANOVA, p < 0.000001). Optimal performance emerges with moderate numbers of time steps (TS ≈ 500 to 2500), with performance plateauing and degrading at higher values. These findings demonstrate that attention mechanisms substantially enhance 5G indoor localization accuracy using only PRS magnitudes, and that automated hyperparameter optimization improves model robustness.Keywords
Funding Information
- CONCYTEC-PROCIENCIA (PE501083603-2023)
This publication has 21 references indexed in Scilit:
- LOS/NLOS classification using causal backtracking and ResNet in UWB sensingPhysical Communication, 2025
- Performance evaluation on extended neural network localization algorithm on 5 g new radio technologyScientific Reports, 2025
- Indoor positioning systems in industry 4.0 applications: Current status, opportunities, and future trendsDigital Engineering, 2024
- A BDS/5G hybrid localization algorithm based on adaptive variational Bayesian for UAV positioningPhysical Communication, 2024
- Node Activation for SI-based xG Localization: 3GPP Case Studies using xG-Loc Dataset2024
- 5G positioning with software-defined radiosComputer Networks, 2024
- 3GPP-Compliant Datasets for xG Location-Aware NetworksIEEE Open Journal of Vehicular Technology, 2023
- A feasibility study of 5G positioning with current cellular network deploymentScientific Reports, 2023
- Neural Networks and Deep Learning2023
- Bidirectional recurrent neural networksIEEE Transactions on Signal Processing, 1997