CN113316084A - RSSI-based gray wolf optimization differential correction centroid positioning algorithm - Google Patents

RSSI-based gray wolf optimization differential correction centroid positioning algorithm Download PDF

Info

Publication number
CN113316084A
CN113316084A CN202110708748.7A CN202110708748A CN113316084A CN 113316084 A CN113316084 A CN 113316084A CN 202110708748 A CN202110708748 A CN 202110708748A CN 113316084 A CN113316084 A CN 113316084A
Authority
CN
China
Prior art keywords
centroid
rssi
algorithm
beacon
node
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.)
Withdrawn
Application number
CN202110708748.7A
Other languages
Chinese (zh)
Inventor
王宏志
张金栋
胡黄水
高栋
余学帆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changchun University of Technology
Original Assignee
Changchun University of Technology
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Changchun University of Technology filed Critical Changchun University of Technology
Priority to CN202110708748.7A priority Critical patent/CN113316084A/en
Publication of CN113316084A publication Critical patent/CN113316084A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/02Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using radio waves
    • G01S5/14Determining absolute distances from a plurality of spaced points of known location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Electromagnetism (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

The invention relates to the technical field of wireless sensor network positioning. In particular to an RSSI-based gray wolf optimization differential correction centroid positioning algorithm. Mainly aiming at the problems of low speed and low precision of a traditional wireless sensor network positioning method, the grey wolf optimization differential correction centroid positioning algorithm based on RSSI is provided, the algorithm calculates the distance between the algorithm and a beacon node through the received signal strength and determines the centroid, a differential correction factor is calculated according to the position relation between the centroid and the beacon node to correct the centroid coordinate, the grey wolf optimization algorithm is adopted to obtain the unknown node position based on the centroid coordinate, and the positioning precision is effectively improved.

Description

一种基于RSSI的灰狼优化差分修正质心定位算法An RSSI-based Optimal Differential Correction Centroid Localization Algorithm for Grey Wolf

技术领域technical field

本发明涉及无线传感器网络定位技术领域。具体涉及一种基于RSSI的灰狼优化差分修正质心定位算法。通过接收到的信号强度来计算与信标节点的距离并确定质心,根据质心与信标节点的位置关系计算差分修正因子对质心坐标进行修正,基于质心坐标采用灰狼优化算法获取未知节点位置,有效提高定位精度。The invention relates to the technical field of wireless sensor network positioning. Specifically, it relates to an RSSI-based grey wolf optimal differential correction centroid location algorithm. Calculate the distance to the beacon node and determine the centroid according to the received signal strength, calculate the differential correction factor according to the positional relationship between the centroid and the beacon node to correct the centroid coordinates, and use the gray wolf optimization algorithm to obtain the unknown node position based on the centroid coordinates, which effectively improves the positioning accuracy.

背景技术Background technique

传感器网络节点定位的方法大体分为两类,一类是基于测距的,另一类是不需要测距的。不需要测距的定位算法优点是功耗较小,但是精确度比较低。基于测距的节点定位算法精度较高,但是缺点是计算复杂度较高。基于RSSI的定位算法是无线传感器网络定位算法中应用比较广泛的一种,是基于节点的连通性,不需要需测量节点间距离的定位算法。也是研究的热点之一。The methods of sensor network node location are roughly divided into two categories, one is based on ranging, and the other does not require ranging. The advantage of the positioning algorithm that does not require ranging is that the power consumption is small, but the accuracy is relatively low. The node localization algorithm based on ranging has high accuracy, but the disadvantage is that the computational complexity is high. The RSSI-based positioning algorithm is one of the most widely used wireless sensor network positioning algorithms. It is a positioning algorithm based on the connectivity of nodes and does not need to measure the distance between nodes. It is also one of the research hotspots.

相对于传统的数学方法,智能优化算法在质心计算的基础上,通过群体寻优的思想,为未知节点坐标的求解提供了另一种思路,在一定程度上可以减少定位误差。常见的群体智能优化算法有遗传算法、粒子群算法、蚁群算法。这些群体智能优化算法可以提高定位精度,相比而言,灰狼智能优化算法(GWO,Grey Wolf Optimization)具有更好的优化稳定性和准确性。Compared with the traditional mathematical method, the intelligent optimization algorithm provides another idea for solving the coordinates of unknown nodes based on the calculation of the centroid and through the idea of group optimization, which can reduce the positioning error to a certain extent. Common swarm intelligence optimization algorithms include genetic algorithm, particle swarm algorithm, and ant colony algorithm. These swarm intelligence optimization algorithms can improve the positioning accuracy. In comparison, the Grey Wolf Optimization algorithm (GWO, Grey Wolf Optimization) has better optimization stability and accuracy.

发明内容SUMMARY OF THE INVENTION

本发明的目的是针对传统无线传感器网络定位方法速度慢,精度不高的问题,提供一种基于RSSI的灰狼优化差分修正质心定位算法,引入灰狼智能优化算法(GWO)来优化质心实现对未知节点的定位,提高基于RSSI的定位方法的定位精度。The purpose of the present invention is to solve the problems of slow speed and low precision of traditional wireless sensor network positioning methods, to provide a gray wolf optimization differential correction centroid positioning algorithm based on RSSI, and to introduce gray wolf intelligent optimization algorithm (GWO) to optimize the centroid to achieve accurate The positioning of unknown nodes improves the positioning accuracy of RSSI-based positioning methods.

本发明的技术方案:一种基于RSSI的灰狼优化差分修正质心定位算法,通过接收到的信号强度来计算与信标节点的距离并确定质心,根据质心与信标节点的位置关系计算差分修正因子对质心坐标进行修正,基于质心坐标采用灰狼优化算法获取未知节点位置,有效提高定位精度。具体步骤包括如下。The technical scheme of the present invention is: an RSSI-based optimal differential correction centroid positioning algorithm for gray wolf, which calculates the distance from the beacon node and determines the centroid according to the received signal strength, and calculates the differential correction factor according to the positional relationship between the centroid and the beacon node. The center coordinate is corrected, and the gray wolf optimization algorithm is used to obtain the unknown node position based on the center of mass coordinate, which effectively improves the positioning accuracy. The specific steps include the following.

步骤1:无线传感器网络初始化:将传感器节点随机布设在目标区域内,信标节点周期性广播信号,信号包含其自身的ID及坐标等信息。Step 1: Initialization of the wireless sensor network: The sensor nodes are randomly arranged in the target area, and the beacon node periodically broadcasts a signal, and the signal contains its own ID, coordinates and other information.

步骤2:未知节点接收到多个信标节点信号,并将各组RSSI值进行预处理。然后通过传播损耗模型计算到信标节点的距离,将距离从小到大排序,并建立距离与信标节点的映射。按顺序逐次取三个距离值及对应的信标节点,构建重合区域,计算重合区域的交点以及交点的质心。Step 2: The unknown node receives multiple beacon node signals and preprocesses each group of RSSI values. Then, the distance to the beacon node is calculated by the propagation loss model, the distance is sorted from small to large, and the mapping between the distance and the beacon node is established. Take three distance values and the corresponding beacon nodes one after another in order to construct an overlapping area, and calculate the intersection of the overlapping area and the centroid of the intersection.

步骤3、通过前三个距离的质心M1计算差分修正因子,然后运用差分修正因子对其他质心进行差分修正。Step 3: Calculate the difference correction factor through the centroid M 1 of the first three distances, and then use the difference correction factor to perform differential correction on other centroids.

步骤4:将得到的k(k=n-2)个质心作为灰狼优化算法的初始值,将其坐标赋值给灰狼个体。步骤5:通过灰狼优化算法获取未知节点位置,迭代至预设次数阈值。进一步的,在步骤2中未知节点接收到多个信标节点信号,并将各组RSSI值进行预处理。具体内容如下:对每个信标节点的一组RSSI值进行预处理。公式如下:

Figure 883785DEST_PATH_IMAGE001
Step 4: Take the obtained k (k=n-2) centroids as the initial value of the gray wolf optimization algorithm, and assign its coordinates to the gray wolf individual. Step 5: Obtain the unknown node position through the gray wolf optimization algorithm, and iterate to the preset number of times threshold. Further, in step 2, the unknown node receives multiple beacon node signals, and preprocesses each group of RSSI values. The specific content is as follows: Preprocess a set of RSSI values of each beacon node. The formula is as follows:
Figure 883785DEST_PATH_IMAGE001

其中RSSIi为第i个信标节点的RSSI预处理结果,

Figure 738609DEST_PATH_IMAGE002
为第i个信标节点的RSSI的均值,
Figure 954564DEST_PATH_IMAGE003
为第i个信标节点的RSSI的中值,计算公式如下:where RSSI i is the RSSI preprocessing result of the i-th beacon node,
Figure 738609DEST_PATH_IMAGE002
is the mean value of RSSI of the i-th beacon node,
Figure 954564DEST_PATH_IMAGE003
is the median value of RSSI of the i-th beacon node, and the calculation formula is as follows:

Figure 287457DEST_PATH_IMAGE004
Figure 287457DEST_PATH_IMAGE004

Figure 39512DEST_PATH_IMAGE005
Figure 39512DEST_PATH_IMAGE005

其中m为未知节点接收到每个信标节点的RSSI值样本数。where m is the number of RSSI value samples received by the unknown node for each beacon node.

进一步的,在步骤3通过前三个距离的质心M1计算差分修正因子,然后运用差分修正因子对其他质心进行差分修正中将第一个质心作为参考节点计算差分修正因子对质心进行修正。进一步的,在步骤4将得到的k(k=n-2)个质心作为灰狼优化算法的初始值,将其坐标赋值给灰狼个体中比较k与N的大小,分成两种情况,使得算法能够正常初始化。Further, in step 3, the difference correction factor is calculated by the centroid M 1 of the first three distances, and then the first centroid is used as a reference node to calculate the difference correction factor to correct the centroid in the differential correction of other centroids by using the difference correction factor. Further, in step 4, the obtained k (k=n-2) centroids are used as the initial value of the gray wolf optimization algorithm, and their coordinates are assigned to the gray wolf individuals to compare the size of k and N, which are divided into two cases, so that The algorithm can be initialized normally.

进一步的,在步骤5用灰狼算法优化质心实现未知节点的精确定位,由此提高其定位精度。本发明的有益效果是:本发明基于RSSI技术,通过接收到的信号强度来计算与信标节点的距离并确定质心,根据质心与信标节点的位置关系计算差分修正因子对质心坐标进行修正,基于质心坐标采用灰狼优化算法获取未知节点位置,有效提高定位精度。Further, in step 5, the gray wolf algorithm is used to optimize the centroid to achieve precise positioning of the unknown node, thereby improving its positioning accuracy. The beneficial effects of the present invention are: based on the RSSI technology, the present invention calculates the distance to the beacon node and determines the centroid according to the received signal strength, calculates the differential correction factor according to the positional relationship between the centroid and the beacon node, and corrects the coordinates of the centroid, based on the centroid The coordinates use the gray wolf optimization algorithm to obtain the position of the unknown node, which effectively improves the positioning accuracy.

附图说明Description of drawings

图1为本发明的算法流程图;Fig. 1 is the algorithm flow chart of the present invention;

图2为在不同信标节点密度情况下的平均误差比较图;Figure 2 is a comparison chart of the average error under different beacon node densities;

图3为在不同节点通信半径情况下的平均误差比较图。Fig. 3 is the average error comparison graph under the condition of different node communication radius.

具体实施方式Detailed ways

为了更清楚地说明本发明的技术方案,下面结合附图对本发明的技术方案做进一步的详细说明:如图1所示,本发明是一种基于RSSI的灰狼优化差分修正质心定位算法,通过接收到的信号强度来计算与信标节点的距离并确定质心,根据质心与信标节点的位置关系计算差分修正因子对质心坐标进行修正,基于质心坐标采用灰狼优化算法获取未知节点位置,有效提高定位精度。具体步骤包括如下。In order to illustrate the technical solution of the present invention more clearly, the technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings: As shown in Figure 1, the present invention is an RSSI-based gray wolf optimization differential correction centroid positioning algorithm. Calculate the distance from the beacon node and determine the centroid based on the received signal strength, calculate the differential correction factor according to the positional relationship between the centroid and the beacon node to correct the centroid coordinates, and use the gray wolf optimization algorithm to obtain the unknown node position based on the centroid coordinates, effectively improving positioning precision. The specific steps include the following.

步骤1:无线传感器网络初始化:将传感器节点随机布设在目标区域内,信标节点周期性广播信号,信号包含其自身的ID及坐标等信息。Step 1: Initialization of the wireless sensor network: The sensor nodes are randomly arranged in the target area, and the beacon node periodically broadcasts a signal, and the signal contains its own ID, coordinates and other information.

步骤2:未知节点接收到多个信标节点信号,并将各组RSSI值进行预处理。然后通过传播损耗模型计算到信标节点的距离,将距离从小到大排序,并建立距离与信标节点的映射。按顺序逐次取三个距离值及对应的信标节点,构建重合区域,计算重合区域的交点以及交点的质心。Step 2: The unknown node receives multiple beacon node signals and preprocesses each group of RSSI values. Then, the distance to the beacon node is calculated by the propagation loss model, the distance is sorted from small to large, and the mapping between the distance and the beacon node is established. Take three distance values and the corresponding beacon nodes one after another in order to construct an overlapping area, and calculate the intersection of the overlapping area and the centroid of the intersection.

步骤3:通过前三个距离的质心M1计算差分修正因子,然后运用差分修正因子对其他质心进行差分修正。Step 3: Calculate the difference correction factor through the centroid M 1 of the first three distances, and then apply the difference correction factor to differentially correct other centroids.

步骤4:将得到的k(k=n-2)个质心作为灰狼优化算法的初始值,将其坐标赋值给灰狼个体。Step 4: Take the obtained k (k=n-2) centroids as the initial value of the gray wolf optimization algorithm, and assign its coordinates to the gray wolf individual.

步骤5:通过灰狼优化算法获取未知节点位置,迭代至预设次数阈值。进一步的,在步骤2中未知节点接收到多个信标节点信号,并将各组RSSI值进行预处理。具体内容如下:对每个信标节点的一组RSSI值进行预处理。公式如下:Step 5: Obtain the unknown node position through the gray wolf optimization algorithm, and iterate to the preset number of times threshold. Further, in step 2, the unknown node receives multiple beacon node signals, and preprocesses each group of RSSI values. The specific content is as follows: Preprocess a set of RSSI values of each beacon node. The formula is as follows:

Figure 799658DEST_PATH_IMAGE001
Figure 799658DEST_PATH_IMAGE001

其中,RSSIi为第i个信标节点的RSSI预处理结果,

Figure 237330DEST_PATH_IMAGE002
为第i个信标节点的RSSI的均值,
Figure 373913DEST_PATH_IMAGE003
为第i个信标节点的RSSI的中值,计算公式为:Among them, RSSI i is the RSSI preprocessing result of the i-th beacon node,
Figure 237330DEST_PATH_IMAGE002
is the mean value of RSSI of the i-th beacon node,
Figure 373913DEST_PATH_IMAGE003
is the median value of RSSI of the i-th beacon node, and the calculation formula is:

Figure 980475DEST_PATH_IMAGE006
Figure 980475DEST_PATH_IMAGE006

Figure 708260DEST_PATH_IMAGE005
Figure 708260DEST_PATH_IMAGE005

进一步的,在步骤3中通过前三个距离的质心M1计算差分修正因子,然后运用差分修正因子对其他质心进行差分修正,差分修正因子为:Further, in step 3, the differential correction factor is calculated by the centroid M 1 of the first three distances, and then the differential correction factor is used to perform differential correction on other centroids. The differential correction factor is:

Figure 898807DEST_PATH_IMAGE007
Figure 898807DEST_PATH_IMAGE007

由下式对质心修正:The centroid is corrected by:

Figure 573502DEST_PATH_IMAGE008
Figure 573502DEST_PATH_IMAGE008

其中,

Figure 34571DEST_PATH_IMAGE009
为修正后的质心坐标。通过对质心坐标的差分修正,减小了质心与未知节点的偏差。in,
Figure 34571DEST_PATH_IMAGE009
are the corrected centroid coordinates. The deviation between the centroid and the unknown node is reduced by the differential correction of the centroid coordinates.

进一步的,在步骤4将得到的k(k=n-2)个质心作为灰狼优化算法的初始值,将其坐标赋值给灰狼个体,具体步骤如下:设置初始迭代次数t=0,设置种群大小N,如果k≥N,则根据质心所对应的三角形的排序取前N个作为灰狼种群的初始值,将M1(xm1,ym1)、M2(xm2,ym2),……,Mi(xmi,ymi),……,MN(xmN,ymN)赋值给灰狼个体(xm1(t),ym1(t))、(xm2(t),ym2(t)),……,(xmi(t),ymi(t)),……,(xmN(t),ymN(t)), i取值为[1,N];如果k<N,则需要利用离未知节点最近的质心M1(xm1,ym1)生成N-k个质心坐标,并将他们赋值给(xm1(t),ym1(t)),i取值为[k+1,N],(xmi(t),ymi(t))是第i个灰狼在第t轮迭代的坐标值。Further, in step 4, the obtained k (k=n-2) centroids are used as the initial value of the gray wolf optimization algorithm, and their coordinates are assigned to the gray wolf individual. The specific steps are as follows: set the initial iteration number t=0, set The population size is N. If k≥N, then according to the order of the triangles corresponding to the centroids, the first N will be taken as the initial value of the gray wolf population, and M 1 (x m1 , y m1 ), M 2 (x m2 , y m2 ) , ..., M i (x mi , y mi ), ..., M N (x mN , y mN ) are assigned to the gray wolf individuals (x m1(t) , y m1(t) ), (x m2(t ) ) , y m2(t) ), ..., (x mi(t) , y mi(t) ), ..., (x mN(t) , y mN(t) ), i is [1, N]; if k<N, you need to use the nearest centroid M 1 (x m1 , y m1 ) to the unknown node to generate Nk centroid coordinates, and assign them to (x m1(t) , y m1(t) ) , the value of i is [k+1,N], (x mi(t) , y mi(t) ) is the coordinate value of the i-th gray wolf in the t-th iteration.

在步骤5通过灰狼优化算法获取未知节点位置,具体步骤如下:In step 5, the unknown node position is obtained through the gray wolf optimization algorithm, and the specific steps are as follows:

(1)计算每个灰狼个体的适应度函数值:(1) Calculate the fitness function value of each individual gray wolf:

Figure 136519DEST_PATH_IMAGE010
Figure 136519DEST_PATH_IMAGE010

其中,(xmj(t),ymj(t))为第j个灰狼个体的坐标,dij为灰狼i与j的距离。将灰狼个体的适应度值按照升序排序,排在首位的则定义为α狼,排在第二位的定义为β狼,排在第三位的定义为δ狼。(2)更新灰狼位置。在灰狼攻击阶段,通过公式来更新灰狼的位置。(3)重新计算每个灰狼个体的适应度函数,按照适应度函数排序更新α、β、δ的位置,并且迭代次数t=t+1。(4)tmax为迭代次数阈值,如果t≤tmax,则跳转至(1);如果t>tmax,则停止搜索。Among them, (x mj(t) , y mj(t) ) is the coordinate of the jth gray wolf individual, and d ij is the distance between gray wolf i and j. The fitness values of individual gray wolves are sorted in ascending order, the first one is defined as alpha wolf, the second one is defined as beta wolf, and the third one is defined as delta wolf. (2) Update the location of the gray wolf. During the gray wolf attack phase, the position of the gray wolf is updated through a formula. (3) Recalculate the fitness function of each individual gray wolf, and update the positions of α, β, and δ according to the fitness function, and the number of iterations is t=t+1. (4) t max is the threshold of the number of iterations, if t≤t max , jump to (1); if t>t max , stop the search.

下面对本发明的基于RSSI的灰狼优化差分修正质心定位算法在不同信标节点密度以及不同节点通信半径情况下本发明方法与GWO定位算法以及加权质心定位算法的比较。The following compares the method of the present invention with the GWO positioning algorithm and the weighted centroid positioning algorithm under the condition of different beacon node densities and different node communication radii.

为了验证算法性能,在50m*50m的区域内随机布设100个传感器节点,其中包含30%的未知节点。灰狼算法的种群规模为30,算法的最大迭代次数为300。从节点通信半径、信标节点密度两个方面对本章算法、三边质心定位算法以及加权质心定位算法进行对比分析。In order to verify the performance of the algorithm, 100 sensor nodes are randomly arranged in an area of 50m*50m, including 30% unknown nodes. The population size of the gray wolf algorithm is 30, and the maximum number of iterations of the algorithm is 300. The algorithm of this chapter, the three-sided centroid localization algorithm and the weighted centroid localization algorithm are compared and analyzed from the two aspects of node communication radius and beacon node density.

图2为信标节点密度与平均定位精度的关系图,从图中可知,随着信标节点密度的增加,更多的信标节点参与到定位中,因此,平均定位误差在逐渐降低。本文算法的平均定位误差始终低于其他两种算法,表明本文通过灰狼优化改进差分修正质心方法的有效性。当信标节点密度大于35%后,平均定位误差的变化较小,当信标节点密度为50%,平均定位误差为0.096。Figure 2 shows the relationship between the beacon node density and the average positioning accuracy. It can be seen from the figure that as the beacon node density increases, more beacon nodes participate in the positioning, so the average positioning error is gradually decreasing. The average positioning error of the algorithm in this paper is always lower than the other two algorithms, which shows the effectiveness of the method of improving the difference correction centroid through gray wolf optimization. When the beacon node density is greater than 35%, the change of the average positioning error is small. When the beacon node density is 50%, the average positioning error is 0.096.

图3为信标节点密度为35%时,随着通信半径的变化对平均定位误差的影响。从图3可知,当通信半径较小时,信标节点覆盖范围内的未知节点较少,平均定位误差较大,随着通信半径的增加,三种定位算法的平均定位误差逐渐降低,并且本文算法明显优于其他两种定位算法,当通信半径为30时,本文算法的平均定位精度为0.092,GWO定位算法为0.124,加权质心定位算法为0.16。Figure 3 shows the influence on the average positioning error with the change of the communication radius when the beacon node density is 35%. It can be seen from Figure 3 that when the communication radius is small, there are fewer unknown nodes within the coverage of the beacon node, and the average positioning error is large. It is obviously better than the other two positioning algorithms. When the communication radius is 30, the average positioning accuracy of this algorithm is 0.092, the GWO positioning algorithm is 0.124, and the weighted centroid positioning algorithm is 0.16.

上述实施方式只为说明本发明的技术构思及特点,其目的在于让熟悉此项技术的人能够了解本发明的内容并据以实施,并不能以此限制本发明的保护范围。凡根据本发明精神实质所做的等效变换或修饰,都应涵盖在本发明的保护范围之内。The above-mentioned embodiments are only intended to illustrate the technical concept and features of the present invention, and the purpose is to enable those who are familiar with the art to understand the content of the present invention and implement it accordingly, and cannot limit the protection scope of the present invention. All equivalent transformations or modifications made according to the spirit of the present invention should be covered within the protection scope of the present invention.

Claims (5)

1. An RSSI-based gray wolf optimization differential correction centroid positioning algorithm is characterized in that the distance between the RSSI-based gray wolf optimization differential correction centroid positioning algorithm and a beacon node is calculated through the strength of received signals, the centroid is determined, a differential correction factor is calculated according to the position relation between the centroid and the beacon node to correct a centroid coordinate, an unknown node position is obtained through the gray wolf optimization algorithm based on the centroid coordinate, the positioning accuracy is effectively improved,
the method comprises the following specific steps:
step 1, initializing a wireless sensor network: the method comprises the following steps that sensor nodes are randomly arranged in a target area, and beacon nodes periodically broadcast signals which comprise information such as ID and coordinates of the beacon nodes;
step 2, the unknown node receives a plurality of beacon node signals, each group of RSSI values are preprocessed, then the distance to the beacon nodes is calculated through a propagation loss model, the distances are sorted from small to large, the mapping between the distances and the beacon nodes is established, three distance values and the corresponding beacon nodes are sequentially taken, an overlapping area is constructed, and the intersection point of the overlapping area and the mass center of the intersection point are calculated;
step 3, passing the center of mass M of the first three distances1Calculating a difference correction factor, and then performing difference correction on other centroids by using the difference correction factor;
step 4, taking the obtained k (k = n-2) centroids as initial values of a gray wolf optimization algorithm, and assigning coordinates of the k (k = n-2) centroids to gray wolf individuals;
and 5, obtaining the position of the unknown node through a wolf optimization algorithm, and iterating to a preset time threshold value.
2. The RSSI-based grayish wolf optimized differential correction centroid localization algorithm as claimed in claim 1, wherein in step 2, the unknown node receives a plurality of beacon node signals and preprocesses each set of RSSI values, the specific steps are as follows:
preprocessing a set of RSSI values for each beacon, as follows:
Figure 335929DEST_PATH_IMAGE001
wherein RSSIi is the result of RSSI preprocessing of the ith beacon node,
Figure 893074DEST_PATH_IMAGE002
is the mean value of the RSSI of the ith beacon,
Figure 975300DEST_PATH_IMAGE003
for the median of the RSSI of the ith beacon, the calculation formula is as follows:
Figure 40208DEST_PATH_IMAGE004
Figure 390024DEST_PATH_IMAGE005
where m is the number of RSSI value samples each beacon node is received by the unknown node.
3. The RSSI-based grayish wolf optimized differential modified centroid localization algorithm as claimed in claim 1, wherein: centroid M through the first three distances in step 31And calculating a difference correction factor, and then performing difference correction on other centroids by using the difference correction factor, namely calculating the difference correction factor by using the first centroid as a reference node to correct the centroids.
4. The RSSI-based grayling optimization differential correction centroid localization algorithm as claimed in claim 1, wherein k (k = n-2) centroids obtained in step 4 are used as initial values of the grayling optimization algorithm, and coordinates thereof are assigned to grayling individuals, specifically comprising the following steps:
setting initial iteration times t =0, setting a population size N, if k is larger than or equal to N, taking the first N as initial values of the gray wolf population according to the sorting of triangles corresponding to centroids, and assigning M1(xm1, ym1), M2(xm2, ym2), … …, Mi (xmi, ymi), … …, MN (xmN, ymN) to gray wolf individuals (xm1(t), ym1(t)), (xm2(t), ym2(t)), … …, (xmi (t), ymi (t)), … …, (xmn t), ymN (t)), and i takes the value of [1, N ]; if k < N, then N-k centroid coordinates need to be generated using centroid M1(xm1, ym1) nearest to the unknown node and assigned to (xm1(t), ym1(t)), i takes the value of [ k +1, N ], (xmi (t), ymi (t)) is the coordinate value of the ith grey wolf in the t-th iteration.
5. The RSSI-based grayling optimization differential correction centroid localization algorithm as claimed in claim 1, wherein in step 5, the unknown node location is obtained by grayling optimization algorithm, and the fitness function value formula of each individual grayling is calculated as follows:
Figure 147765DEST_PATH_IMAGE006
wherein (x)mj(t),ymj(t)) Is the coordinate of the jth individual wolf, dijFor the distance between the gray wolves i and j, the positioning error formula is calculated as follows:
Figure 982865DEST_PATH_IMAGE007
Figure 821771DEST_PATH_IMAGE008
CN202110708748.7A 2021-06-25 2021-06-25 RSSI-based gray wolf optimization differential correction centroid positioning algorithm Withdrawn CN113316084A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110708748.7A CN113316084A (en) 2021-06-25 2021-06-25 RSSI-based gray wolf optimization differential correction centroid positioning algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110708748.7A CN113316084A (en) 2021-06-25 2021-06-25 RSSI-based gray wolf optimization differential correction centroid positioning algorithm

Publications (1)

Publication Number Publication Date
CN113316084A true CN113316084A (en) 2021-08-27

Family

ID=77380213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110708748.7A Withdrawn CN113316084A (en) 2021-06-25 2021-06-25 RSSI-based gray wolf optimization differential correction centroid positioning algorithm

Country Status (1)

Country Link
CN (1) CN113316084A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114245334A (en) * 2021-12-16 2022-03-25 西南交通大学 Ultra-wideband indoor positioning algorithm integrating error-calculable map and gray wolf optimization
CN114727373A (en) * 2022-03-08 2022-07-08 中国科学院上海微系统与信息技术研究所 Fault-tolerant-based WSN target tracking dormancy scheduling method
CN115499916A (en) * 2022-11-15 2022-12-20 中国人民解放军海军工程大学 Node localization method for wireless sensor network based on improved whale optimization algorithm
CN115550837A (en) * 2022-09-22 2022-12-30 合肥工业大学 DV-Hop positioning method based on chaos mapping and Husky algorithm optimization
CN118843187A (en) * 2024-06-21 2024-10-25 湖南理工学院 WANs positioning method based on three-anchor centroid and quantum self-adaptive wolf optimization algorithm

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114245334A (en) * 2021-12-16 2022-03-25 西南交通大学 Ultra-wideband indoor positioning algorithm integrating error-calculable map and gray wolf optimization
CN114245334B (en) * 2021-12-16 2023-01-24 西南交通大学 Ultra-wideband indoor positioning algorithm integrating error-calculable map and gray wolf optimization
CN114727373A (en) * 2022-03-08 2022-07-08 中国科学院上海微系统与信息技术研究所 Fault-tolerant-based WSN target tracking dormancy scheduling method
CN114727373B (en) * 2022-03-08 2024-04-23 中国科学院上海微系统与信息技术研究所 WSN target tracking dormancy scheduling method based on fault tolerance
CN115550837A (en) * 2022-09-22 2022-12-30 合肥工业大学 DV-Hop positioning method based on chaos mapping and Husky algorithm optimization
CN115550837B (en) * 2022-09-22 2024-04-02 合肥工业大学 A DV-Hop positioning method based on chaos mapping and gray wolf algorithm optimization
CN115499916A (en) * 2022-11-15 2022-12-20 中国人民解放军海军工程大学 Node localization method for wireless sensor network based on improved whale optimization algorithm
CN115499916B (en) * 2022-11-15 2023-01-20 中国人民解放军海军工程大学 Wireless sensor network node positioning method based on improved whale optimization algorithm
CN118843187A (en) * 2024-06-21 2024-10-25 湖南理工学院 WANs positioning method based on three-anchor centroid and quantum self-adaptive wolf optimization algorithm

Similar Documents

Publication Publication Date Title
CN113316084A (en) RSSI-based gray wolf optimization differential correction centroid positioning algorithm
CN112666981B (en) UAV swarm dynamic route planning method based on original pigeon swarm dynamic group learning
CN110062327A (en) The wireless sensor network node locating method of microhabitat grey wolf optimization DV-Hop algorithm
CN115550837B (en) A DV-Hop positioning method based on chaos mapping and gray wolf algorithm optimization
CN109842935A (en) A kind of weighting DV-HOP localization method based on mixing SMPSO optimization
CN106993273A (en) Based on distance weighted and genetic optimization DV Hop localization methods
CN108924755B (en) DV-HOP indoor positioning method based on immune particle swarm optimization
CN104185272A (en) WSN location method based on WSDV-Hop (Weighted and Selected DV-Hop)
CN113573271A (en) A DV-hop localization method based on Levy flight strategy and 3D gray wolf algorithm optimization
CN115952691B (en) Optimal station distribution method and device for multi-station passive time difference cross joint positioning system
CN115243273A (en) A wireless sensor network coverage optimization method and device, equipment, medium
CN104965189B (en) Indoor occupant localization method based on maximal possibility estimation
Yang et al. An improved DV-Hop localization algorithm based on bat algorithm
CN113438732A (en) DV-Hop positioning method based on Hop distance weighting and gold sinusoidal particle swarm
CN113329490A (en) Wireless sensor network node positioning method based on quantum tiger shark mechanism
CN110996388A (en) DV-Hop localization method based on anchor node selection and random sampling particle swarm
CN113365214A (en) Wireless sensor network node positioning method and device based on trilateral positioning improvement
CN116088576A (en) Unmanned aerial vehicle three-dimensional path planning method based on improved whale algorithm
CN117615302A (en) DV-Hop positioning method and device based on spiral guidance and multi-strategy enhanced dung beetle optimization
CN112714397A (en) WSN node positioning method based on ranging optimization and improved sparrow search algorithm
CN109560972B (en) A Non-cooperative Inference Method for Ad Hoc Network Physical Topology
CN112738709B (en) Particle swarm search indoor positioning method and system based on UWB signals
CN115900511A (en) Magnetic dipole target positioning method based on nonlinear separable least square
CN104968002B (en) Indoor positioning AP selection method based on fuzzy clustering
CN107613561B (en) A three-dimensional localization method of wireless sensor network nodes based on AC SCE-PSO algorithm

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20210827

WW01 Invention patent application withdrawn after publication