CN103533643A - Three-dimensional APIT (approximate point-in-triangulation test) location algorithm for wireless sensor network - Google Patents

Three-dimensional APIT (approximate point-in-triangulation test) location algorithm for wireless sensor network Download PDF

Info

Publication number
CN103533643A
CN103533643A CN201310484798.7A CN201310484798A CN103533643A CN 103533643 A CN103533643 A CN 103533643A CN 201310484798 A CN201310484798 A CN 201310484798A CN 103533643 A CN103533643 A CN 103533643A
Authority
CN
China
Prior art keywords
dimensional
algorithm
apit
nodes
anchor
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.)
Granted
Application number
CN201310484798.7A
Other languages
Chinese (zh)
Other versions
CN103533643B (en
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.)
Tianjin Polytechnic University
Original Assignee
Tianjin Polytechnic University
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 Tianjin Polytechnic University filed Critical Tianjin Polytechnic University
Priority to CN201310484798.7A priority Critical patent/CN103533643B/en
Publication of CN103533643A publication Critical patent/CN103533643A/en
Application granted granted Critical
Publication of CN103533643B publication Critical patent/CN103533643B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Position Fixing By Use Of Radio Waves (AREA)
  • Image Analysis (AREA)

Abstract

The invention provides a three-dimensional APIT (approximate point-in-triangulation test) location algorithm for node location of a wireless sensor network and belongs to the technical field of wireless sensor network application. According to the three-dimensional APIT location algorithm, a fringe effect of a three-dimensional APIT algorithm, which is caused by the uneven distribution of nodes, is remedied by utilizing a multi-hop mechanism of a three-dimensional WD-DVHOP algorithm. When the number of anchor nodes within a one-hop range of unknown nodes is smaller than 3, the three-dimensional WD-DVHOP location algorithm is called, and therefore, nodes which cannot be located by the three-dimensional APIT algorithm are eliminated. Moreover, by adopting a method of performing weighted computation on the barycenter of a polyhedron formed by encircling anchor ball intersections, In-To-Out-Error and Out-To-In-error misjudgments generated by point-in-tetrahedron test in the three-dimensional APIT algorithm are remedied. The three-dimensional APIT location algorithm has the advantages that the node location coverage rate in the wireless sensor network reaches 100 percent, and the location error is low.

Description

三维APIT无线传感网络定位算法Three-dimensional APIT wireless sensor network positioning algorithm

技术领域technical field

本发明涉及一种无线传感器网络的三维APIT定位算法。属于无线传感器网络应用技术领域。The invention relates to a three-dimensional APIT positioning algorithm of a wireless sensor network. The invention belongs to the technical field of wireless sensor network application.

背景技术Background technique

定位就是确定事件发生的位置或采集数据的节点位置信息,这是无线传感器网络功能之一。位置信息是传感器节点采集数据中不可缺少的部分,没有位置信息的监测消息是毫无意义的。无线传感器网络的定位技术根据定位机制可以分为基于测距的定位算法和非测距的定位算法。基于测距的定位算法因为存在着大量的硬件开销,不被广泛采用。非测距定位算法依靠网络中少量的位置已知的锚节点,通过邻居节点间有限的通信和某种定位机制估算网络中所有未知节点的位置。开销较小,但是误差较大。Positioning is to determine the location of the event or the location information of the node that collects the data, which is one of the functions of the wireless sensor network. Location information is an indispensable part of data collected by sensor nodes, and monitoring messages without location information are meaningless. The positioning technology of wireless sensor network can be divided into positioning algorithm based on ranging and non-ranging positioning algorithm according to the positioning mechanism. The positioning algorithm based on ranging is not widely used because of the large hardware overhead. The non-ranging positioning algorithm relies on a small number of anchor nodes with known positions in the network, and estimates the positions of all unknown nodes in the network through limited communication between neighbor nodes and a certain positioning mechanism. The overhead is small, but the error is large.

无线传感器网络中的定位算法目前主要集中在二维定位算法,比较有效的三维定位算法较少,且大都是在现有的二维定位算法基础上扩展得到的;由于二维定位算法本身的缺陷,导致扩展的三维定位算法误差较大。另外一些三维定位算法是基于一些三维地图的伪三维定位算法,开销较大。The positioning algorithms in wireless sensor networks are currently mainly concentrated in two-dimensional positioning algorithms, and there are few effective three-dimensional positioning algorithms, and most of them are obtained on the basis of existing two-dimensional positioning algorithms; due to the defects of two-dimensional positioning algorithms , resulting in larger errors in the extended 3D positioning algorithm. Some other three-dimensional positioning algorithms are pseudo-three-dimensional positioning algorithms based on some three-dimensional maps, and the cost is relatively large.

发明内容Contents of the invention

本发明主要针上述缺陷,将3D-DVHOP多跳机制引入APIT定位算法中,提出三维MHWC-APIT(TheMulti-Hop and Weighted CentroidAPIT)定位算法。本发明的设计方案如下:The present invention mainly aims at the above defects, introduces the 3D-DVHOP multi-hop mechanism into the APIT positioning algorithm, and proposes a three-dimensional MHWC-APIT (TheMulti-Hop and Weighted CentroidAPIT) positioning algorithm. Design scheme of the present invention is as follows:

1.三维APIT算法的两种误判处理1. Two kinds of misjudgment processing of 3D APIT algorithm

通过加权方法计算锚球交集所围成区域的质心,代替三维APIT中的四面体测试。具体实现如下:The centroid of the area enclosed by the intersection of anchor spheres is calculated by a weighted method, instead of the tetrahedron test in the 3D APIT. The specific implementation is as follows:

未知节点从邻居锚节点中任意取出3个。分别以锚节点为圆心,通信半径为半径做球,形成3个锚球。求3个锚球交集的重心。其次,继续选择其他3个锚节点,直到穷尽所有的组合。最终,以所有重心均值作为未知节点的坐标。Unknown nodes take 3 arbitrarily from neighbor anchor nodes. Take the anchor node as the center and the communication radius as the radius to form 3 anchor balls. Find the center of gravity of the intersection of three anchor balls. Second, continue to select the other 3 anchor nodes until all combinations are exhausted. Finally, take the mean of all barycenters as the coordinates of unknown nodes.

在计算3个锚球交集区域的重心时,采用了将三维空间转化为二维空间的方法。将3个锚球分别向XOY、YOZ、XOZ平面做投影,得到的圆半径大小不变,因此,平面定位的结果能真实反映未知节点的空间位置情况。When calculating the center of gravity of the intersection area of the three anchor balls, the method of converting the three-dimensional space into a two-dimensional space is adopted. Project the three anchor balls to the XOY, YOZ, and XOZ planes respectively, and the radius of the obtained circle remains unchanged. Therefore, the result of plane positioning can truly reflect the spatial position of the unknown node.

在图1中,A,B,C分别为三维空间中3个锚节点在XOY平面的投影,未知节点的投影N位于锚圆交点形成的区域中,其次就可以对锚圆交点形成的区域进行加权质心,得到未知节点在XOY平面中投影的坐标。同理,可以求出在YOZ和XOZ平面内投影的坐标。具体计算如下:In Figure 1, A, B, and C are the projections of three anchor nodes in the three-dimensional space on the XOY plane, and the projection N of the unknown node is located in the area formed by the intersection of the anchor circles, and then the area formed by the intersection of the anchor circles can be calculated. Weight the centroid to get the projected coordinates of the unknown node in the XOY plane. Similarly, the coordinates projected in the YOZ and XOZ planes can be obtained. The specific calculation is as follows:

首先在XOY平面内,对锚圆交点形成的区域进行加权质心计算,XOY平面内投影的坐标如式1First, in the XOY plane, the weighted centroid of the area formed by the intersection of the anchor circles is calculated, and the coordinates of the projection in the XOY plane are shown in formula 1

(( xx ijij ,, ythe y ijij )) XOYXOY == (( ww 11 xx 11 ++ ww 22 xx 22 ++ ww 33 xx 33 ww 11 ++ ww 22 ++ ww 33 ,, ww 11 ythe y 11 ++ ww 22 ythe y 22 ++ ww 33 ythe y 33 ww 11 ++ ww 22 ++ ww 33 )) -- -- -- (( 11 ))

其中,(xij,yij)XOY表示未知节点i的第j个锚节点组合投影到XOY平面内,所形成锚圆交集的质心。w1,w2,w3为交点1,2,3的权值。由于距离越大,信号强度越小,相应的权值就应该越小。因此,本算法选择距离和的倒数作为权值。Among them, (x ij , y ij ) XOY represents the centroid of the intersection of anchor circles formed by projecting the jth anchor node combination of unknown node i into the XOY plane. w1, w2, w3 are the weights of intersection points 1, 2, and 3. Since the larger the distance, the smaller the signal strength, the corresponding weight should be smaller. Therefore, this algorithm chooses the reciprocal of the distance sum as the weight.

得到了未知节点N在XOY平面内的投影坐标(Xij,yij)XOY后,可以得到(xij,zij)XOZ和(Yij,zij)YOZAfter obtaining the projection coordinates (X ij , y ij ) XOY of the unknown node N in the XOY plane, (x ij , z ij ) XOZ and (Y ij , z ij ) YOZ can be obtained.

根据在三个平面内计算得到的坐标。可以得到未知节点i在第j个锚节点组合下计算出的坐标,如公式2。Based on coordinates calculated in three planes. The coordinates calculated by the unknown node i under the jth anchor node combination can be obtained, as shown in formula 2.

(( xx ijij ,, ythe y ijij )) == (( xijxij XOYXOY ++ xijxij XOZXZ 22 ,, xijxij XOYXOY ++ xijxij XOZXZ 22 ,, xijxij XOYXOY ++ xijxij XOZXZ 22 )) -- -- -- (( 22 ))

最后,继续选择其它三个锚节点,计算锚球交点围成区域的质心,直到穷尽所有组合。则最终未知节点i的坐标可以表示为公式3。Finally, continue to select the other three anchor nodes, and calculate the centroid of the area enclosed by the intersection points of the anchor balls until all combinations are exhausted. Then the coordinates of the final unknown node i can be expressed as Equation 3.

(( xx ii ,, ythe y ii ,, zz ii )) == (( ΣΣ jj == 11 NN xx ijij CC NN 33 ,, ΣΣ jj == 11 NN ythe y ijij CC NN 33 ,, ΣΣ jj == 11 NN zz ijij CC NN 33 )) -- -- -- (( 33 ))

其中,N为锚节点个数。Among them, N is the number of anchor nodes.

2.三维APIT算法的边缘效应的处理2. Processing of edge effects of 3D APIT algorithm

节点随机部署时分布不均,会导致一些处在网络边缘的节点一跳范围内锚节点数不足3个,以致无法定位,这种现象叫做边缘效应。为了解决这一问题,本发明将三维WD-DVHOP算法的多跳机制引入三维APIT算法,当一跳范围内的锚节点数不足3个时,调用三维WD-DVHOP就行定位。三维WD-DVHOP定位算法是针对三维DV-HOP算法的改进算法,其定位误差有了很大的改善。When the nodes are randomly deployed, the distribution is uneven, which will cause some nodes at the edge of the network to have less than 3 anchor nodes within one hop range, so that they cannot be located. This phenomenon is called the edge effect. In order to solve this problem, the present invention introduces the multi-hop mechanism of the 3D WD-DVHOP algorithm into the 3D APIT algorithm. When the number of anchor nodes within a hop range is less than 3, the 3D WD-DVHOP is called for positioning. The three-dimensional WD-DVHOP positioning algorithm is an improved algorithm for the three-dimensional DV-HOP algorithm, and its positioning error has been greatly improved.

附图说明Description of drawings

图1XOY平面投影示意图Figure 1 Schematic diagram of XOY plane projection

图2三维MHWC-APIT算法流程图Figure 2 3D MHWC-APIT algorithm flow chart

图3节点部署示意图Figure 3 Schematic diagram of node deployment

图4是各种定位算法的平均定位误差随锚节点数的变化曲线Figure 4 is the variation curve of the average positioning error of various positioning algorithms with the number of anchor nodes

具体实施方式Detailed ways

本发明采用Matlab对三维MHWC-APIT算法进行实施,具体流程如下:The present invention uses Matlab to implement the three-dimensional MHWC-APIT algorithm, and the specific process is as follows:

(1)设置100个的无线传感器节点使其随机分布在点100m×100m×100m的水平面区域,通过Matlab提取NS-2生成的TCL文件后查看100个节点的一个随机分布结果。(1) Set 100 wireless sensor nodes so that they are randomly distributed in the horizontal plane area of 100m×100m×100m, and check a random distribution result of 100 nodes after extracting the TCL file generated by NS-2 through Matlab.

1)锚节点广播信息,未知节点记录锚节点信息。1) Anchor nodes broadcast information, and unknown nodes record anchor node information.

2)未知节点周围锚节点个数大于等于3,则执行锚球交集加权算法。从一跳范围内所有锚节点中任意取三个,将形成的锚球分别向XOY,XOZ和YOZ面投影,分别在三个平面内执行锚圆交点加权算法,之后选其它三个锚节点,直到穷尽所有。以这些锚球交集质心的平均值作为未知节点的坐标。2) If the number of anchor nodes around the unknown node is greater than or equal to 3, then the anchor ball intersection weighting algorithm is executed. Choose three randomly from all the anchor nodes within the range of one hop, project the formed anchor balls to the XOY, XOZ and YOZ planes respectively, execute the anchor circle intersection weighting algorithm in the three planes, and then select the other three anchor nodes, until exhausted. The average value of the centroids of the intersection of these anchor balls is used as the coordinates of the unknown nodes.

3)对于邻居锚节点锚节数小于3的情况,调用三维WD-DVHOP算法进行计算。利用DV-HOP算法的多跳机制去从一跳范围以外的锚节点中寻找锚节点。3) For the case where the number of neighbor anchor nodes is less than 3, call the three-dimensional WD-DVHOP algorithm for calculation. Use the multi-hop mechanism of the DV-HOP algorithm to find anchor nodes from the anchor nodes beyond the range of one hop.

算法具体流程图如图2。The specific flow chart of the algorithm is shown in Figure 2.

为了验证扩展的三维MHWC-APIT的性能,采用Matlab对三维MHWC-APIT和三维APIT算法以及其他算法进行仿真。并将仿真结果与其他算法进行对比。仿真分别从锚节点比例,节点总数以及通信半径等参数进行仿真分析。假设仿真的次数为1000次,仿真区域为100m*100m*100m的区域,在网络中随机生成节点。采用网络中所有节点的平均定位误差作为衡量的标准。平均定位误差的计算,如公4。In order to verify the performance of the extended 3D MHWC-APIT, the 3D MHWC-APIT and 3D APIT algorithms and other algorithms are simulated using Matlab. And compare the simulation results with other algorithms. The simulation analyzes the anchor node ratio, the total number of nodes and the communication radius and other parameters. Assume that the number of simulations is 1000, the simulation area is 100m*100m*100m, and nodes are randomly generated in the network. The average positioning error of all nodes in the network is used as the measurement standard. Calculation of the average positioning error, such as 4.

ErrEvgErrEvg == ΣΣ ii == 11 NN (( xx ~~ 11 -- xx ii )) 22 ++ (( ythe y ~~ 11 -- ythe y ii )) 22 ++ (( zz ~~ 11 -- zz ii )) 22 RR NN ×× 100100 %% -- -- -- (( 44 ))

其中,

Figure BSA0000096278770000032
为求的节点i的坐标位置,(xi,yi,zi)为节点i的实际位置,N为未知节点的总数。in,
Figure BSA0000096278770000032
To find the coordinate position of node i, (x i , y i , z i ) is the actual position of node i, and N is the total number of unknown nodes.

图3显示了节点的部署图。Figure 3 shows the deployment diagram of the nodes.

图4显示了三维MHWC-APIT算法及其他算法的定位误差随锚节点数的变化情况。可以看出三维MHWC-APIT算法的误差远远小于其他定位算法。Figure 4 shows how the positioning error of the 3D MHWC-APIT algorithm and other algorithms varies with the number of anchor nodes. It can be seen that the error of the 3D MHWC-APIT algorithm is much smaller than other positioning algorithms.

Claims (1)

1. The three-dimensional APIT wireless sensor network three-dimensional positioning algorithm is characterized by comprising the following specific steps:
1) the multi-hop mechanism of the WD-DVHOP algorithm is utilized to thoroughly eliminate the nodes which cannot be positioned and are generated by the edge effect in the APIT algorithm. So that all nodes can be successfully located.
2) And using the average value of the mass centers of the anchor ball intersections as the coordinates of the unknown nodes. And In-To-Out-Error and Out-To-In-Error misjudgments generated by the tetrahedral interior point test In the three-dimensional APIT algorithm are thoroughly eliminated.
3) When the mass center of the anchor sphere intersection is calculated, three anchor spheres, unknown nodes and anchor nodes are projected to XOY, YOZ and ZOX respectively. The three-dimensional space is converted into the anchor circle intersection of the two-dimensional space, and the complexity of the three-dimensional space calculation is simplified.
4) And calculating the intersection of the anchor circles by adopting a weighting method, and adopting the reciprocal of the distance sum as a weight, wherein the longer the distance is, the smaller the influence on the unknown node is.
CN201310484798.7A 2013-10-14 2013-10-14 Three-dimensional APIT (approximate point-in-triangulation test) location algorithm for wireless sensor network Expired - Fee Related CN103533643B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310484798.7A CN103533643B (en) 2013-10-14 2013-10-14 Three-dimensional APIT (approximate point-in-triangulation test) location algorithm for wireless sensor network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310484798.7A CN103533643B (en) 2013-10-14 2013-10-14 Three-dimensional APIT (approximate point-in-triangulation test) location algorithm for wireless sensor network

Publications (2)

Publication Number Publication Date
CN103533643A true CN103533643A (en) 2014-01-22
CN103533643B CN103533643B (en) 2017-02-15

Family

ID=49935217

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310484798.7A Expired - Fee Related CN103533643B (en) 2013-10-14 2013-10-14 Three-dimensional APIT (approximate point-in-triangulation test) location algorithm for wireless sensor network

Country Status (1)

Country Link
CN (1) CN103533643B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104302002A (en) * 2014-10-31 2015-01-21 北京智谷睿拓技术服务有限公司 Location method and device
CN107040992A (en) * 2017-06-07 2017-08-11 江西理工大学 Wireless sensor network node locating method and device
CN108525259A (en) * 2018-04-27 2018-09-14 湖南环境生物职业技术学院 A kind of system for football positioning ball test
CN110519691A (en) * 2019-09-10 2019-11-29 广东交通职业技术学院 A kind of localization method, device and the equipment of sea sensor node
CN118731849A (en) * 2024-08-02 2024-10-01 天津卓大科技发展集团有限公司 A method and device for rapid location of earthquake source based on earthquake data

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1789143A2 (en) * 2004-06-28 2007-05-30 Gimaex-Schmitz Fire and Rescue GmbH Method and arrangement for producing compressed air foam for fire-fighting and decontamination
CN103327603A (en) * 2012-03-20 2013-09-25 南昌航空大学 Three-dimensional node positioning method used for wireless sensor network based on APIT

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1789143A2 (en) * 2004-06-28 2007-05-30 Gimaex-Schmitz Fire and Rescue GmbH Method and arrangement for producing compressed air foam for fire-fighting and decontamination
CN103327603A (en) * 2012-03-20 2013-09-25 南昌航空大学 Three-dimensional node positioning method used for wireless sensor network based on APIT

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王亮: "ZigBee定位算法的研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》, 15 July 2013 (2013-07-15), pages 3 *
魏成波: "无线传感器网络节点三维非测距定位算法研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》, 15 April 2012 (2012-04-15), pages 4 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104302002A (en) * 2014-10-31 2015-01-21 北京智谷睿拓技术服务有限公司 Location method and device
CN104302002B (en) * 2014-10-31 2019-03-19 北京智谷睿拓技术服务有限公司 Localization method and device
CN107040992A (en) * 2017-06-07 2017-08-11 江西理工大学 Wireless sensor network node locating method and device
CN107040992B (en) * 2017-06-07 2019-08-27 江西理工大学 Wireless sensor network node positioning method and device
CN108525259A (en) * 2018-04-27 2018-09-14 湖南环境生物职业技术学院 A kind of system for football positioning ball test
CN110519691A (en) * 2019-09-10 2019-11-29 广东交通职业技术学院 A kind of localization method, device and the equipment of sea sensor node
CN118731849A (en) * 2024-08-02 2024-10-01 天津卓大科技发展集团有限公司 A method and device for rapid location of earthquake source based on earthquake data

Also Published As

Publication number Publication date
CN103533643B (en) 2017-02-15

Similar Documents

Publication Publication Date Title
Liu et al. On coverage of wireless sensor networks for rolling terrains
CN103533643B (en) Three-dimensional APIT (approximate point-in-triangulation test) location algorithm for wireless sensor network
CN110346654B (en) Construction method of electromagnetic spectrum map based on ordinary kriging interpolation
CN102685676B (en) Three-dimensional positioning method for network node of wireless sensor
CN105636198B (en) Wireless sensor network positioning algorithm based on APIT test
CN106131797A (en) A kind of water-saving irrigation monitoring network locating method based on RSSI range finding
CN108012276B (en) Three-dimensional heterogeneous mobile sensor network autonomous deployment method based on weighted Voronoi diagram
CN103885028B (en) A joint centroid localization method based on error correction for wireless sensor network node localization
CN103841641B (en) Wireless sensor network distributed collaborative positioning method based on arrival angle and Gossip algorithm
CN106412828A (en) Approximate point-in-triangulation test (APIT)-based wireless sensor network node positioning method
CN103327603A (en) Three-dimensional node positioning method used for wireless sensor network based on APIT
CN103529427A (en) Target positioning method under random deployment of wireless sensor network
CN104507164B (en) A kind of WSN node positioning methods based on RSS and ranging unbiased esti-mator
CN102378361B (en) Wireless sensor network positioning method based on overlapped domain gravity center of anchor balls in three-dimensional space
CN104581943A (en) Node Localization Method for Distributed Wireless Sensor Networks
CN107040992A (en) Wireless sensor network node locating method and device
CN105652255A (en) Spatial aligning method for radar networking system
Xia et al. Localizability judgment in UWSNs based on skeleton and rigidity theory
CN106102162A (en) A kind of iterative estimate method for wireless sensor network three-dimensional localization
CN104023390A (en) WSN node positioning method based on combination of PSO and UKF
CN104080169B (en) A kind of underwater wireless sensor network dynamic self-adapting localization method
CN106131951A (en) RSSI based on equilateral triangle model weights distance-finding method
CN104113911A (en) WSN node positioning method based on combination of MLE and UKF
CN106937298B (en) A kind of improved wireless sensor network 3-D positioning method
CN106790099A (en) Charge network survivability Measurement Method based on network survivability entropy

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170215

Termination date: 20201014

CF01 Termination of patent right due to non-payment of annual fee