Abstract

Recent years have witnessed a growing interest in using WLAN fingerprint-based methods for the indoor localization system because of their cost-effectiveness and availability compared to other localization systems. In this system, the received signal strength (RSS) values are measured as the fingerprint from the access points (AP) at each reference point (RP) in the offline phase. However, signal strength variations across diverse devices become a major problem in this system, especially in the crowdsourcing-based localization system. In this paper, the device diversity problem and the adverse effects caused by this problem are analyzed firstly. Then, the intrinsic relationship between different RSS values collected by different devices is mined by the linear regression (LR) algorithm. Based on the analysis, the LR algorithm is proposed to create a unique radio map in the offline phase and precisely estimate the user’s location in the online phase. After applying the LR algorithm in the crowdsourcing systems, the device diversity problem is solved effectively. Finally, we verify the LR algorithm using the theoretical study of the probability of error detection. Experimental results in a typical office building show that the proposed method results in a higher reliability and localization accuracy.

1. Introduction

In recent years, people’s daily life is becoming more and more convenient owing to the development of “5G”, smart cities, and Internet of Things [1, 2], and the network connectivity and spectrum efficiency of Internet of Things are greatly improved by “5G” [3]. As a major part of smart cities, location-based services (LBS) are attracting an enormous amount of attention [4, 5]. Furthermore, the explosive growth of intelligent mobile devices has promoted the research of LBS technology [6]. The typical LBSs mainly involve human navigation in unfamiliar environment, robot path planning and guidance, health care inside modern hospitals, location-based enhanced sensing, entity and storage tracking, and management. We can see from all these services that the reliable, accurate, and real-time localization technologies are required to locate the users’ position at the beginning of LBS [7].

In outdoor environments, the Global Navigation Satellite System (GNSS) is the most prominent positioning technology and provides precise positioning. It has made a great success and brought great convenience to people’s lives [8]. However, due to line-of-sight (LOS) limitations, satellite signal receiving devices cannot be used indoors and in areas where satellites are blocked by tall buildings. Various solutions have been proposed as alternatives to GPS for indoor environments [9].

Since the RADAR system is proposed in [10], the RSS fingerprint-based WLAN localization method has attracted the attention of many researchers due to its cost-effectiveness and availability [11, 12]. After years of research and evolution, thousands of access points (APs) have already been deployed in indoor environments, such as campuses, hospitals, airports, and shopping malls, which provide great opportunities for the development of indoor location estimation services. The RSS fingerprint-based WLAN localization system can reuse the existing WLAN infrastructures in indoor environments, which significantly reduces the cost.

Typically, The RSS fingerprint-based WLAN indoor localization system contains two phases: the offline phase and the online phase [10]. In the offline phase, a number of reference points (RPs) are set in the indoor area, and researchers collect RSS values from the existing access points (APs) at all RP throughout. A radio map is then constructed using the collected RSS values and its corresponding geographic coordinates. In the online phase, users’ locations can be estimated by comparing the RSS value at their current location and those in the radio map [13, 14].

A conclusion can be drawn from the structure of the fingerprinting localization systems that RSS values are the foundation of realizing positioning. In most of the existing experimental systems, researchers build the radio map using a mobile device in the offline phase, and the user’s location is computed using the same device in the online phase. However, in the actual localization system, this assumption is generally invalid, and the mobile devices used by different users are different in both the offline phase and the online phase. In the offline phase, aiming to reduce the labor and time costs of radio map construction, the crowdsourcing method has been proposed in the indoor localization domain, which brings a variety of distinct mobile devices [12, 14, 15]. In the online phase, the mobile devices which are used to localize the users may be different from the mobile devices used in the establishment of the radio map. The device diversity problem has been deeply studied in the last decade. The research results show that the main cause of such problem is the difference in hardware performance, which makes the differences between the RSS values collected by different devices may exceed 25 dB [1618]. As a result, because of the adverse impact of the device diversity problem, the positioning accuracy of the crowdsourcing system is greatly reduced.

Although the establishment of a radio map for each device can obtain the highest positioning accuracy, this method is not practicable obviously as a result of numerous devices. In [19, 20], the linear regression algorithm (LR) is proposed to eliminate the device diversity for the crowdsourcing WLAN indoor localization system. However, the descriptions and simulations of the LR algorithm in [19, 20] are very simple. Therefore, in this paper, we discuss the proposed method in detail and get the complete simulation results. More importantly, the formula of error detection probability of the proposed LR algorithm is derived. The problem of device diversity and the adverse effects caused by this problem are analyzed at the beginning. Then, the LR method is applied to deal with the discussed problem. The device diversity will be diminished greatly with respect to the proposed algorithm. The advantages of this method include the following points: the system has a low computational complexity, does not need any training period, and can be finished automatically without user’s intervention.

The main contributions of this paper are as follows. (1)The linear relationship between the RSS data collected by different devices is proved. We obtain the RSS points by comparing the RSS vectors collected by different devices, and the slope and the intercept of the straight line determined by any two points are calculated. Since all the slopes and intercepts are equal, all the RSS points are on the same line. Therefore, the relationship of RSS data collected by different devices is linear(2)The fast least trimmed squares (FAST-LTS) algorithm is proposed to eliminate the device diversity problem. Since the relationship between RSS values collected by different devices is linear, using the linear regression algorithm, all the RSS values can be mapped into the same signal space. Because the outliers appear in the collected RSS values frequently and seriously affect the performance of the linear least squares (LLS) algorithm, the FAST-LTS algorithm is used in this paper. Simulation results verify the effectiveness of the proposed algorithm, and all the RSS data are mapped into the same signal space(3)We derived the probability of error detection of all fingerprints in the radio map. By deducing the formula, we can obtain that the probability of error detection is greater when the two fingerprints are closer. Hence, these fingerprints in the set of candidate nearest neighbor fingerprints contribute most of the error and need to be dealt with carefully

The rest of the paper is organized as follows. The related works are discussed in Section 2. In Section 3, we state that the problem statement on indoor localization and the linear relationship between the RSS data collected by different devices is proved. The linear regression method is proposed to solve the device diversity problem in Section 4. Section 5 analyzes the probability of error detection in the indoor localization system. The simulation and experimental results are presented in Section 6. Finally, Section 7 concludes the paper.

To handle the device diversity problem, the establishment of a radio map for each device can obtain the highest positioning accuracy. However, this method is not practicable obviously as a result of numerous devices [21]. Therefore, various solutions have been proposed as the alternations.

The device diversity problem was first discussed in [21]. Haeberlen et al. collected RSS values using different mobile devices at the same time and location in the test area, and they repeated this process at different locations. Then, the linear relationship between different RSS values collected by different mobile devices was inferred and used to eliminate the differences caused by different mobile devices. However, when an unknown device was used to find the current location, how to calculate the linear regression coefficients of the device had not been solved. In addition, although the authors in [21] had found the solution to overcome the device diversity problem, the solution was not applied to any localization systems.

Since collecting labeled RSS values for each mobile devices is a labor-intensive and time-consuming process, a semisupervised method is proposed in [17] to solve the device diversity problem using a small number of labeled RSS values. To solve the device diversity problem, multiple devices are treated as multiple learning tasks in this paper.

A latent feature space and a regression function are learned at the beginning, and then the signal spaces of all devices are mapped to the latent feature space by the regression function. Accordingly, the differences between different devices have been significantly reduced, and the positioning accuracy has been greatly improved.

In [18], Tsui proposed an unsupervised learning algorithm to solve the problem in the WiFi localization system. In this paper, the Pearson product-moment correlation coefficient is used to label the RSS readings roughly collected by an unknown device at the beginning in the online phase. Then, different algorithms, such as regression algorithm and expectation maximization algorithm, are applied to train the transformation function. In [22], another solution using unsupervised learning algorithm is proposed to overcome the device diversity problem. In this paper, the probabilistic model is built to calculate the RSS values, and kernel estimation with a wide kernel width is used to reduce the difference in probability estimates. Although these methods reported some gain in localization accuracy, the unsupervised learning algorithm could not take the desired effect when the set APs detected by different devices are different.

Kjærgaard et al. utilized hyperbolic location fingerprinting (HLF) to solve the device diversity problem [23, 24]. In the training phase, the radio map is built by the signal strength ratio between two APs instead of an absolute RSS value from a single AP. Since the signal strength ratio is more stable than the absolute RSS value, the localization accuracy is significantly improved. However, the ratio term of the linear transformation function is not the only factor to be considered. If this offset component is significant in the linear relation or the set of the APs detected by different devices is different, this method is expected to fail.

In [2527], three different of signal strength methods are proposed to reduce the impact of device diversity. In [25], Dong et al. used the different between all possible AP pairs, called DIFF, to build the radio map. In this radio map, the cost of the DIFF method is and may increase dramatically when the number of the AP increases. In [26], the signal strength difference (SSD) method approach subtracts the RSS value of an anchor AP from the other RSS values in the fingerprint. Therefore, each fingerprint contains only RSS differences, and the dimension of SSD method is . As a result, the DIFF method achieves higher localization accuracy than the SSD method. Laoudias proposed the mean differential fingerprint (MDF) method in [27] which uses the mean RSS value to calculate the RSS differences to create the RSS fingerprint. The MDF method maintains the advantages of DIFF and SSD, which can achieve the high positioning accuracy as DIFF, while keeping the computational overhead similar to SSD.

In [28, 29], convolutional neural networks (CNN) are used to eliminate the device diversity problem. Cai et al. [28] proposed a device-free indoor localization system based on channel state information (CSI) in IEEE 802.11n through CNN, and the space diversity, time diversity, and frequency diversity of CSI are combined to design the more abundant localization features. In [29], the database is constructed using the magnetic pattern (MP) in the offline phase, and the location is calculated using the CNN algorithm in the online phase to eliminate the device diversity problem. Although this is a magnetic positioning system, it can give us a lot of inspiration.

In [3033], the LR method is used to mine the internal relationship between data and eliminate the differences between data through linear regression. In [30], an automatic device transparent RSS-based indoor localization system has been proposed, and the linear least squares (LLS) algorithm is applied in this system. Combining the offset component and ratio term makes the LLS algorithm a complete algorithm. Moreover, the algorithm complexity of LLS is much lower than the other algorithms discussed above. Li et al. [31] presented a prototype model of a multiple-surveyor-multiple-client system in the crowdsourcing localization system. The linear regression model is applied to calibrate across participating training devices, and a geometric distribution is used to obtain a conditional likelihood that the client observes invisible access points in the training phase. Ye et al. [32] proposed a device calibration algorithm to fuse samples from different devices to obtain grid fingerprints and a two-step online positioning algorithm to localize user’s position. In [33], the FAST-LTS algorithm is proposed to deal with large data sets. Due to the FAST-LTS algorithm, the LTS estimator becomes available as a tool for analyzing large data sets and to detect outliers or deviating substructures. This algorithm provides us with a very good idea to deal with the problem of device diversity. Therefore, we propose a FAST-LTS algorithm to eliminate the device diversity problem in [19, 20], which achieves good results. In this paper, we further improve this algorithm.

3. Problem Formulation

For the RSS fingerprint-based localization method, the localization accuracy greatly depends on the mapping relation between the fingerprint and its corresponding coordinates stored in the radio map. In the offline phase, the localization area is divided into a discrete grid with RPs and APs, which are deployed in this area. We collect RSS values from the APs at each RP, and a fingerprint radio map is constructed that holds the RSS for APs and RPs. The system diagram of the RSS fingerprint-based WLAN indoor localization system is shown in Figure 1. In traditional WLAN positioning methods, hundreds of fingerprints are collected over time for each RP. After RSS preprocessing, a vector is generated at each RP, where is the received signal strength measured by the training device at the -th RP from the -th AP. The -th fingerprint is the combination of the RSS measurement and the coordinate of RP . All the fingerprints are tabulated into the radio map that can be represented in Figure 1.

In the online phase, the user collects the RSS value at an unknown position by a mobile device, and then the user’s position could be estimated by comparing with the radio map. Usually, if is similar to the fingerprint in the radio map, we reason that user’s location must be close to .

In the actual localization system, the mobile devices used by different users are distinct from each other. Since the WLAN signal receivers with different performance are equipped with the different mobile devices, so the different mobile devices may have different signal sensing capacities and yield different RSS values. To illustrate, we used five different mobile devices to collect RSS values from a single AP at a particular location and plotted the histogram in Figure 2. Due to the large fluctuation of the RSS value in the indoor environment, if only 2-3 RSS is collected on one RP, the accurate RSS distribution cannot be obtained. Therefore, we collected 100 RSS values in each RP. As shown in Figure 2, the RSS values collected by different devices can be quite different even at the same location. This directly results in erroneous location estimations if we use one device’s data for training and another device’s data for locating.

We define and as the signal space for the radio map built by the training device and the online RSS values collected by the localization device, respectively. Let the fingerprint in the radio map is the nearest neighbor online RSS value . Because of the different signal receiving capability of the different mobile devices, the RSS values collected at the close physical locations are obvious different. Hence, one of the key challenges arises: how to process these RSS values collected by different devices to make the in closer to . Mathematically,

By learning , the radio map build by the training device could be used to localize any other devices.

Next, we will explore the relationship between different RSS values collected by different mobile devices. The signal processing diagram of the mobile device is shown in Figure 3.

We suppose that the transmit power of the AP is , and the receiving power of the mobile device is where is the receiving power of the antenna, is the path loss at distance form AP, is the transmit antenna gain, is the receiving antenna gain, and is the power amplifier magnification.

Assume that and represent the RSS vectors collected by two distinct devices and at the same location and the same time. In order to obtain the mapping function in Eq. (1), we compare and and get points whose coordinates are , and the RSS value collected by devices and from the -th AP are where the subscript represents the -th AP, and the superscripts and represent the device and the device , respectively.

Figure 4 shows three points determined by matrix and , any two points can determine a straight line, and then we get 3 lines in this figure. Suppose the slopes of the 3 lines are , , and , and the intercept of the 3 lines are , , , if and , all the 3 points are in the same line; that is, there is a linear relationship between and . Therefore, if the slopes and intercepts of the lines determined by any two of the data points are equal, it can be determined that all the data points are on the same line, which means the relationship between and is linear. In this paper, using this method, the relationship between and can be proved.

The linear equation determined by two points and is

The slope and intercept of the equation are

Substituting the values of Eq. (3) and Eq. (4) into Eq. (6) and Eq. (7), then we can get

As can be seen from Eq. (8) and Eq. (9), in the ideal case, the slope and intercept of the line determined by two points and are only related to the antenna gains and amplification factor of the device and device . Therefore, the points determined by the vectors and are on the same line. where the linear equation coefficients are and .

Assume that the RSS vectors and are collected at the same location and at different times. In an ideal case, the transmitting power of the AP, the working status of the mobile terminal, and the path loss remain constant; therefore, the linear relationship between and is same as Eq. (10).

In practice, the instability of the AP transmit power and the complexity of the indoor electromagnetic environment make the RSS values collected by the mobile device unstable at different times. where , , , and .

Substituting the values of Eq. (11), Eq. (12), Eq. (13), and Eq. (14) into Eq. (6),

When the indoor environment approaches an ideal environment, which means the difference of AP transmitting power at different times , and the difference of path loss at different times , then

Similarly, we can get

As a result, the linear relationship between and can be proved by Eq. (16) and Eq. (17).

In an actual indoor environment, the working status of the AP is unstable, and the electromagnetic environment in the room is very complicated. Therefore, the difference of the transmission power of the AP and the difference of the path loss are not equal to 0, and as the result, the linear equation coefficients are where is the error of slope, and is the error of intercept, , , and .

Figure 5 shows the slope and intercept of Eq. (18) and Eq. (19). Considering the noise, we can see from Eq. (18), Eq. (19), and Figure 5 that the slope and intercept of the straight line are centered on the ideal slope and intercept and fluctuate within an error range. Therefore, the relationship between RSS data vectors and is approximately linear.

In Figure 6, the comparison results of RSS values collected by five distinct devices are plotted. In this figure, each point represents the RSS values collected by two distinct devices at the same RP from the same AP. For example, the top left subplot in Figure 6 represents the RSS values collected by Lenovo laptop and Huawei mobile device. Figure 6 verifies the results of Eq. (18), Eq. (19), and Figure 5, and the linear correlation can be drawn by the RSS values collected by Lenovo laptop and other devices.

As a result, we apply the linear regression method (LR) as the mapping function in this paper. The LR model is defined by specifying how the signal space of localization device is mapped into in the signal space of the training device. Based on the LR method, a unique radio map in the offline phase could be built and improve the localization accuracy in the RSS-based crowdsourcing localization system.

4. Linear Regression Algorithm against Device Diversity for the Crowdsourcing Fingerprint Indoor Localization System

In this section, a preprocessing procedure is used to stabilize the acquisition of RSS values at the beginning. Then, the RSS values collected by an unknown device are labeled automatically with a rough location estimation using a correlation ratio computed from the Pearson product-moment correlation coefficient. Finally, the linear regression algorithm (LR) is proposed as the mapping function to solve the device diversity problem, and the fast least trimmed squares (FAST-LTS) is applied for the LR method to provide a more robust performance.

4.1. Preprocessing of RSS Values

The first step in our work is to mitigate the RSS fluctuations caused by the complexity of the indoor environment. Typically, when building the radio map, we measure a large number of RSS values at each RP to eliminate the noise. Let be the set of RSS values collected at location from the -th AP. When the RSS values are collected to build the radio map or estimate the current location, the length of all must be the same. However, for some reasons, some APs cannot work properly. To ensure that the RSS measurements are the same length, we use a value of dBm to fill the missing RSS value, and we denote it as an outlier. These outliers could affect the linear regression process and produce erroneous location estimations, as shown in Figure 7.

Figure 7(a) plots the linear regression function of the RSS values for two different devices, where the traditional average is used for estimation. The uncertainty in the RSS samples can be seen clearly in this figure. To achieve higher positioning accuracy, the original RSS measurements should be preprocessed prior to the localization process. Average, mode, and median are the common data preprocessing methods in mathematics. Because the average takes all the RSS values into consideration and uses the data more efficiently, so we average the RSS values to overcome the RSS fluctuations. However, the average is susceptible to the outliers of -110 dBm. The existence of outliers could seriously affect the accuracy of the average and produce erroneous location estimations. Hence, the truncated average is used in our work to stabilize the collected RSS samples: where is an indicator function.

There is also a special case when calculating the truncated average. Consider a situation that only one sample reports valid reading when all the other RSS values are -110 dBm, the result of Eq. (20) is . Therefore, when applying Eq. (20), we first calculate the ratio of the normal RSS value in the collected vector and set a threshold , and then we can get the truncated average

4.2. Rough Location Estimation

After completing the preprocessing of RSS data, we use the linear regression method as the mapping function. where is the -th fingerprint in the radio map collected by the training device, is the RSS values measured in the online phase by localization device, and are the coefficients in the mapping function.

Based on the mapping function in Eq.(22), the RSS values collected by different devices can be transformed to the same signal space. Accordingly, the device diversity problem can be solved. However, the RSS values collected in the online phase are unlabeled and cannot be processed using the linear regression algorithm. Therefore, the correlation ratio computed from the Pearson product-moment correlation coefficient is proposed to roughly label the RSS values collected in the online phase as [18]. where is the number of APs, and are the RSS values measured from the -th AP, is the average of the RSS values from the tracking device, and represents the mean of the RSS values measured by the training device in the -th fingerprint. The range of the Pearson correlation ratio is , where 1 indicates the highest positive linear correlation between RSS values and the fingerprints with a negative should be excluded.

When we get the online RSS values , the Pearson correlation ratio between and all fingerprints in can be computed using Eq. (23). By setting a correlation coefficient threshold , we can obtain the set of nearest neighbor fingerprints in the radio map for .

The fingerprints in have the strongest linear correlation with the online RSS values, the online RSS values can be labeled roughly, and the linear regression mapping function can be obtained more accurately.

4.3. Linear Regression Algorithm against Device Diversity Problem

In Eq. (22), the important parameters, and , need to be computed first. Because the linear least squares (LLS) algorithm is more sensitive to the outliers, we use the fast least trimmed squares (FAST-LTS) algorithm to compute the parameters in Eq. (22).

Assume that the amount of the nearest neighbors in is , the FAST-LTS solution for linear regression with intercept is given by where , , and is norm 2 of a vector, are the ordered squared residuals: .

Given the -subset of all nearest neighbors, the is used to compute and as follows [33]: (1)Compute and least squares regression estimator based on (2)Compute the residuals for (3)Sort the absolute values of these residuals, (4)Arrange the absolute values of the residuals in ascending order, let be a subset consisting of the nearest neighbors corresponding to the first absolute values of the residuals in the sequence(5)Compute and least squares regression estimator based on

Repeating with numerous , a lot of regression coefficients will be gotten. The approximate solution is the coefficient corresponding to the least . Using the parameters and , can be transformed to the signal space of the online data : where . Since both and belong to the same signal space, the KNN algorithm based on the RSS Euclidean distance can be used to estimate the user’s location.

5. Analysis of Probability of Error Detection of the Proposed Algorithm

In this section, we analyzed the probability of error detection in the crowdsourcing indoor localization system. In the offline training phase, the radio map consists of fingerprints that are built by the training device . Suppose and are two fingerprints in the radio map , is the RSS value collected by the localization device in the online phase. Assume that the fingerprint is the nearest neighbor to the online RSS value . Based on the linear regression model, the relation between the RSS vector and the fingerprint can be expressed as where and are the real linear regression coefficient between two RSS vectors, and is a noise vector. We suppose that is the Gaussian distribution of , and the variance is unknown.

Using the proposed LR method, the online RSS vector and the radio map can be transferred to the same signal space

In this paper, the KNN algorithm is used to estimate the location of the online RSS vector . First of all, the Euclidean distance between the online point and the fingerprints in the radio map should be calculated by

In the KNN algorithm, we choose the fingerprints with the smallest Euclidean distance as the nearest neighbor of . Assume that , if , then is the nearest neighbor of ; on the contrary, is the nearest neighbor of . We have assumed that in the radio map is the nearest neighbor of , and an error occurs when the calculation results show that . Therefore, we can get the probability of localization error from Eq. (32) as given as where is the nearest neighbor of the online data .

If the nearest neighbor of the online data estimated by the localization system is correct, then, , the linear regression coefficient could be calculated by Eq. (25),

Obviously, in Eq. (33), when and , we get the minimizer of Eq. (30), and the linear regression coefficient between and is

Substituting the values of Eq. (34) into Eq. (33), we can get where is the chi-square distribution with degrees of freedom of .

When a localization error occurs, then , and the linear regression coefficient between and becomes

By making use of triangular inequality,

From Eq. (37), is the solution when we get the minimizer of Eq. (36). Therefore, Eq. (36) can be equivalent to

Because and are vector, then ; therefore, Eq. (38) can be written as

In Eq. (39), , , and are already known. Let , , and , and then Eq. (39) can be expressed as

From Eq. (40), we can get the solution of by making the derivative of the quadratic equation equal to 0. Let and yields

Then, we can get

At last, the linear regression coefficient between and can be calculated by

Substituting the linear regression coefficients into Eq. (31), then we can get

Using Eq. (35) and (44), the probability of localization error in Eq. (32) can be computed by

For the right side of the inequality in Eq. (45), we set

Using Cauchy-Schwartz inequality,

Therefore, is in Eq. (46).

For the left side of the inequality in Eq. (45), we set . In this equation, where is the identity matrix.

Since , then where

Using Eq. (46) and Eq. (48), the probability of localization error in Eq. (45) can be rewritten as where is the standard normal distribution function.

Assume that the actual nearest neighbor of the online data in the radio map is , when the localization system wrongly detect the fingerprint is the nearest neighbor, the probability of error detection is shown in Eq. (51). Generally, there are fingerprints in the radio map . Assume that the fingerprint in the radio map is the nearest neighbor of the online data . Then, an error occurs when any other fingerprint in the radio map is chosen as the nearest neighbor of . Therefore, the probability of error detection is

Each of the standard normal distribution function represents the probability of wrongly detecting the fingerprint as the nearest neighbor of the online data when the actual nearest neighbor is the fingerprint . In the radio map , if the fingerprint is closer to the online data , it is determined as the nearest neighbor by the localization system with higher probability; so, when an error occurs, the probability of error detection is larger. This is because the fingerprints in the nearest neighbor set calculated by Eq. (23) have a high probability to be the nearest neighbor; so, these fingerprints in contribute most of the probability of error detection in Eq. (52) and should be dealt with carefully. Therefore, it is possible to obtain a more accurate nearest neighbor set by using the preprocess of RSS values, so as to realize the linear regression of RSS values more precisely.

6. Experimental Results and Analysis

The effectiveness of the proposed LR method is studied and analyzed through experiments and simulations in this section. Figure 8 shows the indoor localization experiment system. The localization area is the corridor with 49.4 m in length and 14.1 m in width, which is illustrated with yellow color. In the offline phase, we deployed 27 access points (Linksys WRT54G) with IEEE 802.11b/g mode. As we can see from Figure 9, in the indoor positioning system, the larger the interval between two adjacent reference points in radio map, the lower the final positioning accuracy, but the interval cannot be too small; therefore, the corridor is divided into several grids of , which means the interval between any two adjacent reference points is 0.5 m, and 823 reference points are set in the corridor. At each RP, 100 RSS values are collected from all APs for each orientation by using a Lenovo laptop, so that 400 samples of RSS reading per RP are collected as the raw RSS readings. Then, the radio map is built based on the RSS values and their corresponding coordinates. In the online phase, four distinct test devices, namely, Huawei, Samsung, Xiaomi, and Coolpad are used to estimate the user’s location and are verified with the proposed LR method. At the same time, the Lenovo laptop is used to obtain the optimal localization result for comparison. In our experiment, we take the RSS values in one direction to test the proposed LR method.

To verify the LR method, several RSS values are collected by the test devices and are used to find the candidate fingerprints in the radio map at the beginning. Based on the candidate fingerprints and the measured data, the linear regression coefficients are calculated. Then, the signal space of the radio map and the online RSS values can be mapped to the same signal space, and we can obtain the accurate localization result.

Next, we take (Lenovo, Huawei) pair as an example to illustrate the effectiveness of the LR algorithm. As a comparison, the linear regression coefficients are calculated by the LTS algorithm and LLS algorithm, and the linear regression functions are shown in Figure 10. In Figure 10, compare with the result of the LTS algorithm, the linear regression function calculated by the LLS algorithm is closer to the outliers, which result in a large error. The LLS algorithm is more susceptible to the outliers, and this is due to the fact that the LLS algorithm deals with all the measured RSS values equally without any special treatment of the outliers. After getting the linear regression functions, the signal space of the radio map can be mapped to the signal space of the online RSS data.

In order to demonstrate the ability of linear regression algorithm more intuitively, the comparison of RSS values before and after using LTS algorithm is illustrated in Figure 11. In Figure 11, the distributions of Huawei device and Lenovo device are -62 dBm to -55 dBm and -51 dBm to -41 dBm. Obviously, the minimum and maximum RSS difference between Huawei device and Lenovo device is 4 dBm and 21 dBm, respectively. If the radio map is built by the Lenovo device and the user’s location is estimated by Huawei device, the localization accuracy is considerably low. Using the LTS algorithm, the RSS values collected by Lenovo device are transformed, and the signal distributions of Huawei device and Lenovo device are basically the same. As a result, the localization accuracy can be improved significantly.

After applying the LTS algorithm, the RSS values in the radio map are transformed, and the KNN algorithm () is used to estimate the user’s current location. As a comparison, the LLS algorithm and the RSS ratios are also used to solve the device diversity problem. The error between the estimate and the truth locations is expressed by Euclidean distances. The CDF curves of the localization error of all algorithms are displayed in Figure 12. When the devices used to build the radio map and estimate the user’s current location are the same, we can obtain the optimal solution, as the red line shown in Figure 12. As we can see from the rest caves in Figure 12, if the devices used in the offline phase and the online phase are different, the localization accuracy of the crowdsourcing localization system is greatly reduced. In this paper, we do our best to eliminate the device diversity problem, so that the localization accuracy can be as close as possible to the optimal result. As we can see from Figure 12, the localization accuracy has been improved by applying different algorithms. It is clear that the proposed LTS algorithm outperforms the other methods, and the localization accuracy is closest to the optimal solution. Notably, the maximum localization error has been reduced from 10 m to 4.5 m, and the average error is reduced from 3.72 m to 2.31 m.

In Eq. (24), the correlation coefficient threshold is set to choose the nearest neighbor fingerprints in the radio map for the online RSS data. However, if all the correlation ratios calculated by Eq. (23) are less than , then . To be guaranteed , we choose 10% of the fingerprints with the highest to form the candidate nearest neighbor set. The CDF curves of the localization error using different size of are plotted in Figure 13. As shown in Figure 13, since more fingerprints with low probability to be the nearest neighbors are included in , the localization accuracy decreases as the candidate set size increases.

The probability of error detection in Eq. (52) for all fingerprints in the radio map is shown in Figure 14. In the simulation, since the variance of the noise has no effect on the trend of the probability distribution, we set . In addition, we assume that all the RSS values collected in the online phase have an ideal nearest neighbors in the radio map; that is , so we set for all . Because has no physical meaning when , we make when drawing Figure 14. From Figure 14, it can be concluded that the probability of error detection of fingerprints closer to the nearest neighbor is higher than others, which means that these fingerprints are more likely to be detected as the nearest neighbors. Thus, the fingerprints in the nearest neighbor set in Eq. (24) contribute the most errors in Eq. (52) and should be chosen more carefully.

7. Conclusions

In this paper, the linear regression (LR) method is proposed to overcome the device diversity problem for the RSS fingerprint-based WLAN indoor localization system using crowdsourced data. The intuition behind this technique is that the RSS values between different devices have a linear relationship. The Pearson correlation coefficient is used to label the RSS values with rough location estimation at the beginning, and the regression coefficients are calculated by the LTS algorithm. Based on the LR algorithm, the RSS values collected by distinct devices can be shifted into the same signal space, and the device diversity problem can be solved. We did a theoretical study of the probability of error detection, and the proposed algorithm is validated through it. Furthermore, we tested the proposed method in a typical office environment, and the experimental results demonstrate that the proposed method leads to significant improvements in localization accuracy.

Data Availability

The radio map data used to support the findings of this study were supplied by Liye Zhang under license and so cannot be made freely available. Requests for access to these data should be made to Liye Zhang ([email protected]).

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Authors’ Contributions

Liye Zhang provided the conception. Liye Zhang and Xiaoliang Meng made the analysis and experiment. Liye Zhang, Xiaoliang Meng, and Chao Fang reviewed and edited this paper.

Acknowledgments

This paper is supported by the Shandong Provincial Natural Science Foundation, China (grant number ZR2019BF022) and National Natural Science Foundation of China (grant number 62001272). Reference [20] shows the previous research result, which has been published in IEEE GLOBECOM conference. The previous work is supported by the Associate Professor Lin Ma, Professor Yubin Xu, and Professor Cheng Li. I would like to express my heartfelt thanks to the three professors. Since Associate Professor Lin Ma, Professor Yubin Xu, and Professor Cheng Li have little contribution to this paper, they have agreed not to appear in the author list of this paper.