Next Article in Journal
Adversarial Reinforcement Learning with MPGD for Worst-Case Perception Error Simulation at Highway On-Ramps
Previous Article in Journal
Dynamic Graph-Based Cross-City Traffic Prediction Framework with Domain-Level Feature Alignment and Node-Level Personalization
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Indoor–Outdoor User Detection in Cellular Networks: A Kalman Filtering and Likelihood Ratio Testing Approach

by
Hamidreza Khaleghi
* and
Thierry Lucidarme
IRT b<>com, 35510 Cesson-Sévigné, France
*
Author to whom correspondence should be addressed.
Electronics 2026, 15(6), 1177; https://doi.org/10.3390/electronics15061177
Submission received: 10 February 2026 / Revised: 4 March 2026 / Accepted: 9 March 2026 / Published: 12 March 2026
(This article belongs to the Special Issue Wireless Signal-Based Ubiquitous Sensing)

Abstract

Reliable indoor–outdoor user detection is essential for optimizing resource allocation and network performance in cellular networks. While Artificial Intelligence (AI)-based techniques have gained attention, statistical signal processing remains a robust and interpretable approach. This paper presents a lightweight and practical detection framework that leverages signal quality metrics, specifically the signal-to-interference-plus-noise ratio (SINR). To enhance detection accuracy, a Kalman filter is employed to mitigate signal fluctuations while preserving consistency. Furthermore, a likelihood-based hypothesis test is introduced to improve indoor user classification. Simulation results show that the proposed detector achieves a recall of up to 99% and F1-scores of around 98% while maintaining prescribed false-alarm targets. Compared with simple SINR thresholding, the Kalman-regularized generalized likelihood ratio test (GLRT) provides substantially improved robustness under stringent false-alarm constraints while retaining constant-time inference complexity.

1. Introduction

The ability to accurately distinguish between indoor and outdoor mobile users is a critical requirement for fifth-generation (5G) mobile technology and beyond [1]. This capability is essential for optimizing network resource allocation, improving localization services, and enhancing the performance of mobile applications. For example, knowing whether a user is indoors or outdoors can be crucial for emergency services in smart cities or for optimizing handover in dense urban environments. Effective indoor–outdoor detection (IOD) enables network operators to dynamically adjust power levels, handover strategies, and spectrum allocations, resulting in more efficient network operations and an improved user experience [2].

2. Related Work

IOD has been studied using both network-side and device-side measurements. Existing approaches can broadly be grouped into three families: network-based signal analysis, device-sensor-based methods, and hybrid AI-driven approaches. Network-based methods analyze cellular signal properties such as received signal strength, signal-to-interference-plus-noise ratio (SINR), and pilot interference ratios, providing centralized and cost-effective solutions for environment detection [3]. Device-based approaches, by contrast, rely on smartphone sensors, including global positioning system (GPS), Wi-Fi, accelerometers, and light sensors, often combined with machine learning classifiers [4,5]. In practice, GPS and Wi-Fi introduce additional complexity and energy cost at the terminal: GPS requires continuous satellite-signal correlation and is unreliable indoors, while Wi-Fi commonly depends on active scans and site-specific fingerprints that must be collected and maintained. These approaches therefore operate at the device level and rely on sensing modalities that are not part of standard cellular operation, unlike the cellular-only measurements leveraged in this work.
It is worth noting that several Wi-Fi-based IOD methods also rely on simple power-domain features such as received signal strength indicator (RSSI) or SINR-like indicators. However, despite the apparent simplicity of the measurement, such methods remain fundamentally device-centric: they typically require active Wi-Fi scanning, labeled training data or fingerprint construction, and in some cases fusion with GPS or inertial sensors. As a result, the overall deployment and energy complexity at the terminal remains significantly higher than for purely network-side solutions.
Recent advancements in IOD have incorporated AI-driven methods, such as deep learning and hybrid models that combine network and device data [6,7]. Recent studies have also explored data-driven radio analytics and context-aware positioning techniques for indoor–outdoor inference in 5G and beyond networks [8,9,10]. Although these approaches have demonstrated near-perfect accuracy in controlled settings, deploying them in real-world scenarios remains a challenge. This is primarily due to the high computational costs, variability in sensor performance, and the need for large labeled datasets [11].
To address these limitations, this paper proposes a statistical-signal-processing-based framework for IOD using SINR measurements. Unlike AI-driven methods, which require extensive model training, large datasets, and computational resources, the proposed approach is lightweight, interpretable, and well-suited for real-time deployment. The core idea is to enhance the reliability of SINR as a classification metric by mitigating fluctuations caused by power control and environmental variations. Our design is opportunistic and network-side: it leverages measurements already available in cellular operation and runs at the base station, introducing no additional pilots, signaling, or user-equipment (UE)-side sensing overhead.
To achieve this, we employ a Kalman filter to smooth SINR measurements, enhancing their stability by correcting fluctuations and preserving long-term interference characteristics. Based on this refined SINR metric, we introduce a likelihood-based hypothesis test to classify users as indoor or outdoor, leveraging distinct SINR distribution patterns. This approach maximizes detection accuracy while minimizing false alarms, and unlike machine learning classifiers, it is adaptable, requires minimal parameter tuning, and does not need retraining for different network conditions.
Although Kalman filtering and likelihood-ratio detection are classical tools in statistical signal processing, their direct application to SINR streams reported in operational cellular networks is not straightforward. In practice, reported SINR measurements are affected by fast fading, reporting jitter, and power-control dynamics, which violate the stationary Gaussian assumptions typically required by likelihood-based detectors. The contribution of this work, therefore, lies in the joint design of a Kalman-based distribution regularization stage and a lightweight variance-adaptive statistical test, enabling reliable indoor–outdoor detection using only standard cellular Key Performance Indicators (KPIs) while preserving a prescribed false-alarm rate. The formal derivation of the detector and its threshold design are presented in Section 3. Importantly, the proposed detector operates entirely on network-side measurements and requires neither additional sensing modalities nor training datasets, which makes it suitable for real-time deployment in operational cellular networks.
Simulation results demonstrate that our method achieves high detection accuracy with a low false alarm rate, making it a practical and efficient solution for mobile networks. By leveraging statistical signal processing principles, the proposed framework provides a computationally efficient alternative to AI-based approaches while maintaining high reliability in real-world network conditions.
A practical scenario where accurate IOD can have an immediate impact is emergency response in smart cities. For instance, when an emergency call is made from a mobile device, the network must quickly determine whether the caller is inside a building or outdoors. This distinction helps dispatchers route responders more effectively: if the user is indoors, rescue teams may require building access or indoor localization tools; if outdoors, standard GPS positioning may suffice. Similarly, in daily network operations, mobile operators in dense urban areas can adjust handover strategies between macro- and small cells depending on whether users are inside office buildings or walking in the streets. These examples illustrate how a lightweight and real-time method, such as the one proposed here, can directly improve both service quality and public safety.

3. System Model and Problem Formulation

The system depicted in Figure 1 consists of mobile users equipped with smartphones capable of measuring and reporting received signal strength (RSS) and SINR. These users are connected to base stations (BSs) with varying transmission power and coverage characteristics. The network infrastructure collects these measurements for processing, aiming to classify users as either indoor or outdoor.
The primary objective is to achieve accurate, real-time indoor–outdoor detection by utilizing SINR values, which are affected by external factors (like environmental conditions) and internal factors (such as device-specific characteristics). The SINR is defined as follows:
SINR = P signal P interference + P noise
where P signal is the power of the desired signal, P interference is the power from interfering signals, and P noise is the background noise power.
In indoor environments, higher levels of interference and noise—stemming from factors such as signal reflection, diffraction, and absorption by walls—result in lower SINR values compared to outdoor settings. Additionally, variations in signal propagation, device movement, and network load further affect SINR. To improve measurement stability and reliability for classification, a Kalman filter is applied. This recursive technique refines SINR estimates by executing two primary steps:
1.
Prediction: The next SINR measurement is predicted based on the previous value and expected system dynamics.
2.
Update: The predicted SINR is adjusted using the actual measured value, accounting for noise and system changes.
The Kalman filter effectively balances measurement noise and system dynamics, yielding a stable SINR value that better reflects long-term environmental conditions, making it more suitable for IOD classification. The task then is to classify a user as either indoor or outdoor based on the filtered SINR data.
We formalize the classification problem as follows: Let x = { x 1 , x 2 , , x n } represent the filtered SINR measurements, where n is the number of observations. We assume that the SINR distributions for indoor and outdoor environments follow distinct patterns: p ( x | Indoor ) for indoor and p ( x | Outdoor ) for outdoor. The goal is to classify the user as either indoor or outdoor by calculating the likelihood of the observed SINR measurements belonging to each distribution. This is framed as a hypothesis test:
H 0 : User is outdoor vs . H 1 : User is indoor
To make this decision, we apply the likelihood ratio test (LRT):
Λ ( x ) = p ( x | H 1 ) p ( x | H 0 )
The user is classified as indoor if Λ ( x ) > η , and as outdoor if Λ ( x ) η , where η is a threshold.

4. Methods

This section outlines the steps and algorithms developed to implement the IOD problem formulated in the previous section. From a statistical detection perspective, the proposed approach can be interpreted as a two-stage detector. The Kalman filter first acts as a distribution-regularization stage that suppresses fast fading and reporting noise in the SINR stream, producing a slowly varying statistic suitable for hypothesis testing. The subsequent Generalized likelihood ratio test (GLRT) stage then performs optimal binary decision-making under the Neyman–Pearson framework for prescribed false-alarm probability α .

4.1. Kalman Filter Model

In wireless communication, especially within 5G networks, SINR is frequently represented as a lognormal random variable, which implies that its value in decibels (dB) follows a normal distribution [12,13]. Throughout this paper, the term SINR will refer to its dB representation. Assuming this normal distribution, a Kalman filter can be applied to estimate the “true” SINR by filtering out noise and fluctuations that are not attributable to indoor/outdoor variations.
The Kalman filter can be understood as a “smart averaging tool”. Unlike a simple average, which smooths out noise but also loses responsiveness, the Kalman filter balances two factors: what we expect the signal to be (based on past values) and what we actually observe (the noisy measurement). We model the true SINR (in dB) as slowly varying due to mobility, shadowing, and power-control transients, while the reported measurements include fast fading and reporting noise; in this setting, the filter blends the prediction from recent history with the current observation. If the measurement is very noisy, the filter relies more on the prediction; if the measurement looks reliable, it adapts more quickly. This balance makes the filtered SINR both stable and responsive to real changes, which is exactly what is needed for robust indoor–outdoor detection. This motivates the use of a constant-state model in the Kalman filter, where the SINR is assumed locally stationary over short time intervals while evolving slowly due to mobility and shadowing dynamics.
Let z k denote the raw SINR measurement at time k and x ^ k the filtered SINR estimate. We adopt the following notation: x ^ k | k 1 represents the predicted state at time k given observations up to k 1 , and x ^ k | k denotes the updated state estimate at time k. Similarly, P k | k 1 and P k | k are the predicted and updated error covariances, respectively. The process-noise parameter Q captures how much the true SINR is expected to drift between samples (reactivity to genuine changes), while the measurement-noise parameter R captures fast fluctuations and report noise (amount of smoothing).
The Kalman filter equations are reformulated as follows:
1.
Prediction Step:
x ^ k | k 1 = x ^ k 1 | k 1
P k | k 1 = P k 1 | k 1 + Q
2.
Update Step:
K k = P k | k 1 P k | k 1 + R
x ^ k | k = x ^ k | k 1 + K k z k x ^ k | k 1
P k | k = ( 1 K k ) P k | k 1
Here, K k acts as an adaptive weight: when measurements are noisy (large R), K k becomes small, and the filter trusts its prediction; when measurements are reliable (small R), K k becomes larger and the filter reacts more quickly. It is also useful to monitor the innovation  e k = z k x ^ k | k 1 , which quantifies how surprising the new observation is relative to the prediction. Small, zero-mean innovations indicate well-chosen noise settings; sustained large innovations typically coincide with regime changes such as entering or leaving a building, naturally prompting the filter to rely more on the current measurement.
The resulting filtered SINR is less affected by short-term fluctuations and noise. Consequently, this signal serves as a robust input for the IOD classification algorithm. Given that the Kalman filter is an optimal linear estimator under Gaussian noise and linear system assumptions, applying it to a normally distributed SINR ensures a similarly distributed filtered estimate. In the next section, the filtered estimate x ^ k is fed directly to the decision rule, which benefits from the reduced short-term variance relative to raw z k .

Practical Tuning

The measurement-noise covariance R is estimated from a short outdoor reference sequence by computing the empirical variance of the raw SINR reports z k , which captures reporting jitter and fast fading effects. The process-noise covariance Q controls how quickly the filter adapts to genuine SINR variations caused by user mobility or transitions between propagation conditions. In practice, Q is selected so that the filter can track a typical indoor–outdoor SINR change (e.g., wall attenuation) within a few samples without reintroducing fast fading fluctuations. Using this procedure, the values ( Q , R ) = ( 30 , 1000 ) were found to provide a stable smoothing–reactivity trade-off for the considered deployment scenario. Section 5 further evaluates the robustness of the detector around these parameter values.

4.2. GLRT Detection

As demonstrated in [14], a Neyman–Pearson hypothesis test was initially applied to raw metrics for indoor–outdoor classification. In our work, we extend this approach by applying the test to filtered SINR estimates x ^ k to detect transitions between indoor and outdoor environments. Expanding on this foundation, we develop a robust decision metric to enhance user state classification and improve detection performance. We assume that x ^ k follows distinct distributions under the two conditions:
  • Outdoor: x ^ k N ( μ 0 , σ 0 2 )
  • Indoor: x ^ k N ( μ 1 , σ 1 2 )
where μ 0 and μ 1 represent the means and σ 0 2 and σ 1 2 the variances of the outdoor and indoor filtered SINR, respectively. We define a new statistic metric T = x ^ k μ 0 and a new parameter Δ μ = μ 1 μ 0 , so the test is based on two hypotheses:
  • H 0 (Outdoor): T N ( 0 , σ 0 2 )
  • H 1 (Indoor): T N ( Δ μ , σ 1 2 )
Applying this to the T under each hypothesis gives the following:
  • Under H 0 :
    p ( T | H 0 ) = 1 2 π σ 0 2 exp T 2 2 σ 0 2
  • Under H 1 :
    p ( T | H 1 ) = 1 2 π σ 1 2 exp ( T Δ μ ) 2 2 σ 1 2
The likelihood ratio Λ ( T ) is as follows:
Λ ( T ) = σ 0 σ 1 exp T 2 2 σ 0 2 ( T Δ μ ) 2 2 σ 1 2
The Neyman–Pearson decision rule is to compare Λ ( T ) against a threshold η to control the false alarm probability:
Λ ( T ) H 1 H 0 η

4.2.1. Generalized Likelihood Ratio Test

In most practical scenarios, it is not possible to know the likelihood functions exactly because of uncertainty about one or more parameters in these functions. Hypothesis testing in the presence of uncertain parameters is known as “composite” hypothesis testing. One useful method is using the GLRT for such applications. In our case, we may not know σ 0 2 , σ 1 2 , or Δ μ in the hypothesis testing problem just discussed. So, we can apply the GLRT test as follows:
Λ ( T , σ ^ 0 2 , σ ^ 1 2 , Δ μ ^ ) = p ( T , σ ^ 1 2 , Δ μ ^ | H 1 ) p ( T , σ ^ 0 2 | H 0 ) .
For Δ μ , we calculate the maximum likelihood estimate (MLE) under H 1 :
Δ μ ^ = arg max Δ μ 1 2 π σ 1 2 exp ( T Δ μ ) 2 2 σ 1 2 .
Since the Gaussian function is maximized when the exponent is zero, the optimum is achieved when T Δ μ = 0 , i.e., Δ μ ^ = T . For analytical tractability, we assume that the variances under both hypotheses are approximately equal after Kalman filtering, i.e., σ 0 2 σ 1 2 . This approximation is reasonable because Kalman smoothing suppresses most short-term fading fluctuations and reporting jitter, leaving residual variations mainly driven by measurement noise and slow propagation changes. In this regime, indoor–outdoor transitions appear primarily as shifts in the mean SINR level rather than significant changes in variance. The common variance is therefore estimated as σ ^ 2 from a training set of T values obtained under stable indoor and outdoor conditions. Substituting these estimates into the GLRT and taking the logarithm yields the quadratic decision rule:
T 2 H 1 H 0 2 σ ^ 2 η .
For a given false alarm rate α , the threshold η for this quadratic test statistic can be determined. Under H 0 , T 2 follows a scaled chi-square distribution with one degree of freedom:
T 2 σ ^ 2 χ 2 ( 1 ) .
Thus, the threshold is set using the ( 1 α ) -quantile of the chi-square distribution with one degree of freedom:
η = χ 1 α 2 ( 1 ) 2 .
Finally, the test can be written as follows:
T 2 H 1 H 0 σ ^ 2 χ 1 α 2 ( 1 ) .
Here, χ 1 α 2 ( 1 ) denotes the ( 1 α ) -quantile of the chi-square distribution with one degree of freedom, which is obtained once from standard statistical tables or software for a chosen false-alarm probability α and then kept fixed. The factor σ ^ 2 is an estimate of the variance of T under H 0 ; in practice, we use pooled sample variances computed from labeled indoor/outdoor sequences, as detailed in the next subsection.

4.2.2. RSRQ-Assisted Single-Variance GLRT (Light Context)

We keep the scalar GLRT unchanged and use the 3GPP reference signal received quality (RSRQ, in dB) only to set the variance that enters the threshold. Let r ¯ k be a short-time average of RSRQ over the last L reports (typically L [ 5 , 10 ] ). Offline, we partition the range of r ¯ into B = 4 coarse bins (quartiles) and, on a training split made of stable indoor/outdoor snippets with a ± W guard around transitions, estimate one pooled variance σ ^ 2 ( b ) of the decision variable T = x ^ k μ 0 for each b { 1 , , B } (with a minimum of n min samples per bin). These pooled variances play the role of σ ^ 2 in the GLRT threshold above.
At run time, the detector operates on one filtered SINR sample per step. For each k: (i) compute r ¯ k and its bin index b k ; (ii) if k = 1 , initialize σ 1 2 σ ^ 2 ( b 1 ) ; (iii) form the statistic T k = x ^ k μ 0 and the threshold
γ k = σ k 2 χ 1 α 2 ( 1 ) .
Note that the threshold is not fixed: it adapts to slow propagation and load variations through the online updates of σ k 2 , providing a lightweight adaptive thresholding mechanism that maintains approximately constant false-alarm behavior. We then decide H 1 (indoor) if T k 2 > γ k and H 0 (outdoor) otherwise. After an H 0 decision, we apply guarded exponentially weighted moving-average (EWMA) updates to track slow drifts while avoiding indoor contamination:
μ 0 ( 1 β ) μ 0 + β x ^ k , σ k + 1 2 ( 1 β ) σ k 2 + β ( x ^ k μ 0 ) 2 ,
with a small β (e.g., 0.02 ). This light context uses an existing 3GPP KPI to modulate only the variance (not the test statistic), so it adds no UE burden, preserves the scalar GLRT structure, and maintains robustness against slow propagation changes. Quartile binning balances robustness and simplicity and reduces overfitting while adapting to load/propagation conditions.
The entire process is detailed in Algorithm 1, which outlines the key steps of the proposed IOD method, including Kalman filter initialization, adaptive threshold computation, real-time SINR processing, and GLRT-based classification.
Algorithm 1 Indoor–Outdoor detection using Kalman filtering and RSRQ-assisted GLRT.
  1:
Inputs: false-alarm target α ; Kalman parameters ( Q , R ) ; EWMA factor β ; RSRQ averaging length L; RSRQ bins { 1 , , B } ; offline variance pool { σ ^ 2 ( b ) } b = 1 B .
  2:
Initialization:  μ 0 outdoor baseline; compute initial RSRQ average r ¯ 1 and bin b 1 ; σ 1 2 σ ^ 2 ( b 1 ) ; precompute χ 1 α 2 ( 1 ) ; k 1 .
  3:
while a new SINR report z k arrives do
  4:
      Kalman filtering: obtain x ^ k from z k .
  5:
      Decision statistic:  T k x ^ k μ 0 .
  6:
      Context update: compute short-term RSRQ average r ¯ k (last L reports) and bin b k .
  7:
      Threshold computation:  γ k σ k 2 χ 1 α 2 ( 1 ) .
  8:
      if  T k 2 > γ k  then
  9:
            Decision: indoor ( H 1 ).
10:
            Keep μ 0 unchanged; σ k + 1 2 σ k 2 .
11:
      else
12:
            Decision: outdoor ( H 0 ).
13:
            Guarded EWMA update:  μ 0 ( 1 β ) μ 0 + β x ^ k ; σ k + 1 2 ( 1 β ) σ k 2 + β ( x ^ k μ 0 ) 2 .
14:
      end if
15:
       k k + 1 .
16:
end while

4.3. Design Rationale

Although the proposed detector relies on classical tools, its contribution lies in how these tools are combined to ensure statistically consistent indoor–outdoor detection under realistic 5G SINR reporting dynamics. The objective is to construct a decision statistic that is approximately Gaussian under the outdoor hypothesis H 0 , with a known and slowly varying variance, so that the GLRT retains its optimality and constant-false-alarm behavior.
Let z k denote the reported SINR in dB and x ^ k the corresponding Kalman estimate introduced previously. In practice, raw SINR reports are affected by fast fading, reporting jitter, and power-control transients, which distort the Gaussian and stationarity assumptions usually invoked for SINR in dB. The Kalman filter acts as a distribution-regularization stage: under slowly varying outdoor propagation, the filtered estimates x ^ k and the associated innovations become approximately zero-mean Gaussian with stable variance. This restores, to first order, the statistical model assumed by the GLRT.
Therefore, the decision variable T k is normally distributed under H 0 with variance σ 0 2 . The resulting quadratic statistic T k 2 / σ 0 2 follows a χ 2 distribution with one degree of freedom, so the GLRT based on T k maximizes the detection probability for a prescribed false-alarm rate α .
In the proposed implementation, the adaptive threshold γ k maintains approximately constant false-alarm behavior as long as the variance estimate σ k 2 tracks slow changes in the outdoor propagation environment. Updating the variance (and outdoor mean) only after outdoor decisions prevents bias contamination by indoor samples, which would otherwise inflate the threshold and degrade detection sensitivity. Conditioning the variance on coarse RSRQ regimes further improves robustness to load and interference variability while preserving the scalar-test structure and per-sample decision latency. Although this mechanism does not satisfy the strict theoretical conditions of classical constant-false-alarm-rate (CFAR) detectors, the slow EWMA updates ensure that the threshold adapts gradually to propagation and interference variations while maintaining a stable operating point in practice.
In summary, the Kalman filter regularizes the SINR distribution so that the GLRT model assumptions hold in practice, while the adaptive variance estimation maintains approximately constant false-alarm behavior using only standard network KPIs. This principled design enables a theoretically justified and computationally negligible indoor–outdoor detector suitable for real-time deployment.
For comparison, we also evaluate two simplified KPI-only detectors that apply the same fixed-variance GLRT directly to the reported SINR z k and to a short moving-average z ¯ k , but without Kalman smoothing or adaptive variance conditioning.

5. Results and Discussion

The simulation scenario, illustrated in Figure 2, models a user transitioning between outdoor and indoor environments within a cellular network. The setup consists of a central cell served by a BS at its center, surrounded by six neighboring cells arranged in a hexagonal grid, each with a radius of 100 m. Each tri-sectorial BS is equipped with directional antennas and serves ten randomly distributed users per cell. A target user, whose indoor–outdoor transitions are tracked, is positioned within a 25 × 25 m bounding box in the central cell to capture localized mobility patterns. User positions and mobility patterns are modeled within these coverage areas, with outdoor users moving up to 3 m per iteration and indoor users constrained to a maximum displacement of 0.5 m.
The simulation setup is summarized in Table 1 and reflects realistic 5G deployment scenarios. To assess statistical robustness, each experiment was repeated over N MC = 30 independent Monte Carlo realizations, where user positions, fading seeds, and mobility traces were re-generated at each run. The performance metrics reported in the following tables correspond to the Monte Carlo mean values. The resulting 95% confidence intervals were narrow (typically within ± 1 % for precision, recall, and F1-score), indicating limited variability across realizations. The system operates at a carrier frequency of 3.5 GHz with a bandwidth of 40 MHz, following 3GPP Urban Macro (UMa) guidelines [15]. The baseline results use the configuration in Table 1; robustness experiments vary only the channel/environment parameters listed below. Users transmit in the uplink with power levels ranging from 0 to 20 dBm, initialized at 10 dBm, and employ a simple power control mechanism targeting a 10 dB SINR threshold. The wireless channel is modeled using Rayleigh fading, with an optional Rician component (K-factor of 10 dB), and path loss is calculated considering both line-of-sight (LOS) and non-line-of-sight (NLOS) conditions. Each BS employs a sectorial antenna pattern with a peak gain of 0 dB along the main lobe and up to 20 dB attenuation outside it. Wall attenuation and user mobility parameters are set to reflect typical urban and indoor environments, while Kalman filter parameters (Q = 30, R = 1000) were tuned to balance responsiveness and stability. Reported SINR includes zero-mean measurement jitter and rare outliers to emulate practical reporting noise, which stresses the non-filtered baseline. In the simulations, we emulate RSRQ as a short-time average of a proxy derived from the reported SINR with a fixed offset; this is sufficient to bin the operating regimes.
Each simulation iteration processes a single SINR measurement to account for user mobility and channel variations. The target user transitions between outdoor and indoor environments at specific iterations (130, 250, 530, and 750), with indoor conditions modeled by adding 20 dB wall attenuation and 10 dB random indoor attenuation to the path loss. The simulation evaluates false alarm rates from 10 4 % to 10 1 % . Sweeping the false-alarm probability α across this range would produce the classical receiver operating characteristic (ROC) curve. In this work, however, we report discrete operating points corresponding to specific α values, which are more representative of practical network deployments where the false-alarm target is fixed by design.
Although the detection trace is illustrated for a representative target UE, Monte Carlo runs randomize the target trajectory and the set of interfering users across realizations, so the reported metrics reflect averaged performance over many stochastic network instances rather than a single deterministic user scenario.
To isolate the effect of Kalman smoothing, Figure 3 and Table 2 report the baseline fixed-variance GLRT; the adaptive, context-conditioned threshold is evaluated separately in the robustness experiments discussed in Section 5.1.
To further contextualize the benefit of Kalman smoothing relative to very simple KPI-based detectors, we additionally evaluate two baseline schemes operating directly on the reported SINR stream z k : (i) a fixed-variance threshold test on z k , and (ii) the same test applied to a short moving-average z ¯ k . Both use the same false-alarm target α and decision statistic as the GLRT but omit Kalman regularization and adaptive variance conditioning. Table 3 reports the corresponding precision, recall, and F1-score.
These results show that simple KPI-only detectors can achieve high recall at loose false-alarm settings, but their performance degrades sharply as α becomes more stringent: recall falls below 60 % at α = 10 3 and 10 4 , even when moving-average smoothing is applied. In contrast, the proposed Kalman-regularized GLRT in Table 2 maintains both high precision and very high recall in this regime (recall > 96 % at α = 10 3 and >89% at α = 10 4 ). This confirms that Kalman smoothing does not merely stabilize the trace but materially improves detection robustness under tight false-alarm constraints, which is essential for network-side deployment.

5.1. Robustness to Channel and Environment

To further verify the robustness of the proposed detector, we conducted a sensitivity analysis with respect to representative propagation conditions and channel parameters. In particular, we evaluate the detector performance across several standard 5G deployment environments and wall-attenuation levels while keeping the algorithm parameters unchanged. To keep the analysis focused and reproducible, we evaluate three standard 5G channel families with a single representative setting per channel, while holding user density, cell layout, mobility (3 km/h), and the target false-alarm rate α fixed. For UMa and urban micro (UMi), we use mixed LOS/NLOS at 3.5 GHz with shadowing σ sh = 8 dB, Rician K = 6 dB in LOS (Rayleigh in NLOS), and indoor episodes modeled with wall loss L wall = 20 dB. For indoor hotspot (InH), we use mostly NLOS with σ sh = 6 dB, K = 3 dB for occasional LOS, and L wall = 30 dB. The adaptive, context-conditioned GLRT is used in these experiments. The resulting detection performance across these representative channel conditions is summarized in Table 4.
UMa and UMi yield nearly identical performance (precision 91 % , recall 98 % , F1 94 % ), which is expected given the shared geometry, density, and mixed LOS/NLOS characteristics; in both cases, the adaptive, context-conditioned threshold preserves high recall at α = 10 1 while incurring a small precision loss primarily at indoor–outdoor transitions and occasional short-time RSRQ binning mismatches. InH achieves similarly high recall ( 99 % ) with slightly lower precision ( 89 % ), leading to an F1 score of ≈94%. This is consistent with the larger wall loss ( L wall = 30 dB), which increases indoor–outdoor mean separation (favoring recall), while stronger NLOS fluctuations and sporadic reporting spikes can trigger a few additional false alarms (reducing precision). Overall, the detector maintains balanced precision–recall performance across distinct propagation families using the same per-sample test and false-alarm target, supporting robustness to environmental variability.

5.2. Computational Complexity and Comparative Analysis

The computational efficiency and comparative performance of the proposed IOD method are analyzed against AI-, sensor-, and hybrid-based approaches. The method processes a sequence of SINR measurements but operates on one observation at a time, applying a scalar Kalman filter update and a GLRT threshold comparison. Each iteration, therefore, requires only O ( 1 ) operations for inference. If extended to process a batch of M measurements, the total inference cost scales linearly as O ( M ) . The method also requires no training, since it relies entirely on statistical signal processing with predefined parameters, yielding O ( 1 ) training complexity.
In contrast, AI-based methods such as deep learning or sequence models [6,16] typically incur heavy training costs, on the order of O ( M 2 ) , and demand large labeled datasets. Their inference is also linear in M, but with substantial constant factors due to model complexity. Sensor-based methods, including GSM- and GPS-based detection [4], avoid heavy training but depend on device-level sensors that can be energy-intensive, device-specific, or unreliable in indoor settings. Hybrid approaches [6,7] combine AI and sensor modalities, sometimes reporting very high or even perfect accuracy, but they inherit both the training burden of AI and the integration overhead of sensor fusion.
Table 5 summarizes representative IOD families, including their features, F1-scores, complexity levels, and methodological characteristics. These families of methods reflect fundamentally different operational paradigms—ranging from device-level sensing and multi-modal fusion to purely network-side statistical processing—so their comparison naturally emphasizes required inputs, computational implications, and deployment constraints rather than performance on a shared dataset. It shows that while AI- and hybrid-based methods can achieve strong detection performance, they come with high training and deployment costs. Sensor-based methods are computationally lighter but remain constrained by hardware availability and indoor reliability. The proposed statistical method, in contrast, achieves competitive performance (recall of up to 99%, F1 ≈ 98%) with no training and constant inference-time per measurement, making it particularly attractive for real-time deployment in resource-constrained cellular networks. All reported results for our method correspond to a 7-cell hexagonal layout at 3.5 GHz with 10 users per cell (cell radius 100 m, per-cell density ≈318 users/km2) and a fixed false-alarm target α ; comparisons should be interpreted with this deployment context in mind.

6. Conclusions and Future Work

This paper presents a robust and efficient method for IOD in cellular networks, leveraging a Kalman filter and GLRT to process single SINR measurements. Simulation results demonstrate that the method achieves high recall (up to 99%) and F1-scores of around 98% across a wide range of false-alarm targets, significantly outperforming non-filtered approaches, particularly at stringent operating points.
Simple KPI-only detectors based on raw or averaged SINR were also evaluated. While these baselines remain competitive at loose false-alarm targets, their recall and F1-score degrade sharply when the false-alarm constraint becomes more stringent. In contrast, the proposed Kalman-regularized GLRT maintains balanced precision–recall performance across all operating points, including α = 10 3 and 10 4 , confirming a clear robustness gain over straightforward SINR thresholding.
Compared to AI-based methods, such as deep learning or sequence models, and sensor- or hybrid-based approaches, the proposed method offers an exceptional balance of accuracy and computational efficiency. It requires no training ( O ( 1 ) ) and supports constant inference-time per measurement ( O ( 1 ) ), in contrast to the quadratic training complexity ( O ( M 2 ) ) and linear inference of typical AI-based methods. This lightweight, real-time capability makes it particularly well-suited for deployment in resource-constrained cellular networks. These results confirm that the proposed detector maintains reliable indoor–outdoor discrimination even under stringent false-alarm constraints ( α = 10 3 10 4 ), where simple SINR-based detectors fail.
While the proposed method demonstrates strong performance in simulations, some limitations must be acknowledged. The statistical modeling implicitly relies on the fact that, under outdoor conditions, the Kalman filter regularizes the reported SINR stream so that the GLRT operates on an approximately Gaussian decision statistic. Although this approximation is well supported by the results, departures from Gaussianity may arise in highly dynamic or interference-limited scenarios. Extending the framework to explicitly account for heavier-tailed or mixture distributions, therefore, constitutes an interesting direction for future work, together with multi-user extensions and the use of complementary signal features such as angle-of-arrival or Doppler shift.

Author Contributions

Conceptualization, H.K. and T.L.; methodology, H.K. and T.L.; software, H.K.; validation, H.K. and T.L.; formal analysis, H.K. and T.L.; investigation, H.K. and T.L.; resources, H.K.; data curation, H.K.; writing—original draft preparation, H.K.; writing—review and editing, H.K. and T.L.; visualization, H.K. and T.L.; supervision, H.K. and T.L.; project administration, H.K. and T.L.; funding acquisition, H.K. and T.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are generated synthetically for simulation purposes.

Conflicts of Interest

Authors Hamidreza Khaleghi and Thierry Lucidarme were employed by the company IRT b<>com. The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

References

  1. Saffar, I.; Alberi-Morel, M.-L.; Singh, K.D.; Viho, C. Semi-Supervised Deep Learning-Based Methods for Indoor–Outdoor Detection. In Proceedings of the IEEE International Conference on Communications (ICC), Shanghai, China, 20–24 May 2019; pp. 1–7. [Google Scholar]
  2. Bui, V.; Le, N.T.; Vu, T.; Nguyen, V.H.; Jang, Y.M. GPS-Based Indoor/Outdoor Detection Scheme Using Machine Learning Techniques. Appl. Sci. 2020, 10, 500. [Google Scholar] [CrossRef]
  3. Bejarano-Luque, J.L.; Toril, M.; Fernández-Navarro, M.; Acedo-Hernández, R.; Luna-Ramírez, S. A Data-Driven Algorithm for Indoor/Outdoor Detection Based on Connection Traces in an LTE Network. IEEE Access 2019, 7, 65877–65888. [Google Scholar] [CrossRef]
  4. Wang, W.; Chang, Q.; Li, Q.; Shi, Z.; Chen, W. Indoor–Outdoor Detection Using a Smartphone Sensor. Sensors 2016, 16, 1563. [Google Scholar]
  5. Hamideche, S.A.; Alberi-Morel, M.-L.; Singh, K.D.; Viho, C. Federated Representation Learning for Indoor–Outdoor Detection in Beyond 5G Networks. In Proceedings of the IEEE Globecom Workshops (GC Wkshps), Kuala Lumpur, Malaysia, 4–8 December 2023; pp. 860–865. [Google Scholar]
  6. Akram Dastagir, M.B.; Tariq, O.; Han, D.G. DeepIOD: Towards a Context-Aware Indoor–Outdoor Detection Framework Using Smartphone Sensors. Sensors 2024, 24, 462. [Google Scholar] [CrossRef] [PubMed]
  7. Bai, Y.B.; Holden, L.; Kealy, A.; Zaminpardaz, S.; Choy, S. A Hybrid Indoor/Outdoor Detection Approach for Smartphone-Based Seamless Positioning. J. Navig. 2022, 75, 946–965. [Google Scholar] [CrossRef]
  8. Yoo, J. Seamless Indoor–Outdoor Localization through Transition Detection. Electronics 2025, 14, 2598. [Google Scholar] [CrossRef]
  9. Polak, L.; Kufa, J.; Sotner, R.; Fryza, T. Measurement and Analysis of 4G/5G Mobile Signal Coverage in a Heavy Industry Environment. Sensors 2024, 24, 2538. [Google Scholar] [CrossRef]
  10. Nasiri, H.; Dogan-Tusha, S.; Rochman, M.I.; Ghosh, M. Data Driven Environment Classification Using Wireless Signals. In Proceedings of the 30th Annual International Conference on Mobile Computing and Networking (MobiCom ’24), Washington, DC, USA, 18–22 November 2024. [Google Scholar]
  11. Saffar, I.; Alberi-Morel, M.-L.; Singh, K.D.; Viho, C. Machine Learning with Partially Labeled Data for Indoor–Outdoor Detection. In Proceedings of the IEEE Annual Consumer Communications & Networking Conference (CCNC), Las Vegas, NV, USA, 11–14 January 2019; pp. 1–8. [Google Scholar]
  12. Son, H.; Kim, C.-Y. Derivation of Probability Density Function of Signal-to-Interference-Plus-Noise Ratio for MS-to-MS Interference Analysis. Sci. World J. 2013, 2013, 186547. [Google Scholar] [CrossRef]
  13. Skraparlis, D.; Sakarellos, V.K.; Panagopoulos, A.D.; Kanellopoulos, J.D. Outage Performance Analysis of Cooperative Diversity with MRC and SC in Correlated Lognormal Channels. EURASIP J. Wirel. Commun. Netw. 2009, 2009, 707839. [Google Scholar] [CrossRef]
  14. Villebrun, E.; Alaya, A.H.; Boursier, Y.; Noisette, N. Indoor–Outdoor User Discrimination in Mobile Wireless Networks. In Proceedings of the IEEE Vehicular Technology Conference (VTC), Montreal, QC, Canada, 25–28 September 2006; pp. 1–5. [Google Scholar]
  15. TR 138 901 V15.0.0; Study on Channel Model for Frequencies from 0.5 to 100 GHz. European Telecommunications Standards Institute: Sophia Antipolis, France, 2018.
  16. Hamideche, S.A.; Alberi-Morel, M.-L.; Singh, K.D.; Viho, C. Indoor–Outdoor Detection Using Time Series Classification and User Behavioral Cognition. In Proceedings of the IFIP Wireless and Mobile Networking Conference (WMNC), Bratislava, Slovakia, 7–9 September 2022; pp. 7–14. [Google Scholar]
Figure 1. A general cellular network architecture. BS: base station, UEo: user equipment (Outdoor), UEi: user equipment (Indoor).
Figure 1. A general cellular network architecture. BS: base station, UEo: user equipment (Outdoor), UEi: user equipment (Indoor).
Electronics 15 01177 g001
Figure 2. Simulation scenario: A hexagonal cellular network with one central cell (radius 100 m) surrounded by six neighboring cells, each with a tri-sectorial base station (BS, marked by ‘×’). Users are depicted as circles, with the target user (red circle) in the central cell, enclosed in a 25 × 25 m bounding box (red dashed square).
Figure 2. Simulation scenario: A hexagonal cellular network with one central cell (radius 100 m) surrounded by six neighboring cells, each with a tri-sectorial base station (BS, marked by ‘×’). Users are depicted as circles, with the target user (red circle) in the central cell, enclosed in a 25 × 25 m bounding box (red dashed square).
Electronics 15 01177 g002
Figure 3. Comparison of indoor–outdoor detection using raw and Kalman-filtered SINR with a threshold for α = 0.1 % , as the user moves between indoor and outdoor.
Figure 3. Comparison of indoor–outdoor detection using raw and Kalman-filtered SINR with a threshold for α = 0.1 % , as the user moves between indoor and outdoor.
Electronics 15 01177 g003
Table 1. Simulation parameters.
Table 1. Simulation parameters.
ParameterValue
Number of cells7 (1 central + 6 neighboring)
Cell radius100 m
Users per cell10
Carrier frequency3.5 GHz
System bandwidth40 MHz
Uplink power range0 dBm to 20 dBm
Initial uplink power10 dBm
SINR threshold for power control10 dB
Noise figure5 dB
Thermal noise density 174 dBm/Hz
Fading modelRayleigh (optional Rician, K-factor = 10 dB)
Path loss model3GPP Urban Macro (UMa)
Shadowing standard deviation4 dB
Antenna gain patternSectorial, 0 dB peak, up to 20 dB attenuation
Maximum outdoor user movement3 m per iteration
Maximum indoor user movement0.5 m per iteration
Number of iterations1000
Kalman filter process noise covariance (Q)30
Kalman filter measurement noise covariance (R)1000
Table 2. Performance comparison of detection metrics (%) for different α values (%) with and without Kalman Filter (W KF vs. W/O KF). Values correspond to Monte Carlo averages over 30 realizations.
Table 2. Performance comparison of detection metrics (%) for different α values (%) with and without Kalman Filter (W KF vs. W/O KF). Values correspond to Monte Carlo averages over 30 realizations.
Metric α = 10 1 α = 10 2 α = 10 3 α = 10 4
PrecisionW/O KF83.498.399.5100.0
W KF92.198.299.499.7
RecallW/O KF96.883.657.332.5
W KF99.198.096.889.8
F1-ScoreW/O KF89.690.472.749.0
W KF95.598.198.194.5
Table 3. Performance of simple KPI-only detectors using raw SINR z k and a moving-average z ¯ k for different false-alarm targets α .
Table 3. Performance of simple KPI-only detectors using raw SINR z k and a moving-average z ¯ k for different false-alarm targets α .
αThreshold on z k Threshold on z ¯ k
Prec [%]Rec [%]F1 [%]Prec [%]Rec [%]F1 [%]
10 1 83.799.490.983.899.791.1
10 2 97.890.694.198.099.198.5
10 3 99.554.470.399.665.579.0
10 4 100.048.865.6100.056.772.4
Table 4. Environmental robustness at fixed α = 10 1 with one typical setting per channel (speed = 3 km/h).
Table 4. Environmental robustness at fixed α = 10 1 with one typical setting per channel (speed = 3 km/h).
Channel σ sh [dB]K [dB] L wall [dB]Precision [%]Recall/F1 [%]
UMa (mixed LOS/NLOS)862091.598.5/94.9
UMi (mixed LOS/NLOS)862091.298.1/94.5
InH (mostly NLOS)633089.199.6/94.0
Table 5. Comparison of IOD approaches.
Table 5. Comparison of IOD approaches.
MethodFeaturesF1-ScoreTraining
Complexity
Notes
AI-based [1]3GPP (RSRP, CQI, TA, MI)95%High; Tr. O ( M 2 ) , Inf. O ( M ) DL; needs large labeled datasets.
AI-based [16]3GPP (RSRP, TA, MI)94.8%High; Tr. O ( M 2 ) , Inf. O ( M ) LSTM + UBO (temporal modeling).
AI-based [5]3GPP (RSRP, TA)95.1%High; Tr. O ( M 2 ) , Inf. O ( M ) Federated Learning (privacy-preserving).
Sensor-based [4]GSM signal strength95–97%Medium; Tr. O ( 1 ) , Inf. O ( M ) ML; detects indoor/outdoor types.
Sensor-based [2]GPS signals97%High; Tr. O ( M ) , Inf. O ( M ) Supervised ML; unreliable indoors; energy cost.
Hybrid [6]IMU, GPS, Light98–99%High; Tr. O ( M 2 ) , Inf. O ( M ) DNNs + voting; robust to IMU/GPS limits.
Hybrid [7]Wi-Fi, GPS, SNR100%Low; rule-based O ( 1 ) Simple empirical rules; robust in semi-indoor.
Proposed (This work)SINR only98%None; Tr. O ( 1 ) , Inf. O ( 1 ) Kalman + adaptive GLRT; 7 cells, 10 users/cell at 3.5 GHz (density ≈318/km2).
Legend: RSRP = Reference Signal Received Power; CQI = Channel Quality Indicator; TA = Timing Advance; MI = Mobility Information; FL = Federated Learning; TL = Transfer Learning; DL = Deep Learning; LSTM = Long Short-Term Memory; UBO = User Behavioral Optimizer; IMU = Inertial Measurement Unit; DNN = Deep Neural Network; ML = Machine Learning.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Khaleghi, H.; Lucidarme, T. Indoor–Outdoor User Detection in Cellular Networks: A Kalman Filtering and Likelihood Ratio Testing Approach. Electronics 2026, 15, 1177. https://doi.org/10.3390/electronics15061177

AMA Style

Khaleghi H, Lucidarme T. Indoor–Outdoor User Detection in Cellular Networks: A Kalman Filtering and Likelihood Ratio Testing Approach. Electronics. 2026; 15(6):1177. https://doi.org/10.3390/electronics15061177

Chicago/Turabian Style

Khaleghi, Hamidreza, and Thierry Lucidarme. 2026. "Indoor–Outdoor User Detection in Cellular Networks: A Kalman Filtering and Likelihood Ratio Testing Approach" Electronics 15, no. 6: 1177. https://doi.org/10.3390/electronics15061177

APA Style

Khaleghi, H., & Lucidarme, T. (2026). Indoor–Outdoor User Detection in Cellular Networks: A Kalman Filtering and Likelihood Ratio Testing Approach. Electronics, 15(6), 1177. https://doi.org/10.3390/electronics15061177

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop