ConceptioArchivearXiv CS
arXiv CSopen access

Uplink SRS-Based Real-Time Indoor Localization System over OpenAirInterface

Unknown · 2026 · arxiv_cs
arXiv CS · Papers · License: Open Access · 2026
Open Source ↗Direct PDF ↓
distributedsystemsprotocols
networking, internet, protocols, distributed systems

Uplink SRS-Based Real-Time Indoor Localization System over OpenAirInterface Ping-Yu Hsieh∗ , Chieh-Chun Chen† , Navid Nikaein†‡ , and Ray-Guang Cheng∗ ∗ Dept. of Electronic and Computer Engineering, National Taiwan Univ. of Science and Technology, Taiwan † BubbleRAN, France ‡ Communication Systems Department, EURECOM, France

arXiv:2607.18549v1 [cs.NI] 20 Jul 2026

Email: [email protected], [email protected]

Abstract—Indoor localization is one of the important services for future 5G-Advanced and 6G systems. This paper presents an uplink Sounding Reference Signal (SRS)-based real-time indoor localization system implemented over an OpenAirInterface (OAI) 5G Radio Access Network (RAN). The proposed system uses a Positioning xApp to derive Channel Frequency Response (CFR) measurements from uplink SRS measurements. The SRS measurements are obtained from the gNB through the E2 Service Model for Lower Layer Control (E2SM-LLC) over the standardized E2 interface. The xApp transforms the CFR into a 32-dimensional physics-aware feature vector and uses a Random Forest (RF) regressor to estimate the two-dimensional position of the user equipment. We implemented the Positioning xApp on an OAI-based 5G testbed in a multipath-rich indoor laboratory at EURECOM to validate the proposed system. Experimental results show that the proposed system achieves a mean absolute error (MAE) of 0.12 m under random train-test evaluation. These results demonstrate the feasibility and limitations of uplink SRSbased real-time indoor localization over OAI. Index Terms—5G, Integrated Sensing and Communication, Open RAN, FlexRIC, Sounding Reference Signal, Indoor Localization, Random Forest

I. I NTRODUCTION Indoor localization is an important service for future 5GAdvanced and 6G networks. Recent studies have shown that communication signals can also be used for sensing and positioning applications. At the same time, the O-RAN architecture enables developers to deploy intelligent applications as xApps on the Near-RT RIC platform. Several localization methods have been proposed. RSSIbased approaches are simple to implement but often suffer from poor accuracy in indoor environments due to multipath propagation. More advanced solutions use deep learning models and channel measurements to improve positioning performance. However, these methods usually require higher computational complexity. In this paper, we implement a real-time indoor localization system on an OpenAirInterface (OAI) based O-RAN testbed. The proposed system collects uplink Sounding Reference Signal (SRS) measurements from the gNB through the E2 interface and converts them into Channel Frequency Response (CFR) data. A Positioning xApp extracts a compact feature vector from the CFR and uses a Random Forest (RF) regressor to estimate the user position.

The main contributions of this work are summarized as follows: • Implementation of an end-to-end uplink SRS-based localization system on an OAI O-RAN platform. • Design of a lightweight feature extraction method using delay, phase, and received power information. • Experimental validation in a real indoor environment using commercial user equipment. • Demonstration of real-time single-UE and multi-UE localization visualization. The rest of the paper is organized as follows. Section II introduces the system model. Section III details the proposed Positioning xApp and the feature extraction pipeline. Section IV presents the experimental results. The conclusion is given in Section V. II. S YSTEM M ODEL The proposed ISAC system is built on an end-to-end 5Gcompliant O-RAN testbed, as illustrated in Fig. 1. The foundational infrastructure consists of a 5G Core (Open5GS), a software-defined gNodeB (OpenAirInterface) [9], and a 4antenna Radio Unit (RU). Commercial User Equipment (UE), such as a standard smartphone (e.g., Pixel 7), acts as the target device, continuously transmitting uplink Sounding Reference Signals (SRS) over the air during normal communication operations. To enable passive data extraction without disrupting active communications, an SRS Data Collecting xApp is deployed on the Near-RT RIC. Through the E2 interface (managed by the E2 Termination function) and the Low Layer Control Service Model (LLC SM), the gNB streams real-time SRS measurements to the RIC. This raw SRS telemetry is then forwarded to the Positioning xApp for spatial intelligence processing. The objective of the system is to estimate the 2D position of a UE from uplink SRS measurements. Let the CFR matrix extracted from the 4-antenna grid be defined as H ∈ C4×N , where N is the number of SRS subcarriers allocated. Let Hi [k] represent the complex I/Q sample for the i-th antenna on the k-th subcarrier. The system is designed to drive a real-time ISAC spatial positioning application. The operational objective is to derive the 2D physical coordinates y = (x, y) of the UE transmitting

We compute the Power Delay Profile (PDP) and align it to the peak reference tap nref . The spatial-averaged PDP across 4 antennas is normalized by its global maximum: P4 1 2 4 i=1 |hi [n − nref ]|  (2) P̃ [n] = P 4 max 14 i=1 |hi [n − nref ]|2

Fig. 1. System architecture of the proposed uplink SRS-based real-time indoor localization system.

We truncate this profile to the first 16 time-domain taps, which is sufficient to capture the dominant multipath energy within the indoor environment. 8-D Inter-Antenna Phase Difference: To approximate Angle of Arrival (AoA) signatures, we compute the phase difference ∆ϕi between the i-th receiving antenna and the reference antenna at the peak tap nref . To prevent phase wrapping discontinuities, features are encoded trigonometrically as fphase,i = [cos(∆ϕi ), sin(∆ϕi )], yielding 8 orientation features. 8-D Received Power and Spatial Symmetry: Distancedependent path loss is represented by the received energy (dB) with a hardware compensation offset Ci : ! N −1 1 X |Hi [k]|2 + ϵ + Ci (3) Pi,dB = 10 log10 N k=0

within the indoor environment directly from the input H. The localization problem can be expressed as f : H → y that operates under strict microsecond-level latency constraints, balancing both high spatial precision and lightweight computational overhead. III. P OSITIONING X A PP Figure 2 shows the functional block diagram of the proposed Positioning xApp. The xApp consists of a lightweight, twostage inference pipeline.

k=1

Fig. 2. Functional block diagram of the proposed Positioning xApp.

Let the raw CFR for the i-th antenna be Hi [k] = Ii [k] + jQi [k]. Since directly utilizing raw CFR is sub-optimal due to hardware phase noise, we map these signals into a robust 32-D spatial feature vector. 16-D Normalized Power Delay Profile: To capture multipath propagation, we transform the frequency-domain CFR into the time-domain Channel Impulse Response (CIR) via an N -point IFFT: N −1

hi [n] =

1 X Hi [k]ej2πkn/N N k=0

where ϵ = 10−9 . Finally, we extract 4 spatial heuristics based on the power profiles: global mean RSSI, maximum RSSI, and the differential power between opposite antenna pairs (∆X, ∆Y ) to capture intrinsic geometric orientation. We then employ a Random Forest (RF) regressor to map the high-dimensional, non-linear radio fingerprints to 2D physical coordinates y = (x, y). To optimize localization stability and inference speed, the regressor is structured with K = 100 independent decision trees, a maximum depth constraint of max depth = 12 to prevent overfitting to environmental fluctuations, and a minimum sample split threshold of min samples split = 20 to guarantee spatial generalization. These parameters were selected to balance localization accuracy and computational complexity. During real-time inference, the final estimated coordinate is derived by averaging the continuous spatial predictions from all K trees: K 1 X ŷ = Tk (x) (4) K

(1)

This ensemble mechanism intrinsically filters out extreme spatial outliers caused by transient blockages. The prediction variance serves as an explicit indicator of localization uncertainty, driving the Probability Density Heatmap. The final stage of the proposed pipeline translates the raw spatial coordinates ŷ into actionable visual intelligence via a real-time dashboard. Rather than rendering a simple deterministic point, the application leverages the prediction variance from the RF ensemble to project a dynamic probability density heatmap. This approach visually represents the localization confidence, naturally highlighting areas of high multipath uncertainty.

We apply an Exponential Moving Average (EMA) filter to the output coordinates. This filter reduces trajectory fluctuations and screen jitter. Although the filter adds a slight visual delay, it stabilizes the tracking trajectory. Thus, the dashboard accurately reflects human walking patterns. This completes the end-to-end ISAC pipeline, bridging raw O-RAN telemetry to an intuitive spatial awareness interface. IV. E XPERIMENTAL R ESULTS We evaluated the system in a 6 × 6 m indoor laboratory. Glass partitions and concrete walls in this room cause severe multipath reflections. We collected an extensive dataset of over 23,000 SRS frames across dense reference grid points. For the spatial inference model, the Random Forest regressor is configured with K = 100 estimators, max depth = 12, and min samples split = 20, striking a balance between spatial resolution and microsecond-level inference latency. Under a standard 80/20 random split, the proposed model achieves a Mean Absolute Error (MAE) of 0.1238 m. To assess the robustness of the proposed method beyond interpolation within the training distribution, we conduct a spatially separated blind evaluation. In this setting, specific coordinate regions are completely excluded from the training process and used exclusively for testing. The results show that the MAE increases to 1.78 m, indicating a significant degradation when the model is required to extrapolate to unseen spatial regions. This behavior highlights the inherent limitation of tree-based regressors, which rely on discrete decision partitions and lack continuous spatial interpolation capability. To validate the effectiveness of the proposed physics-aware representation, we further evaluate a lightweight baseline using only the Received Signal Strength Indicator (RSSI) from the four antennas, which produces a significantly degraded MAE of 0.2153 m. This corresponds to a 42% reduction in localization error, demonstrating that the incorporation of the delay and phase-domain structure is essential for accurate indoor positioning under multipath conditions. As depicted in the CDF of the localization error (Fig. 3), the system achieves approximately 85% of predictions within a 0.5 m error threshold.

confidence. To mitigate trajectory fluctuations induced by unstable RF signals, an Exponential Moving Average (EMA) filter is applied. Although this temporal smoothing introduces a marginal processing lag of approximately 1 second, it effectively stabilizes the visual output and remains well within the acceptable tolerance for tracking human walking speeds. As demonstrated in Fig. 4, trajectory tracking captures UE movement over a 50-second interval. Spatial correlation indicates that tracking deviations at the bottom boundary are primarily induced by close proximity to the room’s glass partitions, which act as reflectors generating intense multipath scattering.

Fig. 4. Experimental real-time trajectory tracking. Central open zones exhibit excellent alignment, while the bottom glass partitions introduce multipath scattering.

When tracking multiple UEs, rather than outputting deterministic coordinates, the dashboard projects individual continuous location probability maps onto the shared grid. As Fig. 5 shows, when multiple UEs physically converge, their spatial probability distributions geometrically superimpose into a high-density red core, visually detecting collisions without additional computational overhead. V. C ONCLUSION

Fig. 3. Prediction error histogram and CDF under standard and spatial split evaluation.

We also developed a dashboard to visualize the instantaneous location along a 3-second historical trajectory. Rather than rendering a deterministic point estimate, the system projects a dynamic probability heatmap to reflect localization

In this paper, we presented a real-time indoor localization system deployed on a commercial O-RAN testbed. By leveraging robust feature extraction and a Random Forest regressor, the system successfully uses uplink SRS measurements for indoor localization, enabling sub-meter active positioning (0.12 m MAE) while remaining computationally lightweight. While the system is evaluated in a single indoor environment, this design is intentional, as the proposed lightweight feature extraction and training pipeline are designed for rapid re-deployment in new environments. This enables efficient data collection and model retraining with minimal overhead when transitioning to different deployment sites.

[5] N. Bouknana et al., “An O-RAN Framework for AI/ML-Based Localization with OpenAirInterface and FlexRIC,” in Proc. WONS, 2026. [6] P. Bahl and V. N. Padmanabhan, “RADAR: An in-building RF-based user location and tracking system,” in Proc. IEEE INFOCOM, vol. 2, 2000, pp. 775-784. [7] 3GPP, “Study on NR positioning support,” TS 38.855 v16.0.0, 2019. [8] R. Mundlamuri et al., “5G NR Positioning with OpenAirInterface: Tools and Methodologies,” in Proc. WONS, 2025. [9] F. Kaltenberger et al., “OpenAirInterface: Democratizing innovation in the 5G era,” Computer Networks, vol. 176, p. 107284, 2020. [10] BubbleRAN, “5G ISAC Spatial Intelligence,” YouTube, 2026. [Online]. Available: https://youtu.be/hAeIbw2aTQQ

Fig. 5. Real-time Multi-UE spatial tracking dashboard. Overlapping probability halos automatically highlight high-density collision zones.

Despite these achievements, specific challenges remain. Complex multipath reflections near room boundaries occasionally induce localization instability and prediction jumps. The EMA filter tracks pedestrian movement with low latency. However, smoothing the signal jitter slightly increases the system response time. To address these limitations, future work will explore deep learning architectures such as CNN-based and transformerbased models to better capture spatial correlations in multipath environments. In addition, adaptive filtering strategies will be investigated to improve robustness under varying mobility conditions. A live video demonstration of our real-time ISAC dashboard is available online [10]. ACKNOWLEDGEMENT This work was supported by the National Science and Technology Council (NSTC), Taiwan, under Contract numbers 112-2218-E-011-006 and 114-2221-E-011 -078 -MY3. R EFERENCES [1] F. Liu et al., “Integrated Sensing and Communications: Toward DualFunctional Wireless Networks for 6G and Beyond,” IEEE JSAC, vol. 40, no. 6, pp. 1728-1767, 2022. [2] M. Polese et al., “Understanding O-RAN: Architecture, Interfaces, Algorithms, Security, and Research Challenges,” IEEE COMST, vol. 25, no. 2, pp. 1376-1411, 2023. [3] H. Otani et al., “An Open-Source SDR-Based Device-Free Sensing Platform for ISAC,” IEEE OJ-COMS, vol. 6, pp. 9982-9990, 2025. [4] S. Carbonara et al., “Downlink ISAC with a Full-Stack 5G Experimental Testbed,” in IEEE JC&S, 2026, pp. 1-6.

Record · ID 386790 · SHA-256 1163a36209474705
Retrieved via Conceptio — every document is proof-bundled with source, license, and retrieval metadata.