• Journal of Electronic Science and Technology
  • Vol. 22, Issue 1, 100234 (2024)
Yan Liang1, Song Chen1,*, Xin Dong1, and Tu Liu2
Author Affiliations
  • 1School of Computer Engineering, Chengdu Technological University, Chengdu, 611730, China
  • 2HAN Networks Corporation Limited, Beijing, 100094, China
  • show less
    DOI: 10.1016/j.jnlest.2024.100234 Cite this Article
    Yan Liang, Song Chen, Xin Dong, Tu Liu. Fine-grained grid computing model for Wi-Fi indoor localization in complex environments[J]. Journal of Electronic Science and Technology, 2024, 22(1): 100234 Copy Citation Text show less

    Abstract

    The fingerprinting-based approach using the wireless local area network (WLAN) is widely used for indoor localization. However, the construction of the fingerprint database is quite time-consuming. Especially when the position of the access point (AP) or wall changes, updating the fingerprint database in real-time is difficult. An appropriate indoor localization approach, which has a low implementation cost, excellent real-time performance, and high localization accuracy and fully considers complex indoor environment factors, is preferred in location-based services (LBSs) applications. In this paper, we proposed a fine-grained grid computing (FGGC) model to achieve decimeter-level localization accuracy. Reference points (RPs) are generated in the grid by the FGGC model. Then, the received signal strength (RSS) values at each RP are calculated with the attenuation factors, such as the frequency band, three-dimensional propagation distance, and walls in complex environments. As a result, the fingerprint database can be established automatically without manual measurement, and the efficiency and cost that the FGGC model takes for the fingerprint database are superior to previous methods. The proposed indoor localization approach, which estimates the position step by step from the approximate grid location to the fine-grained location, can achieve higher real-time performance and localization accuracy simultaneously. The mean error of the proposed model is 0.36 m, far lower than that of previous approaches. Thus, the proposed model is feasible to improve the efficiency and accuracy of Wi-Fi indoor localization. It also shows high-accuracy performance with a fast running speed even under a large-size grid. The results indicate that the proposed method can also be suitable for precise marketing, indoor navigation, and emergency rescue.

    1 Introduction

    With the development of the Internet of Things (IoT), indoor location-based services (LBSs) have attracted much attention due to their wide range of applications [1], such as pedestrian navigation in stadiums, railway stations, airports, hospitals, and industrial areas [2], parking in underground garages [3], and advertising in large shopping malls [4]. Adopting a real-time indoor localization approach with a low implementation cost, high localization accuracy, and full consideration of complex indoor environment factors is beneficial to effectively realize LBS applications.

    Due to the reliance on dedicated hardware devices, several indoor localization methods based on the systems such as the ultra-wide band (UWB) [5], Bluetooth [6], and ZigBee [7] have incredibly minimal applications. Recently, wireless local area network (WLAN) devices have been widely deployed in shopping malls, hospitals, and schools, which makes the WLAN-based method be easily implemented with no hardware and deployment costs, and thus have gained much attention from both academia and industry. The fingerprint is a widely used WLAN-based method that actually aggregates the signal strength and takes into account the multipath effect. This enables fingerprint localization to achieve higher accuracy when the complex environmental factors are considered. Currently, the studies on the fingerprint localization method mainly focus on the optimization analysis of localization accuracy, reliability, and efficiency [811]. Despite the fingerprinting-based approach using WLAN has been applied in indoor localization [12], there are still several significant limitations in the previously proposed methods [10,13,14]:

    1) Due to the method of manual measurement used for the received signal strength (RSS), it is difficult to build the fingerprint database.

    2) The grid size is usually larger than 2 m in fingerprinting-based approaches, which makes the indoor localization accuracy quite low.

    3) When the access point (AP) position or obstacle changes, the fingerprint database cannot be updated in real-time, leading to a larger error in indoor localization.

    Recently, the AP deployment is realized by computing the path loss at each reference point (RP) [15,16]. It demonstrates that the path loss formula is suitable and reliable for the signal computation. In this paper, a fine-grained grid computing (FGGC) model, which has a low implementation cost, excellent real-time performance, and high localization accuracy, with the full consideration of complex indoor environment factors is proposed for Wi-Fi indoor localization.

    The main contributions of this paper are summarized as follows:

    1) A method capable of calculating RSS values at each RP in three-dimensional space is proposed, where all the attenuation factors such as the frequency, three-dimensional propagation distance, and walls in complex environments are considered in the path loss formula, and the RSS values at each RP from all APs can be automatically generated. Thus the signals at all RPs can be acquired without manual measurement, and the localization accuracy can be improved.

    2) A random forest based algorithm is proposed to predict the grid locations and obtain the approximate locations, thus improving the computation efficiency.

    3) An FGGC model based on RSS is proposed to enhance the efficiency and precision of Wi-Fi indoor localization. A mean error of about 0.40 m is realized, which is much smaller than that of previous approaches.

    The rest of this paper is organized as follows. The related works are reviewed in Section 2. The architecture design and proposed FGGC model are described in Section 3. The experimental settings and performance evaluation are shown in Section 4. Finally, the work is concluded and prospected in Section 5.

    2 Related works

    Due to the complex and changeable indoor environment, signal propagation is affected by many obstacles, which leads to low localization accuracy of Wi-Fi based fingerprint localization technology [17]. Therefore, current studies related to Wi-Fi based indoor localization approaches mainly focus on the improvement of localization accuracy and efficiency in complex environments [1821].

    Localization accuracy is one of the most vital factors to be considered in indoor localization. Based on the heuristic AP selection algorithm [22], the localization accuracy of the k-nearest neighbor (KNN) method was significantly improved [13]. An eight-diagram AP selection algorithm was used for indoor localization [23], which achieved considerably higher accuracy than the weighted k-nearest neighbors (WKNN) algorithm [24]. The WKNN based approximate position distance (APD-WKNN) algorithm [25] is a kind of WKNN algorithm based on signal similarity and spatial position, which can significantly improve the localization accuracy of the WKNN algorithm. Reference [26] demonstrates that the proposed algorithms based on one RP or k RPs (kRPs) weighted average positioning show higher localization accuracy than traditional algorithms. In Ref. [27], a hybrid hypothesis approach exploits signal distributions by considering different AP contributions to the Wi-Fi indoor localization accuracy.

    As another critical criterion in indoor localization, the localization performance has also been widely investigated [28]. Zheng et al. optimized the AP selection algorithm by reformulating the AP planning with the incorporation of the existence of obstacles, array orientation, and path loss, and demonstrated that both the improved time efficiency and the desired localization accuracy could be simultaneously realized by selecting the minimum number of APs [29]. They also further improved the localization performance through optimizing the AP positions and array orientations [30]. Liu et al. proposed a WKNN localization strategy based on k-means clustering radio mapping to balance the localization accuracy and computational complexity [31]. Wang designed a dynamic time warping k-nearest neighbors (DTW-KNN) model based on the Gaussian kernel function and pointed out the effect of distance calculation on the performance, accuracy, and robustness of the algorithm [32]. The results indicate that the Gaussian kernel distance calculation function performs better than that of the Manhattan distance, and is more robust and flexible during calculation.

    However, the above-mentioned optimization methods can only achieve meter-level localization accuracy. The training process for the high-quality fingerprint collection is time-consuming, limiting the efficiency in time. And also the influence of obstacle attenuation and path loss on the localization accuracy and performance in complex indoor environments is seldom considered. A hybrid technique with the combination of maximizing fingerprint difference (MaxFD) and minimizing geometric dilution of precision (MinGDOP) for reliable indoor localization was proposed by Jia et al. [12], where the attenuation of walls and people has been taken into account during the optimization process. Even so, due to the adopted grid spacing of 2 m, the resulted precision is extremely low. In Ref. [33], the Apollonius circle theory is used to calculate the virtual locations of APs under the assumption that neighboring locations share the same attenuation parameter corresponding to the signal attenuation caused by obstacles. This approach improved the accuracy and robustness of the Wi-Fi based fingerprint techniques, and achieved the highest level of performance.

    As for the indoor localization and AP selection in three-dimensional environments, the related studies are even fewer. A highly accurate three-dimensional indoor passive localization and identification system is presented in Ref. [34], which is designed to be capable of detecting devices through walls. Reference [35] shows that the localization error can be effectively reduced by eliminating phase ambiguity (PA) in the three-dimensional beamspace matrix pencil (BMP) based localization scheme.

    Therefore, the localization performance and accuracy, signal loss through obstacles, path loss, and the three-dimensional positioning model are still challenging for Wi-Fi indoor localization. Wi-Fi fingerprint localization suffers from high implementation overhead, such as heavy initial training and fingerprint map maintenance over time [36]. As a result, the signal strength of all RPs is required to calculate the path loss with the aim to improving the localization efficiency. In addition, the grid size is usually larger than 2 m in traditional fingerprint positioning methods [37], which results in quite low localization accuracy. This paper presents an FGGC model that can achieve decimeter-level positioning accuracy. Moreover, it can build the fingerprint database automatically without manual measurement, thus the efficiency is increased and the cost is reduced. Furthermore, since it takes less time to calculate the approximate grid location by the random forest method and estimates the fine-grained location based on the approximate grid location, higher real-time performance and localization precision are simultaneously achieved.

    3 Methods

    The proposed FGGC model is schematized in Fig. 1, which mainly contains the generation of RPs, prediction of grid locations, and calculation of estimated locations. RPs are first generated and the corresponding RSS values are calculated from all APs at each point. The RSS value and the data of grid points are then trained by the random forest algorithm, so that the grid location can be obtained by inputting the RSS values. The fine-grained points around the grid location are generated and the estimated location is finally calculated by the RSS Euclidean distance.

    Framework of the FGGC model.

    Figure 1.Framework of the FGGC model.

    In traditional methods, RPs are typically generated by manually measuring the RSS values multiple times at each grid point. This makes it time-consuming to build the fingerprint database. In addition, if the location of AP or the obstacle changes, it is necessary to manually measure RSS values again. In this paper, the rules of path loss are used to calculate the signal values of grid points automatically, which significantly improves the efficiency and accuracy of localization.

    3.1 Generation of reference points

    To generate RPs, which are the most important information for indoor localization, the number of grid points in the horizontal axis (M) and that in the vertical axis (N) are first calculated by dividing the space into numerous grid points according to the edge length of the square grid (gsize).

    $ M=\frac{\mathrm{m}\mathrm{a}\mathrm{p}\mathrm{x}}{\mathrm{g}\mathrm{s}\mathrm{i}\mathrm{z}\mathrm{e}}\tag{1a} $ ()

    $ N=\frac{\mathrm{m}\mathrm{a}\mathrm{p}\mathrm{y}}{\mathrm{g}\mathrm{s}\mathrm{i}\mathrm{z}\mathrm{e}} \tag{1b}$ ()

    where mapx and mapy represent the length and width of the indoor map, respectively.

    The RSS values at each grid point can be calculated by (2) and (3). Finally, RPs are generated, which consist of all the RSS values (F(x, y, z)) at the point (x, y, z) from all APs, as shown in (4).

    $ F\left(\cdot \right){\mathrm{:}}\;{\mathbb{R}}^{K}\to {\mathbb{R}}^{3} $ (2)

    $ F\left( {x{\rm{,}}{\text{ }}y{\rm{,}}{\text{ }}z} \right) = \left( {r_{x{\mathrm{,}}y{\mathrm{,}}z}^1{\rm{,}}{\text{ }}r_{x{\mathrm{,}}y{\mathrm{,}}z}^2{\mathrm{,}}{\text{ }} \cdots {\mathrm{,}}{\text{ }}r_{x{\mathrm{,}}y{\mathrm{,}}z}^K} \right) $ (3)

    $ \mathrm{R}\mathrm{P}\mathrm{s}=\left\{F\left(x{\rm{,}}\;y{\rm{,}}\;z\right)\right|0\le x\le M{\rm{,}}\; 0\le x\le N{\rm{,}}\;z=1{\mathrm{.}}5\} {\mathrm{.}} $ (4)

    where $ {r}_{x{\rm{,}}y{\rm{,}}z}^{i} $ represents the RSS value of APi at each spatial point (x, y, z) on the grid, $ F\left(\cdot \right) $ maps a K-dimensional real space to a three-dimensional real space, and the AP’s height z is defined as 1.5 m.

    The RSS value of APi ($ 0\le i < K $) can be calculated by

    $ {r}_{x{\rm{,}}y{\rm{,}}z}^{i}={P}^{i}-{\Gamma }_{x{\rm{,}}y{\rm{,}}z}^{i} $ (5)

    where $ {P}^{i} $ is the power of APi and $ {\Gamma }_{x{\rm{,}}y{\rm{,}}z}^{i} $ is the path loss from APi to the point (x, y, z).

    Here the path loss $ {\Gamma }_{x{\rm{,}}y{\rm{,}}z}^{i} $is calculated by

    $ {\Gamma }_{x{\rm{,}}y{\rm{,}}z}^{i}=C+\mathrm{lg}\left(\lambda /2.4\right)+{\Omega }_{x{\rm{,}}y{\rm{,}}z}^{i}+{\Phi }_{x{\rm{,}}y{\rm{,}}z}^{i} $ (6)

    where $ C $ is a constant, $ \lambda $ is the frequency band of AP, and $ \mathrm{lg}\left(\lambda /2.4\right) $ represents the frequency loss of AP. Based on the Euclidean distance between the estimated point and AP, $ {\Omega }_{x{\rm{,}}y{\rm{,}}z}^{i} $ represents the path loss of APi and $ {\Phi }_{x{\rm{,}}y{\rm{,}}z}^{i} $ represents the signal loss of APi through the wall, which can be obtained by (7) and (8), respectively, when the location of APi is defined as $ ({a}_{x}^{i}{\rm{,}}\;{a}_{y}^{i}{\rm{,}}\;{a}_{z}^{i}) $.

    $ \Omega _{x{\rm{,}}y{\rm{,}}z}^i = 10n {\mathrm{lg}} \left( {\sqrt {{{\left( {x - a_x^i} \right)}^2} + {{\left( {y - a_y^i} \right)}^2} + {{\left( {z - a_z^i} \right)}^2}} } \right) $ (7)

    $ \Phi _{x{\rm{,}}y{\rm{,}}z}^i = \sum\limits_{t = 1}^T {{\beta _t}} $ (8)

    where n is the coefficient of path loss, t is the number of walls, and $ {\beta }_{t} $ is the signal loss of the tth wall.

    Generally, RSS of the two-dimensional plane at a given height is used in the real application. This allows the signal strength to be converted from a three-dimensional plane to a two-dimensional plane. If z = 1.5 m is assigned, the RSS values of all RPs are presented as the dataset D.

    $ {\mathbf{D}}{\text{ = }}\left[ {(r0,00, r0,01, , r0,0K)(r1,00, r1,01, , r1,0K)(rM,00, rM,01, , rM,0K)(r0,10, r0,11, , r0,1K)(r1,10, r1,11, , r1,1K)(rM,10, rM,11, , rM,1K)(r0,N0, r0,N1, , r0,NK)(r1,N0, r1,N1, , r1,NK)(rM,N0, rM,N1, , rM,NK)} \right]{\mathrm{.}} $ (9)

    Algorithm 1 shown in Table 1 describes the calculation of RPs and the training dataset. First, the output grid RPs are declared and the dataset D is trained. Second, in steps 1–3, the system variables are initialized. The map is split into multiple grid points in steps 4–8, and then the power of APi (steps 9 and 10), frequency loss (step 11), path loss (step 12), and wall loss (steps 12–19) can be obtained. Next in steps 20–22, the RSS values for all APs can be calculated and then put into an array. Finally, the feature dataset F, label dataset L (step 23), RSS values of RPs (steps 24–26), and training dataset D (step 27) are formed.

    Algorithm 1: Generating RPs and the training dataset D according to grid points
    Input: $ \mathrm{m}\mathrm{a}\mathrm{p}\mathrm{x}{\rm{,}}\;\mathrm{m}\mathrm{a}\mathrm{p}\mathrm{y}{\rm{,}}\;\mathrm{g}\mathrm{s}\mathrm{i}\mathrm{z}\mathrm{e} $
    Output: $ \mathrm{R}\mathrm{P}\mathrm{s}{\rm{,}}\;\mathbf{D} $
    Progress:
    1: $ M\leftarrow \mathrm{m}\mathrm{a}\mathrm{p}\mathrm{x}/\mathrm{g}\mathrm{s}\mathrm{i}\mathrm{z}\mathrm{e} $, $ N\leftarrow \mathrm{m}\mathrm{a}\mathrm{p}\mathrm{y}/\mathrm{g}\mathrm{s}\mathrm{i}\mathrm{z}\mathrm{e} $
    2: $ \mathrm{R}\mathrm{P}\mathrm{s}\leftarrow \mathrm{g}\mathrm{r}\mathrm{i}\mathrm{d}.\mathrm{i}\mathrm{n}\mathrm{i}\mathrm{t}\mathrm{s}\mathrm{i}\mathrm{z}\mathrm{e}(M{\rm{,}}\;N) $
    3: $ \mathbf{D}\leftarrow \left[\right]{\rm{,}}\;\mathbf{F}\leftarrow \left[\right]{\rm{,}}\;\mathbf{L}\leftarrow \left[ \right] $
    4: for $ \mathrm{r}\mathrm{o}\mathrm{w}=0 :N $ do
    5:  for $ \mathrm{c}\mathrm{o}\mathrm{l}=0 :M $ do
    6:   $ \mathbf{r}\leftarrow \left[ \right] $
    7:   $ C\leftarrow 40{\rm{,}}\;P\leftarrow 0{\rm{,}}\;\Omega \leftarrow 0{\rm{,}}\;\Phi \leftarrow 0 $
    8:   for $ i=0 :K $ do
    9:     $ P\leftarrow {P}^{i} $
    10:    $ \lambda \leftarrow {\lambda }^{i} $
    11:    ${a}_{x}^{i}\leftarrow \mathrm{l}\mathrm{o}\mathrm{c}\mathrm{a}\mathrm{t}\mathrm{i}\mathrm{o}\mathrm{n}\mathrm{x}\left({{\mathrm{AP}}}_{i}\right){\rm{,} }\;{a}_{y}^{i}\leftarrow \mathrm{l}\mathrm{o}\mathrm{c}\mathrm{a}\mathrm{t}\mathrm{i}\mathrm{o}\mathrm{n}\mathrm{y}\left({{\mathrm{AP}}}_{i}\right){\rm{,} }\;{a}_{z}^{i}\leftarrow $$\mathrm{l}\mathrm{o}\mathrm{c}\mathrm{a}\mathrm{t}\mathrm{i}\mathrm{o}\mathrm{n}\mathrm{z}\left({{\mathrm{AP}}}_{i}\right) $
    12:    // $ ** $ is the power operator
    13:    $\Omega =10*n*\mathrm{l}\mathrm{o}\mathrm{g}10\left(\left(\left(\mathrm{r}\mathrm{o}\mathrm{w}-{a}_{x}^{i}\right)**2+\left(\mathrm{c}\mathrm{o}\mathrm{l}-{a}_{y}^{i}\right)**2+ $$ \left(1.5-{a}_{z}^{i}\right)**2\right)**0.5\right)$
    14:    $ \Phi \leftarrow 0 $
    15:    for $ j=0 :T $ do
    16:     if $ \mathrm{i}\mathrm{s}\mathrm{I}\mathrm{n}\mathrm{t}\mathrm{e}\mathrm{r}\mathrm{s}\mathrm{e}\mathrm{c}\left({\mathrm{p}\mathrm{o}\mathrm{i}\mathrm{n}\mathrm{t}}_{\mathrm{r}\mathrm{o}\mathrm{w}}{\rm{,}}\;{\mathrm{p}\mathrm{o}\mathrm{i}\mathrm{n}\mathrm{t}}_{\mathrm{c}\mathrm{o}\mathrm{l}}{\rm{,}}\;{a}_{x}^{i}{\rm{,}}\;{a}_{y}^{i}\right)==\mathrm{t}\mathrm{r}\mathrm{u}\mathrm{e} $ do
    17:      $ \Phi \leftarrow \Phi +{\beta }_{j} $
    18:     end if
    19:    end for
    20:    $ \Gamma =C+{{\mathrm{log}}}10\left(\lambda /2.4\right)+\Omega +\Phi $
    21:    $ \mathbf{r}\leftarrow \mathrm{r}{\mathrm{.}}\mathrm{a}\mathrm{p}\mathrm{p}\mathrm{e}\mathrm{n}\mathrm{d}(P-\Gamma ) $
    22:   end for
    23:   $ \mathbf{F}\leftarrow \mathrm{F}.\mathrm{a}\mathrm{p}\mathrm{p}\mathrm{e}\mathrm{n}\mathrm{d}\left({\bf{r}}\right){\rm{,}}\;\mathbf{L}\leftarrow \mathrm{L}{\mathrm{.}}\mathrm{a}\mathrm{p}\mathrm{p}\mathrm{e}\mathrm{n}\mathrm{d}\left([\mathrm{r}\mathrm{o}\mathrm{w}{\rm{,}}\;\mathrm{c}\mathrm{o}\mathrm{l}]\right); $
    24:   $ \mathrm{R}\mathrm{P}\mathrm{s}[\mathrm{r}\mathrm{o}\mathrm{w}{\rm{,}}\;\mathrm{ }\mathrm{c}\mathrm{o}\mathrm{l}]\leftarrow \mathbf{r} $
    25:  end for
    26: end for
    27:$ \mathbf{D}\leftarrow \mathbf{F}+\mathbf{L} $

    Table 1. Description of Algorithm 1.

    3.2 Prediction of grid locations by random forest

    According to Algorithm 1, it is obvious that the training dataset of RPs D consists of a feature dataset F, which represents the RSS value, and a label dataset L, which represents the coordinates of the grid points. This indicates that the dataset D can reveal the relationship between the RSS value and the grid points. By randomly selecting R records from the RP dataset D at a time, a decision tree is trained as shown in Fig. 2. The number of APs that represents the number of features in the training dataset is K, and only f (f < K) features are selected each time to construct the decision tree.

    Computing progress for building a decision tree.

    Figure 2.Computing progress for building a decision tree.

    The detailed process for building a decision tree is described as follows:

    Step 1: There are Q samples in D, and R samples are randomly selected from D. The selected R samples are used to train the decision tree as the samples of decision root nodes.

    Step 2: There are K features in each sample. When a node in the decision tree needs to be split, f features are randomly selected (f < K). Then one feature is selected from the f features according to the information gain as the split feature of the node.

    Step 3: In the process of decision tree formation, each node must be split via step 2 until it can no longer be split.

    Step 4: Steps 1–3 are repeated to build a large number of decision trees, thus forming a random forest.

    3.3 Calculation of estimated locations

    After the grid point is obtained by the random forest algorithm, the location of this grid point is taken as the center to produce numerous fine-grained locations, and the location with the minimum Euclidean distance can be found from the predicted RSS values. Here the RSS Euclidean distance is calculated by (10). And accordingly, the minimum distance shown in (11) is the most appropriate location for our prediction.

    $ {\text{distanc}}{{\text{e}}_i} = \sqrt {\sum\limits_{i = 0}^K {{{\left( {r_{x{\rm{,}}y{\rm{,}}z}^i - {{r'}^i}} \right)}^2}} } $ (10)

    $ {\text{loc}} = {\mathrm{min}} \left\{ {{\text{distanc}}{{\text{e}}_0}{\rm{,}}{\text{ distanc}}{{\text{e}}_1}{\rm{,}}{\text{ }} \cdots {\rm{,}}{\text{ distanc}}{{\text{e}}_K}} \right\} $ (11)

    where $ {r'}^i $ is the input value denoting the RSS value of APi.

    Algorithm 2 shown in Table 2 describes the calculation of the estimated locations. First, the output location of the estimated point is declared. Second, numerous fine-grained locations around the approximate point are produced in steps 1–7, and then the RSS values at each location from all APs are calculated in steps 8–11. In steps 12–14, the Euclidean distance between the RSS value at the fine-grained location and the predicted RSS value is obtained. Finally, the location (x, y) with the minimum Euclidean distance is the estimated point we desired (steps 15–21).

    Algorithm 2: Obtaining the estimated locations
    Input: $ \mathrm{s}\mathrm{t}\mathrm{a}\mathrm{r}\mathrm{t}\mathrm{x}{\rm{,}}\mathrm{ }\mathrm{s}\mathrm{t}\mathrm{a}\mathrm{r}\mathrm{t}\mathrm{y}{\rm{,}}\;{\mathrm{p}\mathrm{r}\mathrm{e}\mathrm{d}\mathrm{i}\mathrm{c}\mathrm{t}}_{\mathrm{r}\mathrm{s}\mathrm{s}}{\rm{,}}\;\mathrm{s}\mathrm{i}\mathrm{z}\mathrm{e}{\rm{,}}\;\mathrm{g}\mathrm{s}\mathrm{i}\mathrm{z}\mathrm{e}{\rm{,}}\;\alpha {\rm{,}}\;\beta $
    Output: $ x{\rm{,}}\;y $
    Progress:
    1: $ \mathrm{m}\mathrm{i}\mathrm{n}\_\mathrm{d}\mathrm{i}\mathrm{s}\mathrm{t}\mathrm{a}\mathrm{n}\mathrm{c}\mathrm{e}\leftarrow \mathrm{n}\mathrm{u}\mathrm{l}\mathrm{l} $
    2: $ x\leftarrow 0{\rm{,}}\;y\leftarrow 0{\rm{,}}\;\mathbf{r}\leftarrow \left[ \right] $
    3: $ \mathrm{s}\mathrm{t}\mathrm{e}\mathrm{p}\leftarrow 0{\mathrm{.}}1{\rm{,}}\;\mathrm{s}\mathrm{t}\mathrm{e}\mathrm{p}\mathrm{s}\leftarrow \mathrm{g}\mathrm{s}\mathrm{i}\mathrm{z}\mathrm{e}/\mathrm{s}\mathrm{t}\mathrm{e}\mathrm{p} $
    4: for $ \mathrm{r}\mathrm{o}\mathrm{w}=0 :\mathrm{s}\mathrm{t}\mathrm{e}\mathrm{p}\mathrm{s} $ do
    5:  $ \mathrm{r}\mathrm{o}\mathrm{w}\_\mathrm{g}\mathrm{r}\mathrm{i}\mathrm{d}\leftarrow \mathrm{s}\mathrm{t}\mathrm{a}\mathrm{r}\mathrm{t}\mathrm{x}+\mathrm{s}\mathrm{t}\mathrm{e}\mathrm{p}*\mathrm{r}\mathrm{o}\mathrm{w} $
    6:  for $ \mathrm{c}\mathrm{o}\mathrm{l}=0 :\mathrm{s}\mathrm{t}\mathrm{e}\mathrm{p}\mathrm{s} $ do
    7:   $ \mathrm{c}\mathrm{o}\mathrm{l}\_\mathrm{g}\mathrm{r}\mathrm{i}\mathrm{d}\leftarrow \mathrm{s}\mathrm{t}\mathrm{a}\mathrm{r}\mathrm{t}\mathrm{y}+\mathrm{s}\mathrm{t}\mathrm{e}\mathrm{p}*\mathrm{c}\mathrm{o}\mathrm{l} $
    8:   for $ i=0 :K $ do
    9:    /* Obtain the RSS value at the point (row_grid, col_grid) by Algorithm 1. */
    10:    $ {r}^{i}\leftarrow \mathrm{r}\mathrm{s}\mathrm{s}\left(\mathrm{r}\mathrm{o}\mathrm{w}\_\mathrm{g}\mathrm{r}\mathrm{i}\mathrm{d}{\rm{,}}\mathrm{ }\mathrm{c}\mathrm{o}\mathrm{l}\_\mathrm{g}\mathrm{r}\mathrm{i}\mathrm{d}{\rm{,}}\;{\mathrm{A}\mathrm{P}}_{i}{\rm{,}}\;\beta \right){\rm{,}}\;\mathbf{r}\leftarrow \mathrm{r}{\mathrm{.}}\mathrm{a}\mathrm{p}\mathrm{p}\mathrm{e}\mathrm{n}\mathrm{d}\left({r}^{i}\right) $
    11:    $ {r'}^{i}\leftarrow \mathrm{r}\mathrm{s}\mathrm{s}({\mathrm{p}\mathrm{r}\mathrm{e}\mathrm{d}\mathrm{i}\mathrm{c}\mathrm{t}}_{\mathrm{r}\mathrm{s}\mathrm{s}}{\rm{,}}\;i) $
    12:    $ \mathrm{d}\mathrm{i}\mathrm{s}\mathrm{t}\mathrm{a}\mathrm{n}\mathrm{c}\mathrm{e}\leftarrow \mathrm{d}\mathrm{i}\mathrm{s}\mathrm{t}\mathrm{a}\mathrm{n}\mathrm{c}\mathrm{e}+\left({r}^{i}-{r'}^{i}\right)**2 $
    13:   end for
    14:   $ \mathrm{d}\mathrm{i}\mathrm{s}\mathrm{t}\mathrm{a}\mathrm{n}\mathrm{c}\mathrm{e}\leftarrow \mathrm{d}\mathrm{i}\mathrm{s}\mathrm{t}\mathrm{a}\mathrm{n}\mathrm{c}\mathrm{e}**0.5 $
    15:   if $ (\mathrm{r}\mathrm{o}\mathrm{w}==0 $) and $ (\mathrm{c}\mathrm{o}\mathrm{l}==0 $) do
    16:    $ \mathrm{m}\mathrm{i}\mathrm{n}\_\mathrm{d}\mathrm{i}\mathrm{s}\mathrm{t}\mathrm{a}\mathrm{n}\mathrm{c}\mathrm{e}\leftarrow \mathrm{d}\mathrm{i}\mathrm{s}\mathrm{t}\mathrm{a}\mathrm{n}\mathrm{c}\mathrm{e} $
    17:   else if $ (\mathrm{d}\mathrm{i}\mathrm{s}\mathrm{t}\mathrm{a}\mathrm{n}\mathrm{c}\mathrm{e} < \mathrm{m}\mathrm{i}\mathrm{n}\_\mathrm{d}\mathrm{i}\mathrm{s}\mathrm{t}\mathrm{a}\mathrm{n}\mathrm{c}\mathrm{e} $) do
    18:    $ x\leftarrow \mathrm{r}\mathrm{o}\mathrm{w}\_\mathrm{g}\mathrm{r}\mathrm{i}\mathrm{d}{\rm{,}}\;y\leftarrow \mathrm{c}\mathrm{o}\mathrm{l}\_\mathrm{g}\mathrm{r}\mathrm{i}\mathrm{d} $
    19:   end if
    20:  end for
    21: end for

    Table 2. Description of Algorithm 2.

    4 Experiments

    4.1 Experimental environment

    The proposed model is implemented by using Tensorflow 2.4.0 framework on a Dell laptop (Windows 10, 64-bit operating system, Intel(R) Core(TM) i7-8550U CPU@1.80 GHz, 8 GB RAM).

    4.2 Indoor signal simulation

    To evaluate the performance of the proposed technique, an indoor map with the length of 40 m and the width of 30 m is considered, as shown in Fig. 3. From the top view, the indoor environment is usually divided into multiple subspaces by the walls with two orientation angles that are perpendicular to each other in most cases. The grid size used here is 1 m.

    Indoor map with the length of 40 m and the width of 30 m.

    Figure 3.Indoor map with the length of 40 m and the width of 30 m.

    During the simulation, four APs are placed in the environment. For each AP, the path and signal losses caused by the wall are calculated according to (7) and (8). A unique identification (ID) is defined for each wall. When the signal penetrates from one AP to the grid, the number of walls is the number of IDs on the shortest line connecting these two points.

    Besides the frequency loss and the path loss of AP, it is worth noting that the signal loss caused by the wall is also incorporated into the path loss model. The signal loss caused by the wall is assumed to be 10 dB. The parameters used in the simulation are shown in Table 3.

    ParameterValue
    Length of the indoor map40 m
    Width of the indoor map30 m
    Grid size1.0 m
    The number of APs4
    Coefficient of the path loss (n)2
    Power of AP15 dBm
    Signal loss caused by the wall10 dB
    Frequency band of AP5.2 GHz
    Constant C in path loss40
    The number of the decision trees300

    Table 3. Parameters used in the experiment.

    5 Results and discussion

    5.1 Heat map

    In the simulation, the RSS coverage of APs is rendered in different colours in the heat map. Based on the indoor map shown in Fig. 3 (including the wall and door), the entire space is divided into 1200 grids with a grid size of 1.0 m. Different values of mesh accuracy will have different effects on the localization accuracy, which will be confirmed in the following analysis.

    Fig. 4 shows the RSS heat map of four APs at 5.2 GHz. This map clearly shows the signal strength of each coordinate point in the indoor map, the trend in the path loss as the signal propagates, and the attenuation of the signal as it passes through the walls. Obviously, when the signal passes through the wall, the signal strength decreases.

    Heat map based on the indoor map and APs.

    Figure 4.Heat map based on the indoor map and APs.

    5.2 Analysis of location error

    Thirty test points are generated by manual measurement to verify the proposed algorithm. After performing the localization algorithm, the localization error for each of the configurations is calculated by (12), where the Euclidean distance between the estimated location PEst and the actual location PAct should be measured first, and s represents the number of estimated locations.

    $ {\text{Error}} = \sqrt {\sum\limits_{i = 1}^s {{{\left( {P_{{\text{Act}}}^i - P_{{\text{Est}}}^i} \right)}^2}} } {\mathrm{.}} $ (12)

    The calculated results are shown in Table 4. It is obvious that both the mean error and the maximum error of our proposed model are minimal. Its mean error is only 0.36 m, which is much lower than that of MaxFD, MinGDOP, and even their hybrid method reported in Ref. [12]. The proposed FGGC model is further evaluated by comparing with other three methods for indoor localization including adaptive area search (AAS) [26], APD-WKNN [25], and the hybrid hypothesis approach [27]. The mean errors of AAS, APD-WKNN, and the hybrid hypothesis approach are 2.37 m, 2.18 m, and 1.85 m, respectively. Obviously, the localization accuracy of our FGGC model is further improved by 84.81% over AAS, 83.49% over APD-WKNN, and 80.54% over the hybrid hypothesis approach.

    ModelMean error (m)Maximum error (m)
    MaxFD2.5427.73
    MinGDOP2.0328.02
    Hybird1.638.02
    Proposed model0.360.64

    Table 4. Comparison of location errors obtained by the proposed model and those in Ref. [12].

    The actual and estimated locations of the test points are compared by deploying APs using our proposed model (FGGC), and the results are shown in Fig. 5. Among the thirty test points, the minimum error is 0.10 m and appears at four points (24.0, 7.5), (36.7, 10.0), (21.6, 18.6), and (3.3, 10.0). The maximum error is 0.64 m and occurs at point (23.9, 22.1). Obviously, the estimated locations of most of the test points are almost overlapping with their actual locations, and only a few test points show a slight deviation. For example, only nine test points show a deviation larger than 0.50 m.

    Test points with the estimated and actual locations.

    Figure 5.Test points with the estimated and actual locations.

    5.3 Analysis of location errors and running time in different test samples

    For further validation of our proposed model (FGGC), the localization error and running time with different numbers of samples are compared, as shown in Fig. 6. The results show that with the increase in the number of samples, the running time increases, while the mean error per meter remains stable at about 0.40 m. When the number of samples is less than 30, the maximum error is 1.00 m, while when it exceeds 40, the maximum error is increased to 1.60 m. The results indicate that our proposed model (FGGC) can stably maintain a decimeter-level mean error of less than 0.40 m with the increase in the number of samples. Therefore, it can be concluded that our proposed FGGC model can be used as an effective model for indoor localization.

    Localization errors and running time with different numbers of test samples.

    Figure 6.Localization errors and running time with different numbers of test samples.

    5.4 Analysis of localization errors with different grid sizes

    The localization error is also affected by the grid accuracy of the indoor map. Fig. 7 shows the changes in the localization error and running time of our proposed algorithm with different spatial grid sizes. It is obvious that under different grid sizes, the running time is stable within 1 s, while both the mean error and the maximum error increase as the grid size increases. When the grid size is 2.5 m, the mean error is larger than 1.00 m, while the maximum error is 8.00 m. However, the algorithm still maintains high precision and fast running speed even under the large grid size.

    Location errors and running time with different grid sizes.

    Figure 7.Location errors and running time with different grid sizes.

    6 Conclusions

    In this paper, a fine-grained grid computing model was proposed for Wi-Fi indoor localization. The frequency band, three-dimensional propagation distance, and walls in complex environments were calculated in the path loss formula to improve the accuracy. The estimated locations were calculated step by step from the approximate grid location to the fine-grained location, thus achieving higher efficiency and accuracy. However, the RSS value can be influenced by more factors, such as the shape of obstacles, population size, and channels of APs. One of the future directions of our work is how to take more possible factors into the path loss formula to further improve the accuracy.

    Disclosures

    The authors declare no conflicts of interest.

    References

    [1] Claridades A.R.C., Lee J.. Developing a data model of indoor points of interest to support location-based services. J. Sensors, 2020, 8885384:1-16(2020).

    [2] Zhao Y.-L., Liang J.-Q., Cui Y.-F., Sha X.-P., Li W.-J.. Adaptive 3D position estimation of pedestrians by wearing one ankle sensor. IEEE Sens. J., 20, 11642-11651(2020).

    [3] Yang M., Ai B., He R.-S. et al. V2V channel characterization and modeling for underground parking garages. China Commun., 16, 93-105(2019).

    [4] Ghose A., Li B.-B., Liu S.-Y.. Mobile targeting using customer trajectory patterns. Manage. Sci., 65, 5027-5049(2019).

    [5] Bastida-Castillo A., Gómez-Carmona C.D., De la Cruz-Sánchez E., Reche-Royo X., Ibáñez S.J., Ortega J.P.. Accuracy and inter-unit reliability of ultra-wide-band tracking system in indoor exercise. Appl. Sci., 9, 939:1-11(2019).

    [6] Ruan L., Zhang L., Zhou T., Long Y.. An improved Bluetooth indoor positioning method using dynamic fingerprint window. Sensors, 20, 7269:1-19(2020).

    [7] Bianchi V., Ciampolini P., De Munari I.. RSSI-based indoor localization and identification for ZigBee wireless sensor networks in smart homes. IEEE T. Instrum. Meas., 68, 566-575(2019).

    [8] Asaad S.M., Potrus M.Y., Ghafoor K.Z., Maghdid H.S., Mulahuwaish A.. Improving positioning accuracy using optimization approaches: A survey. research challenges and future perspectives, Wireless Pers. Commun., 122, 3393-3409(2022).

    [9] Z. Wei, J.L. Chen, H. Tang, H. Zhang, RSSIbased location fingerprint method f RFID indo positioning: A review, Nondestruct. Test. Eva. (Sept. 2023), doi: 10.108010589759.2023.2253493.

    [10] Liu W., Zhang Y.-G., Deng Z.-L., Zhou H.-Y.. Low-cost indoor wireless fingerprint location database construction methods: A review. IEEE Access, 11, 37535-37545(2023).

    [11] Hayward S.J., van Lopik K., Hinde C., West A.A.. A survey of indoor location technologies. techniques and applications in industry, Internet Things-Neth., 20, 100608:1-19(2022).

    [12] Jia M., Khattak S.B.A., Guo Q., Gu X.-M., Lin Y.. Access point optimization for reliable indoor localization systems. IEEE T. Reliab., 69, 1424-1436(2020).

    [13] Li X.-N., Dai Z.-C., He L.-M.. A k-nearest neighbor indoor fingerprint location method based on coarse positioning circular domain and the highest similarity threshold. Meas. Sci. Technol., 34, 015108:1-10(2023).

    [14] Tong X.-Y., Wan Y., Li Q.-R., Tian X.-H., Wang X.-B.. CSI fingerprinting localization with low human efforts. IEEE/ACM T. Network., 29, 372-385(2021).

    [15] Yang Y., Zhou A.-F., Ma H.-D.. FineAP: Fine-grained access point deployment strategy for 60 GHz millimeter-wave wireless networks. IEEE Commun. Lett., 27, 381-385(2023).

    [16] Wu Y.-Z., Kokkoniemi J., Han C., Juntti M.. Interference and coverage analysis for terahertz networks with indoor blockage effects and line-of-sight access point association. IEEE T. Wirel. Commun., 20, 1472-1486(2021).

    [17] J.H. Hu, A.G. Zhang, Z. Chen, X.P. Jin, WiFi indo localization based on long shtterm memy neural wk model of geic algithm, in: Proc. of 11th Intl. Conf. on AgroGeoinfmatics, Wuhan, 2023, pp. 1–4.

    [18] Yuan Y.-Z., Yang X., Lu Q.-X., Guo Y., Liu Z.-X., Luo X.-Y.. An indoor location method based on features optimization for different regions with improved curve smoothness index. IEEE Sens. J., 23, 7362-7370(2023).

    [19] Gao B., Yang F., Cui N., Xiong K., Lu Y., Wang Y.-W.. A federated learning framework for fingerprinting-based indoor localization in multibuilding and multifloor environments. IEEE Internet Things, 10, 2615-2629(2023).

    [20] Csik D., Odry Á., Sarcevic P.. Fingerprinting-based indoor positioning using data fusion of different radiocommunication-based technologies. Machines, 11, 302:1-24(2023).

    [21] Wang J.-J., Park J.. An enhanced indoor positioning algorithm based on fingerprint using fine-grained CSI and RSSI measurements of IEEE 802.11n WLAN. Sensors, 21, 2769:1-25(2021).

    [22] Jia B., Huang B.-Q., Gao H.-P., Li W., Hao L.-F.. Selecting critical WiFi APs for indoor localization based on a theoretical error analysis. IEEE Access, 7, 36312-36321(2019).

    [23] Xue W.-X., Yu K.-G., Li Q.-Q. et al. Eight-diagram based access point selection algorithm for indoor localization. IEEE T. Veh. Technol., 69, 13196-13205(2020).

    [24] H.A. Pham, Q.T.T. Nguyen, T.V. Le, An improved weighted knearest neighbs algithm f high accuracy in indo localization, in: Proc. of 25th AsiaPacific Conf. on Communications, Ho Chi Minh City, 2019, pp. 24–27.

    [25] Wang B.-Y., Gan X.-L., Liu X.-L. et al. A novel weighted KNN algorithm based on RSS similarity and position distance for Wi-Fi fingerprint positioning. IEEE Access, 8, 30591-30602(2020).

    [26] Tao Y., Zhao L.. Fingerprint localization with adaptive area search. IEEE Commun. Lett., 24, 1446-1450(2020).

    [27] Zhou M., Li Y.-H., Tahir M.J., Geng X.-L., Wang Y., He W.. Integrated statistical test of signal distributions and access point contributions for Wi-Fi indoor localization. IEEE T. Veh. Technol., 70, 5057-5070(2021).

    [28] A. Poulose, D.S. Han, Perfmance analysis of fingerprint matching algithms f indo localization, in: Proc. of Intl. Conf. on Artificial Intelligence in Infmation Communication, Fukuoka, 2020, pp. 661–665.

    [29] Zheng Y., Liu J.-Y., Sheng M., Han S., Shi Y., Valaee S.. Toward practical access point deployment for angle-of-arrival based localization. IEEE T. Commun., 69, 2002-2014(2021).

    [30] Y. Zheng, J.Y. Liu, M. Sheng, S. Valaee, Y. Shi, Obstacleaware access points deployment f angleofarrival based indo localization, in: Proc. of IEEE Intl. Conf. on Communications, Dublin, 2020, pp. 1–6.

    [31] S.Y. Liu, R. De Lacerda, J. Fiina, WKNN indo WiFi localization method using kmeans clustering based radio mapping, in: Proc. of IEEE 93rd Vehicular Technology Conf., Helsinki, 2021, pp. 1–5.

    [32] Wang X.-Y.. The improvement and comparison study of distance metrics for machine learning algorithms for indoor Wi-Fi localization. IEEE Access, 11, 85513-85524(2023).

    [33] Xu F., Hu X.-K., Luo S.-W., Shang J.-G.. An efficient indoor Wi-Fi positioning method using virtual location of AP. ISPRS Int. J. Geo-Inf., 9, 261:1-16(2020).

    [34] H.C. Yen, L.Y.O. Yang, Z.M. Tsai, 3D indo localization identification through RSSIbased angle of arrival estimation with real WiFi signals, IEEE T. Microw. They 70 (10) (Oct. 2022) 4511–4527.

    [35] Yang X.-L., Li Q.-C., Zhou M., Wang J.-C.. Phase-calibration-based 3-D beamspace matrix pencil algorithm for indoor passive positioning and tracking. IEEE Sens. J., 23, 19670-19683(2023).

    [36] Jun J., He L., Gu Y. et al. Low-overhead WiFi fingerprinting. IEEE T. Mobile Comput., 17, 590-603(2018).

    [37] Wang R.-R., Li Z.-H., Luo H.-Y., Zhao F., Shao W.-H., Wang Q.. A robust Wi-Fi fingerprint positioning algorithm using stacked denoising autoencoder and multi-layer perceptron. Remote Sens.-Basel, 11, 1293:1-27(2019).

    Yan Liang, Song Chen, Xin Dong, Tu Liu. Fine-grained grid computing model for Wi-Fi indoor localization in complex environments[J]. Journal of Electronic Science and Technology, 2024, 22(1): 100234
    Download Citation