CN108616836A - A kind of WLAN positioning network-building methods based on signal statistics distribution - Google Patents
A kind of WLAN positioning network-building methods based on signal statistics distribution Download PDFInfo
- Publication number
- CN108616836A CN108616836A CN201810328895.XA CN201810328895A CN108616836A CN 108616836 A CN108616836 A CN 108616836A CN 201810328895 A CN201810328895 A CN 201810328895A CN 108616836 A CN108616836 A CN 108616836A
- Authority
- CN
- China
- Prior art keywords
- rss
- reference point
- probability
- calculating
- target area
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 239000013598 vector Substances 0.000 claims abstract description 54
- 230000006855 networking Effects 0.000 claims abstract description 10
- 238000002922 simulated annealing Methods 0.000 claims abstract description 10
- 238000004088 simulation Methods 0.000 claims description 13
- 201000004569 Blindness Diseases 0.000 abstract description 2
- 238000005516 engineering process Methods 0.000 description 11
- 239000011159 matrix material Substances 0.000 description 4
- 238000005457 optimization Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000011160 research Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/33—Services specially adapted for particular environments, situations or purposes for indoor environments, e.g. buildings
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B17/00—Monitoring; Testing
- H04B17/30—Monitoring; Testing of propagation channels
- H04B17/391—Modelling the propagation channel
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W16/00—Network planning, e.g. coverage or traffic planning tools; Network deployment, e.g. resource partitioning or cells structures
- H04W16/18—Network planning tools
- H04W16/20—Network planning tools for indoor coverage or short range network deployment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W16/00—Network planning, e.g. coverage or traffic planning tools; Network deployment, e.g. resource partitioning or cells structures
- H04W16/22—Traffic simulation tools or models
- H04W16/225—Traffic simulation tools or models for indoor or short range network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W64/00—Locating users or terminals or network equipment for network management purposes, e.g. mobility management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W64/00—Locating users or terminals or network equipment for network management purposes, e.g. mobility management
- H04W64/006—Locating users or terminals or network equipment for network management purposes, e.g. mobility management with additional information processing, e.g. for direction or speed determination
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Air Conditioning Control Device (AREA)
Abstract
本发明所述一种基于信号统计分布的WLAN定位组网方法,首先考虑各接入点(Access point,AP)之间的相关性,计算出信号在参考点的概率密度函数;其次,利用概率密度函数计算出不同的信号矢量在参考点出现的概率,并且结合参考点的位置先验概率,计算参考点的加权概率;然后,计算参考点的平均定位精度,从而得出目标区域的平均定位精度;最后,利用模拟退火算法对目标区域中的AP位置进行优化。本发明所提供的一种基于信号统计分布的WLAN定位组网方法,可以合理选择AP位置,避免AP布置的盲目性。
A WLAN positioning networking method based on the statistical distribution of signals described in the present invention first considers the correlation between each access point (Access point, AP), and calculates the probability density function of the signal at the reference point; secondly, uses the probability The density function calculates the probability of different signal vectors appearing at the reference point, and combines the position prior probability of the reference point to calculate the weighted probability of the reference point; then, calculates the average positioning accuracy of the reference point to obtain the average positioning of the target area Accuracy; Finally, the AP position in the target area is optimized using a simulated annealing algorithm. The WLAN positioning and networking method based on the statistical distribution of signals provided by the present invention can reasonably select the position of the AP and avoid the blindness of the AP arrangement.
Description
技术领域technical field
本发明属于室内定位技术,具体涉及一种基于信号统计分布的WLAN定位组网方法。The invention belongs to indoor positioning technology, and in particular relates to a WLAN positioning networking method based on statistical distribution of signals.
背景技术Background technique
随着无线通信技术的迅猛发展以及移动设备的广泛普及,人们对于位置服务的需求不 断增长,这给位置服务带来了前所未有的发展空间。现如今,以全球定位系统(GlobalPositioning System,GPS)为代表的室外定位系统能够实现实时且可靠的室外定位。然而,由 于室内环境的复杂性以及建筑物等对信号的遮挡,室外定位系统在室内的定位性能急剧下 降,难以满足人们的定位需求。因此,室内定位系统成为了众多学者研究的热点。目前,室 内定位系统采用的主流定位技术主要包括射频识别(Radio FrequencyIdentification,RFID)定位 技术、超宽带(Ultra Wideband,UWB)定位技术、WLAN(Wireless Local Area Network,WLAN) 室内定位技术、Zigbee室内定位技术、可见光室内定位技术等,其中,由于无线局域网部署 广泛、成本低廉,WLAN室内定位技术得到了广泛的应用。With the rapid development of wireless communication technology and the widespread popularization of mobile devices, people's demand for location-based services continues to grow, which brings unprecedented development space for location-based services. Nowadays, the outdoor positioning system represented by the Global Positioning System (Global Positioning System, GPS) can realize real-time and reliable outdoor positioning. However, due to the complexity of the indoor environment and the shielding of signals by buildings, the positioning performance of outdoor positioning systems drops sharply indoors, making it difficult to meet people's positioning needs. Therefore, the indoor positioning system has become a research hotspot of many scholars. At present, the mainstream positioning technologies used in indoor positioning systems mainly include radio frequency identification (Radio Frequency Identification, RFID) positioning technology, ultra wideband (Ultra Wideband, UWB) positioning technology, WLAN (Wireless Local Area Network, WLAN) indoor positioning technology, Zigbee indoor positioning technology, etc. technology, visible light indoor positioning technology, etc. Among them, due to the wide deployment and low cost of wireless local area network, WLAN indoor positioning technology has been widely used.
WLAN室内定位技术所采用的定位方法主要有基于到达角度(Angle of Arrival,AOA)定 位方法、基于飞行时间(Time of Flight,TOF)定位方法、基于接收信号强度(Received Signal Strength,RSS)定位方法。基于RSS的室内定位方法凭借RSS易获取且精度较高等优点成为 了主要的室内定位方法之一。传统的RSS测距方法易受室内复杂环境的影响,定位性能较 差。基于位置指纹的定位方法可以很好的刻画目标环境,达到较高的定位精度。基于位置指 纹的定位方法主要包括离线阶段和在线阶段。离线阶段在每个参考点上采集RSS,建立物理 坐标与信号强度的映射关系,从而构建位置指纹数据库;在线阶段实时采集RSS,并将其数 据库进行对比,完成对目标位置的结算。The positioning methods used in WLAN indoor positioning technology mainly include positioning methods based on Angle of Arrival (AOA), positioning methods based on Time of Flight (TOF), and positioning methods based on Received Signal Strength (RSS). . The indoor positioning method based on RSS has become one of the main indoor positioning methods due to the advantages of easy acquisition and high precision of RSS. The traditional RSS ranging method is easily affected by the indoor complex environment, and its positioning performance is poor. The positioning method based on location fingerprint can describe the target environment very well and achieve high positioning accuracy. The positioning method based on location fingerprint mainly includes offline stage and online stage. In the offline stage, RSS is collected at each reference point, and the mapping relationship between physical coordinates and signal strength is established, so as to build a location fingerprint database; in the online stage, RSS is collected in real time and compared with the database to complete the settlement of the target location.
在构建位置指纹数据库时,需要在目标环境中布置若干个无线接入点(AccessPoint, AP),但是盲目的布置AP不仅消耗大量的人力物力,并且不能提高定位精度。为了寻找一 种合理布置AP的方法,有必要开发一种基于信号统计分布的WLAN定位组网方法。When building a location fingerprint database, several wireless access points (AccessPoints, APs) need to be deployed in the target environment, but the blind deployment of APs not only consumes a lot of manpower and material resources, but also cannot improve the positioning accuracy. In order to find a method for reasonably arranging APs, it is necessary to develop a WLAN positioning networking method based on signal statistical distribution.
发明内容Contents of the invention
本发明的目的是提供一种基于信号统计分布的WLAN定位组网方法,该方法能够合理 选择AP位置,避免AP布置的盲目性。The purpose of the present invention is to provide a WLAN positioning networking method based on signal statistical distribution, which can reasonably select the AP position and avoid the blindness of AP arrangement.
本发明所述的一种基于信号统计分布的WLAN定位组网方法,包括以下步骤:A WLAN positioning networking method based on signal statistical distribution of the present invention comprises the following steps:
步骤一、选择待定位目标区域;Step 1. Select the target area to be located;
步骤二、确定目标区域中所有WLAN接入点的位置,在目标区域中布置m个AP,即AP1,AP2,...,APm;Step 2. Determine the positions of all WLAN access points in the target area, and arrange m APs in the target area, that is, AP 1 , AP 2 , . . . , AP m ;
步骤三、确定目标区域中所有参考点的位置,在目标区域中选定n个RP,即RP1,RP2,...,RPn;Step 3. Determine the positions of all reference points in the target area, and select n RPs in the target area, namely RP 1 , RP 2 , . . . , RP n ;
步骤四、计算第i个RP与第j个AP物理空间的欧式距离其中,(xi,yi)为第i个RP的位置坐标,(xj,yj)为第j个AP的位置坐标;Step 4. Calculate the Euclidean distance between the i-th RP and the j-th AP physical space Among them, (x i , y i ) is the location coordinate of the i-th RP, and (x j , y j ) is the location coordinate of the j-th AP;
步骤五、令RSS服从高斯分布,并考虑各个AP之间的相关性,计算在第i个RP处测得的RSS的概率密度函数;Step 5, making the RSS obey the Gaussian distribution, and considering the correlation between each AP, calculating the probability density function of the RSS measured at the i-th RP;
步骤六、计算第q个RSS矢量Rq=[r1 r2 … rm]T(1≤q≤Q)在第i个参考点出现的概率 值pi1,其中ri(1≤i≤m)为第i个参考点接收到的来自第j个AP的RSS值,Q为所有可能的RSS矢量的个数;Step 6. Calculate the probability value p i1 of the qth RSS vector R q =[r 1 r 2 ... r m ] T (1≤q≤Q) appearing at the i-th reference point, where r i (1≤i≤ m) is the RSS value from the j-th AP received by the i-th reference point, and Q is the number of all possible RSS vectors;
步骤七、计算第i个参考点的位置先验概率pi2;Step 7. Calculate the prior probability p i2 of the location of the i-th reference point;
步骤八、计算RSS矢量Rq在第i个RP处出现的加权概率pi=pi1×pi2;Step 8. Calculate the weighted probability p i =p i1 ×p i2 of the RSS vector R q appearing at the ith RP;
步骤九、计算第i个参考点的平均定位精度;Step 9, calculating the average positioning accuracy of the i-th reference point;
步骤十、计算目标区域的平均定位精度;Step ten, calculating the average positioning accuracy of the target area;
步骤十一、将目标区域的平均定位精度e作为模拟退火算法的目标函数,通过该算法寻 找目标函数的最优解,即使e值最小,从而得到最优的AP摆放位置;Step eleven, use the average positioning accuracy e of the target area as the objective function of the simulated annealing algorithm, and use this algorithm to find the optimal solution of the objective function, even if the e value is the smallest, so as to obtain the optimal AP placement position;
步骤十二、算法结束,返回最优的AP位置坐标。Step 12, the algorithm ends, and the optimal AP position coordinates are returned.
所述步骤五中,令RSS服从高斯分布,并考虑各个AP之间的相关性,计算在第i个RP处测得的RSS的概率密度函数,包括以下步骤:In the fifth step, the RSS is made to obey the Gaussian distribution, and the correlation between each AP is considered, and the probability density function of the RSS measured at the i-th RP is calculated, including the following steps:
5a、假定信号的传播模型符合对数正态路径损耗模型,则第i个参考点接收到的来自第 j个接入点的信号强度值Pij的表达式为:5a. Assuming that the propagation model of the signal conforms to the log-normal path loss model, the expression of the signal strength value P ij received by the i-th reference point from the j-th access point is:
其中,d0为参考距离,取d0=1m;P(d0)为参考点处的功率;γ为路径损耗指数,反应了信号强度的损耗与传播距离之间的关系;dij为第i个参考点到第j个AP的的欧氏距 离,ζ为服从高斯分布N(u,σ2)的随机噪声;Among them, d 0 is the reference distance, take d 0 =1m; P(d 0 ) is the power at the reference point; γ is the path loss index, which reflects the relationship between the loss of signal strength and the propagation distance; d ij is the The Euclidean distance from the i reference point to the jth AP, ζ is the random noise that obeys the Gaussian distribution N(u,σ 2 );
5b、在第i个参考点分别采集10000个来自m个AP的RSS值,共10000×m个RSS 值,用矩阵Ri表示为:5b. Collect 10,000 RSS values from m APs at the i -th reference point, a total of 10,000×m RSS values, expressed as:
5c、利用步骤5b得到的矩阵Ri计算协方差矩阵C为:5c, using the matrix R i obtained in step 5b to calculate the covariance matrix C is:
其中,cjj(1≤j≤m)为来自第j个AP的RSS值的方差,cjk(1≤k≤m,j≠k)为来自第j个AP和第k个AP的RSS值的协方差;Among them, c jj (1≤j≤m) is the variance of the RSS value from the jth AP, and c jk (1≤k≤m, j≠k) is the RSS value from the jth AP and the kth AP covariance;
5d、定义X=(x1,x2,...,xm)T为在第i个RP处测得的RSS矢量,其中xi(1≤i≤m)为来自第j个AP的RSS值,计算在第i个RP处测得的RSS的概率密度函数fi(X)为:5d. Define X=(x 1 ,x 2 ,...,x m ) T as the RSS vector measured at the i-th RP, where x i (1≤i≤m) is the RSS vector from the j-th AP RSS value, calculate the probability density function f i (X) of the RSS measured at the i-th RP as:
其中,Ui=(μ1,μ2,...,μm)T为在第i个RP处接收到的来自m个AP的RSS值的均值矢量。Wherein, U i =(μ 1 , μ2,...,μ m ) T is the mean vector of the RSS values from m APs received at the i-th RP.
所述步骤六中,计算一组RSS矢量在第i个参考点出现的概率值,包括以下步骤:In said step six, calculating the probability value that a set of RSS vectors appear at the i reference point includes the following steps:
6a、确定RSS矢量的积分邻域δ(δ>0);6a. Determine the integral neighborhood δ of the RSS vector (δ>0);
6b、RSS矢量在第i个RP处出现的概率为:6b. The probability of the RSS vector appearing at the i-th RP is:
所述步骤七中,计算第i个参考点的位置先验概率pi2,包括以下步骤:In the seventh step, calculating the prior probability p i2 of the location of the i-th reference point includes the following steps:
7a、设定家具周围的物理环境为感兴趣区域,障碍物为不可达区域;将目标区域的地图 转换为像素宽度为η的图像;初始化k=1,k为计数量;7a, the physical environment around the furniture is set as the area of interest, and the obstacle is the unreachable area; the map of the target area is converted into an image whose pixel width is n; initialization k=1, k is the counting amount;
7b、设定起点A与终点B;将A设置为待处理方格T;7b. Set the starting point A and the ending point B; set A as the grid T to be processed;
7c、将T存入开启列表,开启列表是一个待检查方格列表;7c. Store T into the open list, which is a list of grids to be checked;
7d、从开启列表删除T,并将T加入关闭列表,关闭列表存放的是不需要再次检查的方 格;对于T的可达邻接方格,检查其是否已在开启列表中,若是,则进入步骤7e;若否, 则进入步骤7f;7d. Delete T from the open list, and add T to the closed list. The closed list stores the squares that do not need to be checked again; for the reachable adjacent squares of T, check whether it is already in the open list, and if so, enter Step 7e; if not, go to step 7f;
7e、计算T到其邻接方格的欧氏距离d,T到起点A的欧氏距离G,邻接方格到起点A的欧氏距离G′,若G+d<G′,则将T设为邻接方格的父方格,且代价函数的值为 F=G+H+d,H为邻接方格到终点B的曼哈顿距离;7e. Calculate the Euclidean distance d from T to its adjacent square, the Euclidean distance G from T to the starting point A, and the Euclidean distance G′ from the adjacent square to the starting point A. If G+d<G′, set T to is the parent square of the adjacent square, and the value of the cost function is F=G+H+d, H is the Manhattan distance from the adjacent square to the end point B;
7f、将T的邻接方格放入开启列表,设置T为其父方格;计算代价函数F=G+H,其中,G为邻接方格到起点A的欧氏距离;7f. Put the adjacent grid of T into the open list, set T as its parent grid; calculate the cost function F=G+H, where G is the Euclidean distance from the adjacent grid to the starting point A;
7g、从开启列表中选择使代价函数值F最小的方格C,将C存入路径tracek,判断C是否等于终点B,若是,进入步骤7h,若否,将C设置为待处理方格T,进入步骤7c;7g. Select the grid C with the smallest cost function value F from the open list, store C in the path trace k , and judge whether C is equal to the end point B, if so, go to step 7h, if not, set C as the grid to be processed T, go to step 7c;
7h、得到仿真路径tracek,判断k是否小于等于路径条数K,若是,k=k+1,返回步骤7b;若否,路径仿真结束,得到K条仿真路径;7h. Obtain the simulation path trace k , judge whether k is less than or equal to the number of paths K, if so, k=k+1, return to step 7b; if not, the path simulation ends, and K simulation paths are obtained;
7i、将目标区域划分为五个子区域;观测仿真得到的K条路径,统计每个子区域的位置 先验概率;假设每个子区域中参考点等概出现,则根据参考点所属子区域的先验概率,得到 每个参考点的位置先验概率pi2。7i. Divide the target area into five sub-areas; observe the K paths obtained by the simulation, and count the prior probability of each sub-area; assuming that the reference point is equally likely to appear in each sub-area, then according to the priori of the sub-area to which the reference point belongs Probability, to obtain the prior probability p i2 of the location of each reference point.
所述步骤九中,计算第i个参考点的平均定位精度,包括以下步骤:In said step nine, calculating the average positioning accuracy of the i reference point includes the following steps:
9a、计算RSS矢量Rq在所有参考点出现的加权概率p1,p2,...pn,并找出其出现的最大 加权概率:9a. Calculate the weighted probability p 1 , p 2 ,...p n of the RSS vector R q appearing at all reference points, and find out the maximum weighted probability of its appearance:
pmax=max(p1,p2,...,pn);p max = max(p 1 ,p2,...,p n );
记录下最大加权概率pmax所对应的参考点的物理坐标;Record the physical coordinates of the reference point corresponding to the maximum weighted probability p max ;
9b、计算第i个参考点到RSS矢量Rq出现加权概率最大的点的欧氏距离;9b. Calculate the Euclidean distance from the ith reference point to the point with the largest weighted probability of the RSS vector R q appearing;
9c、取不同的RSS矢量,依次重复步骤六,步骤七与步骤八,得到所有可能的RSS矢量在第i个参考点出现的加权概率,加权概率矢量Pi为:9c. Take different RSS vectors, repeat step six, step seven and step eight in turn, and obtain the weighted probability that all possible RSS vectors appear at the i-th reference point, and the weighted probability vector P i is:
其中,Q为所有可能的RSS矢量的个数;为第q个RSS矢量在第i个参考点出现的加权概率;Among them, Q is the number of all possible RSS vectors; is the weighted probability that the qth RSS vector appears at the ith reference point;
9d、重复步骤9a及9b,在所有可能的RSS取值条件下,计算第i个参考点到RSS出现加权概率最大的点的距离矢量:9d, repeating steps 9a and 9b, under all possible RSS value conditions, calculate the distance vector from the i-th reference point to the point with the largest weighted probability of RSS occurrence:
其中,为第i个参考点到第q个RSS矢量出现加权概率最大的点的欧氏距 离;in, is the Euclidean distance from the i-th reference point to the point with the highest weighted probability of the q-th RSS vector appearing;
9e、利用步骤9c与步骤9d得到的加权概率矢量和距离矢量,得到第i个参考点的平均 定位精度为:9e, utilize the weighted probability vector and the distance vector that step 9c and step 9d obtain, obtain the average positioning accuracy of the i reference point as:
ei=Pi×Di。e i =P i ×D i .
所述步骤十一中,将目标区域的平均定位精度e作为模拟退火算法的目标函数,通过该 算法寻找目标函数的最优解,即使e值最小,从而得到最优的AP摆放位置,包括以下步骤:In the eleventh step, the average positioning accuracy e of the target area is used as the objective function of the simulated annealing algorithm, and the optimal solution of the objective function is found through the algorithm, even if the value of e is the smallest, so as to obtain the optimal AP placement position, including The following steps:
11a、对模拟退火算法所涉及的参数进行初始化,即设置初始温度T0,温度下降率λ, 迭代次数L,温度下限Tmin;11a. Initialize the parameters involved in the simulated annealing algorithm, that is, set the initial temperature T 0 , the temperature drop rate λ, the number of iterations L, and the temperature lower limit T min ;
11b、初始化l=1,T=T0,设置初始解状态w,并计算当前解状态下目标函数的值 f(w);11b. Initialize l=1, T=T 0 , set the initial solution state w, and calculate the value f(w) of the objective function in the current solution state;
11c、随机将待选AP位置坐标与初始解中某一AP位置坐标进行替换,得到新解w*,并计算f(w*);11c. Randomly replace the AP position coordinates to be selected with the AP position coordinates in the initial solution to obtain a new solution w * , and calculate f(w * );
11d、计算Δf,Δf=f(w*)-f(w);11d. Calculate Δf, Δf=f(w * )-f(w);
11e、若Δf<0,则接收w*作为当前解;否则,计算并且生成一个0到1之间的随机数,判断是否大于该随机数,是,则接受w*作为当前解,然后进入 步骤11f;否,则直接进入步骤11f;11e. If Δf<0, accept w * as the current solution; otherwise, calculate And generate a random number between 0 and 1, judge Whether it is greater than the random number, if yes, then accept w * as the current solution, and then enter step 11f; if not, then directly enter step 11f;
11f、判断算法是否达到迭代次数L,是,则进入步骤11g;否,则l=l+1,进入步骤11c;11f, judging whether the algorithm has reached the number of iterations L, if yes, enter step 11g; if not, then l=l+1, enter step 11c;
11g、判断算法当前温度T是否大于温度下限Tmin,是,则进入步骤11h;否,则进入步骤十二;11g. Judging whether the current temperature T of the algorithm is greater than the temperature lower limit T min , if yes, go to step 11h; if not, go to step 12;
11h、令当前温度T=T×λ,迭代次数l=1,进入步骤11c。11h. Let the current temperature T=T×λ, the number of iterations l=1, and go to step 11c.
有益效果Beneficial effect
本发明考虑了AP之间的相关性,结合对数正态路径损耗模型,更加准确地刻画了参考 点处的RSS分布。在此基础上,结合参考点的位置先验概率,计算参考点的加权概率,从 而得到每个参考点的平均定位精度,最终得到目标区域的平均定位精度;并将其作为模拟退 火算法的目标函数,得到最合理的AP布置位置,以实现AP位置优化,并且在合理布置AP 位置的同时,保证了较高的室内定位精度。本发明能够运用于无线电通信网络环境,所提供 的方法能够合理的选择AP位置。The present invention considers the correlation between APs and combines the lognormal path loss model to describe the RSS distribution at the reference point more accurately. On this basis, combined with the prior probability of the position of the reference point, the weighted probability of the reference point is calculated, so as to obtain the average positioning accuracy of each reference point, and finally obtain the average positioning accuracy of the target area; and use it as the target of the simulated annealing algorithm function to obtain the most reasonable AP location to achieve AP location optimization, and while reasonably arranging AP locations, high indoor positioning accuracy is ensured. The present invention can be applied to the radio communication network environment, and the method provided can reasonably select the AP position.
附图说明Description of drawings
图1为本发明中步骤一至步骤十二的流程图;Fig. 1 is the flowchart of step 1 to step 12 among the present invention;
图2为本发明选定的目标区域以及参考点位置;Fig. 2 is the selected target area and reference point position of the present invention;
图3为路径仿真结果;Figure 3 is the path simulation result;
图4为子区域划分结果;Fig. 4 is sub-area division result;
图5a为单AP放置在目标区域5个位置时,目标区域所有参考点定位精度的箱线图;Figure 5a is a boxplot of the positioning accuracy of all reference points in the target area when a single AP is placed in five positions in the target area;
图5b为两个AP放置在目标区域5个位置时,目标区域所有参考点定位精度的箱线图;Figure 5b is a boxplot of the positioning accuracy of all reference points in the target area when two APs are placed at 5 positions in the target area;
图6a为单AP情况下,模拟退火算法的优化结果;Figure 6a is the optimization result of the simulated annealing algorithm in the case of single AP;
图6b为两个AP情况下,模拟退火算法的优化结果。Figure 6b shows the optimization results of the simulated annealing algorithm in the case of two APs.
具体实施方案specific implementation plan
下面结合附图对本发明作进一步说明。The present invention will be further described below in conjunction with accompanying drawing.
本发明提供的一种基于信号统计分布的WLAN定位组网方法,包括以下步骤:A WLAN positioning networking method based on signal statistical distribution provided by the present invention comprises the following steps:
步骤一、选择待定位目标区域。Step 1. Select the target area to be located.
步骤二、确定目标区域中所有WLAN接入点的位置,在目标区域中布置m个AP,即AP1,AP2,...,APm。Step 2: Determine the positions of all WLAN access points in the target area, and arrange m APs in the target area, that is, AP 1 , AP 2 , . . . , AP m .
步骤三、确定目标区域中所有参考点的位置,在目标区域中选定n个RP,即RP1,RP2,...,RPn。Step 3: Determine the positions of all reference points in the target area, and select n RPs in the target area, namely RP 1 , RP 2 , . . . , RP n .
步骤四、计算第i个RP与第j个AP物理空间的欧式距离其中,(xi,yi)为第i个RP的位置坐标,(xj,yj)为第j个AP的位置坐标。Step 4. Calculate the Euclidean distance between the i-th RP and the j-th AP physical space Wherein, (x i , yi) is the position coordinate of the i-th RP, and (x j , y j ) is the position coordinate of the j-th AP.
步骤五、令RSS服从高斯分布,并考虑各个AP之间的相关性,计算在第i个RP处测得的RSS的概率密度函数,具体包括以下步骤:Step 5. Make the RSS obey the Gaussian distribution, and consider the correlation between each AP, and calculate the probability density function of the RSS measured at the i-th RP, which specifically includes the following steps:
5a、假定信号的传播模型符合对数正态路径损耗模型,则第i个参考点接收到的来自第 j个接入点的信号强度值Pij的表达式为:5a. Assuming that the propagation model of the signal conforms to the log-normal path loss model, the expression of the signal strength value P ij received by the i-th reference point from the j-th access point is:
其中,d0为参考距离,取d0=1m;P(d0)为参考点处的功率;γ为路径损耗指数,反应了信号强度的损耗与传播距离之间的关系;dij为第i个参考点到第j个AP的的欧氏距 离,ζ为服从高斯分布N(u,σ2)的随机噪声。Among them, d 0 is the reference distance, take d 0 =1m; P(d 0 ) is the power at the reference point; γ is the path loss index, which reflects the relationship between the loss of signal strength and the propagation distance; d ij is the The Euclidean distance from the i reference point to the jth AP, ζ is the random noise that obeys the Gaussian distribution N(u,σ 2 ).
5b、在第i个参考点分别采集10000个来自m个AP的RSS值,共10000×m个RSS 值,用矩阵Ri表示为:5b. Collect 10,000 RSS values from m APs at the i -th reference point, a total of 10,000×m RSS values, expressed as:
5c、利用步骤5b得到的矩阵Ri计算协方差矩阵C为:5c, using the matrix R i obtained in step 5b to calculate the covariance matrix C is:
其中,cjj(1≤j≤m)为来自第j个AP的RSS值的方差,cjk(1≤k≤m,j≠k)为来自第j个AP和第k个AP的RSS值的协方差。Among them, c jj (1≤j≤m) is the variance of the RSS value from the jth AP, and c jk (1≤k≤m, j≠k) is the RSS value from the jth AP and the kth AP covariance of .
5d、定义X=(x1,x2,...,xm)T为在第i个RP处测得的RSS矢量,其中xi(1≤i≤m)为来自第j个AP的RSS值,计算在第i个RP处测得的RSS的概率密度函数fi(X)为:5d. Define X=(x 1 ,x 2 ,...,x m ) T as the RSS vector measured at the i-th RP, where x i (1≤i≤m) is the RSS vector from the j-th AP RSS value, calculate the probability density function f i (X) of the RSS measured at the i-th RP as:
其中,Ui=(μ1,μ2,...,μm)T为在第i个RP处接收到的来自m个AP的RSS值的均值矢量。Wherein, U i =(μ 1 ,μ 2 ,...,μ m ) T is the mean vector of the RSS values received at the i-th RP from m APs.
步骤六、计算第q个RSS矢量Rq=[r1 r2 … rm]T(1≤q≤Q)在第i个参考点出现的概率 值pi1,其中ri(1≤i≤m)为第i个参考点接收到的来自第j个AP的RSS值,Q为所有可能的RSS矢量的个数;具体步骤如下:Step 6. Calculate the probability value p i1 of the qth RSS vector R q =[r 1 r 2 ... r m ] T (1≤q≤Q) appearing at the i-th reference point, where r i (1≤i≤ m) is the RSS value from the jth AP received by the ith reference point, and Q is the number of all possible RSS vectors; the specific steps are as follows:
6a、确定RSS矢量的积分邻域δ(δ>0);6a. Determine the integral neighborhood δ of the RSS vector (δ>0);
6b、RSS矢量在第i个RP处出现的概率为:6b. The probability of the RSS vector appearing at the i-th RP is:
步骤七、计算第i个参考点的位置先验概率pi2,具体步骤如下:Step 7: Calculating the prior probability p i2 of the position of the i-th reference point, the specific steps are as follows:
7a、设定家具周围的物理环境为感兴趣区域,障碍物为不可达区域;将目标区域的地图 转换为像素宽度为η的图像;初始化k=1,k为计数量。7a. Set the physical environment around the furniture as the area of interest, and the obstacle as the unreachable area; convert the map of the target area into an image with a pixel width of η; initialize k=1, and k is the count.
7b、设定起点A与终点B;将A设置为待处理方格T。7b. Set the starting point A and the ending point B; set A as the grid T to be processed.
7c、将T存入开启列表,开启列表是一个待检查方格列表。7c. Store T in the open list, which is a list of check boxes.
7d、从开启列表删除T,并将T加入关闭列表,关闭列表存放的是不需要再次检查的方 格;对于T的可达邻接方格,检查其是否已在开启列表中,若是,则进入步骤7e;若否, 则进入步骤7f。7d. Delete T from the open list, and add T to the closed list. The closed list stores the squares that do not need to be checked again; for the reachable adjacent squares of T, check whether it is already in the open list, and if so, enter Step 7e; if not, go to step 7f.
7e、计算T到其邻接方格的欧氏距离d,T到起点A的欧氏距离G,邻接方格到起点A的欧氏距离G′,若G+d<G′,则将T设为邻接方格的父方格,且代价函数的值为 F=G+H+d,H为邻接方格到终点B的曼哈顿距离。7e. Calculate the Euclidean distance d from T to its adjacent square, the Euclidean distance G from T to the starting point A, and the Euclidean distance G′ from the adjacent square to the starting point A. If G+d<G′, set T to is the parent square of the adjacent square, and the value of the cost function is F=G+H+d, and H is the Manhattan distance from the adjacent square to the end point B.
7f、将T的邻接方格放入开启列表,设置T为其父方格;计算代价函数F=G+H,其中,G为邻接方格到起点A的欧氏距离。7f. Put the adjacent squares of T into the open list, set T as its parent square; calculate the cost function F=G+H, where G is the Euclidean distance from the adjacent square to the starting point A.
7g、从开启列表中选择使代价函数值F最小的方格C,将C存入路径tracek,判断C是否等于终点B,若是,进入步骤7h,若否,将C设置为待处理方格T,进入步骤7c。7g. Select the square C with the smallest cost function value F from the open list, store C in the path trace k , and judge whether C is equal to the end point B. If so, go to step 7h, if not, set C as the square to be processed T, go to step 7c.
7h、得到仿真路径tracek,判断k是否小于等于路径条数K,若是,k=k+1,返回步骤7b;若否,路径仿真结束,得到K条仿真路径。7h. Obtain the simulation path trace k , judge whether k is less than or equal to the number of paths K, if so, k=k+1, return to step 7b; if not, the path simulation ends, and K simulation paths are obtained.
7i、将目标区域划分为五个子区域;观测仿真得到的K条路径,统计每个子区域的位置 先验概率;假设每个子区域中参考点等概出现,则根据参考点所属子区域的先验概率,得到 每个参考点的位置先验概率pi2。7i. Divide the target area into five sub-areas; observe the K paths obtained by the simulation, and count the prior probability of each sub-area; assuming that the reference point is equally likely to appear in each sub-area, then according to the priori of the sub-area to which the reference point belongs Probability, to obtain the prior probability p i2 of the position of each reference point.
步骤八、计算RSS矢量Rq在第i个RP处出现的加权概率pi=pi1×pi2。Step 8: Calculate the weighted probability p i =p i1 ×p i2 of the RSS vector R q appearing at the ith RP.
步骤九、计算第i个参考点的平均定位精度,具体步骤如下:Step 9, calculate the average positioning accuracy of the i-th reference point, the specific steps are as follows:
9a、计算RSS矢量Rq在所有参考点出现的加权概率p1,p2,...pn,并找出其出现的最大 加权概率:9a. Calculate the weighted probability p 1 , p 2 ,...p n of the RSS vector R q appearing at all reference points, and find out the maximum weighted probability of its appearance:
pmax=max(p1,p2,...,pn);p max = max(p 1 ,p 2 ,...,p n );
记录下最大加权概率pmax所对应的参考点的物理坐标。Record the physical coordinates of the reference point corresponding to the maximum weighted probability p max .
9b、计算第i个参考点到RSS矢量Rq出现加权概率最大的点的欧氏距离。9b. Calculate the Euclidean distance from the i-th reference point to the point with the highest weighted probability of the RSS vector R q appearing.
9c、取不同的RSS矢量,依次重复步骤六,步骤七与步骤八,得到所有可能的RSS矢量在第i个参考点出现的加权概率,加权概率矢量Pi为:9c. Take different RSS vectors, repeat step six, step seven and step eight in turn, and obtain the weighted probability that all possible RSS vectors appear at the i-th reference point, and the weighted probability vector P i is:
其中,Q为所有可能的RSS矢量的个数;为第q个RSS矢量在第i个参考点出现的加权概率。Among them, Q is the number of all possible RSS vectors; is the weighted probability that the qth RSS vector appears at the ith reference point.
9d、重复步骤9a及9b,在所有可能的RSS取值条件下,计算第i个参考点到RSS出现加权概率最大的点的距离矢量:9d, repeating steps 9a and 9b, under all possible RSS value conditions, calculate the distance vector from the i-th reference point to the point with the largest weighted probability of RSS occurrence:
其中,为第i个参考点到第q个RSS矢量出现加权概率最大的点的欧氏距 离。in, is the Euclidean distance from the i-th reference point to the point with the highest weighted probability of the q-th RSS vector appearing.
9e、利用步骤9c与步骤9d得到的加权概率矢量和距离矢量,得到第i个参考点的平均 定位精度为:9e, utilize the weighted probability vector and the distance vector that step 9c and step 9d obtain, obtain the average positioning accuracy of the i reference point as:
ei=Pi×Di。e i =P i ×D i .
步骤十、计算目标区域的平均定位精度:Step 10. Calculate the average positioning accuracy of the target area:
步骤十一、将目标区域的平均定位精度e作为模拟退火算法的目标函数,通过该算法寻 找目标函数的最优解,即使e值最小,从而得到最优的AP摆放位置,目标函数表示为:Step 11. Use the average positioning accuracy e of the target area as the objective function of the simulated annealing algorithm, and use this algorithm to find the optimal solution of the objective function, even if the value of e is the smallest, so as to obtain the optimal AP placement position. The objective function is expressed as :
其中,w为AP位置坐标,算法执行具体步骤如下:Among them, w is the coordinates of the AP position, and the specific steps of the algorithm are as follows:
11a、对模拟退火算法所涉及的参数进行初始化,即设置初始温度T0,温度下降率λ, 迭代次数L,温度下限Tmin。11a. Initialize the parameters involved in the simulated annealing algorithm, that is, set the initial temperature T 0 , the temperature drop rate λ, the number of iterations L, and the temperature lower limit T min .
11b、初始化l=1,T=T0,设置初始解状态w,并计算当前解状态下目标函数的值 f(w)。11b. Initialize l=1, T=T 0 , set the initial solution state w, and calculate the value f(w) of the objective function in the current solution state.
11c、随机将待选AP位置坐标与初始解中某一AP位置坐标进行替换,得到新解w*,并计算f(w*)。11c. Randomly replace the position coordinates of the AP to be selected with the position coordinates of a certain AP in the initial solution to obtain a new solution w * and calculate f(w * ).
11d、计算Δf,Δf=f(w*)-f(w);11d. Calculate Δf, Δf=f(w * )-f(w);
11e、若Δf<0,则接收w*作为当前解;否则,计算并且生成一个0到1之间的随机数,判断是否大于该随机数,是,则接受w*作为当前解,然后进入 步骤11f;否,则直接进入步骤11f。11e. If Δf<0, accept w * as the current solution; otherwise, calculate And generate a random number between 0 and 1, judge Whether it is greater than the random number, if yes, then accept w * as the current solution, and then enter step 11f; if not, directly enter step 11f.
11f、判断算法是否达到迭代次数L,是,则进入步骤11g;否,则l=l+1,进入步骤11c。11f. Judging whether the algorithm has reached the number of iterations L, if yes, go to step 11g; if not, then l=l+1, go to step 11c.
11g、判断算法当前温度T是否大于温度下限Tmin,是,则进入步骤11h;否,则进入步骤十二。11g. Judging whether the current temperature T of the algorithm is greater than the temperature lower limit T min , if yes, go to step 11h; otherwise, go to step 12.
11h、令当前温度T=T×λ,迭代次数l=1,进入步骤11c。11h. Let the current temperature T=T×λ, the number of iterations l=1, and go to step 11c.
步骤十二、算法结束,返回最优的AP位置坐标。Step 12, the algorithm ends, and the optimal AP position coordinates are returned.
Claims (3)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810328895.XA CN108616836A (en) | 2018-04-13 | 2018-04-13 | A kind of WLAN positioning network-building methods based on signal statistics distribution |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810328895.XA CN108616836A (en) | 2018-04-13 | 2018-04-13 | A kind of WLAN positioning network-building methods based on signal statistics distribution |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN108616836A true CN108616836A (en) | 2018-10-02 |
Family
ID=63659950
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810328895.XA Pending CN108616836A (en) | 2018-04-13 | 2018-04-13 | A kind of WLAN positioning network-building methods based on signal statistics distribution |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108616836A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109282817A (en) * | 2018-10-16 | 2019-01-29 | 中山大学 | A multi-robot cooperative positioning and control method |
| CN109379711A (en) * | 2018-12-19 | 2019-02-22 | 香港中文大学(深圳) | a positioning method |
| CN110913474A (en) * | 2019-11-26 | 2020-03-24 | 北京眸星科技有限公司 | Distance fingerprint data acquisition method in indoor positioning |
| CN111757251A (en) * | 2020-05-27 | 2020-10-09 | 重庆邮电大学 | A Received Signal Strength Estimation Method Based on Generalized Extension Approximation Model |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100309059A1 (en) * | 2009-06-03 | 2010-12-09 | Cheng-Hsuan Wu | Method and Apparatus of Positioning for a Wireless Communication System |
| CN104185270A (en) * | 2013-05-28 | 2014-12-03 | 中国电信股份有限公司 | Indoor positioning method, system and positioning platform |
| CN104683953A (en) * | 2015-03-27 | 2015-06-03 | 重庆邮电大学 | Indoor WLAN positioning networking method based on SimRank similar combination neighborhood graph |
| CN104883734A (en) * | 2015-05-12 | 2015-09-02 | 北京邮电大学 | Indoor passive positioning method based on geographic fingerprints |
| US20160245896A1 (en) * | 2013-11-01 | 2016-08-25 | Huawei Technologies Co., Ltd. | Method and device for positioning terminal location |
-
2018
- 2018-04-13 CN CN201810328895.XA patent/CN108616836A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100309059A1 (en) * | 2009-06-03 | 2010-12-09 | Cheng-Hsuan Wu | Method and Apparatus of Positioning for a Wireless Communication System |
| CN104185270A (en) * | 2013-05-28 | 2014-12-03 | 中国电信股份有限公司 | Indoor positioning method, system and positioning platform |
| US20160245896A1 (en) * | 2013-11-01 | 2016-08-25 | Huawei Technologies Co., Ltd. | Method and device for positioning terminal location |
| CN104683953A (en) * | 2015-03-27 | 2015-06-03 | 重庆邮电大学 | Indoor WLAN positioning networking method based on SimRank similar combination neighborhood graph |
| CN104883734A (en) * | 2015-05-12 | 2015-09-02 | 北京邮电大学 | Indoor passive positioning method based on geographic fingerprints |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109282817A (en) * | 2018-10-16 | 2019-01-29 | 中山大学 | A multi-robot cooperative positioning and control method |
| CN109282817B (en) * | 2018-10-16 | 2022-04-12 | 中山大学 | A multi-robot cooperative positioning and control method |
| CN109379711A (en) * | 2018-12-19 | 2019-02-22 | 香港中文大学(深圳) | a positioning method |
| CN109379711B (en) * | 2018-12-19 | 2019-12-13 | 香港中文大学(深圳) | a positioning method |
| CN110913474A (en) * | 2019-11-26 | 2020-03-24 | 北京眸星科技有限公司 | Distance fingerprint data acquisition method in indoor positioning |
| CN111757251A (en) * | 2020-05-27 | 2020-10-09 | 重庆邮电大学 | A Received Signal Strength Estimation Method Based on Generalized Extension Approximation Model |
| CN111757251B (en) * | 2020-05-27 | 2022-04-29 | 重庆邮电大学 | A Received Signal Strength Estimation Method Based on Generalized Extension Approximation Model |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108696932B (en) | Outdoor fingerprint positioning method using CSI multipath and machine learning | |
| CN107426687B (en) | Adaptive Kalman filter method for WiFi/PDR indoor fusion positioning | |
| CN109743683B (en) | A method of using deep learning fusion network model to determine the location of mobile phone users | |
| CN104635203B (en) | Radio interference source direction-finding and positioning method based on particle filter algorithm | |
| CN118859274B (en) | A multi-scenario positioning enhancement method for Beidou and 5G integration | |
| CN106102161A (en) | Based on the data-optimized indoor orientation method of focusing solutions analysis | |
| CN109672973B (en) | An indoor positioning fusion method based on the strongest AP | |
| CN106851571B (en) | Decision tree-based rapid KNN indoor WiFi positioning method | |
| CN105044662A (en) | Fingerprint clustering multi-point joint indoor positioning method based on WIFI signal intensity | |
| Gan et al. | Deep learning for weights training and indoor positioning using multi-sensor fingerprint | |
| CN106060841B (en) | An indoor positioning method and device based on non-autonomous deployment AP | |
| CN107071732B (en) | A RSSI-based MLE-PSO Indoor Localization Method | |
| CN107241797B (en) | Single-station positioning method based on scatterer information in NLOS environment | |
| CN104754735B (en) | Localization method based on location fingerprint storehouse | |
| CN108616836A (en) | A kind of WLAN positioning network-building methods based on signal statistics distribution | |
| CN109814066B (en) | RSSI indoor positioning distance measurement method and indoor positioning platform based on neural network learning | |
| CN106226732B (en) | The indoor wireless positioning and tracing method filtered based on TOF and iteration without mark | |
| CN102291817A (en) | Group positioning method based on location measurement sample in mobile communication network | |
| CN109379711A (en) | a positioning method | |
| CN115397012A (en) | Implementation method of UWB positioning tracking system based on TWR-TDOA estimation and MPGA layout optimization | |
| Lu et al. | ONavi: Data-driven based multi-sensor fusion positioning system in indoor environments | |
| CN104683953B (en) | Indoor WLAN based on SimRank Similar Composite Systems neighborhood graph structure positions network-building method | |
| Cui et al. | A novel iterative positioning method based on difference RSS model with 5G field experiments | |
| CN110413655A (en) | A Floor Recognition Method Based on Improved Hidden Markov Model | |
| CN116939815A (en) | UWB positioning base station selection method based on laser point cloud map |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| WD01 | Invention patent application deemed withdrawn after publication | ||
| WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20181002 |