Introduction
Wireless communication has been widely used in our daily life after some remarkable recent breakthroughs [1]. The widespread deployment of wireless devices allows the researchers to study the feasibility of utilizing Radio Frequency (RF), like the Wi-Fi being standardized by IEEE 802.11, to provide Location Based Services (LBS) as well as communication services to users. As the most well-known RF, the Wi-Fi uses a specific frequency range within the signal bands of both 2.4 GHz and 5 GHz as a channel and serves as a medium to allow devices to connect to the Wireless Local Area Network (WLAN), which provides wireless network communication within a limited area.
Rather than passively listening to the signals, the Wi-Fi-based devices mostly apply the technique of active scanning to gain access to the Internet through WLAN. In specific, these devices scan through each channel, send a Probe Request (PR) management frame and ask for the available network on that channel to the nearly Wi-Fi access points (APs). Specific characteristics, including Received Signal Strength Indicator (RSSI), Time of Arrival (TOA) and Time Difference of Arrival (TDOA), can be extracted from each PR. Consequently, these characteristics are used to obtain an estimate of the device position via localization algorithms [2], but it is not trivial to model the radio propagation in various environments due to diffraction, scattering, shading, severe multi-path, low probability for availability of line-of-sight (LOS) path and specific site parameters such as moving objects and numerous reflecting surfaces [3].
Many localization algorithms, some are range-based and others are range-free [4], are proposed in literatures. In general, a range-based algorithm provides more accurate localization results than a range-free algorithm, so it is traditionally suggested for estimating positions, but it is not trivial to implement due to high hardware requirements. In specific, the TOA-based localization algorithms require precise clock synchronization [5]–[9], the TDOA-based localization algorithms require ultrasonic transceivers [10]–[14] and the AOA-based localization algorithms require directional antenna [15]–[17]. On the contrary, no additional hardware is required for RSSI-based localization algorithms, thus it has been broadly used in many applications for its simplicity and low implementation cost [4]. Most radio propagation models in RSSI-based localization techniques assume to have perfect channels, but it does not hold in practice. [18] proposed a RSSI-based weighted circular algorithm to take care of imperfect channels, but it has no guarantee on the real-time position estimate of a target. In order to complete the localization process within a limited amount of time, new methods with speed and accuracy optimization are of great interest.
Swarm Intelligence Based (SIB) method, which is famed for its fast convergence, simple implementation and low computational cost, comes into play. It was first proposed to solve the optimization problems in the designs of experiments in statistics [20]–[22]. No assumption is required on the objective function of SIB. Due to the architecture in the SIB algorithm, its computational performance can be doubled by applying CPU parallel computing on a single dual-core computer [19]. On the other hand, some have explored device trajectory along different time-slots to gain a better resolution into the target device. Trajectory data is considered as a core revealing details of instantaneous behaviors piloted by mobile entities [23]. Although most of the researches in localization focus on the techniques for positioning, the characteristics of the trajectory formed by user’s position through different time slots is seldom mentioned and discussed. These characteristics from feature extraction of the device’s estimated position are important for providing promising LBS.
The confidence band is well-known in statistics to represent the uncertainty in a function estimation from a limited or noisy data [24]–[26], [30], [31]. Various informative analyses and different dependency relationships among factors can be extracted by the construction of the confidence band. Such an important tool has not been popularly applied in the field of engineering yet. This leads to our proposed method to construct real-time confidence bands for a target’s trajectory based on a new RSSI localization approach. In specific, we introduce a new objective function based on the concept of the weighted positioning circular algorithm to consider the conditions in the real environment. We then modify the SIB method to search for a good solution via speeding up the process of localization for a duplicate sampling of distance estimation. A confidence band for the target’s moving trajectory is constructed via simultaneous inference and coordinate dependency of the estimated target position. Finally, the characteristics of the state of motion are obtained from the status of the confidence band.
The paper is organized as follows. In section II, the background of channel modeling localization and the concept of confidence region are described. Section III presents the approach of the proposed localization algorithm and the construction of trajectory-based confidence band. Section IV evaluates the result of our proposal. Section V concludes the paper and outlines the future work.
Channel Model Localization and Confidence Region
A. Channel Modeling Localization
Consider two types of nodes in a Wi-Fi network: mobile and APs. As the mobile tries to gain access to the internet, our device automatically sends a PR management frame searching for the available network on that channel actively to nearby APs. On the other hand, the nearby APs obtains the RSSI of the requests sent out by our mobile devices. The distance between the device and the APs can be calculated by the APs by applying various channel models according to the need of applications and assumptions [27]. This paper considers the Free-space path loss (FSPL) model:
In a circular positioning algorithm [28], the target’s location is determined from the intersections of circumferences centered at the APs. The positions of the APs are known and located accurately in a certain position, and the radius of the circumferences is estimated by the relationship between RSSI in the Free-space path loss model. Due to the existence of uncertainty in the RSSI-distance estimation caused by the channel environment, the intersections of the circumferences is presented as a range of area instead of a single unique point. A nonlinear least square method is applied to solve the problem as it provides a comparably more accurate result than other methods [29]. Our goal is to minimize the sum-square error on the device location, thus our objective function is expressed as
In real localization applications, the channel environment may vary under different circumstances and cause a considerable amount of variation with respect to the standard deviation of the Gaussian noise, generating from shadow fading and model error caused by uncertain propagation parameters. These errors in the RSSI-distance conversion may lead to an inaccurate representation of the real radio channel and produce undesirable results in localization. The second equation of FSPL model reveals that the variance of the Gaussian noise is correlated with the distance between the target device and the AP. Since a shorter distance between the target device and the AP results in a higher accuracy of the estimated distance, a majorization approach on the accurate measurement is able to obtain an accurate localization result.
In light of above, a weighted circular positioning algorithm [18] is a good substitute to its standard version in this manner. The error in the distance estimation for the
Finally, the objective function can be expressed as \begin{equation} f(x) = \sum \limits _{i = 1}^{N} {\frac {1}{{Var({\hat d_{i}})}}{{(\sqrt {{{({x_{i}} - x)}^{2}} + {{({y_{i}} - y)}^{2}}} - {\hat d_{i}})}^{2}}}. \end{equation}
As shown in Equation 1, the objective function is equal to the weighted sum of the squared errors in the set of estimated distances and the weights are given according to the variation of
B. Confidence Region
Confidence intervals were introduced for estimating a single parameter for random variables of single-dimension for which the difference between the parameter and the observed estimate is not statistically significant at a specific level. Confidence regions can be similarly defined for vectors of parameters, such as the mean vector
Consider \begin{equation} \frac {N - p}{(N - 1)p}N{(\bar x - \mu)^{T}}{\hat \Sigma ^{-1}}(\bar x - \mu)\sim {F_{p,N-p}} \end{equation}
\begin{align} P\left({N{(\bar x -\mu)^{T}}{\hat \Sigma ^{-1}}(\bar x -\mu) \leq \frac {(N-1)p}{N-p}{F_{p,N-p}}(\alpha)}\right) = 1 - \alpha \!\!\!\notag \\ {}\end{align}
Construction of Confidence Band
This section introduces the modified objective function for duplicate RSSI sampling and the SIB evolutionary algorithm, followed by the construction of confidence band of the target’s moving trajectory.
A. Objective Function for Duplicate Sampling
To improve the accuracy of localization, we consider the average of the RSSI signals sent from the targets to estimate their distances between the APs. The estimated distance between a target and each AP is estimated in multiple times. Each acquired distance is considered as a sample of the estimation. The amount of sampling for the estimated distance between the target and each AP varies according to the state of motion of the target. If the target moves slowly or stays in the same location, the number of samples for each estimation is expected to be large, and vice versa. After the estimations, the mean of the estimated distance can be obtained by iteratively sampling the distances between the target and each AP as
On the other hand, the variance of \begin{equation} f(x) = \sum _{i = 1}^{N} {\frac {n_{i}}{{Var^{\prime }({\hat d_{i}})}}{{(\sqrt {{{({x_{i}} - x)}^{2}} + {{({y_{i}} - y)}^{2}}} - {\bar {\hat d}_{i}})}^{2}}}. \end{equation}
In most conditions,
The modification of our objective function in Equation 4 have three major contributions: First, the variance of the sample mean
B. The SIB Algorithm for Localization
The SIB algorithm was first proposed to optimize designs of experiments in statistics under various criteria of design properties [20]. This method can be applied for the search of both continuous and discrete domains. The general framework of the SIB algorithm is shown in Figure 1.
In the step of initialization, possible solutions are generated as initial particles, the values of the objective function for these particles are evaluated, each of which has its own perceived location of initial optimum in the search space called Local Best (LB) particles. All particles share information by comparing its initial LB with other to perceive the overall optimum location called Global Best (GB) particle. In this step, the number of the initial particles and the stopping criterion are set. For the particles to collectively arrive at the perceived overall optimum location, they go through the steps of MIX and MOVE operations iteratively after the initialization step. LB particles and the GB particle are updated continuously in each iteration until the stopping criterion is fulfilled, which can be the reach of either the pre-specified maximum number of iterations or a known optimal value of the GB particle.
In the MIX operation, each particle goes through the deletion and addition steps. Assume that every particle
The MOVE operation is a decision-making procedure to select the best particles among all candidates with the optimal values of objective functions. Three candidates among
Now we consider the SIB method for localization problems, namely the SIBL algorithm. We considers a square domain for localization with the center of the area being the origin (0, 0). In the step of initialization, the size of the square domain
However, there are some tradeoffs behind the benefits brought by the design of particles. We denote the number of discrete units to be exchanged in the MIX operation as
The pseudo code of the SIBL algorithm is as shown below.
Determine the size of the square domain
.\ell \times \ell (m^{2}) Randomly generate a set of initial particles.
Evaluate the localization-based objective function value for each particle.
Initialize the LB for all particles.
Initialize the GB.
while not converge do
Determine the number of elements to be exchanged.
For each particle, perform the MIX operation.
For each particle, perform the MOVE operation.
Evaluate the localization-based objective function value for each particle.
Update the LB for all particles.
Update the GB.
end while
C. Construction of the Confidence Band
Confidence band can be categorized into many different types, each type is suitable for a specific usage or an application. In this paper, the confidence band corresponds to the simultaneous confidence band. The simultaneous confidence band is formed by a collection of confidence sets. With a given coverage probability, the simultaneous confidence band covers the corresponding true values for all collection of confidence sets. To construct the confidence band of moving trajectory, the confidence sets of every estimated position in each area is established in advance. The confidence sets for every estimated area are considered as confidence regions of a multivariate normal distribution of two dimensions. A confidence region of a certain area is then constructed when the target’s position is detected within. To construct the confidence regions, we consider \begin{align} P\left({N{({\bar x_{i}} - \mu)^{T}}{\hat \Sigma ^{-1}}({\bar x_{i}} - \mu) \leq \frac {(n_{i} - 1)p}{n_{i} - p}{F_{p,n_{i} - p}}(\alpha)}\right) = 1 \!-\! \alpha \!\!\notag \\ {}\end{align}
We construct the confidence band after the confidence regions for all domain areas are established and the targets are appeared near the APs. In specific, Equation 5 is satisfied for all
The confidence band is informative if the number of confidence regions are large. However, since there are inappropriate positions for the deployment of APs, Wi-Fi based localization cannot always target all positions of every area along the entire traveling path. Since we construct the confidence band based on the target’s trajectory, the estimation accuracy of every position need not always be precise and a certain amount of tolerance is allowed. In order to construct a well-informed confidence band that covers as many confidence regions as possible, the position estimate for the areas with less than three intersections of AP signals is targeted by the APs to build up the band. The established confidence region under this situation is expected to have a large size originated from the increase of estimation variation. Such minor defects are acceptable to the whole structure of the confidence band.
Sometimes the client sends out a PR at its lowest supported data rate, typically 1 Mbps, the rate of receiving RSSI signals as well as the number of estimations for the distance between AP and target are assumed to be constant. Then the confidence band for a traveling trajectory reveals the average speed of the target along the path without any other extra hardware implementations. Since the APs localize the moving target repeatedly, the moving speed depends on the number of localization operated by the APs for each position. The result show that the size of the confidence band is highly correlated with the average speed of the moving target. Subtle changes in the moving speed results in a non-neglectable alteration of the size of the confidence band. This fact implies that the confidence band provides important information about the motion of the traveling target, which can be useful on many applications after appropriate data analysis is conducted.
Simulation and Analysis
The simulation performed in this section is carried out by a SIB program written in Python. The Wi-Fi APs are uniformly deployed in a sensor field of
In the SIBL algorithm, we initialize 2000 particles and the maximum number of iterations ranges from 1 to 5 in five different cases. The confidence bands of the target’s trajectory are gradually improved from the increasing number of iterations being carried out in SIBL, and they are illustrated in Figures 2 to 5. The blue and red lines represent the trajectory of the moving target and the estimated path of the target respectively, while the purple ellipses are the confidence region for every estimated positions. The green triangles and circles represent the APs and their signal ranges.
In Figures 2 to 5, the confidence bands are shown at 95% confidence level for the moving trajectory. The completeness of these bands depend on the number of iterations executed in SIBL. It is obvious that the band constructed via few iterations is sparse and vice versa. With large number of iteration, the band begins to converge alongside with the path of the moving target. The positive dependency between the number of iteration and the computational time leads to a tradeoff between the completeness and computational time of generating the confidence band. Nevertheless, most bands reach a well-converged state within 5 iterations in our simulation.
On the other hand, since the number of position estimations are related with the speed of the moving target, the effectiveness of confidence band for speed detection is demonstrated by comparing the average size of the confidence bands with different corresponding number of estimations. Larger amount of estimations represents a higher amount of speed. To ensure that the size of confidence band alters in the same fashion under different rate of RSSI estimation, the size of the confidence band with different corresponding number of estimations is also compared under various transmission frequency of PR. The simulation demonstrates the confidence band with the number of estimations within the range of 3 to 20 as benchmarks. The results are shown from Figures 6 to 9.
The size of the confidence region is highly correlated to the number of position estimates under different rate of RSSI estimation between the target and each APs. Under all different rates of RSSI estimation, the size of the confidence band decreases significantly as the number of localization increases from 3 to 9 and becomes relatively stable when the number of localization continues to increase. This size difference of the bands are remarkable among different speeds of the moving target, so it can clearly be used to reveal the speed of the target when a particular rate of RSSI estimation is set.
The rate of RSSI estimation is negatively related to the size of the confidence band as shown in Figure 10, but the alteration of the size between different frequencies at a fixed number of localization is not as notable as that between different amount of position estimations at a fixed rate of RSSI estimation. The speed of the moving target can be detected from the size of the band by knowing the number of RSSI estimation between the target and each AP. Thus, we can record in a database the size patterns of the confidence band with different number of estimation and different RSSI estimation frequency for data matching. The average speed of a target along the traveling trajectory can then be detected by matching the size of its corresponding confidence band in the database.
Conclusion and Future Work
This paper proposes a new statistical method via a RSSI-based localization approach to construct real-time confidence sets and the confidence bands for the target’s trajectory. We study the simultaneous inference on the estimated positions of the target and the dependency of the coordinates in each estimated positions. We also investigate the speed characteristics and patterns of the state of motion for a moving target that can be detected from the status of each confidence region in the constructed confidence band. To measure the positions adapted from the real environment, we propose a new objective function for localization. Then a modified SIB method called SIBL algorithm is then proposed for obtaining a confidence band with accuracy and speed. Experimental results shows that the confidence bands converge within a very small amount of iterations. Furthermore, the speed detection of a moving target is efficiently achieved without requiring any additional hardware implementations and large computational resources.
When we construct the confidence band, we apply the Bonferroni method to adjust
To further reduce the computational costs, parallel computing architecture can be implemented to the SIBL algorithm with multi-core CPU, and it can be a promising extension from this work. In addition, we suspect that the transformation of the elements in each initialized particle of the SIBL into binary numbers may lead to a better chance to achieve global optimum before trapping in a local optimum. Furthermore, the concept of confidence band can be extended into prediction band, which can be used for characteristics predictive purposes. The target’s path can then be predicted through such construction, and the target’s position can also be revealed via the sampled datasets with prescribed probability. The target’s future movement can be forecasted and it is of great interest in many traffic areas.