CN115397012A - Realization method of UWB positioning tracking system based on TWR-TDOA estimation and MPGA layout optimization - Google Patents
Realization method of UWB positioning tracking system based on TWR-TDOA estimation and MPGA layout optimization Download PDFInfo
- Publication number
- CN115397012A CN115397012A CN202210944228.0A CN202210944228A CN115397012A CN 115397012 A CN115397012 A CN 115397012A CN 202210944228 A CN202210944228 A CN 202210944228A CN 115397012 A CN115397012 A CN 115397012A
- Authority
- CN
- China
- Prior art keywords
- positioning
- tdoa
- twr
- algorithm
- population
- 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 44
- 238000005457 optimization Methods 0.000 title claims abstract description 15
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 64
- 230000002068 genetic effect Effects 0.000 claims abstract description 16
- 238000001914 filtration Methods 0.000 claims abstract description 14
- 230000033001 locomotion Effects 0.000 claims abstract description 13
- 238000012545 processing Methods 0.000 claims abstract description 5
- 238000004458 analytical method Methods 0.000 claims abstract description 3
- 210000000349 chromosome Anatomy 0.000 claims description 39
- 238000005259 measurement Methods 0.000 claims description 29
- 239000011159 matrix material Substances 0.000 claims description 17
- 238000004891 communication Methods 0.000 claims description 16
- 238000004364 calculation method Methods 0.000 claims description 9
- 230000007704 transition Effects 0.000 claims description 4
- 239000000243 solution Substances 0.000 description 16
- 238000010586 diagram Methods 0.000 description 6
- 238000002474 experimental method Methods 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 238000012360 testing method Methods 0.000 description 3
- 238000013101 initial test Methods 0.000 description 2
- 230000035772 mutation Effects 0.000 description 2
- 238000004088 simulation Methods 0.000 description 2
- 241000209140 Triticum Species 0.000 description 1
- 235000021307 Triticum Nutrition 0.000 description 1
- 239000000654 additive Substances 0.000 description 1
- 230000000996 additive effect Effects 0.000 description 1
- 239000013078 crystal Substances 0.000 description 1
- 230000001186 cumulative effect Effects 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010790 dilution Methods 0.000 description 1
- 239000012895 dilution Substances 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 238000005315 distribution function Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 230000004807 localization Effects 0.000 description 1
- 238000013178 mathematical model Methods 0.000 description 1
- 238000012805 post-processing Methods 0.000 description 1
- 238000001228 spectrum Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/12—Computing arrangements based on biological models using genetic models
- G06N3/126—Evolutionary algorithms, e.g. genetic algorithms or genetic programming
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Biophysics (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Evolutionary Biology (AREA)
- Theoretical Computer Science (AREA)
- Computational Linguistics (AREA)
- General Engineering & Computer Science (AREA)
- Biomedical Technology (AREA)
- Genetics & Genomics (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- Artificial Intelligence (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Physiology (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Position Fixing By Use Of Radio Waves (AREA)
Abstract
The invention discloses a realization method of a UWB positioning and tracking system based on TWR-TDOA estimation and MPGA layout optimization, which comprises the following steps: s1, setting a real target running track according to indoor and outdoor scenes; s2, calculating the distance difference between the target and the two base stations by adopting an ADS-TWR algorithm; s3, obtaining positioning accuracy by adopting a TDOA algorithm according to the distance difference; s4, obtaining optimal anchor point distribution by adopting a multi-population genetic algorithm; s5, performing Kalman filtering processing on the TDOA result; and S6, after the positioning and tracking of the target are completed, comparing the positioning and tracking result with the real motion trail of the target, and carrying out error analysis to obtain theoretical positioning and tracking precision. The invention further improves the stability and the positioning precision of the system by adopting the Kalman filtering algorithm, and obtains the optimal anchor point distribution by adopting the multi-population genetic algorithm, so that the influence of the sensor layout is minimum.
Description
Technical Field
The invention relates to an implementation method of a positioning and tracking system, in particular to an implementation method of a UWB positioning and tracking system based on TWR-TDOA estimation and MPGA layout optimization.
Background
With the development of communication technology, more and more wireless sensor network node positioning systems begin to appear. The most popular technologies at present are bluetooth, zigBee, RFID, UWB wireless location, and the like. The ultra-wideband technology is a very excellent ranging method, and data transmission is performed by using extremely narrow pulses, so that the frequency spectrum range is wide, and the communication speed is high.
The positioning performance of the ultra-wideband system can be improved from two aspects: the method is mainly used for positioning algorithm and the design and arrangement of the ultra-broadband anchor points on the hardware platform. The positioning algorithm is divided into a conventional positioning algorithm and a hybrid positioning algorithm. RSS, AOA, DOA and TDOA are four classical location calculation methods. In recent years, based on the four basic algorithms, a series of new hybrid algorithms are continuously proposed to improve the system accuracy by establishing a new mathematical model or seeking an optimal solution. TDOA-UWB technology is becoming more and more mature in location theory. Most conventional TDOA correlation algorithms based on least squares theory have an accuracy in practical tests of between 10-30 cm. These algorithms have bottlenecks in clock synchronization and transmission delay. Some scholars propose new algorithms such as Second Order Cone Programming (SOCP), semi-definite programming (SDP), and non-convex constrained optimization, which impose a heavy computational burden. Many hybrid algorithms theoretically further improve positioning accuracy, but due to the complexity of the algorithms, testing has not been performed on hardware platforms of real scenarios. In some positioning scenarios, such as superstores, hospitals, etc., the above mainstream algorithms may satisfy the requirements, but may not satisfy the precise positioning of the cubicles. For the target characteristics, internal moving targets are relatively random, for outdoor scenes, most moving targets have certain movement rules and are capable of following, and communication scenes such as multipath, NLOS and the like are complex, so that the accuracy and the stability of the algorithm are high. When the moving target moves randomly and the communication scene is complex, the position track has the problems of instability and low precision.
Another important factor is the layout of the ultra-wideband anchor points. Most previous studies were based on two-dimensional planar positioning. Due to the complexity of indoor and outdoor scenes, 3D positioning is more practical. Some existing studies on the displacement of multiple nodes in a two/three dimensional scene focus mainly on positioning networks, but less theoretical studies on fewer anchor point arrangements (less than 4). However, in order to save power consumption and the number of nodes, it is necessary to study an optimal layout when the number of nodes is small.
Disclosure of Invention
The invention aims to: the invention aims to provide a method for realizing a UWB positioning and tracking system based on TWR-TDOA estimation and MPGA layout optimization, which can effectively reduce measurement and calculation errors caused by sensor distribution and improve the positioning precision of the system.
The technical scheme is as follows: the invention discloses a realization method of a UWB positioning and tracking system, which comprises the following steps:
s1, setting a real target running track according to indoor and outdoor scenes;
s2, calculating the distance difference between the target and the two base stations by adopting an ADS-TWR algorithm;
s3, obtaining positioning accuracy by adopting a TDOA algorithm according to the distance difference;
s4, obtaining optimal anchor point distribution by adopting a multi-population genetic algorithm;
s5, performing Kalman filtering processing on the TDOA result;
and S6, after the positioning and tracking of the target are completed, comparing the positioning and tracking result with the real motion trail of the target to perform error analysis, so as to obtain theoretical positioning and tracking precision.
Further, in step S2, ranging is completed by using the ADS-TWR algorithm of three messages, and the formula for calculating the flight time is as follows:
the error formula is as follows:
wherein, T reply1 For the reply delay, T, after Device A base station/tag receives the signal round1 Between Device A base station and tagTotal time of each round of communication; t is reply2 For the reply delay, T, after the Device B base station/tag receives the signal round2 The total time for each round of communication between the Device B base station and the tag; the actual frequency of Device A is k of the desired frequency a Multiple, the actual frequency of Device B is k of the desired frequency b And (4) doubling.
Further, in step S3, a TWR-TDOA positioning method is adopted, and a model of the positioning method is a UWB three-dimensional positioning network formed by a Tag and four UWB anchors; setting the coordinates of a target label as T (x, y, z), the number of ultra-wideband anchor points as M, and one main sensor S 0 And M-1 sub-sensors having coordinates of (x) i ,y i ,z i ) I =1, \8230;, M-1; let the time of arrival at each station be t i The time difference between each secondary sensor and the primary sensor is recorded as Δ ToF i And M is the number of anchor points, and the distance difference between each secondary sensor and the main sensor is obtained:
Δr i =cΔToF i ;
solving the root r for judging the positioning result according to the Cramer criterion 0 。
Further, the TDOA algorithm has three different positioning results in three dimensions: precision, blur, and loss;
for the case of ambiguous TDOA location results, r 0 Two solutions exist, and the real part of the conjugate complex root is taken;
for the case of accurate TDOA positioning results, r 0 There is a single solution, taking this root as r under the pinpoint result 0 ;
For the case of a loss of TDOA fix, r 0 And (4) taking the position and the motion state at the previous moment without solution, and filling missing values according to the CV model.
Further, when no solution exists in the TDOA algorithm, filling missing positions by adopting a CV model for the positions and the motion states of the target at the previous moment; the CV model is:
X(k+1)=F(k)X(k)+W(k)
Z(k+1)=H(k+1)X(k+1)+V(k+1)
x (k) is a state vector and is an N-dimensional column vector; f (k) is called a state transition matrix; w (k) is process noise, and the covariance matrix of the process noise is Q (k), which is an N multiplied by N matrix in the system;
z (k) is a measurement vector, an M-dimensional column vector, where M =3; h (k) is a measurement matrix; v (k) is measurement noise.
Further, in the step S4, AVER is defined GDOP Average GDOP for one plane, with height h:
when the GDOP of the positioning target is minimum, the distribution reaches the optimal state;
the process of the multi-population genetic algorithm optimization allocation is as follows:
m1, input X 2×12 A range including a given space and a height h of the measurement plane; the number of iterations Genmax was set, 10 populations were selected for initialization and based on X 2×12 Generating a plurality of random coordinates in each population;
m2, in each population, converting the coordinates into binary chromosomes by matching fitness values AVER GDOP (h) Evaluating; m3, randomly generating a cross probability Pc within the range of 0.7-0.9 and a variation probability Pr within the range of 0.001-0.05;
m4, replacing the worst chromosome of the latter population by the best chromosome of the former population; chromosomes in the first population are replaced by chromosomes in the last population; then selecting the optimal chromosome from each population to form an elite population;
m5, manually selecting chromosomes in the elite population, and decoding the chromosomes from binary chromosomes into ten-value chromosomes; all the converted chromosomes are selected, the minimum value is found out, and the chromosomes are reassembled for the next generation;
m6, executing the step M3 until the invariant minimum value of the iteration is equal to Genmax;
m7, outputting the unchanged minimum value AVER GDOP (h) And corresponding anchor point coordinates.
Compared with the prior art, the invention has the following remarkable effects:
1. the distance difference between a target and two base stations is calculated by using the distance measured by the TWR algorithm, then a hyperbolic equation is established by using the distance difference, a new method for solving the TDOA equation is provided, and the method is easy to realize on a DWM1000 ultra-wideband positioning platform of Decawave company;
2. the optimal layout of anchor points is calculated by adopting a simplified three-dimensional multi-population genetic algorithm MPGA (multi-point genetic algorithm) so as to effectively reduce measurement and calculation errors caused by sensor distribution and improve the positioning precision of the system;
3. by adopting Kalman filtering, the instability of a TDOA algorithm in an outdoor scene is solved, the root mean square error of an outdoor scene position error is 9.8cm, and the indoor scene position error is about 11.21cm;
4. when the new TWR-TDOA solution and layout optimization are adopted, the system of the invention has the best precision performance and can adapt to different environments.
Drawings
FIG. 1 is a schematic view of a measurement model of the system of the present invention;
FIG. 2 is a schematic diagram of ADS-TWR for three messages;
FIG. 3 is a schematic diagram of a UWB three-dimensional positioning network model;
FIG. 4 (a) is a diagram showing the positioning result in different cases,
FIG. 4 (b) is a graph showing the results of CDF under different conditions;
FIG. 5 (a) is a schematic view of an experimental scene of an outdoor farmland,
FIG. 5 (b) is a comparison graph of outdoor scene positioning and tracking results and actual tracks;
FIG. 6 (a) is a schematic diagram of an indoor moving object positioning scene,
FIG. 6 (b) is a diagram comparing the indoor scene positioning and tracking result with the real track;
figure 7 (a) is a system positioning minimum mean square error plot for an outdoor scenario,
fig. 7 (b) is a minimum mean square error plot of a position measurement for an indoor scene.
Detailed Description
The invention is described in further detail below with reference to the drawings and the detailed description.
In this embodiment, first, the ADS-TWR algorithm is used to calculate the distance difference between the target and the two base stations, and the ADS-TWR algorithm has a low requirement for system synchronization. And then, according to the measured distance, a TDOA algorithm is adopted, and a new hyperbolic equation solving method is provided to obtain higher positioning accuracy. The optimal anchor placement is then solved using a simplified spatial multi-population genetic algorithm (MPGA). Finally, the instability problem of the outdoor position system is solved by Kalman filtering.
Implementation process of positioning and tracking system
Fig. 1 shows a measurement model of the tracking system of the present invention. The hardware part consists of a singlechip and an ultra-wideband communication module. ADS-TWR ranging and wireless data transmission are carried out between the tag and the base station through a UWB communication module. After the distance is measured, the secondary BS (base station, hereinafter referred to as BS) transmits data to the primary BS, and the primary BS transmits the data to the upper computer through USB to calculate the target position. The TDOA instability problem is then solved using an optimal anchor point distribution based on the simplified MPGA algorithm and using kalman filtering. The method comprises the following concrete steps:
step one, ADS-TWR ranging and wireless data transmission are carried out between the tag and the base station through a UWB communication module. After the distance is measured, the auxiliary BS transmits data to the main BS, and the main BS transmits the data to the upper computer through the USB to calculate the target position.
Fig. 1 is ADS-TWR for 3 messages. The invention adopts ADS-TWR algorithm of three messages provided by DWM 1000-based instruction manual to complete the writing of the ranging program. This algorithm reduces the DS-TWR of four messages to three messages by using the reply of the first round trip measurement as the originator of the second round trip measurement. The whole process of one-round communication between the base station and the tag is as follows:
(11) The tag sends a timestamp of the tag to the base station;
(12) The base station records the time stamp of the base station at the moment when the time stamp of the label is received;
(13) The base station sends the timestamp of the base station itself when receiving the information and sends the timestamp of the base station itself at an instant to the tag;
(14) The tag receives the information sent by the base station and records the time stamp of the tag at the moment.
The schematic diagram is shown in FIG. 2, and T is easily known round =2T prop +T reply In this case, the time of flight can be calculated by:
wherein, T prop For time of flight of the signal from the base station to the tag, T reply Is the reply delay, T, generated by processing information and the like after the base station/tag receives the signal round The total time of each round of communication between the base station and the tag, Δ ToF being the total time of flight; t is reply1 For the reply delay after Device A base station/tag receives the signal, T round1 The total time of each round of communication between the Device a base station and the tag; t is reply2 For the reply delay, T, after the Device B base station/tag receives the signal round2 The total time for each round of communication between the Device B base station and the tag.
In asymmetric two-sided two-way ranging, the response times of the two devices do not have to be synchronized, which means that the clock requirements of the system are reduced. Under the same information transmission condition, the ADS-TWR can save the message flow, namely, save the battery power and the space time. When the crystal oscillator quality is not good, the clock frequency error can be controlled to be in picosecond level. The most important error affecting accuracy depends on the following formula:
the actual frequency of Device A is k of the desired frequency a Multiple, the actual frequency of Device B is k of the desired frequency b And (4) doubling. In practical cases, k a And k is b Are both close to 1.
TWR data is then derived for location processing. Taking 100m UWB communication range as an example, TOF is around 300ns, and error time is around 6ps, corresponding to a distance error of 2mm.
Fig. 3 is a UWB three-dimensional positioning network model. The invention provides a novel TWR-TDOA positioning method. The positioning model comprises a target Tag (Tag) and four UWB anchors (anchors) to form a UWB three-dimensional positioning network. The present invention contemplates four anchors placed at fixed locations, the locations of which are known. Assuming that the coordinates of a target label are T (x, y, z), the number of ultra-wideband anchor points is M, and a main sensor S is arranged in the ultra-wideband anchor points 0 And M-1 sub-sensors having coordinates of (x) i ,y i ,z i ) I =1, \ 8230;, M-1. Let the time of arrival at each station be t i The time difference between each secondary sensor and the primary sensor is recorded as Δ ToF i . Obtaining a distance difference between each secondary sensor and the main sensor:
Δr i =cΔToF i (3)
where c is the speed of light, this distance difference can also be directly written as the euclidean distance from the target to the secondary station minus the distance from the target to the primary station, as shown in equation (4).
Δr i =D i -r 0 (4)
Wherein D is i =‖T-S i ‖ 2 When M =4, i =1,2,3, r 0 =‖T-S 0 ‖ 2
Can then be written as
(Δr i +r 0 ) 2 =D i 2 (5) Subtracting r from both sides simultaneously 0 2 Obtaining:
Δr i 2 +2Δr i r 0 =D i 2 -r 0 2
=2x(x 0 -x i )+2y(y 0 -y i )+2z(z 0 -z i )+d i 2 -d 0 2 (6)
wherein d is i =‖S i ‖ 2 When M =4, i =1,2,3 and d 0 =‖S 0 ‖ 2
Obtaining:
there are 3 equations in equation (7) that can be written in matrix form in equation (8) with the sum of unknowns
Let AX = B, give
According to the linear nature of the linear equation, the solution of AX = B is r of the sum of the solution of AX = C and the solution of AX = D 0 And (4) multiplying.
When M =4, A is a square matrix, and the solution is as follows according to Cramer criterionWherein A is j A determinant resulting from replacing a jth column element with a constant term. Can obtain a solution
Wherein a is l (l =1,2,3) are three solutions of AX = C, b l Are three solutions of AX = C.
R in formula (11) 0 Are unknown parameters. From r 0 The definition of (A) can be obtained as a binary quadratic equation as shown in formula (12)
Er 0 2 +2Fr 0 +G=0 (12)
Wherein
The root of this univariate quadratic equation can be found:
according to root r 0 The TDOA algorithm in the three-dimensional case has three different location results: blur, accuracy, and loss. The present invention handles these three examples in different ways.
C1)r 0 There are two roots (one of which is a false solution), and two positioning results can be obtained, i.e. positioning ambiguity, which requires the addition of anchor points. In this algorithm, the real part of the complex conjugate is taken as the root.
C2)r 0 With only one root, the target location can be uniquely determined.
C3 No root, which means that the target position cannot be determined. And filling missing positions of the target position and the motion state at the previous moment, and then analyzing the offset error. The core of the TDOA algorithm is the difference between a primary anchor and a secondary anchor, and the difference is firstly derived:
dr=Hdu+ds (15)
wherein dr = [ d Δ r = [ [ d Δ r ] 1 dΔr 2 …dΔr 4 ] T
du=[dx dy dz] T
And (5) converting the equation (15) to obtain a label position error vector:
du=H -1 (dr-ds) (16)
as can be seen from equation (16), the accuracy of the tag position is related to the sensor distribution and measurement error. The accuracy of the TDOA (Time Difference of Arrival) algorithm will be improved from two aspects, namely, the arraying optimization algorithm and the tracking algorithm.
Step two, optimizing distribution based on multi-population genetic algorithm
Different sensor placement strategies may affect the GDOP (Geometric Dilution Precision factor) of the target, which can be expressed by the following formula:
Variance of positioning error is σ s 2 Variance of measurement error is σ rd 2 (d=1,2,…,M)。
When the GDOP of the positioning target is minimized, the distribution reaches the optimal state. The invention adopts multi-population genetic algorithm (MPGA) to search the optimal anchor point layout of the space GDOP.
Wherein AVER is defined GDOP Average GDOP for one plane, with height h:
genetic algorithms search for optimal results by generating offspring from random populations through genetic operators. Multi-population genetic algorithms utilize more populations to generate individuals as multi-population intersections than genetic algorithms. Searching in the whole space range brings huge calculation amount, and searching in a horizontal plane can greatly reduce the calculation amount and has similar precision. This simplified MPGA method is then used to calculate the optimal layout. The MPGA optimization allocation process is as follows:
m1) initialization: input X 2×12 Including the extent of the given space and the height h of the measuring plane. The number of iterations Genmax is set. Choose to initialize 10 populations and according to X 2×12 A large number of random coordinates were generated in each population.
M2) encoding and evaluating: in each population, the coordinates are converted into binary chromosomes by matching fitness values AVER GDOP (h) And (6) evaluating. All chromosomes are sorted according to fitness value.
M3) selecting: a crossover probability Pc in the range of 0.7-0.9 and a mutation probability Pr in the range of 0.001-0.05 are randomly generated. Crossover and mutation: the better the chromosome is selected, the greater the fitness value of the chromosome is as the parent. The probability that the selected parents will cross to produce new offspring is Pc. The probability that a new binary chromosome changes by one bit is Pr.
M4) manually selecting immigration: the best chromosome of the previous population replaces the worst chromosome of the latter population. Chromosomes in the first population are replaced by chromosomes in the last population. The optimal chromosome is then selected from each population to form an elite population.
M5) decoding and evaluating: the chromosomes in the elite population are manually selected and decoded into ten-valued chromosomes from the binary chromosomes. All the converted chromosomes are selected, the minimum value is found, and the chromosomes are reassembled for the next generation.
M6) performs step M3 until the invariant minimum of the iteration equals Genmax.
M7) solving method: output constant minimum value AVER GDOP (h) And corresponding anchor point coordinates.
At the beginning of each experiment, the algorithm can guarantee a minimum value of average GDOP over the measurement range. In consideration of convenience in placement and calculation, anchor points are arranged on two sides of the scene, and one anchor point is fixed. Table 1 shows the GDOP values of three spatial random test points in the case of optimized and non-optimized arraying.
TABLE 1 GDOP values for different anchor points
As can be seen from table 1, if the base station is located at the position where the MPGA is located, the GDOP can be greatly reduced, which means that the optimized distribution can reduce the deviation of the measured data. Therefore, the algorithm can effectively reduce the sensor distribution error caused by the system.
Step three, kalman filtering
TDOA is unstable in the positioning process, resulting in measurement errors. To solve this problem, kalman filtering will be used to improve the stability and accuracy of the post-processing. When the measurement equation and the motion equation of the target are linear and the process noise follows the gaussian distribution, the kalman filter can obtain the best tracking performance. When there is no solution in the TDOA algorithm, CV models are used to fill in the missing positions for the positions and motion states of the targets at the previous time. The CV model is:
X(k+1)=F(k)X(k)+W(k) (19)
Z(k+1)=H(k+1)X(k+1)+V(k+1) (20)
equation (19) is an equation of state: x (k) is a state vector, an N-dimensional column vector, where N =9; f (k) is called a state transition matrix; w (k) is process noise, and its covariance matrix is Q (k), i.e., the N matrix in the system.
Equation (21) is the measurement equation: z (k) is a measurement vector, an M-dimensional column vector, where M =4; h (k) is a measurement matrix; v (k) is measurement noise. The core idea of the filling method is to estimate the missing position using a state transition matrix and a measurement matrix.
The initial test state of the system can be obtained by initializing through a two-point difference method:
the covariance matrix of the initial test state error is:
wherein r is the covariance in the normal distribution, and T is the data interval period. After initialization, the kalman filter may start from time k = 2.
The standard deviation of the measurement range data is calculated by the following formula:
where μ is the mean of the states. The Matlab is used for realizing algorithm and simulation environment, different scenes are simulated, the simulator realizes the positioning process under the condition of one label and four anchors, the labels are randomly placed in a three-dimensional space, 4 anchor points are optimally arranged by adopting MPGA (multi-path genetic algorithm), and the measurement results are tested and recorded for 20 times: in the first case, only the TDOA method is considered; another situation is to use both TDOA and kalman filters. The positioning result is shown in fig. 4 (a), and it can be seen that the deviation of TDOA is smaller than that of TDOA and kalman filtering method; fig. 4 (b) shows a Cumulative Distribution Function (CDF) based on the Cyclic Error Probability (CEP). The specific values calculated for 68% of the data for each anchor point are shown in Table 2, and the method using Kalman filtering after the TWR-TDOA algorithm has smaller deviation than the method using the TWR-TDOA algorithm. Simulation results show that measurement errors caused by factors such as environment or equipment can be reduced through Kalman filtering.
TABLE 2 calculated 68% data per anchor point
(II) Experimental verification
The invention performs experiments on indoor and outdoor scenes.
Scene one: outdoor scene
Cloth for outdoor experimental sceneAs shown in FIG. 5 (a), and was carried out in a wheat field. Anchor point 1 is connected with PC as main BS, and anchor 2, anchor 3 and anchor 4 are secondary BS. In this experiment h =40,genmax =10,after calculation by MPGA, anchor point 1 is set to (0, 0), and the other anchor points are set to (0, 470, 370), (490, 370), (495, 470, 0), respectively.
The experimenter holds the label at a constant speed of 0.8m/s, and the real motion trail is a straight line from the midpoint of the Anchor 3 and Anchor 4 base stations to the midpoint of the Anchor 1 and Anchor 2 base stations. The Link PG system is used to acquire mobile data, which is then processed by the method of the present invention, and the result is shown in fig. 5 (b). The upper solid line is the real motion trajectory of the target, and the points are the position results; the line of the dashed color is the result after using kalman filtering, which is the final localization track. The result shows that Kalman filtering converts a dispersed anchor point track into a smooth track curve, and the anchor point track deviating from a real track is corrected to a certain degree.
Scene two: indoor scene
Since GPS signals cannot penetrate buildings and do not work indoors, an indoor location experiment is designed. The scene is shown in FIG. 6 (a), which is 640cm long, 430cm wide and 374cm high. The real target trajectory is a gray rectangle on the table with a height of 80 cm, and an additive white gaussian noise with a mean of 0 and a variance of 0.03 is added. BS a is the primary sensor and the other BSs are secondary sensors. Wherein h =40, genmax =10,after the MPGA is operated, the main station is set to (0, 0), and the other stations are set to (500, 0, 370), (500, 400, 0), (0, 400, 370), respectively. In the indoor experiment, the algorithm proposed by the present invention is also adopted, and the 3D pair of the positioning result and the real track is shown in fig. 6 (b).
Two effective measurement experiments were performed for indoor and outdoor environments. The Root Mean Square Error (RMSE) between the actual position and the estimated position is evaluated. The RMSE calculation is as follows:
wherein (x, y, z) represents the actual position of the tag, (x) k ,y k ,z k ) Representing the estimated location of the tag.
Fig. 7 (a) shows RMSE (root mean square error) of an outdoor scene, and fig. 7 (b) shows RMSE of an indoor scene.
The root mean square error of the outdoor scene position error is 9.8cm, and the indoor scene position error is about 11.21cm. Indoor errors are larger than outdoor errors and may be caused by adjacent frequency electromagnetic interference. The RMSE position error of the whole system to the three-dimensional moving object is about 10cm by combining outdoor and indoor scenes.
Table 3 shows a comparison of the positioning accuracy and implementation of the system of the present invention with other mainstream positioning algorithms.
TABLE 3 comparison of the positioning accuracy and implementation of the system of the present invention with other mainstream positioning algorithms
When using the TWR-TDOA solution and layout optimization, the system of the present invention has the best accuracy performance, with the advantage that it can adapt to different environments.
Claims (6)
1. A realization method of a UWB positioning and tracking system based on TWR-TDOA estimation and MPGA layout optimization is characterized by comprising the following steps:
s1, setting a real target running track according to indoor and outdoor scenes;
s2, calculating the distance difference between the target and the two base stations by adopting an ADS-TWR algorithm;
s3, obtaining positioning accuracy by adopting a TDOA algorithm according to the distance difference;
s4, obtaining optimal anchor point distribution by adopting a multi-population genetic algorithm;
s5, performing Kalman filtering processing on the TDOA result;
and S6, after the positioning and tracking of the target are completed, comparing the positioning and tracking result with the real motion trail of the target, and carrying out error analysis to obtain the positioning and tracking precision.
2. The method for implementing the TWR-TDOA estimation and MPGA topology optimization based UWB location tracking system according to claim 1, wherein in step S2, the ADS-TWR algorithm with three messages is used to complete ranging, and the formula of the time-of-flight calculation is as follows:
the error formula is as follows:
wherein, T reply1 For the reply delay, T, after Device A base station/tag receives the signal round1 The total time of each round of communication between the Device a base station and the tag; t is a unit of reply2 For the reply delay, T, after the Device B base station/tag receives the signal round2 Total time for each round of communication between Device B base station and tag; the actual frequency of Device A is k of the desired frequency a Multiple, the actual frequency of Device B is k of the desired frequency b And (4) doubling.
3. The method for implementing a TWR-TDOA estimation and MPGA placement optimization based UWB location tracking system according to claim 1, wherein in step S3, a TWR-TDOA location method is adopted, and the model of the location method is a UWB three-dimensional location network composed of one Tag and four UWB anchors; setting the coordinates of a target label as T (x, y, z), the number of ultra-wideband anchor points as M, and one main sensor S 0 And M-1 sub-sensors having coordinates of (x) i ,y i ,z i ) I =1, \ 8230;, M-1; when arriving at each stationIs spacing of t i And the time difference between each secondary sensor and the primary sensor is recorded as Δ ToF i And obtaining the distance difference between each secondary sensor and the main sensor, wherein M is the number of anchor points, and c is the light speed:
Δr i =cΔToF i ;
according to Cramer criterion, solving root r for judging positioning result 0 。
4. The method of claim 3 where the TDOA algorithm has three different positioning results in three dimensions: precision, blur, and loss;
for the case of ambiguous TDOA location results, r 0 Two solutions exist, and the real part of the conjugate complex root is taken;
for the case of accurate TDOA positioning results, r 0 There is a single solution, taking this root as r under the pinpoint result 0 ;
For the case of loss of TDOA location, r 0 And (4) taking the position and the motion state at the previous moment without solution, and filling missing values according to the CV model.
5. The method of claim 4 wherein when no solution exists in the TDOA algorithm, for the position and motion state of the target at the previous time, filling the missing positions with CV models; the CV model is:
X(k+1)=F(k)X(k)+W(k)
Z(k+1)=H(k+1)X(k+1)+V(k+1)
x (k) is a state vector and is an N-dimensional column vector; f (k) is called a state transition matrix; w (k) is process noise, and the covariance matrix is Q (k), which is an N multiplied by N matrix in the system;
z (k) is a measurement vector, an M-dimensional column vector, where M =3; h (k) is a measurement matrix; v (k) is measurement noise.
6. TWR-TDOA-based estimation according to claim 1The method for realizing the UWB positioning and tracking system based on MPGA layout optimization is characterized in that in the step S4, AVER is defined GDOP Average GDOP for one plane, with height h:
m=1,2,…,N;n=1,2,…,K
when the GDOP of the positioning target is minimum, the distribution reaches the optimal state;
the multi-population genetic algorithm optimizing distribution comprises the following steps:
m1, input X 2×12 A range including a given space and a height h of the measurement plane; setting the number of iterations Genmax, choosing to initialize 10 populations and based on X 2×12 Generating a plurality of random coordinates in each population;
m2, in each population, converting the coordinates into binary chromosomes by matching fitness values AVER GDOP (h) Evaluating;
m3, randomly generating a cross probability Pc within the range of 0.7-0.9 and a variation probability Pr within the range of 0.001-0.05;
m4, replacing the worst chromosome of the latter population by the best chromosome of the former population; chromosomes in the first population are replaced by chromosomes in the last population; then selecting the optimal chromosome from each population to form an elite population;
m5, manually selecting chromosomes in the elite population, and decoding the chromosomes from binary chromosomes into ten-value chromosomes; all the converted chromosomes are selected, the minimum value is found out, and the chromosomes are reassembled for the next generation;
m6, executing the step M3 until the constant minimum value of the iteration is equal to Genmax;
m7, outputting the unchanged minimum value AVER GDOP (h) And corresponding anchor point coordinates.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210944228.0A CN115397012A (en) | 2022-08-05 | 2022-08-05 | Realization method of UWB positioning tracking system based on TWR-TDOA estimation and MPGA layout optimization |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210944228.0A CN115397012A (en) | 2022-08-05 | 2022-08-05 | Realization method of UWB positioning tracking system based on TWR-TDOA estimation and MPGA layout optimization |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115397012A true CN115397012A (en) | 2022-11-25 |
Family
ID=84118391
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210944228.0A Pending CN115397012A (en) | 2022-08-05 | 2022-08-05 | Realization method of UWB positioning tracking system based on TWR-TDOA estimation and MPGA layout optimization |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115397012A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116559172A (en) * | 2023-04-23 | 2023-08-08 | 兰州交通大学 | Unmanned aerial vehicle-based steel bridge welding seam detection method and system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109541533A (en) * | 2018-11-26 | 2019-03-29 | 东南大学 | A kind of RFID label tag indoor tracking method and equipment based on Unscented kalman filtering |
CN113074739A (en) * | 2021-04-09 | 2021-07-06 | 重庆邮电大学 | UWB/INS fusion positioning method based on dynamic robust volume Kalman |
-
2022
- 2022-08-05 CN CN202210944228.0A patent/CN115397012A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109541533A (en) * | 2018-11-26 | 2019-03-29 | 东南大学 | A kind of RFID label tag indoor tracking method and equipment based on Unscented kalman filtering |
CN113074739A (en) * | 2021-04-09 | 2021-07-06 | 重庆邮电大学 | UWB/INS fusion positioning method based on dynamic robust volume Kalman |
Non-Patent Citations (1)
Title |
---|
YANPING ZHU ET AL: ""A Real-Time UWB Location and Tracking System Based on TWR-TDOA Estimation and a Simplified MPGA Layout Optimization"", 《MOBILE INFORMATION SYSTEMS》, 31 July 2022 (2022-07-31), pages 1 - 10 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116559172A (en) * | 2023-04-23 | 2023-08-08 | 兰州交通大学 | Unmanned aerial vehicle-based steel bridge welding seam detection method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Gan et al. | Deep learning for weights training and indoor positioning using multi-sensor fingerprint | |
CN107396322A (en) | Indoor orientation method based on route matching Yu coding and decoding Recognition with Recurrent Neural Network | |
CN102231912A (en) | RSSI ranging-based positioning method for indoor wireless sensor network | |
Fan et al. | A structured bidirectional LSTM deep learning method for 3D terahertz indoor localization | |
CN103220777A (en) | Mobile device positioning system | |
CN112584311B (en) | Indoor three-dimensional space fingerprint positioning method based on WKNN fusion | |
CN112533136B (en) | WLAN fingerprint positioning method based on deep learning | |
CN111461251A (en) | Indoor positioning method of WiFi fingerprint based on random forest and self-encoder | |
CN111698695A (en) | LTE fingerprint type positioning method based on neural network | |
CN106792516B (en) | 3-D positioning method based on radio communication base station | |
CN115397012A (en) | Realization method of UWB positioning tracking system based on TWR-TDOA estimation and MPGA layout optimization | |
Tan et al. | An efficient fingerprint database construction approach based on matrix completion for indoor localization | |
CN116908778A (en) | Track section positioning method, track section positioning device, electronic equipment and medium | |
CN107566981B (en) | Indoor high-precision positioning method, device and system based on optimal path | |
CN111263295A (en) | WLAN indoor positioning method and device | |
Wu et al. | Research on RSS based indoor location method | |
CN114205741B (en) | TOA and position fingerprint combined indoor positioning method based on UWB | |
CN111565452B (en) | Indoor positioning fingerprint database comprehensive generation method based on WiFi multipath similarity | |
CN114173281A (en) | Optimal layout method of beacon nodes of positioning system based on TOA (time of arrival) under indoor NLOS (non-line of sight) environment | |
Zhang et al. | RETRACTED: Indoor 3-D localization based on simulated annealing bat algorithm | |
Zhu et al. | A Real‐Time UWB Location and Tracking System Based on TWR‐TDOA Estimation and a Simplified MPGA Layout Optimization | |
Altaf Khattak | Fawad; Nasralla, MM; Esmail, MA; Mostafa, H.; Jia, M. WLAN RSS-Based Fingerprinting for Indoor Localization: A Machine Learning Inspired Bag-of-Features Approach | |
Deng et al. | A dynamic adaptive positioning method based on differential signal feature map | |
CN113709659B (en) | Self-adaptive indoor positioning method based on region division | |
Lei et al. | Robust cooperative indoor localization based on reliability evaluation |
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 |