Decimeter Ranging with Channel State Information
Navid Tadayon, Muhammed T. Rahman, Shuo Han, Shahrokh Valaee, and Wei Yu

TL;DR
This paper develops a method for decimeter-level ranging using channel state information from commercial MIMO-OFDM WLAN devices, addressing phase errors through modeling and pre-processing, and validating with extensive measurements.
Contribution
It introduces a comprehensive understanding and modeling of CSI errors, along with pre-processing techniques, enabling accurate ToF-based ranging in multipath environments.
Findings
Median ranging accuracy of 0.6m at 5m distance
Median accuracy of 0.8m at 10m distance
Median accuracy of 0.9m at 15m distance
Abstract
This paper aims at the problem of time-of-flight (ToF) estimation using channel state information (CSI) obtainable from commercialized MIMO-OFDM WLAN receivers. It was often claimed that the CSI phase is contaminated with errors of known and unknown natures rendering ToF-based positioning difficult. To search for an answer, we take a bottom-up approach by first understanding CSI, its constituent building blocks, and the sources of error that contaminate it. We then model these effects mathematically. The correctness of these models is corroborated based on the CSI collected in extensive measurement campaign including radiated, conducted and chamber tests. Knowing the nature of contamination in CSI phase and amplitude, we proceed with introducing pre-processing methods to clean CSI from those errors and make it usable for range estimation. To check the validity of proposed algorithms,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsIndoor and Outdoor Localization Technologies · Underwater Vehicles and Communication Systems · Direction-of-Arrival Estimation Techniques
Decimeter Ranging with Channel State Information
Navid Tadayon, , Muhammed T. Rahman, Shuo Han, Shahrokh Valaee, , and Wei Yu This research is supported by the Natural Sciences and Engineering Research Council (NSERC).Aurthors are affiliated with the University of Toronto (UofT), Toronto, Canada; Email: [email protected], {mt.rahman, shuo.han}@mail.utoronto.ca, and {valaee, weiyu}@ece.utoronto.ca.
Abstract
This paper aims at the problem of time-of-flight (ToF) estimation using channel state information (CSI) obtainable from commercialized MIMO-OFDM WLAN receivers. It was often claimed that the CSI phase is contaminated with errors of known and unknown natures rendering ToF-based positioning difficult. To search for an answer, we take a bottom-up approach by first understanding CSI, its constituent building blocks, and the sources of error that contaminate it. We then model these effects mathematically. The correctness of these models is corroborated based on the CSI collected in extensive measurement campaign including radiated, conducted and chamber tests. Knowing the nature of contaminations in CSI phase and amplitude, we proceed with introducing pre-processing methods to clean CSI from those errors and make it usable for range estimation. To check the validity of proposed algorithms, the MUSIC super-resolution algorithm is applied to post-processed CSI to perform range estimates. Results substantiate that median accuracy of m, m, and m is achievable in highly multipath line-of-sight environment where transmitter and receiver are m, m, and m apart.
Index Terms:
Indoor positioning, MIMO, OFDM, CSI, Calibration.
I Introduction
One of the fundamental challenges of today’s networks is precise estimation of indoor users’ locations. The location of a user is a source of information that can be leveraged to unlock huge technological, social, and business potentials. This is in particular the case for indoor environment, where the signal of the global navigation satellite system (GNSS) is unavailable.
Due to its pervasive deployment and cost-effective nature, positioning using wireless local area networks (WLANs) signals has been at the focus of research for almost a decade. In fact, experimental works have proven that WiFi signals can be used to obtain excellent location accuracy even in harsh multipath environments [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]. For a comprehensive survey on the success of WiFi in localizing indoor users refer to [12, 13]. This has been a significant advancement as, until recently, ultra-wide-band (UWB) radio was deemed as the only viable solution to get accurate location information [14].
Indoor positioning using WiFi began with power-based ranging using received signal strength (RSS) [8, 9, 10, 11, 15, 16]. Unfortunately, accurate range estimation with RSS is impossible because: (i) time-domain OFDM signals are highly fluctuating (ii) the amplitude of a signal is directly affected by small-scale fading (iii) signal amplification at the receiver is controlled by the automatic gain controller (AGC) whose behaviour dynamically varies with channel conditions.
This paper is motivated by the availability of channel-state information (CSI) from Intel [17] and Atheros [18] WiFi chipsets that have enabled CSI to be used for positioning. CSI is a more stable and informative representation of the wireless channel (compared to RSS) between two communicating end-points. Therefore, it can be used to perform range (time-based or power-based) and angle-of-arrival estimation. When it comes down to implementation, while CSI-based localization with AoA achieved promising outcomes [2, 3, 4, 19], using CSI to estimate time-of-flight (ToF) measurement has either not been pursued or led to inconsistent results [2]. To our knowledge, the studies that do consider phase-based ranging all use software-defined radio (SDR), an open-source and fine-tuned platform that is expensive to acquire and so is unscalable. On the other hand, our work is based on using commercial off-the-shelf MIMO-OFDM network interface cards (NIC), which are used in laptops and computers, to estimate the range from phase of the CSI. As ToF measurement is crucial to ranging, and subsequently positioning, this raises the question, “What makes ToF estimation using CSI a challenging task?” This paper aims to find an answer to this question. Our goal is multifaceted: First, we aim to discuss some of the often neglected practical issues about CSI and ToF estimation using the CSI. In that vein, we dissect CSI that is obtainable from WiFi chipsets to understand its constituent building blocks, different forms it takes, and the sources of error that contaminate it. We proceed with introducing pre-processing methods to clean CSI from those errors and make it usable for ToF estimation. We then apply the classic super-resolution spectral MUSIC algorithm to the post-processed CSI to obtain accurate and stable range estimates. To our knowledge, this is an achievement that has never been accomplished before.
The inherent appeal of MUSIC algorithm is due to the fact that estimator’s resolvability power is not only determined by the signal bandwidth but also the total signal-to-noise ratio (SNR). More importantly, MUSIC is an efficient and consistent estimator when certain criteria are met.
In doing so, different ideas are examined, including covariance hardening methods, such as spectral smoothing and forward-backward smoothing, and decision fusion algorithms. We demonstrate that decimetre ranging with only MHz of spectrum is possible if CSI is properly post-processed and range estimates are intuitively combined.
**Problem Statement: ** A holistic view of the problem addressed in this paper is presented in Fig. 1a where the link between a transmitter and receiver is shown: Whereas coherent decoding of data symbols in communications systems requires the knowledge of end-to-end degradation imposed between a transmitter’s baseband (BB) and receiver’s BB (named transmission channel), location estimation hinges on the knowledge of the channel immediately between the two antennas (named propagation channel). Not only these two channels are not the same, but quantifying one from the other is a non-trivial task. The difference between transmission channel MX and propagation channel arises because of (i) lack of synchronization between transmitter/receiver in passband (PB) and (ii) deterministic signal processing operations in transmitter’s BB. In the latter case, cyclic delay diversity (CDD), spatial mapping matrix (SMM), and time-windowing, whose effects are generally incorporated into the CSI matrix, make the receiver believe that the transmitter is several tens of meters away and that the channel is more reflective than it really is.
**Contribution: ** In tackling the aforementioned problem, this paper’s contributions are as follows:
- •
To dissect different deterministic and random phenomena happening in the transmitter and receiver hardware causing and to be different.
- •
To establish the right model for CSI and its relation with the channel matrix.
- •
To develop pre-processing techniques to eliminate random phases introduced by the insufficiency of synchronization between the transmitter and the receiver.
- •
To obtain accurate range estimates by applying super-resolution algorithm to the calibrated CSI.
**Organization: ** This paper is organized as follows: In Section II, we go over the basics of multiple-input multiple-output orthogonal frequency division multiplexing (MIMO-OFDM) WLAN systems, including their transceiver architecture, channel-sounding, etc. In Section III we show why ToF estimation with CSI is a challenging task, and explain different random and deterministic sources of error contributing to this problem. With the knowledge gained, we tackle the problem of cleaning and calibrating CSI in Section IV. Finally, in Section V, we introduce ideas to obtain more accurate range estimates from the post-processed CSI.
**Notation: ** The following notation is adopted throughout this paper: (lowercase/regular) a scalar, (lowercase/boldface) a vector, (uppercase/boldface) a matrix. For matrix , is its th element, is its transpose, is its conjugate, and is its Hermitian.
II Background
II-A Channel State Information (CSI)
Without properly compensating for the propagation and asynchronization effects, the receiver has no way of detecting what was transmitted. To that end, and through a mechanism named channel sounding, the receiver obtains an estimate of wireless channel. This is accomplished by sending a training sequence that is known to both transmitter and receiver. For a wideband MIMO-OFDM system, the estimate of the channel is a collection of complex matrices one for each OFDM subcarrier. It is such information that is universally known as channel state information (CSI). Once CSI is known, it is used by the equalizer in order to cancel out any deterioration (e.g. phase shift, attenuation, etc.) that was imposed on the transmitted data. For packet-based MIMO-OFDM IEEE802.11(n) systems, training sequences, namely high throughput long training fields (HT-LTF), are sent in the preamble, which is instantly used by the receiver to derive CSI.
II-B WLAN Transceiver Architecture
Fig. 1b shows the general structure of the MIMO-OFDM WLAN transmitter. An encoded high-rate bit stream is fed to the stream parser to create spatial streams. These spatial streams are modulated using constellation mappers (e.g. QAM) to create stream of symbols. As explained before, the transmitter may only send parallel streams, where is the true channel matrix, and violating this rule would result in loss of data. Note that (with the equality holding when the channel is rich scattering), where , are the number of transmit and receive antennas, respectively.
Next, spatial streams are cyclically shifted through a mechanism named cyclic delay diversity (CDD) to create extra frequency diversity and make sure no unintended beamforming takes place when sending common information (e.g. headers) from all transmit antennas.
The spatial mapping maps fewer number of spatial streams to larger number of transmit antennas [20]. This is especially crucial in situations where lower number of streams is to be carried by larger number of transmit chains. The existence of CDD and spatial mapping matrix are among the main reasons to render one-way measurements of time-of-flight (ToF) for ranging difficult. Moving forward, a second CDD layer is applied to each transmit chain and frequency domain samples are fed to inverse fast Fourier transform (IFFT) to create time-domain samples. These samples are then simultaneously sent from all transmit chains.
Referring to Fig. 1, the receiver output at point “B”, is related to transmitter input at point “A” through the following matrix equation:
[TABLE]
where , , and are, respectively, the channel matrix, the spatial mapping matrix, and the first, and the second CDD matrices at the th subcarriers, , where is the number of (non-zero) subcarriers within the band of interest out of the total of subcarriers (e.g. and for MHz in IEEE 802.11n systems). More details on the composition of ,, and are provided in the next sub-section.
II-B1 Cyclic Delay Diversity (CDD)
Despite that the payload part of a packet is destined only to a given destination, the packet preamble is meant to be heard/decoded by everyone. To ensure that the header is received by all, and to avoid inadvertent beamforming across the antennas, CDD is used [21]. This is achieved by sending the same header OFDM symbols over different antennas while cyclically shifting them so that (i) all RF chains are utilized, thus, longer communication range is obtained (ii) no unintended beamforming is experienced. The effect of CDD on transmitting common header information changes the multipath nature of the channel as seen by the receiver. To simplify the transceiver architecture, CDD is always applied no matter which portion of packet is being sent, header or payload. The choice of CDD is implementation dependent. We observe that at times, even the same access point (AP) will use different CDD values for the same number of streams. Nonetheless, the standard [22] puts forth some recommendations. Ranging with the raw CSI obtained from the NIC (without accounting for CDDs) may give rise to an accuracy that is off by several tens of meters.111For example, for a 4x4 MIMO system, CDD values ns are suggested. For WLAN systems operating on sampling rate ns, where MHz, these CDDs are equivalent to delays equivalent to samples.
II-B2 Spatial Mapping Matrix (SMM)
The spatial mapping operation is the most crucial component of MIMO-OFDM systems assuming tasks such as transmit beamforming, spatial multiplexing, spatial diversity, and so on. This is often implemented through linear matrix operation as shown in (1) and is an implementation-dependent matter. If , often direct mapping takes place, i.e. , where is the identity matrix. However, when , indirect mapping may be adopted [20]. In the latter case, the effect of SMM is similar to having more echoes than those added by the propagation environment. For this reason, imposition of SMM has similar effect as having virtual echoes.
II-C Channel Sounding
Channel sounding is the mechanism of obtaining CSI at the receiver. This is done by transmitting known HT-LTF sequences. HT-LTF sent over th stream is a unique sequence where . To probe a single dimension of the multi-dimensional (MIMO) channel, one is sent on each spatial stream, for the total of stream. That means that vector is fed to all the streams simultaneously to be transmitted over the th subcarrier in order to estimate MIMO channel matrix on the th subcarrier frequency. Let’s denote . To probe all the dimensions of the MIMO channel, not one but several are transmitted in the preamble (in sequence) where, . In other words, two-state training symbols will have to be sent to learn complex coefficients of the MIMO channel [20]. Subsequently, a matrix is received for the th HT-LTF symbol on received antennas.
III Challenges of Ranging with CSI
In general, ToF estimation based on CSI suffers from several deep-rooted issues some of which have not been discussed in the literature. These issues are pointed out next and dealt with in detail later on.
Bandwidth Limitation
Range estimation has been traditionally done through derivation of the channel impulse response (CIR) for each tx/rx pair and hunting CIR’s first and strongest peak. This simple approach has been effective in ranging with UWB radio and been lately pursued in the WiFi-based indoor localization literature [18, 23, 13]. Without delving into derivation details, CIR is obtained by taking the IFFT of the samples of the channel-frequency response (CFR), i.e. CSI metric, while accounting for the fact that no CSI is collected on (i.e. zero subcarrier)222Transmitting data on OFDM’s center frequency would result in loss of information due to strong DC current at BB. and is given by
[TABLE]
where is the time (delay) domain index and
[TABLE]
where , , , , are the number of multipath arrivals, delay and attenuation on th path, subcarrier-spacing, and central frequency, respectively. This power-delay-profile (PDP) peaks at discrete samples only if (i) th arrival has enough strength (ii) close-by arrivals are not within each other’s Rayleigh resolution limit, i.e. . For WiFi systems with sampling rate Mega sample/s (Msps) (for a MHz channel), the electromagnetic wave travels extra m between two consecutive samples. Such low sampling rate makes resolving closely-spaced multipath reflections (as needed for indoor positioning) based on CIR theoretically impossible.
CSI Phase Contamination
The phase in the CSI matrix is contaminated with terms triggered by the imperfect synchronization between the transmitter and receiver in analog/digital domains. Dubbed by the names symbol timing offset (STO), sampling frequency offset (SFO), carrier frequency offset (CFO), and carrier phase offset (CPO), these frequency and time synchronization errors are extremely volatile in nature [24].
CSI Amplitude Contamination
The amplitude of the CSI is highly distorted by three phenomena: (a) unpredictable changes in AGC gain, (b) I/Q imbalance, and (c) the mixed effect of cyclic-prefix removal/guard-band insertion/windowing operation on time-domain CSI samples.
CDD Phase Shift
The CDD included in the CSI matrix appears as an additive phase in the CSI matrix. CDD can potentially degrade the ranging accuracy using CSI by several tens of meters. This is particularly the case when [20, 21].
Artificial Multipath
The multiplexing operation performed on input streams causes the received samples to look as if they were transmitted on a fading channel with many more reflections [22, 20].
III-A Impact of OFDM Baseband Operations
III-A1 SMM and CDD
Accounting for the SMM and CDD operations at the transmitter, the entire sounding mechanism can be described by (3), at the top of the page, where (the rightmost matrix) is called the orthogonal mapping matrix.
The CSI matrix is calculated as , for each subcarrier. In (3), and are the cyclic shift (diagonal) matrices before and after spatial mapping, which is denoted by , a linear matrix, as shown in the transceiver architecture of Fig. 1 and is the noise matrix. Because , , are implementation-dependent quantities, estimating matrix at the receiver from observations is challenging. However, the receiver does not require to extract the channel matrix to decode data points; so long as are applied to both training sequences and payload (which is indeed the case), the receiver can view as an end-to-end channel. Elaborating on (3), and given that the receiver removes the orthogonal mapping matrix , the element of the CSI matrix is given by
[TABLE]
where , , represent receive antenna, transmit antennas, and spatial stream indices, respectively. From (4), the information on the ToF of the line-of-sight (LoS) path is concealed in which is given by
[TABLE]
where and are the attenuation and time delay of the th path between th receive and th transmit antennas, respectively. Also, is the number of multipath components and is the th subcarrier’s frequency with and being the subcarrier spacing and the center frequency, respectively.
To better understand the effect of CDD and SMM on range measurement, we performed experiments in an anechoic chamber (Fig. 7c) wherein (no multipath). In cases when the CSI matrix is not full rank, i.e. , we expect . In this situation, the PDP yields more than one peak , , where , are the cyclic shifts before and after spatial mapping on the th transmit chain and the spatial stream. This is indeed the case as shown in Fig. 2. Fig. 2a uses data collected from a setup where transmitter and receiver arrays directly face each other whereas, in Fig. 2b, the receiver is rotated by 90 degrees. The latter experiment was performed to understand whether we can achieve a full channel matrix () in non-scattering anechoic chamber.
In Fig. 2a, PDP is plotted for those packets that encounter a channel with . As expected, peaks of equal strength is observed (for all transmit-receive sub-channels) which cannot be justified by the echo-free nature of the propagation environment. This is not observed in Fig. 2b where and the SMM is often non-existent (explained later on). Nevertheless, in both figures, peaks are shifted to the right by 2 samples which could be caused by STO, pre-advancement, or CDD. 333Note that transmitter-receiver are 5.18m apart in anechoic chamber experiment which should produce a peak at sample index ”0”.
The conclusion here is that raw CSI is unusable. One has to derive channel-related terms from CSI metrics in order to do positioning, a fact that is often underappreciated in the field of CSI-based positioning.
III-A2 Time Domain Windowing
In examining the CSI obtained in a controlled conducted test (Fig. 7d), and in the anechoic chamber, non-linearities of regular shape were observed in both phase and amplitude of CSI as shown in Fig. 4a and Fig. 4b. The symmetric phase and amplitude non-linearity on CSI (after FFT operation at the receiver) advocates a real-time operation (after IFFT operation at the transmitter). Importantly, this phase distortion can degrade the ranging accuracy. We claim that this effect arises due to the combination of time-domain windowing, cyclic-prefix (CP) removal, and guard-band insertion at the transmitter as shown in Fig. 3 and the logic is as follows: Wireless communications systems follow a block-wise design methodology where hierarchies of subsystems444e.g. scrambling FEC encoding stream parsing interleaving mapper channel equalization de-mapper de-interleaving de-parser FEC decoder de-scrambler are used at the transmitter and receiver. This approach works because of the linearity of the operation performed in each block, hence, an inner block (say channel-equalization) remains transparent to the outer block (say encoding-decoding). This reversibility is true for most operations along a wireless chain except a few, where CP insertion-removal is the most important one. When CP of the training sequence (from which CSI is calculated) is removed at the receiver, what passes through is a sequence that is windowed (in time domain) from tail but intact from head. That is because the rising head of the time-domain windows are often not long enough to get passed CP and split into the OFDM symbol, but the falling tail of that time-domain window will impact the tail of OFDM symbol. This effect causes the observed distortion.
To further investigate this hypothesis, we worked on measurements collected in the conducted test setup. In this setting, and based on the model in (4), and , hence CSI with linear phase (vs ) was expected, like where , the latter two terms are the cyclic shifts after and before spatial mapping, is the OFDM subcarrier spacing, and is a complex coefficient. Since the non-linearity is completely constant regardless of the choice of attenuators, cable length, etc., it implies a systematic operation happening in hardware. In fact, taking FFT of CSI yields where and are the fractional and integer part of . This time-domain signal is plotted in Fig. 4c. This is a Tukey window as recommended in IEEE 802.11 standard [22].555One should note that the Tukey window is a flat function with smooth edge falloff. However, the window we observe through CSI has an FFT whose upper (and lower) values are zeroed as a result of guard subcarrier exertion, which gives rise to Fig. 4c. Whereas the results for Atheros 93xx chipset are presented here, the same observation were made for Intel 53xx chipset. In the general case, the CSI model in (4) is revised as
[TABLE]
where
[TABLE]
and is a time-domain rectangle function of length to represent the CP removal operation on OFDM symbol, is a frequency-domain rectangle of length to represent guard band insertion operation in OFDM systems, and is the time-domain windowing function. , , and are the length of OFDM cyclic prefix (CP), the number of guard subcarriers, and the total number of subcarriers in OFDM system, respectively. Also and are the FFT and circular convolution operators. Since this is a deterministic effect that stems from a systematic design choice, a one-time non-linear fitting to the phase curve in Fig. 4a and de-rotating CSI phase accordingly would be sufficient without any concern with respect to over-fitting.666Our fit is a 3rd-degree polynomial which resulted in .
Discussion: The existence of phase non-linearity in Fig. 4 has led some researchers to associate this with the I/Q imbalance phenomenon [25]. In several different works, e.g. [13, 26, 23], the trigonometric-like shape of the CSI phase (as depicted in Fig. 4) has led to incorrect representation of CSI as . The unrecognised, deleterious effects of these baseband operations have led to the belief that CSI is not usable for ToF estimation and made range-based indoor positioning a less fruitful area of investigation. Chronos [5] is able to measure ToF by only using the zero subcarriers (at different frequency bands), a workaround that dodges all the deteriorations explained earlier. However, this is not the case if one needs to use CSI on arbitrary set of subcarriers for ToF estimation. On the other hand, estimating AoA using CSI circumvents these problems, as differencing the phases of the CSI at receive antennas eliminates the effect of the aforementioned additive phases imposed at the baseband of the transmitter [2, 3, 4].
III-B Impact of Imperfect Signal Processing
The matrix equation in (3) assumes perfect synchronization between the transmitter and receiver. Such assumption is not realistic as communication always suffers from lack of perfect time/frequency synchronization. To account for this, the CSI model in (3) is revised as
[TABLE]
where is given by (3), is an by matrix of complex and time-dependent elements to account for phenomena such as symbol timing offset (STO), carrier frequency offset (CFO), sampling frequency offset (SFO), and carrier phase offset (CPO). Since the chains (transmit and receive) in today’s MIMO systems are driven by one oscillator in an MIMO system, every pair of transmit-receive ports observe similar synchronization error in (7). Please note the difference between the time index in (7) (to distinguish CSI for different packets) and delay index in (2) (to distinguish discrete multipath components of the channel).
In general, can be an arbitrary matrix with non-zero elements. However, when there is no coupling between receiver chains, this matrix will be diagonal. Also given that all RF chains in MIMO WLAN systems use a common oscillator/synthesizer, the complex diagonal elements of are the same. Our extensive experiments in the anechoic chamber (Fig. 7c) verifies the following two hypotheses regarding the phase of : (i) linear in subcarrier index (ii) highly variable even in purely static environment. These additive phase terms highly degrade the accuracy of the CSI-based ranging as reported in several localization studies [2, 3, 5] and are discussed next.
III-B1 Frequency Errors
In down-converting analog passband (PB) signal to baseband (BB), the following errors are introduced into the CSI:
- •
CFO/CPO: The generated carrier at the receiver can be represented by a complex exponential. CFO exists when the receiver’s carrier frequency drifts from the transmitted carrier frequency by due to residual errors in receiver’s phase locked loop (PLL).777The CFO can also be due to Doppler effect. Nonetheless, contribution of the latter to is considerably less compared to oscillator frequency mismatch.
On the other hand, CPO is imposed because receiver’s voltage controlled oscillator (VCO) starts from a random phase every time the synthesizer restarts and the phase locked loop (PLL) cannot completely compensate for the phase difference between generated carrier and received signal. Both of these effects are shown to affect CSI in the following manner
[TABLE]
where is the CFO normalized with OFDM subcarrier spacing . Equation (8) signifies an additive phase that is cumulative in time as denoted by . Due to its accumulative nature, CFO is regularly tracked by the receiver and compensated for. However, the residual leftover can be detrimental in precise ranging.
III-B2 Timing Errors
These errors happen when receiver (transmitter) samples (synthesizes) signals at mismatching rates. There is also the significant issue of symbol boundary detection as discussed next:
- •
SFO: In modern homodyne architectures, the same oscillator triggering the mixer drives the analog-to-digital converter (ADC). If the ADC samples the received signal with rate different from transmitter’s synthesization rate , SFO is experienced. This is manifested as an additive phase shift proportional to the subcarrier index and cumulative in time [27, 24]. Mathematically,
[TABLE]
where is the SFO normalized with the sampling time and denotes the SFO calibration interval.
- •
STO: STO is the most degrading effect arising due to the lack of knowledge about the beginning of the received OFDM symbol [24]. This uncertainty emerges as it is not a-priori known when to expect a packet. Since OFDM systems function on blocks of (time domain) samples, named symbols, it is crucial that the right block is fed to the FFT demodulator. To find out about the symbol boundary, header starts with known, periodic sequences (named short-training fields-STF) and auto-correlator/cross-correlator is utilized at the receiver to capture and detect the presence of WiFi signals. However, because of the length limitations of these sequences, error in determining symbol boundary cannot be fully eliminated leading to irreversible errors such as inter-carrier interference (ICI), inter-symbol interference (ISI), and phase rotation, as seen in Fig. 5.888ISI is experienced in case I of Fig. 5 because there is multipath leakage from th symbol into the FFT window of the th symbol. This is different from Case IV where not only leakage from the next symbol (i.e. j+2 which is not plotted) causes ISI, but there is ICI as well since the FFT window is missing the beginning of OFDM frame. To summarize, FFT window should neither advance too much into CP (to avoid ISI with the previous symbol) nor should it progress into main part of OFDM symbol (to avoid ICI and ISI with the next symbol). This phase rotation can be shown to impact CSI in the following manner:
[TABLE]
- •
OFDM Pre-advancement: Accounting for STO uncertainty, and to avoid irrevocable ICI/ISI, almost all NIC chipsets intentionally (upon estimating symbol boundary) borrow samples from current OFDM symbol’s CP. This operation, named pre-advancement, guarantees that FFR input samples are ISI/ICI free, and only (clockwise) cyclically shifted (Case II in Fig. 5) which creates phase rotation after FFT given by:999pre-advancement won’t impact decoding quality as both payload and channel estimation (HT-LTF) symbols undergo the same shift, hence equalization removes it.
[TABLE]
Discussion: Positioning based on the unprocessed CSI will be severely impacted as will cause m ranging inaccuracy at best. This is evident from our experimental measurements in Fig. 2: Whereas in the chamber the transmitter and receiver were m apart, calling for a PDPs that climax at the very first sample (), the true peak actually happens at the third sample, an anomalous behaviour that is a testimony to the deliberate clockwise (left) cyclic shifting of OFDM symbol.
Accounting for non-idealities due to AGC, CFO, CPO, SFO, STO, and pre-advancement, the CSI model is revised as follows
[TABLE]
where, according to Eq. (4), is given by
[TABLE]
The additive term entails noise , ISI, and ICI. Despite its sophisticated look, the multiplicative error terms in (12) can be compactly represented by as initially claimed in (7).
IV CSI Calibration
We have discussed so far that ranging based solely on CSI is a futile effort unless (i) the effect of deterministic SMM, CDD, and mixed windowing operations are cancelled out (ii) random phase errors due to the lack of synchronization are compensated for.
In the following, we investigate the statistical behaviour of the CSI random phase errors and introduce techniques to remove them. Our goal is to estimate synchronization errors in (12) in the aforementioned onerous problem where errors are changing from packet to packets, thus, rendering classic estimation (ML, MMSE, etc.) approaches that rely on availability of many samples unusable.
IV-A Statistical Error Characterization
Due to the highly volatile nature of phase errors, differencing across time keeps the volatility while eliminating stagnant channel terms.101010As a rough figure, the parameters of the indoor wireless channel change in the order of tens of ms. Doing so for consecutive CSI samples and performing phase unwrapping (w.r.t the subcarrier index ) yields111111One has to be wary of the fact that we do not get to observe but its modulus.
[TABLE]
where is phase unwrapping w.r.t to and and are arbitrary time indices with the constraint that with being the coherence time of the channel. Also, is the modulo operation, which is denoted by , hereinafter. To gain insights into the statistical nature of , we use the measurements collected in an anechoic chamber. Fig. 6b shows CSI phase difference vs. subcarrier index for two cases: (i) (ii) CSI measurements. Fig. 6c displays the empirical PDF of , , for . The following conclusions are drawn:
- •
Even for as low as , the randomness introduced by is so large that it drives the average phase difference (horizontal red line) to zero. This observation substantiates that both and are zero mean random processes.
- •
The obvious linearity in Fig. 6b conforms with the derivations in (12) as was reported in earlier works [18].
- •
The drastic changes of is because of two effects: (a) The high dynamicity of receiver’s synchronization algorithms (b) the operation which delivers not the true angle but the wrapped-around version of it.
- •
The Gaussianity of , is proved as follows: Since is a Gaussian process (per our observation), is Gaussian random variable. Noting that , then , where is the characteristic function of random variable . Subsequently, the PDF of is attained using the Fourier transform, that is, which can be shown to be a Gaussian. This is shown in Fig. 6c.
- •
Finally, the knowledge of implies , . This is true since the process has the same distribution for different . Yet, so long as the cyclic-prefix (CP) pre-advancement is performed at the receiver, deeming as a zero-mean random variable [18] yields completely biased range estimates.
Discussion: These findings contradict some views on the uniformity of distributions [28, 29], an assertion seemingly made due to equating the statistical behaviour of with that of .
IV-B Estimating STO and SFO
The unpredictability of phase errors in (12) stems from the following reasons:
- •
Randomness in due to the opportunistic nature of WLAN access protocol.
- •
Randomness in due to receiver’s ability to initiate calibration using any packet header on the air regardless of whether it was destined to it or not.
- •
Errors in estimating the amount of drift which depends on how badly the calibrating header is influenced by small scale fading.
- •
Errors in estimating the symbol boundary and which, again, depends on the fading nature of the channel.
- •
OFDM pre-advancement [20].
For these reasons, is decorrelated for different . Therefore, only CSI across frequency and space can be used to estimate . With this knowledge and given the linearity of the additive phase (in ) in (12), several previous works [2, 30, 31] adopted a simple CSI phase de-trending to eliminate . This estimator can more generally be expressed as
[TABLE]
where is the th element of the CSI matrix, is the number of non-zero subcarriers and is the number of guard subcarriers at both ends of spectrum that are not used to modulate any symbol. This is an exact estimator, i.e. , only when (i) the channel does not change variably between two adjacent subcarriers, that is and (ii) .
None of these two conditions is satisfied in reality: As shown in Fig. 6a, the true channel phase normally has a first-order linearity, hence, (14) estimates plus the linear phase term in , which is denoted by hereinafter. In this situation, (14) becomes (often negatively) a biased estimator and compensating CSI using it (as in (16)) gravely impacts ranging accuracy possibly worse than keeping STO and ranging with the original CSI. The performance of (14) is studied for thousands of channel realizations and for two different STO+SFO drift. The bias of the estimator, caused by eliminating the first-order channel linearity was observed.
IV-B1 Alternative Estimators
In obtaining , the following estimator was proven more effective in reducing the estimation error in lieu of (14).
Spatial/spectral Averaging
Given that all transmit/receive sub-channels experience the same hardware error, averaging can be performed in those dimensions as follows:
[TABLE]
Having obtained , compensation is performed with simple post multiplication with the CSI matrix as follows,
[TABLE]
IV-B2 Recovering Channel Phase Linearity
The goal is to subtract the first-order channel linearity that is removed (along with phase errors) in (14)-(15). However, unless the true attenuations , path delays , and are precisely known in advance (which is actually the ultimate goal of positioning), no deterministic approach can find . Yet, with the knowledge that the channel-related term remains constant over the course of several packets, and leveraging the randomness in , Algorithm 1 is used to remove the volatility contributed by SFO and find . This is corroborated when observing that is closely independent of and (which is expected as per (12)) whereas varies across antennas.
IV-B3 STO Removal
The previous procedure designed to recover the channel linearity is incapable of eliminating the STO phase. This is because varies in much longer time-scale, hence, is somewhat fused into the channel phase . STO manifests itself as jumps at the end of PDP due to cyclic-shifting of CIR. This is because any phase shift due to STO in frequency domain () causes circular rotation by the same amount in time domain (). Since, in indoor environments, transmitter-receiver are only several meters away and that bandwidth is limited (20MHz in IEEE802.11n), the first expected peak of true channel CIR (due to LoS arrival) often happens at =0 or 1 which means that any causes that peak to appear at the end of the PDP (due to circular shift property).
This observation forms the basis to estimate through the following logic: The discrete CIR in (2) is a linear combination of shifted discrete Dirichlet functions. This is a periodic function with fundamental period that varies smoothly from one sample to the next. Therefore, jumps that are observed at the far-end of the PDP due to STO, can be detected and compensated for using Algorithm 2.
IV-C Removing CFO and CPO
Removing the linear phase terms produced by STO/SFO leaves CFO/CPO errors in (12) intact. As explained earlier, and similar to SFO, CFO is an accumulative error that has to be tracked by the receiver and compensated for. However, this compensation is crude and leaves behind some residual phase on CSI. Estimating the latter is not an easy task. That is because:
- •
Similar to , not much is known about the calibration intervals within the receiver.
- •
Small-scale fading highly deteriorates CFO compensation performed at the receiver using high-throughput short-training field (HT-STF).
- •
There is no differentiating dimension (as was in previous case) to distinguish the latter from the channel term.
- •
Whereas it was shown earlier that has Gaussian distribution, it is not this variable that we observe but its wraparound version .
Interestingly, is uniformly distributed as observed through experiments and simulations.121212Heuristically, when a random variable has a relatively high variance, the wrapped random variable behaves uniformly. Provided that the wireless channel undergoes insignificant change during CSI measurements, we leverage the weak law of large numbers in Algorithm 3 to average out instead of estimating it.
This only leaves CPO (also known as PLL initial phase) term . When estimating range by finding the peaks of the PDP , whereby is the discrete channel impulse response (CIR) on th link, TOF estimation is immune to CPO since the latter gets eliminated in operation. This is the case even when the MUSIC algorithm is used for ToF estimation [32] as all subspace-based methods rely on calculating the covariance matrix, which automatically eliminates phase stagnancy.
Finally, Algorithm 3 also removes those spatial streams that are too weak (in average power sense) as those are contaminated with more noise and can potentially deteriorate ranging accuracy.
IV-D Dealing with Pre-advancement
None of what was discussed so far is able to tackle pre-advancement . The latter is neither a constant (relative to channel) to be eliminated by high-pass filtering the data, nor too variable to be averaged out. Surprisingly, our experiments show that, in both Atheros and Intel chipsets, changes quicker when the channel undergoes variations and it varies slowly when the channel becomes stable. With the lack of knowledge on the dynamics of channel and the receiver, removing seems almost like an impossible task.
The fact that makes things much easier though. Let’s denote the estimated transmit-receive distance obtained using post-processed CSI after removing all contaminations by . Due to the presence of , the true range is among the hypothesis set . Since we also have access to the received power through RSSI metric and knowing that several dB of power loss is expected as distance increases by m,131313The exact power reduction due to path-loss depends on many factors. Per our observation, doubling the distance results in dB power reduction almost all of these hypotheses in are rejected except one. This idea is better illustrated in Fig. 8. Briefly, all the hypotheses are formed and, then, examined based on the matching between the tabulated RSSI (collected in offline phase) and the observed RSSI (collected in online phase). In the example of Fig. 8, this approach chooses m as the range estimate instead of the initial m.141414Note that RSSI is a relative index. Each chipset manufacturer can define their own “RSSI-Max” value. Cisco, for example, Cisco uses a scale, while Atheros uses . Nonetheless, the higher the RSSI value is, the better the signal is. In case of Atheros, RSSI=+(dbm), where is the received signal energy.
IV-E Removing Baseband Effects
Having eliminated the synchronization sources of error, the CSI output of Algorithm 3 is given by
[TABLE]
As discussed before, CDD affects ranging as if transmitter/receiver are farther away from each other.151515For instance, with sampling time ns (in case of IEEE802.11n WLANs), a ns cyclic shift is equivalent to On the other hand, SMM makes the receiver believe that there are more multipath arrivals than there really is. While it might appear that removing CDD/SMM is a trivial task, this is an implementation-dependent matter whereof details are not always available from the chipset manufacturers. As a matter of fact, the same chipset might use different CDDs at different times. Luckily, our experiments in a conducted test setup with both Intel and Atheros chipset shows that when the channel is full rank, direct mapping takes place, where , and CDD is always removed by the receiver. This has not been the case when .
In conclusion, when , the CSI matrix is the closest to the channel matrix whose elements are given by
[TABLE]
V CSI-based ToF Estimation
V-A Spectral-Domain MUSIC Algorithm
Having cleaned the CSI samples from random and deterministic errors, our goal in this section is to use them to obtain range estimates. As discussed before, estimating the ToF of the signal using PDP has limited resolution due to bandwidth limitations of WiFi signals. On the other hand, [32] discovered that the subspace-based MUSIC algorithm that was traditionally used to estimate the AoA of the signal can also be used to estimate the ToF of the signal. The inherent appeal of MUSIC algorithm for ranging lies in the fact that its resolution is not only determined by the signal bandwidth but also the total signal-to-noise ratio (SNR). For that reason, MUSIC is among super-resolution algorithms. For more comprehensive treatment of the topic, readers are referred to [33, 32, 34]. MUSIC leverages the structure of the received samples in (18) to form
[TABLE]
where is a vector of frequency domain post-processed CSI samples and is the noise-free CSI vector. Based on (18), the steering matrix , steering vector , source vector , and noise vector are given by
[TABLE]
Assuming independence of noise from the signal in (19) and , the covariance matrix of is given by where the noise-free CSI covariance matrix is only of rank (rank deficient). Therefore, the largest eigenvalues in decomposition are due to signal (multipath arrivals) and the rest are due to noise. This observation is then used to separate the noise subspace from the signal subspace by forming the following pseudo-spectrum
[TABLE]
which ideally peaks at about (if multipaths are sufficiently apart). In (21), are the noise eigenvectors corresponding to smallest eigenvalues of . For the MUSIC algorithm to work, the following conditions are to be met [34]:
- (i)
and 2. (ii)
, , (spatial whiteness) 3. (iii)
is non-singular (positive definiteness)
It is violation of (iii) that causes the MUSIC algorithm to completely fail. The latter is indeed the case when ranging with CSI in indoor environment due to the complete coherence between source vectors obtained for each new snapshot. Note that different snapshots are needed to calculate the empirical covariance matrix as is never given in practice. Provided that time-domain averaging is ineffective, we perform averaging in other domains as discussed next.
V-B Spectral Smoothing
Since and CSI are obtained by uniform sampling of CFR in the frequency domain, they possess invariant structure. The latter property means that the CSI vector can be partitioned into spectral partitions of length () to perform averaging across those partitions by treating them as time samples. The idea behind spectral smoothing can be explained with an example; when , (19) is written as
[TABLE]
where, , , , and . Now, given the definition of in (20), where .
With this property, a hardened covariance matrix can be obtained by averaging individual sub-array’s covariance matrices as where has an improved rank, thus closer to the true source covariance matrix. In the general case, covariance hardening can be achieved if [35] through:
[TABLE]
where the constraints above are to ascertain that no sub-array contains subcarrier. This is an important consideration as no information is sent on (due to large DC current) causing and to be apart instead of (as is the case for other neighbouring subcarriers). Not paying attention to this when performing spectral smoothing adds to the estimation error.
Since the averaged covariance matrix has the exact structure as the original covariance matrix, MUSIC can be applied to obtain ToF estimates. This advantage came at the cost of reducing the effective length of the CSI vector () and results in a tradeoff between resolution and stability of MUSIC solution.
V-C Forward-Backward Smoothing
The invariant structure of the CSI signal model can be used not only to smooth over the forward covariance sub-matrices but also the backward ones [36]. Mathematically, this operation is equivalent to
[TABLE]
where is an exchange matrix with ones only on the anti-diagonal and is the forward covariance matrix which is given by (23). Using forward-backward smoothing, the empirical covariance matrix in (24) gets closer to the true CSI covariance matrix improving the accuracy of the MUSIC estimator that heavily relies on the knowledge of this matrix.
V-D Decision Fusion
As detailed before, CSI is a matrix characterizing the channels between each transmit antenna and receive antenna . Provided that transmit antennas (and receive antennas) are spatially sufficiently separated, CSI provides us with independent sub-channels which can be used to obtain independent estimates of range. By fusing these decisions at last, one expects a more accurate final range estimate. One should note that CSI over different sub-channels cannot be stacked up to form a single covariance matrix (named fusion over raw measurement), as the steering matrix in (19) is different for different transmit-receive sub-channels. Fig. 9 illustrates pseudo-spectrums calculated from measurement in corridors of University of Toronto (UofT) where transmitter and receiver were 45m apart.
Different pseudo-spectrums peak at different ranges () for two reasons: (i) some sub-channels are weaker thus giving rise to larger random shifts in their corresponding pseudo-spectrums (ii) multipath fading impacts sub-channels differently.
How do we combine s to get a more accurate range estimate? Simply averaging them yields inaccurate range estimates. The solution we propose is to obtain all sub-channel pseudo-spectrums for all post-processed CSI packets and:
identify those that fluctuate the most (in time). Apply any outlier rejection method to remove that sub-channel from decision-making process. For example, that peak is in Fig. 9. 2. 2.
weight the remaining pseudo-spectrum peaks with their corresponding averaged (w.r.t ) CSI magnitudes, i.e. . The logic is that a weaker sub-channel is more impacted by the noise components when CSI matrix is being estimated by the receiver through simple zero-forcing (ZF) or minimum-mean-square (MMSE) algorithms. Since the weakness/strength of a sub-channel is manifested in the total energy spread across frequency components, the above weighting put more emphasis on the stronger sub-channels that are less impacted by estimation noise.
VI Experimental Results
We performed extensive experiments using IEEE802.11n Atheros 93xx chipset in two environments: (i) Anechoic chambers (multipath-free) in Fig. 7c (ii) corridors (multipath) in Fig. 7a and Fig. 7b. We collected a few thousands CSI, post-processed them using the techniques introduced in Section IV, formed the spatially-smoothed covariance matrix, applied spectral MUSIC algorithm, fused final decisions, and obtained one final estimate. We repeated this experiment for all the collected CSI set. Fig. 9b plots the empirical cumulative distribution function (ECDF) of the estimation error: According to this plot, the median accuracy of 60, 80, 90, 115, 140, 350, and 500cm is achieved when transmitter-receiver are 5, 10, 15, 20, 25, 30, and 40m apart respectively. The 90th percentile accuracy is about 1m (at 5m) and 1.7m (at 20m). Note that at 40m distance, the received power is about -100dB which is only a few decibels higher than the noise floor. One should note that using raw CSI yields range estimates that are off by several tens of meters. Provided that the range estimation error is even larger than the maximum WiFi coverage, which is about 20m in current MIMO-OFDM systems, there is truly no value in comparing calibrated and uncalibrated range estimates. Moreover, since our work is the first to exploit the CSI phase to obtain range estimates, it was impossible to benchmark our results with the previous studies that are based on angle of arrival (AoA) estimation.
Contrary to the claims made in the literature [2, 5], our results suggest that sub-meter ranging accuracy is possible using CSI obtainable from commodity WiFi. There are several observations that were made in the course of the project which are worth mentioning:
- •
With MHz of spectrum available for WiFi signals, one shall not expect to resolve multipath components with MUSIC or with any high-resolution estimation algorithm. This is evident from Fig. 9a for 9 sub-channels of a highly fading propagation environment.
- •
Due to the limited resolvability power achievable with MHz CSI, spectral smoothing with only a handful of partitions is able to sufficiently harden the covariance matrix and recover the only expected peak.
- •
When SNR is low (which happens at longer distances), receiver chooses to advance more than one symbol to make sure any mistake in detecting the symbol boundary estimation (using cross-correlation of HT-LTF sequence with the received header) wouldn’t cause erroneous outcomes.
- •
In situations when , the pseudo-spectrum has a (one-sided) peak at which signifies the existence of a hidden (two-sided) peak at negative distances. When that’s the case, the RSSI-assisted approach won’t work as the knowledge of the hypothesis set , delineated in sub-section IV-D, hinges on the knowledge of the two-sided . To cope with this situation, after post-processing CSI, one will have to deliberately rotate (leftwise) the CSI phase (before forming the pseudo-spectrum) by a few samples to recover peaks at negative distances (due to the existence of pre-advancement error) and de-rotate those peaks for the same number of samples to cancel out what was artificially added. Then RSSI-based hypothesis testing is applied to find out the true range estimate.
- •
This work does not consider tracking of user’s range parameter through combining motion information (obtainable using prevalent inertial measurement units (IMU)) with instantaneously obtained range estimates. Therefore, it is believed that such fusion of information (e.g. using Kalman filter) would yield more stable and accurate results.
VII Conclusion
The availability of channel-state information (CSI) from WiFi chipsets has made indoor positioning a reality. Leveraging the CSI, several recent studies have achieved decimeter accuracy through angle-of-arrival (AoA) estimation or wideband ranging. When it comes down to implementation, the CSI-based localization with time-of-flight (ToF) measurement from only a single channel ( MHz of spectrum) has either not been pursued or led to inconsistent results. With the knowledge of fundamental limits of ranging and its reliance on the availability of bandwidth, the critical question has always been “whether sub-meter ranging is possible with such limited bandwidth”. This paper aims to answer this question. We dissect different deterministic and random phenomena happening in the transmitter and receiver hardware and establish the right model for CSI. We propose techniques to eliminate random phases introduced by the insufficiency of synchronization between transmitter and receiver. Our range estimates using the MUSIC algorithm show that median accuracy of m (m) is achievable in highly multipath line-of-sight environment where transmitter and receiver are m (m) apart. Moreover, with th percentile accuracy of m (m) in m (m), we can claim that the proposed system is robust.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] D. Ferris, D. Fox, and N. Lawrence, “Wi Fi-SLAM using Gaussian process latent variable models,” in Proc. 20th Intl. Joint Conf. Artificial Intel. (IJCAI’07) , Jan. 2007, pp. 2480–2485.
- 2[2] M. Kotaru, K. Joshi, D. Bharadia, and S. Katti, “Spot Fi: Decimeter level localization using Wi Fi,” in ACM Special Interest Group Data Commun. (SIGCOMM’15) , vol. 45, no. 4, June 2015, pp. 269–282.
- 3[3] J. Xiong and K. Jamieson, “Arraytrack: a fine-grained indoor location system,” in USENIX Symp. Networked Syst. Des. Implementation (NSDI’13) , Apr. 2013, pp. 71–84.
- 4[4] S. Sen, J. Lee, K. Kim, and P. Congdon, “Avoiding multipath to revive inbuilding Wi Fi localization,” in ACM Int. Conf. Mobile Syst., Appl., Services (Mobi Sys’13) , Jun. 2013, pp. 249–262.
- 5[5] D. Vasisht, S. Kumar, and D. Katabi, “Decimeter-level localization with a single Wi Fi access point,” in USENIX Symp. Networked Syst. Des. Implementation (NSDI’16) , Mar. 2016, pp. 165–178.
- 6[6] A. Mariakakis, S. Sen, J. Lee, and K. Kim, “SAIL: Single access point-based indoor localization,” in ACM Int. Conf. Mobile Syst., Appl., Services (Mobi Sys’14) , Jun. 2014, pp. 315–328.
- 7[7] C. Yang and H. Shao, “Wi Fi-based indoor positioning,” IEEE Commun. Mag. , vol. 53, no. 3, pp. 150–157, Mar. 2015.
- 8[8] K. Chintalapudi, A. P. Iyer, and V. N. Padmanabhan, “Indoor localization without the pain,” in Proc. 16th Annu. Intl. Conf. Mobile Computing Networking (Mobi Com’10) , Sep. 2010, pp. 173–184.
