A Wi-Fi indoor positioning method based on improved GAN combined with hypothesis testing

Generating Wi-Fi indoor positioning data through the improved GAN network and assigning AP weights using the CHAID method, combined with the KNN algorithm, solves the problem of low Wi-Fi indoor positioning accuracy and achieves efficient data collection and accurate location estimation.

CN114745675BActive Publication Date: 2024-10-08WU HAN AN CHEN XIN XIN XI KE JI YOU XIAN GONG SI
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202210455337.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-28
Publication Date
2024-10-08
Estimated Expiration
2042-04-28

AI Technical Summary

Technical Problem

Existing Wi-Fi indoor positioning methods consume a lot of manpower, material and financial resources in the offline data collection process, and are also affected by multipath effects and interference, resulting in low positioning accuracy.

Method used

The improved GAN network is used to generate RSS data, combined with the CHAID method to assign weights to APs, and the KNN algorithm is used to achieve position estimation, reducing data collection cost and time while improving positioning accuracy.

Benefits of technology

It effectively reduces the cost and time of data collection, improves the accuracy of Wi-Fi indoor positioning, and reduces the impact of multipath effects and interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114745675B_ABST
    Figure CN114745675B_ABST
Patent Text Reader

Abstract

The present invention discloses a Wi-Fi indoor positioning method based on improved GAN combined with hypothesis testing. First, several access points (AP) and reference points (RP) with known locations are deployed and calibrated in the target area; secondly, the target area is divided into several small areas, a small part of the RSS sample value of each area is collected, and then sent to the GAN network for training, and the generated RSS data is synthesized with the original RSS data into a new offline database; thirdly, the weight of the AP is calculated, and the Chi-squared Automatic Interaction Detection (CHAID) method is used to describe the location resolution of each AP through the Pearson Chi-square test, and a larger weight is assigned to the AP with a large location resolution; finally, combined with the weight of the AP, the KNN algorithm is used to obtain the best estimate of the location. The patent of the present invention uses GAN to supplement the database and uses hypothesis testing to assign weights to APs, and proposes a Wi-Fi indoor positioning method based on improved GAN combined with hypothesis testing, which improves the positioning accuracy while controlling the cost and time required for personnel to collect data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to indoor positioning technology, and in particular relates to a Wi-Fi indoor positioning method based on improved GAN combined with hypothesis testing. Background Art

[0002] With the development of Internet of Things technology, location-based services (LBS) have been applied to various fields. Therefore, positioning technology has become one of the key technologies of LBS. In outdoor environments, the most widely used is the Global Positioning System (GPS). GPS positioning has high accuracy and mature technology. However, due to the serious attenuation of GPS signals in indoor environments, it cannot be applied to indoor environments. Therefore, positioning technologies based on radio frequency identification (RFID), ultra-wideband (UWB), Bluetooth, Zigbee, frequency modulation (FM), infrared (IR), ultrasound and sound technology, visible light, inertial system and geomagnetic field have been proposed one after another. Among them, due to the universality of Wi-Fi networks, Wi-Fi-based positioning systems do not require the deployment of additional facilities and have become one of the most commonly used methods for indoor positioning.

[0003] Wi-Fi indoor positioning methods are mainly divided into two categories: model-based positioning methods and fingerprint-based positioning methods. The former mainly uses the signal propagation model to convert the measured signal strength (Received Signal Strength, RSS) value into Euclidean distance, and then uses triangulation, triangulation and other methods to obtain the position of the target. However, this method is easily affected by the multipath effect caused by non-line-of-sight conditions and various interferences, which seriously weakens the positioning accuracy. Positioning based on Wi-Fi fingerprints requires two steps, the establishment of an offline database and online positioning. In the offline stage, multiple reference points are first arranged in the target environment, and then the fingerprint library is constructed by collecting the RSS values ​​from different wireless access points (Access Point, AP) at each reference point. In the online stage, the RSS measured by the user from different APs is matched with the fingerprints recorded in the offline fingerprint library, and the final position of the user is calculated based on the matched fingerprints.

[0004] However, data collection in the offline stage requires a lot of manpower, material resources and financial resources. At the same time, due to the different contributions of APs in positioning, it is necessary to assign weights to APs to improve positioning accuracy. To address this problem, the present invention proposes a Wi-Fi indoor positioning method based on an improved GAN combined with hypothesis testing. By collecting a small amount of RSS data in each area, and then using the GAN network to generate RSS offline data, the collected data and the generated data are combined into a new data set, and the Chi-squared Automatic Interaction Detection (CHAID) method is used to assign weights to APs. This method improves positioning accuracy while controlling the cost and time required for personnel to collect data. Summary of the invention

[0005] The purpose of the present invention is to provide a Wi-Fi indoor positioning method based on improved GAN combined with hypothesis testing, which generates new RSS data through a GAN network to enrich the database and uses hypothesis testing to assign weights to APs. This method improves positioning accuracy while controlling the cost and time required for personnel to collect offline data.

[0006] The Wi-Fi indoor positioning method based on improved GAN combined with hypothesis testing described in the present invention includes the following steps:

[0007] Step 1: In the target area, randomly deploy m wireless access points (AP) and calibrate n reference points (RP), and calibrate k test points (TP).

[0008] Step 2: The number of divided regions is C, and the RSS sample value of RP in each region category is collected 500 times, recorded as R w (w=1,2,…C), the data set for each region is as follows:

[0009]

[0010] Where m is the number of APs in the environment, K is the number of observations in each region, is the RSS value of the ith observation of the jth AP located in the wth region.

[0011] Step 3: Among the RSS sample values, 250 are used as training sets and 250 are used as test sets. The RSS samples in the training set are sent to the GAN network for training, and finally the generated RSS samples are obtained.

[0012] Step 4: In each region, the generated RSS samples are combined with the collected original RSS samples to form a new RSS sample to form a new offline dataset. The new offline dataset can be defined as:

[0013]

[0014] in, represents the original RSS sample in the wth region, represents the RSS sample generated in the wth region, Q is the number of synthesized RSS samples, is the RSS dataset synthesized in the w-th region.

[0015] Step 5: Use the CHAID method to describe the location resolution of each AP through the Pearson chi-square test, and assign a larger weight to the AP with a larger location resolution.

[0016] Step 6: In the online stage, measure the RSS sample value at the test point.

[0017] Step 7: Calculate the matching probability of each region, that is To eliminate the matching reference points that are far away from the corresponding belonging area, where P w (w=1,…,C), C is the number of regions, It represents the number of matching reference points located in the w-th region and coming from the l-th AP.

[0018] Step 8: Calculate the distance between the RSS sample at the jth (j=1,…,k) test point and the RSS samples at each matching reference point in the matching area using the calculated AP weight. in, and They represent the mean RSS samples from the lth AP at the ith reference point and the jth test point respectively.

[0019] Step 9: Based on the calculated distance, combined with the KNN algorithm, select the K nearest locations and take the average to get the position estimate.

[0020] The step three comprises the following steps:

[0021] Step 3 (a) First, send the random RSS sample to the GAN generator for training, and the random noise sample RSS Data Sample Update θ through the gradient ascent based optimizer Adam d , which can be obtained by the loss function of the discriminator To get the updated parameters, the specific update algorithm is to first calculate the loss function, and then find the loss function with respect to θ dThe partial derivative of θ is then obtained using the Adam optimizer d The update of parameters is as follows:

[0022]

[0023]

[0024]

[0025] Among them, X b and Z b are the b-th row of X and Z respectively, β1∈[0,1) and η are the parameters of the Adam optimizer.

[0026] Step 3 (ii) In the GAN generator, sample Update θ through the gradient descent based optimizer Adam g , can be obtained through the loss function of the generator To get the updated parameters, the specific update algorithm is similar to the update process of the discriminator:

[0027]

[0028]

[0029]

[0030] Among them, β2∈[0,1) and η are the parameters of the Adam optimizer.

[0031] Step 3 (iii): Update θ d and θ g Until convergence, when Convergence occurs when θ g , the generator is ready to generate synthetic samples z~p of the required category through the same prior noise distribution z (z), where

[0032] The step five comprises the following steps:

[0033] Step 5 (a), assuming that the data set consists of 1 response variable R∈{Area1,…,AreaC} and m explanatory variables E APl ∈{(b1,b2],…,(b v ,b v+1 ]}(l=1,…,m), where m and C represent the number of APs and the number of divided areas respectively, and b i(i=1,…,v+1) represents the i-th RSS category boundary, and v represents the number of RSS categories. On this basis, we construct a relationship between the response variable R and the explanatory variable E. APl The v×C contingency table is split into Without losing generality, the corresponding Pearson chi-square test statistic is calculated by taking the k-th two-dimensional contingency table as an example, as shown in Table 1, where a iw Represents the frequency of the RSS at the reference point falling into the wth region and belonging to the i-th RSS category.

[0034] Table 1 Two-dimensional contingency table

[0035]

[0036] Step 5 (ii) Construct the null hypothesis "H0: R and E APl No correlation" and the alternative hypothesis "H1: R and E APl Correlation", calculate the Pearson chi-square test statistic χ 2 , then the Pearson chi-square test statistic is:

[0037]

[0038] Step 5 (iii): Set the decision value p k Set to in, Indicates the k-th two-dimensional contingency table in χ 2 The distribution condition meets Therefore, under the condition of significance level α = 0.05, if p k ≥α, the null hypothesis H0 is considered to be true; otherwise, the alternative hypothesis H1 is considered to be true.

[0039] Step 5 (four), set the maximum decision value p (i.e. ) to obtain a new category. At this time, the dimension of the original v×C contingency table is reduced to (v-1)×C.

[0040] Step 5 (V) Repeat steps 2 and 3 until all decision values ​​p are not greater than α, then terminate the merger. Then, apply the Pearson chi-square test again to calculate the test statistic of the (v-ξ)×C contingency table, where ξ represents the number of RSS categories to be reduced. Then, the modified decision value is:

[0041] p A =bp

[0042] in, Indicates the Bonferroni correction coefficient. At this time, the corrected decision value p A The larger the value, the higher the position resolution of the corresponding AP. Based on this, the contribution of the lth AP is defined as:

[0043]

[0044] Beneficial Effects

[0045] The present invention first accepts partial RSS values ​​from each AP in the target area, then trains the RSS sample values ​​through the GAN method to generate new RSS sample values, synthesizes new RSS samples with the original RSS values, and then evaluates the AP contribution through the CHAID method of hypothesis testing, and inputs the AP contribution as a weight into the matching reference point set, and finally achieves the best estimation of the user's location through the KNN algorithm. The present invention reduces the cost and time required for staff to collect data and improves positioning accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 It is a flow chart of the present invention;

[0047] Figure 2 This is the structural diagram of the GAN training stage;

[0048] Figure 3 It is a diagram of the experimental environment, which includes two corridor areas (i.e., areas 1 and 2) and one laboratory area (i.e., area 3), and the reference points and test points are evenly marked in the experimental environment. Specific implementation plan

[0049] The present invention will be further described below in conjunction with the accompanying drawings:

[0050] like Figure 1 The Wi-Fi indoor positioning method based on improved GAN combined with hypothesis testing specifically includes the following steps:

[0051] Step 1: In the target area, randomly deploy m wireless access points (AP) and calibrate n reference points (RP), and calibrate k test points (TP).

[0052] Step 2: The number of divided regions is C, and the RSS sample value of RP in each region category is collected 500 times, recorded as R w (w=1,2,…C), the data set for each region is as follows:

[0053]

[0054] Where m is the number of APs in the environment, K is the number of observations in each region, is the RSS value of the ith observation of the jth AP located in the wth region.

[0055] Step 3: Among the RSS sample values, 250 are used as training sets and 250 are used as test sets. The RSS samples in the training set are sent to the GAN network for training, and finally the generated RSS samples are obtained, which specifically includes the following steps:

[0056] 3a. First, send the random RSS sample to the GAN generator for training, and the random noise sample RSS Data Sample Update θ through the gradient ascent based optimizer Adam d , which can be obtained by the loss function of the discriminator To get the updated parameters, the specific update algorithm is to first calculate the loss function, and then find the loss function with respect to θ d The partial derivative of θ is then obtained using the Adam optimizer d The update of parameters is as follows:

[0057]

[0058]

[0059]

[0060] Among them, X b and Z b are the b-th row of X and Z respectively, β1∈[0,1) and η are the parameters of the Adam optimizer.

[0061] 3b. In the GAN generator, the sample Update θ through the gradient descent based optimizer Adam g , can be obtained through the loss function of the generator To get the updated parameters, the specific update algorithm is similar to the update process of the discriminator:

[0062]

[0063]

[0064]

[0065] Among them, β2∈[0,1) and η are the parameters of the Adam optimizer.

[0066] 3c. Update θ d and θ g Until convergence, when Convergence occurs when θ g , the generator is ready to generate synthetic samples z~p of the required category through the same prior noise distribution z (z), where

[0067] Step 4: In each region, the generated RSS samples are combined with the collected original RSS samples to form a new RSS sample to form a new offline dataset. The new offline dataset can be defined as:

[0068]

[0069] in, represents the original RSS sample in the wth region, represents the RSS sample generated in the wth region, Q is the number of synthesized RSS samples, is the RSS dataset synthesized in the w-th region.

[0070] Step 5: Use the CHAID method to describe the location resolution of each AP through the Pearson chi-square test, and assign a larger weight to the AP with a larger location resolution. Specifically, the following steps are included:

[0071] 5a. Assume that the data set consists of 1 response variable R∈{Area1,…,AreaC} and m explanatory variables E APl ∈{(b1,b2],…,(b v ,b v+1 ]}(l=1,…,m), where m and C represent the number of APs and the number of divided areas respectively, and b i (i=1,…,v+1) represents the i-th RSS category boundary, and v represents the number of RSS categories. On this basis, we construct a relationship between the response variable R and the explanatory variable E. APl The v×C contingency table is split into Without losing generality, the corresponding Pearson chi-square test statistic is calculated by taking the k-th two-dimensional contingency table as an example, as shown in Table 1, where a iw Represents the frequency of the RSS at the reference point falling into the wth region and belonging to the i-th RSS category.

[0072] Table 1 Two-dimensional contingency table

[0073]

[0074] 5b. Construct the null hypothesis “H0: R and E APl No correlation" and the alternative hypothesis "H1: R and EAPl Correlation", calculate the Pearson chi-square test statistic χ 2 , then the Pearson chi-square test statistic is:

[0075]

[0076] 5c. Set the decision value p k Set to in, Indicates the k-th two-dimensional contingency table in χ 2 The distribution condition meets Therefore, under the condition of significance level α = 0.05, if p k ≥α, the null hypothesis H0 is considered to be true; otherwise, the alternative hypothesis H1 is considered to be true.

[0077] 5d. Set the maximum decision value p (i.e. ) to obtain a new category. At this time, the dimension of the original v×C contingency table is reduced to (v-1)×C.

[0078] 5e. Repeat steps 2 and 3 until all decision values ​​p are no greater than α, then terminate the merger. Then, apply the Pearson chi-square test again to calculate the test statistic of the (v-ξ)×C contingency table, where ξ represents the reduction in the number of RSS categories. Then, the modified decision value is:

[0079] p A =bp

[0080] in, Indicates the Bonferroni correction coefficient. At this time, the corrected decision value p A The larger the value, the higher the position resolution of the corresponding AP. Based on this, the contribution of the lth AP is defined as:

[0081]

[0082] Step 6: In the online stage, measure the RSS sample value at the test point.

[0083] Step 7: Calculate the matching probability of each region, that is To eliminate the matching reference points that are far away from the corresponding belonging area, where P w (w=1,…,C), C is the number of regions, It represents the number of matching reference points located in the w-th region and coming from the l-th AP.

[0084] Step 8: Calculate the distance between the RSS sample at the jth (j=1,…,k) test point and the RSS samples at each matching reference point in the matching area using the calculated AP weight. in, and They represent the mean RSS samples from the lth AP at the ith reference point and the jth test point respectively.

[0085] Step 9: Based on the calculated distance, combined with the KNN algorithm, select the K nearest locations and take the average to get the position estimate.

Claims

1. A Wi-Fi indoor positioning method based on improved GAN combined with hypothesis testing, characterized in that The following steps are involved: Step 1: In the target area, randomly deploy m wireless access points (AP) and calibrate n reference points (RP), and calibrate k test points (TP); Step 2: The number of divided regions is C, and the RSS sample value of RP in each region category is collected 500 times, recorded as R w , where w=1,2,…,C, and the data set for each region is as follows: Where m is the number of APs in the environment, K is the number of observations in each region, is the RSS value of the ith observation of the jth AP located in the wth region; each column of the above matrix constitutes the distribution of the required category, so the definition is The goal of the generator is to map the prior noise latent variable Represents R c Distribution of Step 3: Among the RSS sample values, 250 are used as training sets and 250 are used as test sets. The RSS samples of the training set are sent to the GAN network for training, and finally the generated RSS samples are obtained. Specifically, the following steps are included: Step 3 (a) First, send the random RSS sample to the GAN generator for training, and the random noise sample RSS Data Sample Update θ through the gradient ascent based optimizer Adam d , which can be obtained by the loss function of the discriminator To get the updated parameters; the specific update algorithm first calculates the loss function, and then finds the loss function with respect to θ d The partial derivative of θ is then obtained using the Adam optimizer d The update of parameters is as follows: Among them, X b and Z b are the b-th row of X and Z respectively, β1∈[0,1), η is the parameter of Adam optimizer; Step 3 (ii) In the GAN generator, sample Update θ through the gradient descent based optimizer Adam g , can be obtained through the loss function of the generator To get the updated parameters; the specific update algorithm is similar to the update process of the discriminator: Among them, β2∈[0,1), η is the parameter of Adam optimizer; Step 3 (iii): Update θ d and θ g Until convergence, when Convergence occurs when θ g , the generator is ready to generate synthetic samples z~p of the required category through the same prior noise distribution z (z), where Step 4: In each region, the generated RSS samples are combined with the collected original RSS samples to form a new RSS sample to form a new offline dataset. The new offline dataset can be defined as: in, represents the original RSS sample in the wth region, represents the RSS sample generated in the wth region, Q is the number of synthesized RSS samples, is the RSS dataset synthesized in the wth region; Step 5: Use the CHAID method to describe the location resolution of each AP through the Pearson chi-square test, and assign a larger weight to the AP with a larger location resolution. Specifically, the following steps are included: Step 5 (a), assuming that the data set consists of 1 response variable R∈{Area1,…,AreaC} and m explanatory variables E APl ∈{(b1,b2],…,(b v ,b v+1 ]}, where l = 1,…,m, m and C represent the number of APs and the number of divided areas respectively, and b i represents the i-th RSS category boundary, where i = 1,…,v+1, and v represents the number of RSS categories; on this basis, we construct a relationship between the response variable R and the explanatory variable E APl The v×C contingency table is split into Without losing generality, the corresponding Pearson chi-square test statistic is calculated by taking the k-th two-dimensional contingency table as an example, as shown in Table 1, where a iw represents the frequency of the RSS at the reference point falling into the wth region and belonging to the i-th RSS category; Table 1 Two-dimensional contingency table Step 5 (ii) Construct the null hypothesis "H0: R and E APl No correlation" and alternative hypothesis "H1: R and E APl Correlation", calculate the Pearson chi-square test statistic χ 2 , then the Pearson chi-square test statistic is: Step 5 (iii): Set the decision value p k Set to in, Indicates the k-th two-dimensional contingency table in χ 2 The distribution condition meets Therefore, under the condition of significance level α = 0.05, if p k ≥α, the null hypothesis H0 is considered to be true; otherwise, the alternative hypothesis H1 is considered to be true; Step 5 (iv), set the maximum decision value p greater than α, that is, The corresponding two RSS categories are merged to obtain a new category. At this time, the dimension of the original v×C contingency table is reduced to (v-1)×C; Step 6: In the online stage, measure the RSS sample value at the test point; Step 7: Calculate the matching probability of each region, that is To eliminate the matching reference points that are far away from the corresponding belonging area, where w = 1, ..., C, C is the number of regions, represents the number of matching reference points located in the wth region and coming from the lth AP; Step 8: Calculate the distance between the RSS sample at the jth test point and the RSS samples at each matching reference point in the matching area using the calculated AP weight. Where j = 1,…,k, and They represent the mean RSS samples from the lth AP at the i-th reference point and the j-th test point respectively; Step 9: Based on the calculated distance, combined with the KNN algorithm, select the K nearest locations and take the average to get the position estimate.

Citation Information

Patent Citations

  • Wi-Fi indoor positioning method based on signal distribution verification

    CN108449708A

  • WLAN indoor positioning method based on sample capacity optimization and variance analysis

    CN108495258A

  • Emotion electroencephalogram classification method based on CNN

    CN111832431A

  • DC-CGAN-based fingerprint positioning Radio Map expansion method

    CN113395653A

  • WIFI multi-band fingerprint-based indoor positioning

    US20200015047A1