CN115307644A - A 3D Positioning Model Based on UWB - Google Patents

A 3D Positioning Model Based on UWB Download PDF

Info

Publication number
CN115307644A
CN115307644A CN202211022690.1A CN202211022690A CN115307644A CN 115307644 A CN115307644 A CN 115307644A CN 202211022690 A CN202211022690 A CN 202211022690A CN 115307644 A CN115307644 A CN 115307644A
Authority
CN
China
Prior art keywords
data
target point
uwb
point
positioning
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
Application number
CN202211022690.1A
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.)
Southwest Petroleum University
Original Assignee
Southwest Petroleum 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 Southwest Petroleum University filed Critical Southwest Petroleum University
Priority to CN202211022690.1A priority Critical patent/CN115307644A/en
Publication of CN115307644A publication Critical patent/CN115307644A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/20Instruments for performing navigational calculations
    • G01C21/206Instruments for performing navigational calculations specially adapted for indoor navigation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/16Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/18Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Physics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Remote Sensing (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • General Engineering & Computer Science (AREA)
  • Algebra (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Probability & Statistics with Applications (AREA)
  • Operations Research (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Automation & Control Theory (AREA)
  • Computing Systems (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

本发明公开了一种基于UWB的三维定位模型,步骤如下:在应用环境中设定一个基准点,将环境空间三维化;在边缘位置设置n个UWB锚点,n为大于等于3的自然数;设置测试靶点,利用UWB技术采集锚点与靶点之间的距离;数据分类和清洗,剔除无用数据;结合Chan算法、泰勒级数定位算法和卡尔曼滤波法建立定位模型,通过该模型即可对环境内任意物体进行三维定位。本发明结合数据采集、分类、定位和降噪算法建立定位模型,采用测试靶点对模型算法进行纠偏,能够广泛运用于各种货物室内定位问题,监视和定位不同时刻的货物位置,根据采集数据的时间顺序可复现货物历史移动轨迹,该定位模型具有较高的准确性、有效性和适用性。

Figure 202211022690

The invention discloses a three-dimensional positioning model based on UWB. The steps are as follows: a reference point is set in an application environment to make the environment space three-dimensional; n UWB anchor points are set at edge positions, where n is a natural number greater than or equal to 3; Set the test target point, use UWB technology to collect the distance between the anchor point and the target point; classify and clean the data to eliminate useless data; combine the Chan algorithm, Taylor series positioning algorithm and Kalman filtering method to establish a positioning model, through this model, namely Three-dimensional positioning of any object in the environment can be performed. The invention combines data collection, classification, positioning and noise reduction algorithms to establish a positioning model, uses test targets to correct the deviation of the model algorithm, can be widely used in various indoor positioning problems of goods, monitors and locates the positions of goods at different times, and collects data according to the collected data. The chronological order of the time sequence can reproduce the historical movement trajectory of the object, and the positioning model has high accuracy, validity and applicability.

Figure 202211022690

Description

一种基于UWB的三维定位模型A 3D Positioning Model Based on UWB

技术领域technical field

本发明涉及室内定位领域,特别涉及一种基于UWB的三维定位模型。The invention relates to the field of indoor positioning, in particular to a UWB-based three-dimensional positioning model.

背景技术Background technique

超宽带(UWB)技术是一种无需任何载波,通过发送纳秒级脉冲而完成数据传输的短距离范围内无线通信技术,并且信号传输过程中的功耗仅仅有几十μW。UWB在室内精确的定位将会对卫星导航起到一个极好的补充作用,可在军事及民用领域有广泛应用,比如:电力、医疗、化工行业、隧道施工、危险区域管控等。UWB技术的定位原理是在测试环境中放置若干UWB锚点,锚点向所有方向发送信号。靶点是UWB标签,即需要定位的目标(只在测试环境范围内)。靶点接收到UWB锚点的信号,然后分别解算出靶点与各锚点距离数据。Ultra-wideband (UWB) technology is a short-distance wireless communication technology that completes data transmission by sending nanosecond pulses without any carrier, and the power consumption during signal transmission is only tens of μW. The precise indoor positioning of UWB will play an excellent supplementary role to satellite navigation, and can be widely used in military and civilian fields, such as: electric power, medical treatment, chemical industry, tunnel construction, dangerous area control, etc. The positioning principle of UWB technology is to place several UWB anchor points in the test environment, and the anchor points send signals to all directions. The target is the UWB tag, that is, the target that needs to be located (only within the scope of the test environment). The target point receives the signal of the UWB anchor point, and then calculates the distance data between the target point and each anchor point.

在室内定位的应用中,UWB技术可以实现厘米级的定位精度,但还存在以下缺点:In the application of indoor positioning, UWB technology can achieve centimeter-level positioning accuracy, but there are still the following disadvantages:

1、UWB采集数据为各锚点与靶点的距离数据,不能直接用于目标靶点的定位监视;1. The data collected by UWB is the distance data between each anchor point and the target point, which cannot be directly used for the positioning and monitoring of the target point;

2、由于室内环境复杂多变,UWB通信信号极易受到遮挡;2. Due to the complex and changeable indoor environment, UWB communication signals are easily blocked;

3、在较强干扰时,数据会发生异常波动,基本无法完成室内定位。3. When there is strong interference, the data will fluctuate abnormally, and it is basically impossible to complete indoor positioning.

发明内容Contents of the invention

针对上述问题,本发明旨在提供一种基于UWB的三维定位模型。该模型克服了现有技术缺陷,利用UWB无线通信技术采集数据信号,对异常数据和干扰数据进行分类和滤除,结合Chan算法、泰勒级数定位算法和卡尔曼滤波法建立定位模型,采用测试靶点进行纠偏,将UWB距离数据解算成目标物体的空间三维位置,根据采集时间顺序可描绘出目标靶点的运动轨迹。该方法具有较高的准确性、有效性和适用性,能够很好的解决室内物体定位和移动轨迹监视问题,同时也可用于不同的实际场景。In view of the above problems, the present invention aims to provide a UWB-based three-dimensional positioning model. The model overcomes the defects of the existing technology, uses UWB wireless communication technology to collect data signals, classifies and filters abnormal data and interference data, and combines Chan algorithm, Taylor series positioning algorithm and Kalman filtering method to establish a positioning model, adopts test The target point is corrected, and the UWB distance data is calculated into the spatial three-dimensional position of the target object, and the movement trajectory of the target point can be depicted according to the acquisition time sequence. This method has high accuracy, effectiveness and applicability, and can well solve the problems of indoor object positioning and moving track monitoring, and can also be used in different actual scenarios.

本发明解决上述技术问题所提供的技术方案是:一种基于UWB的三维定位模型,包括以下步骤:The technical solution provided by the present invention to solve the above-mentioned technical problems is: a three-dimensional positioning model based on UWB, comprising the following steps:

S1、在应用环境中设定一个基准点,基于该点将场地空间三维化。S1. Set a reference point in the application environment, based on which the site space is three-dimensionalized.

S2、在边缘位置设置n个UWB锚点,UWB锚点向四周所有方向发射信号。S2. Set n UWB anchor points at the edge, and the UWB anchor points transmit signals to all directions around.

作为选优,n是大于等于3的自然数。Preferably, n is a natural number greater than or equal to 3.

S3、设置测试靶点,靶点可接收来自锚点发射的信号并反射给锚点。S3. Setting a test target point, the target point can receive the signal transmitted from the anchor point and reflect it to the anchor point.

作为选优,采用飞行时间(TOF)测距,根据锚点发射、接收信号的时间差和信号传播速度即可求得锚点与靶点之间的距离,所述距离可由下式求得:As an optimization, time-of-flight (TOF) ranging is adopted, and the distance between the anchor point and the target point can be obtained according to the time difference between the anchor point transmitting and receiving signals and the signal propagation speed, and the distance can be obtained by the following formula:

d=c×Δt/2 (1)d=c×Δt/2 (1)

式中:d为锚点与靶点之间的距离,mm;c为光速,取3×105km/s;Δt为锚点发送和接收信号的时间差,s。In the formula: d is the distance between the anchor point and the target point, mm; c is the speed of light, which is 3×10 5 km/s; Δt is the time difference between sending and receiving signals of the anchor point, s.

S4、数据分类和清洗,剔除无用数据,提高数据精度,减少运算时间和工作量。锚点与靶点之间每0.2—0.3秒之间就会发送、接收信号一次,在同一位置点,UWB会采集到多组数据,靶点在同一位置的停留时间越长,组数就越多。所以在采集过程中,靶点的停留时间、障碍物、信号干扰等问题,会产生许多无用(异常、缺失、相同)数据。将靶点与锚点的距离记为

Figure BDA0003814663470000021
(i=1,2,3,...,n;k=1,2,3,...,m,n为锚点个数,m为样本组数)。S4. Data classification and cleaning, eliminating useless data, improving data accuracy, and reducing computing time and workload. The anchor point and the target point will send and receive signals every 0.2-0.3 seconds. At the same point, UWB will collect multiple sets of data. The longer the target point stays at the same position, the more the number of sets will be. many. Therefore, during the acquisition process, many useless (abnormal, missing, identical) data will be generated due to problems such as the residence time of the target, obstacles, and signal interference. Record the distance between the target point and the anchor point as
Figure BDA0003814663470000021
(i=1, 2, 3, . . . , n; k=1, 2, 3, . . . , m, n is the number of anchor points, and m is the number of sample groups).

作为选优,所述异常数据的定义为:对于某个靶点位置的数据文件,其存在若干组样本数据,根据3σ准则,若某样本数据与平均值的偏差超过两倍标准差,则称该组数据为异常数据。当偏差超过三倍标准差,称为高度异常的异常值。As an optimization, the definition of abnormal data is: for the data file of a certain target point, there are several sets of sample data. According to the 3σ rule, if the deviation between a certain sample data and the average value exceeds two standard deviations, it is called This set of data is abnormal data. When the deviation exceeds three standard deviations, it is called a highly abnormal outlier.

作为选优,所述缺失数据的定义为:对于某个靶点位置的数据文件,其存在若干组样本数据,若某组样本数据测得的锚点测距值为空/0,则视为该组数据为缺失数据。As an optimization, the definition of missing data is: for a data file of a certain target point position, there are several sets of sample data, if the anchor point ranging value measured by a certain set of sample data is empty/0, it is considered as This set of data is missing data.

作为选优,所述相同数据的定义为:对于某个靶点位置的数据文件,其存在若干组样本数据,以一组样本数据作为研究对象,若第k组数据的锚点与靶点的距离与第k’组数据对应相同,即

Figure BDA0003814663470000022
(k、k’=1,2,3,...,n,且k≠k’),则视为第k组样本数据与第k’组样本数据为相同数据。As an optimization, the definition of the same data is: for the data file of a certain target point position, there are several sets of sample data, and a set of sample data is used as the research object, if the anchor point of the kth set of data is the same as that of the target point The distance is the same as that of the k'th group of data, namely
Figure BDA0003814663470000022
(k, k'=1, 2, 3, . . . , n, and k≠k'), it is considered that the sample data of the kth group and the sample data of the k'th group are the same data.

无用数据的数学模型可表示为:The mathematical model of useless data can be expressed as:

Figure BDA0003814663470000023
Figure BDA0003814663470000023

式中:

Figure BDA0003814663470000024
为平均值;
Figure BDA0003814663470000025
为标准差。In the formula:
Figure BDA0003814663470000024
is the average value;
Figure BDA0003814663470000025
is the standard deviation.

S5、建立定位模型,用测试靶点进行数据纠偏,提高定位精度,所述定位模型通过以下子步骤进行确定:S5. Establish a positioning model, use the test target to correct data deviation, and improve the positioning accuracy. The positioning model is determined through the following sub-steps:

S51、利用Chan算法计算靶点的初始估计位置。设测试靶点的定位坐标T(x,y,z),锚点坐标位置Ai(xi,yi,zi),靶点与锚点的测距di。由于干扰、温度漂移和电容耦合等问题,UWB测量技术通常会造成测距误差,即di≠(x-xi)2+(y-yi)2+(z-zi)2。假设测试靶点与锚点的空间距离为

Figure BDA0003814663470000026
则有:S51. Using the Chan algorithm to calculate the initial estimated position of the target. Suppose the positioning coordinates T(x, y, z) of the test target point, the anchor point coordinate position A i ( xi , y i , z i ), and the distance d i between the target point and the anchor point. Due to problems such as interference, temperature drift and capacitive coupling, UWB measurement technology usually causes ranging errors, that is, d i ≠(xx i ) 2 +(yy i ) 2 +(zz i ) 2 . Suppose the spatial distance between the test target point and the anchor point is
Figure BDA0003814663470000026
Then there are:

Figure BDA0003814663470000031
Figure BDA0003814663470000031

对于某组靶点与锚点的空间距离,可以表示为:For the spatial distance between a certain set of target points and anchor points, it can be expressed as:

Figure BDA0003814663470000032
Figure BDA0003814663470000032

Figure BDA0003814663470000033
Figure BDA0003814663470000033

作为选优,要求靶点的测距与空间距离误差尽可能小。假设,各个锚点的距离测量误差为Δdi,则有

Figure BDA0003814663470000034
设误差为ε=(εi)n×1,则有:As an optimization, it is required that the ranging and spatial distance errors of the target point be as small as possible. Assuming that the distance measurement error of each anchor point is Δd i , then
Figure BDA0003814663470000034
Let the error be ε=(ε i ) n×1 , then:

Figure BDA0003814663470000035
Figure BDA0003814663470000035

作为选优,通常

Figure BDA0003814663470000036
故有
Figure BDA0003814663470000037
那么,有:As an option, usually
Figure BDA0003814663470000036
Therefore there
Figure BDA0003814663470000037
Then, there are:

ε≈2D(Δd) (7)ε≈2D(Δd) (7)

式中:

Figure BDA0003814663470000038
Δd=[Δd1 Δd2 … Δdn]。In the formula:
Figure BDA0003814663470000038
Δd=[Δd 1 Δd 2 . . . Δd n ].

作为选优,令σ为误差阀值,测量误差向量Δd的协方差矩阵为

Figure BDA0003814663470000039
那么误差向量ε的协方差矩阵为:As an optimization, let σ be the error threshold, and the covariance matrix of the measurement error vector Δd is
Figure BDA0003814663470000039
Then the covariance matrix of the error vector ε is:

φ=E(εεT)=4DE(Δd(Δd)T)D=4DQD (8)φ=E(εε T )=4DE(Δd(Δd) T )D=4DQD (8)

作为选优,设靶点的初始估计位置为

Figure BDA00038146634700000310
为使得误差最小,运用加权最小二乘法计算,计算公式为:As an optimization, let the initial estimated position of the target point be
Figure BDA00038146634700000310
In order to minimize the error, the weighted least square method is used for calculation, and the calculation formula is:

Figure BDA00038146634700000311
Figure BDA00038146634700000311

S52、利用非视距残差鉴别法计算初始估计位置的定位残差,而后将初始估计位置的定位残差与给定的阀值相比较,求出靶点观测位置。S52. Using the non-line-of-sight residual discrimination method to calculate the positioning residual of the initial estimated position, and then compare the positioning residual of the initial estimated position with a given threshold to obtain the target observation position.

作为选优,如果初始估计位置的定位残差值小于等于给定的阀值,则该位置足够精确,称之为观测位置;反之,则需要用泰勒级数算法迭代求解观测位置。As an option, if the positioning residual value of the initial estimated position is less than or equal to a given threshold, then the position is accurate enough and is called the observed position; otherwise, Taylor series algorithm needs to be used to iteratively solve the observed position.

作为选优,设靶点的初始估计位置

Figure BDA0003814663470000041
与精确坐标(x0,y0,z0)各分量的误差对应的误差向量为δ=(Δx,Δy,Δz)T。将空间距离表达式在
Figure BDA0003814663470000042
处利用Taylor公式进行一阶展开,有:As an optimization, set the initial estimated position of the target point
Figure BDA0003814663470000041
The error vector corresponding to the error of each component of the exact coordinates (x 0 , y 0 , z 0 ) is δ=(Δx, Δy, Δz) T . Put the spatial distance expression in
Figure BDA0003814663470000042
Use the Taylor formula to carry out the first-order expansion, which is:

Figure BDA0003814663470000043
Figure BDA0003814663470000043

式中:

Figure BDA0003814663470000044
为靶点的初始估计位置与锚点的空间距离;di0为靶点的精确坐标与锚点的空间距离。In the formula:
Figure BDA0003814663470000044
is the spatial distance between the initial estimated position of the target point and the anchor point; d i0 is the spatial distance between the precise coordinates of the target point and the anchor point.

作为选优,误差可以表示为ε=(εi)n×1。令:

Figure BDA0003814663470000045
通过加权最小二乘法得到误差向量的迭代式如下:As an option, the error can be expressed as ε=(ε i ) n×1 . make:
Figure BDA0003814663470000045
The iterative formula for obtaining the error vector by the weighted least square method is as follows:

Figure BDA0003814663470000046
Figure BDA0003814663470000046

式中:Q为测量误差的协方差矩阵。In the formula: Q is the covariance matrix of the measurement error.

作为选优,根据误差向量δ的迭代式,可以得到

Figure BDA0003814663470000047
的值,将这个值与阈值
Figure BDA0003814663470000048
进行比较。若
Figure BDA0003814663470000049
小于阈值,则该位置足够精确,这时的(x,y,z)称之为观测位置;反之,则需要通过坐标迭代式
Figure BDA00038146634700000410
进行迭代计算,直到
Figure BDA00038146634700000411
小于阈值。As an optimization, according to the iterative formula of the error vector δ, we can get
Figure BDA0003814663470000047
value, compare this value with the threshold
Figure BDA0003814663470000048
Compare. like
Figure BDA0003814663470000049
is less than the threshold, the position is accurate enough, and the (x, y, z) at this time is called the observation position; otherwise, it is necessary to pass the coordinate iterative formula
Figure BDA00038146634700000410
Perform iterative calculations until
Figure BDA00038146634700000411
less than the threshold.

S53、运用卡尔曼滤波算法去除测距噪声和干扰噪声以提高定位精准性,最后得出靶点的预测位置。S53. Use the Kalman filter algorithm to remove ranging noise and interference noise to improve positioning accuracy, and finally obtain the predicted position of the target.

作为选优,卡尔曼滤波分为预测过程和更新过程,预测过程如下:As an optimization, Kalman filtering is divided into a prediction process and an update process. The prediction process is as follows:

Figure BDA00038146634700000412
Figure BDA00038146634700000412

式中:Xk,k-1表示在k时刻状态矩阵的估计值;Xk-1表示k-1时刻状态矩阵的估计值;Fk-1为k-1时刻到k时刻的状态转移矩阵;Pk-1表示k-1时刻的状态协方差矩阵;Pk,k-1表示k时刻的状态协方差矩阵;过程噪声wk~N(0,Qk)。In the formula: X k,k-1 represents the estimated value of the state matrix at time k; X k-1 represents the estimated value of the state matrix at time k-1; F k-1 is the state transition matrix from time k-1 to time k ; P k-1 represents the state covariance matrix at time k-1; P k,k-1 represents the state covariance matrix at time k; process noise w k ~N(0,Q k ).

作为选优,利用卡尔曼滤波算法的更新迭代,求得预测位置

Figure BDA0003814663470000051
更新过程如下:As an optimization, use the update iteration of the Kalman filter algorithm to obtain the predicted position
Figure BDA0003814663470000051
The update process is as follows:

Figure BDA0003814663470000052
Figure BDA0003814663470000052

式中:观测向量Zk=HkXk,k-1+vk

Figure BDA0003814663470000053
观测噪声vk~N(0,Rk);Kk为卡尔曼增益;Rk为观测噪声矩阵。In the formula: observation vector Z k =H k X k,k-1 +v k ,
Figure BDA0003814663470000053
Observation noise v k ~N(0,R k ); K k is the Kalman gain; R k is the observation noise matrix.

作为选优,针对异常情况,提出了自适应抗差卡尔曼滤波。其思想即是在卡尔曼滤波算法的基础上,对协方差Rk,Qk进行了修正。其修正过程如下:As an optimization, an adaptive robust Kalman filter is proposed for abnormal situations. The idea is to modify the covariance R k and Q k on the basis of the Kalman filter algorithm. The correction process is as follows:

观测噪声vk=Zk-HkXk,k-1,协方差矩阵为

Figure BDA0003814663470000054
在不考虑非视距误差且测量环境状况较好时,有vk~N(0,Rk)。然而,当靶点与锚点之间存在干扰时,测距会出现异常值,可认为
Figure BDA0003814663470000055
其中
Figure BDA0003814663470000056
为准确距离。从而,可以设置检验测量值是否为异常的条件为:Observation noise v k = Z k -H k X k,k-1 , the covariance matrix is
Figure BDA0003814663470000054
When the non-line-of-sight error is not considered and the measurement environment is in good condition, v k ∼ N(0,R k ). However, when there is interference between the target point and the anchor point, there will be outliers in ranging, which can be considered as
Figure BDA0003814663470000055
in
Figure BDA0003814663470000056
for the exact distance. Thus, the conditions for checking whether the measured value is abnormal can be set as:

Figure BDA0003814663470000057
Figure BDA0003814663470000057

式中:c为阈值;

Figure BDA0003814663470000058
In the formula: c is the threshold;
Figure BDA0003814663470000058

对于Rk的修正公式如下:The revised formula for R k is as follows:

Figure BDA0003814663470000059
Figure BDA0003814663470000059

作为选优,利用改进的Sage-Husa滤波对系统噪声的协方差矩阵进行实时估计:As an optimization, the improved Sage-Husa filter is used to estimate the covariance matrix of the system noise in real time:

Figure BDA00038146634700000510
Figure BDA00038146634700000510

式中:αk=(1-b)/(1-bk+1),遗忘因子0<b<1。In the formula: α k =(1-b)/(1-b k+1 ), forgetting factor 0<b<1.

S6、依据该定位模型,即可对当前应用环境中的任意物体进行定位,同时根据定位目标采集数据的时间顺序监视并复现运动轨迹。S6. According to the positioning model, any object in the current application environment can be positioned, and at the same time, the motion track can be monitored and reproduced according to the time sequence of the data collected by the positioning target.

与现有技术相比,本发明具有以下有益效果:Compared with the prior art, the present invention has the following beneficial effects:

本发明的一种基于UWB的三维定位模型,解决了UWB无线通信技术信号干扰问题,对无用数据进行滤除,减少了运算时间和工作量,提高了数据精度。结合Chan算法、泰勒级数定位算法和卡尔曼滤波法对目标靶点位置进行定位,提高了定位精度。还可以根据采集数据的时间顺序复现目标靶点的运动轨迹。该方法减少运算时间的同时提高了定位模型的准确性,能够很好的解决室内物体定位和移动轨迹监视问题。The UWB-based three-dimensional positioning model of the present invention solves the signal interference problem of UWB wireless communication technology, filters out useless data, reduces computing time and workload, and improves data accuracy. Combining Chan algorithm, Taylor series positioning algorithm and Kalman filter method to locate the target position, the positioning accuracy is improved. The trajectory of the target point can also be reproduced according to the time sequence of the collected data. This method improves the accuracy of the positioning model while reducing the calculation time, and can well solve the problems of indoor object positioning and moving track monitoring.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对实施例的附图作简单地介绍,显而易见地,下面描述中的附图仅仅涉及本发明的一些实施例,而非对本发明的限制。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the accompanying drawings of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description only relate to some embodiments of the present invention, rather than limiting the present invention .

图1为一个实施例的测试环境锚点布置示意图。Fig. 1 is a schematic diagram of an embodiment of an anchor point arrangement in a test environment.

图2为一个实施例的定位模型流程示意图。Fig. 2 is a schematic flow diagram of a positioning model of an embodiment.

图中标号:Labels in the figure:

1-测试靶点、2-UWB锚点。1-Test target point, 2-UWB anchor point.

具体实施方式Detailed ways

下面结合附图和实施例对本发明进一步说明。需要指出的是,除非另有指明,本申请使用的所有技术和科学术语具有与本申请所属技术领域的普通技术人员通常理解的相同含义。The present invention will be further described below in conjunction with the accompanying drawings and embodiments. It should be noted that, unless otherwise specified, all technical and scientific terms used in this application have the same meaning as commonly understood by those of ordinary skill in the art to which this application belongs.

在本发明中,在未作相反说明的情况下,使用的术语“第一”、“第二”等是用于区别类似的对象,而不是用于描述特定的顺序或先后次序。应该理解这样使用的术语;使用的术语中“上”、“下”、“左”、“右”等通常是针对附图所示的方向而言,或者是针对部件本身在竖直、垂直或重力方向上而言;同样地,为便于理解和描述,“内”、“外”等是指相对于各部件本身的轮廓的内、外。但上述方位词并不用于限制本发明。In the present invention, the terms "first", "second" and the like are used to distinguish similar objects, rather than to describe a specific order or sequence, unless stated otherwise. The terms used should be understood as such; use of the terms "upper", "lower", "left", "right", etc. generally refers to the orientation shown in the drawings, or to the parts themselves in vertical, perpendicular or In terms of the direction of gravity; similarly, for the convenience of understanding and description, "inner", "outer", etc. refer to the inner and outer relative to the outline of each component itself. But the above location words are not used to limit the present invention.

本发明提供的一种基于UWB的三维定位模型,包括以下步骤:A kind of UWB-based three-dimensional positioning model provided by the invention comprises the following steps:

S10、在应用环境中设定一个基准点,基于该点将场地空间三维化。S10, setting a reference point in the application environment, and based on this point, the site space is three-dimensionalized.

在一个具体的实施例中,基准点和空间三维坐标系如图1所示。In a specific embodiment, the reference point and the three-dimensional coordinate system are as shown in FIG. 1 .

S20、在边缘位置设置n个UWB锚点,UWB锚点向四周所有方向发射信号。S20. Set n UWB anchor points at the edge, and the UWB anchor points transmit signals to all directions around.

在一个具体的实施例中,如图1所示。应用环境中设置了4个UWB锚点。In a specific embodiment, as shown in FIG. 1 . Four UWB anchor points are set in the application environment.

S30、设置测试靶点,靶点可接收来自锚点发射的信号并反射给锚点。S30, setting a test target point, the target point can receive the signal transmitted from the anchor point and reflect it to the anchor point.

作为选优,UWB采用飞行时间(TOF)测距,根据锚点发射、接收信号的时间差和信号传播速度即可求得锚点与靶点之间的距离,所述距离可由下式求得:As an optimization, UWB adopts time-of-flight (TOF) ranging, and the distance between the anchor point and the target point can be obtained according to the time difference between the anchor point transmitting and receiving signals and the signal propagation speed, and the distance can be obtained by the following formula:

d=c×Δt/2 (1)d=c×Δt/2 (1)

式中:d为锚点与靶点之间的距离,mm;c为光速,取3×105km/s;Δt为锚点发送和接收信号的时间差,s。In the formula: d is the distance between the anchor point and the target point, mm; c is the speed of light, which is 3×10 5 km/s; Δt is the time difference between sending and receiving signals of the anchor point, s.

在一个具体的实施例中,某组采集得到的样本数据表示为:In a specific embodiment, the sample data collected by a certain group is expressed as:

T:104825146:RR:0:0:1320:1320:21:3349T:104825146:RR:0:0:1320:1320:21:3349

T:104825146:RR:0:1:3950:3950:21:3349T:104825146:RR:0:1:3950:3950:21:3349

T:104825146:RR:0:2:4540:4540:21:3349T:104825146:RR:0:2:4540:4540:21:3349

T:104825146:RR:0:3:5760:5760:21:3349T:104825146:RR:0:3:5760:5760:21:3349

(Tag标识:时间戳:Range Report的缩写:Tag ID:锚点ID:该锚点的测距值(mm):校验值:数据序列号:数据编号)(Tag identification: Timestamp: Abbreviation of Range Report: Tag ID: Anchor point ID: Distance measurement value of the anchor point (mm): Check value: Data serial number: Data number)

S40、数据分类和清洗,剔除无用数据,提高数据精度,减少运算时间和工作量。锚点与靶点之间每0.2—0.3秒之间就会发送、接收信号一次,在同一位置点,UWB会采集到多组数据,靶点在同一位置的停留时间越长,组数就越多。所以在采集过程中,靶点的停留时间、障碍物、信号干扰等问题,会产生许多无用(异常、缺失、相同)数据。将靶点与锚点的距离记为

Figure BDA0003814663470000071
(i=1,2,3,...,n;k=1,2,3,...,m,n为锚点个数,m为样本组数)。S40. Data classification and cleaning, eliminating useless data, improving data accuracy, and reducing computing time and workload. The anchor point and the target point will send and receive signals every 0.2-0.3 seconds. At the same point, UWB will collect multiple sets of data. The longer the target point stays at the same position, the more the number of sets will be. many. Therefore, during the acquisition process, many useless (abnormal, missing, identical) data will be generated due to problems such as the residence time of the target, obstacles, and signal interference. Record the distance between the target point and the anchor point as
Figure BDA0003814663470000071
(i=1, 2, 3, . . . , n; k=1, 2, 3, . . . , m, n is the number of anchor points, and m is the number of sample groups).

作为选优,所述异常数据的定义为:对于某个靶点位置的数据文件,其存在若干组样本数据,根据3σ准则,若某样本数据与平均值的偏差超过两倍标准差,则称该组数据为异常数据。当偏差超过三倍标准差,称为高度异常的异常值。As an optimization, the definition of abnormal data is: for the data file of a certain target point, there are several sets of sample data. According to the 3σ rule, if the deviation between a certain sample data and the average value exceeds two standard deviations, it is called This set of data is abnormal data. When the deviation exceeds three standard deviations, it is called a highly abnormal outlier.

作为选优,所述缺失数据的定义为:对于某个靶点位置的数据文件,其存在若干组样本数据,若某组样本数据测得的锚点测距值为空/0,则视为该组数据为缺失数据。As an optimization, the definition of missing data is: for a data file of a certain target point position, there are several sets of sample data, if the anchor point ranging value measured by a certain set of sample data is empty/0, it is considered as This set of data is missing data.

作为选优,所述相同数据的定义为:对于某个靶点位置的数据文件,其存在若干组样本数据,以一组样本数据作为研究对象,若第k组数据的锚点与靶点的距离与第k’组数据对应相同,即

Figure BDA0003814663470000072
(k、k’=1,2,3,...,n,且k≠k’),则视为第k组样本数据与第k’组样本数据为相同数据。As an optimization, the definition of the same data is: for the data file of a certain target point position, there are several sets of sample data, and a set of sample data is used as the research object, if the anchor point of the kth set of data is the same as that of the target point The distance is the same as that of the k'th group of data, namely
Figure BDA0003814663470000072
(k, k'=1, 2, 3, . . . , n, and k≠k'), it is considered that the sample data of the kth group and the sample data of the k'th group are the same data.

无用数据的数学模型可表示为:The mathematical model of useless data can be expressed as:

Figure BDA0003814663470000073
Figure BDA0003814663470000073

式中:

Figure BDA0003814663470000074
为平均值;
Figure BDA0003814663470000075
为标准差。In the formula:
Figure BDA0003814663470000074
is the average value;
Figure BDA0003814663470000075
is the standard deviation.

S5、建立定位模型,用测试靶点进行数据纠偏,提高定位精度,所述定位模型通过以下子步骤进行确定:S5. Establish a positioning model, use the test target to correct data deviation, and improve the positioning accuracy. The positioning model is determined through the following sub-steps:

S51、利用Chan算法计算靶点初始估计位置。设测试靶点的定位坐标T(x,y,z),锚点坐标位置Ai(xi,yi,zi),待测靶点与锚点的测距di。由于干扰、温度漂移和电容耦合等问题,UWB测量技术通常会造成测距误差,即di≠(x-xi)2+(y-yi)2+(z-zi)2S51. Using the Chan algorithm to calculate the initial estimated position of the target. Suppose the positioning coordinates T(x, y, z) of the test target point, the coordinate position A i ( xi , y i , zi ) of the anchor point, and the distance d i between the target point to be tested and the anchor point. Due to problems such as interference, temperature drift and capacitive coupling, UWB measurement technology usually causes ranging errors, that is, d i ≠(xx i ) 2 +(yy i ) 2 +(zz i ) 2 .

在一个具体的实施例中,如图1所示。4个UWB锚点的坐标为:A0(0,0,1300)、A1(5000,0,1700)、A2(0,5000,1700)、A3(5000,5000,1300)。In a specific embodiment, as shown in FIG. 1 . The coordinates of the four UWB anchor points are: A0 (0, 0, 1300), A1 (5000, 0, 1700), A2 (0, 5000, 1700), A3 (5000, 5000, 1300).

作为选优,假设目标靶点与锚点的空间距离为

Figure BDA0003814663470000081
可表示为:As an optimization, it is assumed that the spatial distance between the target point and the anchor point is
Figure BDA0003814663470000081
Can be expressed as:

Figure BDA0003814663470000082
Figure BDA0003814663470000082

在一个具体的实施例中,对于靶点与锚点的空间距离,可以表示为:In a specific embodiment, the spatial distance between the target point and the anchor point can be expressed as:

Figure BDA0003814663470000083
Figure BDA0003814663470000083

设Xα=[x y z R]T,则由上式可以得到:Suppose X α =[xyz R] T , then it can be obtained from the above formula:

GαXα=Hα (5)G α X α =H α (5)

式中:

Figure BDA0003814663470000084
In the formula:
Figure BDA0003814663470000084

作为选优,要求靶点到各锚点的测距与空间距离要尽可能小,即min||(x-xi)2+(y-yi)2+(z-zi)2-di||。假设,各个锚点的距离测量误差为Δdi,则有

Figure BDA0003814663470000085
设误差为ε=(εi)n×1,则有:As an optimization, the ranging and spatial distance from the target point to each anchor point should be as small as possible, that is, min||(xx i ) 2 +(yy i ) 2 +(zz i ) 2 -d i ||. Assuming that the distance measurement error of each anchor point is Δd i , then
Figure BDA0003814663470000085
Let the error be ε=(ε i ) n×1 , then:

Figure BDA0003814663470000086
Figure BDA0003814663470000086

作为选优,通常

Figure BDA0003814663470000087
故有
Figure BDA0003814663470000088
那么,有:As an option, usually
Figure BDA0003814663470000087
Therefore there
Figure BDA0003814663470000088
Then, there are:

ε≈2D(Δd) (7)ε≈2D(Δd) (7)

式中:

Figure BDA0003814663470000091
Δd=[Δd1 Δd2 Δd3 Δd4]T。In the formula:
Figure BDA0003814663470000091
Δd=[Δd 1 Δd 2 Δd 3 Δd 4 ] T .

作为选优,令σ为误差阀值,测量误差向量Δd的协方差矩阵为

Figure BDA0003814663470000092
那么误差向量ε的协方差矩阵为:As an optimization, let σ be the error threshold, and the covariance matrix of the measurement error vector Δd is
Figure BDA0003814663470000092
Then the covariance matrix of the error vector ε is:

φ=E(εεT)=4DE(Δd(Δd)T)D=4DQD (8)φ=E(εε T )=4DE(Δd(Δd) T )D=4DQD (8)

作为选优,设靶点的初始估计位置为

Figure BDA0003814663470000093
为使得误差最小,运用加权最小二乘法计算,计算式为:As an optimization, let the initial estimated position of the target point be
Figure BDA0003814663470000093
In order to minimize the error, the weighted least square method is used to calculate, and the calculation formula is:

Figure BDA0003814663470000094
Figure BDA0003814663470000094

S52、利用非视距残差鉴别法计算初始估计位置的定位残差,而后将初始估计位置的定位残差与给定的阀值相比较,求出靶点观测位置。S52. Using the non-line-of-sight residual discrimination method to calculate the positioning residual of the initial estimated position, and then compare the positioning residual of the initial estimated position with a given threshold to obtain the target observation position.

作为选优,如果初始估计位置的定位残差值小于等于给定的阀值,则该位置足够精确,称之为观测位置;反之,则需要用泰勒级数定位算法迭代求解观测位置。As an option, if the positioning residual value of the initial estimated position is less than or equal to a given threshold, the position is accurate enough and is called the observed position; otherwise, Taylor series positioning algorithm needs to be used to iteratively solve the observed position.

作为选优,设靶点的初始估计位置

Figure BDA0003814663470000095
与精确坐标(x0,y0,z0)各分量的误差对应的误差向量为δ=(Δx,Δy,Δz)T。将空间距离表达式在
Figure BDA0003814663470000096
处利用Taylor公式进行一阶展开,有:As an optimization, set the initial estimated position of the target point
Figure BDA0003814663470000095
The error vector corresponding to the error of each component of the exact coordinates (x 0 , y 0 , z 0 ) is δ=(Δx, Δy, Δz) T . Put the spatial distance expression in
Figure BDA0003814663470000096
Use the Taylor formula to carry out the first-order expansion, which is:

Figure BDA0003814663470000097
Figure BDA0003814663470000097

式中:

Figure BDA0003814663470000098
为测试靶点的初始估计位置与锚点的空间距离;di0为测试靶点的精确坐标与锚点的空间距离;
Figure BDA0003814663470000099
In the formula:
Figure BDA0003814663470000098
is the spatial distance between the initial estimated position of the test target and the anchor point; d i0 is the spatial distance between the precise coordinates of the test target and the anchor point;
Figure BDA0003814663470000099

作为选优,误差可以表示为ε=(εi)n×1。令:

Figure BDA0003814663470000101
通过加权最小二乘法得到误差向量的迭代式如下:As an option, the error can be expressed as ε=(ε i ) n×1 . make:
Figure BDA0003814663470000101
The iterative formula for obtaining the error vector by the weighted least square method is as follows:

Figure BDA0003814663470000102
Figure BDA0003814663470000102

式中:Q为测量误差的协方差矩阵。In the formula: Q is the covariance matrix of the measurement error.

作为选优,根据误差向量δ的迭代式,可以得到

Figure BDA0003814663470000103
的值,将这个值与阈值
Figure BDA0003814663470000104
进行比较。若
Figure BDA0003814663470000105
小于阈值,则该位置足够精确,这时的(x,y,z)称之为观测位置;反之,则需要通过坐标迭代式
Figure BDA0003814663470000106
进行迭代计算,直到
Figure BDA0003814663470000107
小于阈值。As an optimization, according to the iterative formula of the error vector δ, we can get
Figure BDA0003814663470000103
value, compare this value with the threshold
Figure BDA0003814663470000104
Compare. like
Figure BDA0003814663470000105
is less than the threshold, the position is accurate enough, and the (x, y, z) at this time is called the observation position; otherwise, it is necessary to pass the coordinate iterative formula
Figure BDA0003814663470000106
Perform iterative calculations until
Figure BDA0003814663470000107
less than the threshold.

S53、运用卡尔曼滤波算法去除测距噪声和干扰噪声以提高定位精准性,最后得出靶点的预测位置。S53. Use the Kalman filter algorithm to remove ranging noise and interference noise to improve positioning accuracy, and finally obtain the predicted position of the target.

作为选优,卡尔曼滤波分为预测过程和更新过程,预测过程如下:As an optimization, Kalman filtering is divided into a prediction process and an update process. The prediction process is as follows:

Figure BDA0003814663470000108
Figure BDA0003814663470000108

式中:

Figure BDA0003814663470000109
表示在k时刻状态矩阵的估计值;
Figure BDA00038146634700001010
表示k-1时刻状态矩阵的估计值为Taylor法计算得到的坐标(x,y,z);Fk-1为k-1时刻到k时刻的状态转移矩阵,Fk-1=I3;Pk-1表示k-1时刻的状态协方差矩阵;Pk,k-1表示k时刻的状态协方差矩阵,P0=I3;过程噪声wk~N(0,Qk),
Figure BDA00038146634700001011
In the formula:
Figure BDA0003814663470000109
Indicates the estimated value of the state matrix at time k;
Figure BDA00038146634700001010
Representing the estimated value of the state matrix at k-1 time is the coordinates (x, y, z) calculated by Taylor method; F k-1 is the state transition matrix from k-1 time to k time, F k-1 =I 3 ; P k-1 represents the state covariance matrix at time k-1; P k,k-1 represents the state covariance matrix at time k, P 0 =I 3 ; process noise w k ~N(0,Q k ),
Figure BDA00038146634700001011

作为选优,利用卡尔曼滤波算法的更新迭代,求得预测位置

Figure BDA00038146634700001012
更新过程如下:As an optimization, use the update iteration of the Kalman filter algorithm to obtain the predicted position
Figure BDA00038146634700001012
The update process is as follows:

Figure BDA0003814663470000111
Figure BDA0003814663470000111

式中:观测向量

Figure BDA0003814663470000112
观测噪声vk~N(0,Rk);卡尔曼增益为Kk,其大小表示更相信预测值
Figure BDA0003814663470000113
还是观测值
Figure BDA0003814663470000114
观测噪声矩阵
Figure BDA0003814663470000115
In the formula: observation vector
Figure BDA0003814663470000112
Observation noise v k ~N(0,R k ); Kalman gain is K k , and its size indicates more confidence in the predicted value
Figure BDA0003814663470000113
or observations
Figure BDA0003814663470000114
observation noise matrix
Figure BDA0003814663470000115

作为选优,针对异常情况,提出了自适应抗差卡尔曼滤波。其思想即是在卡尔曼滤波算法的基础上,对协方差Rk,Qk进行了修正。其修正过程如下:As an optimization, an adaptive robust Kalman filter is proposed for abnormal situations. The idea is to modify the covariance R k and Q k on the basis of the Kalman filter algorithm. The correction process is as follows:

观测噪声

Figure BDA0003814663470000116
协方差矩阵为
Figure BDA0003814663470000117
在不考虑非视距误差且测量环境状况较好时,有vk~N(0,Rk)。然而,当靶点与锚点之间存在干扰时,测距会出现异常值,可认为
Figure BDA0003814663470000118
其中
Figure BDA0003814663470000119
为准确距离。从而,可以设置检验测量值是否为异常的条件为:observation noise
Figure BDA0003814663470000116
The covariance matrix is
Figure BDA0003814663470000117
When the non-line-of-sight error is not considered and the measurement environment is in good condition, v k ∼ N(0,R k ). However, when there is interference between the target point and the anchor point, there will be outliers in ranging, which can be considered as
Figure BDA0003814663470000118
in
Figure BDA0003814663470000119
for the exact distance. Thus, the conditions for checking whether the measured value is abnormal can be set as:

Figure BDA00038146634700001110
Figure BDA00038146634700001110

式中:c为阈值;

Figure BDA00038146634700001111
In the formula: c is the threshold;
Figure BDA00038146634700001111

对于Rk的修正公式如下:The revised formula for R k is as follows:

Figure BDA0003814663470000121
Figure BDA0003814663470000121

作为选优,利用改进的Sage-Husa滤波对系统噪声的协方差矩阵进行实时估计:As an optimization, the improved Sage-Husa filter is used to estimate the covariance matrix of the system noise in real time:

Figure BDA0003814663470000122
Figure BDA0003814663470000122

式中:αk=(1-b)/(1-bk+1),遗忘因子b=0.5。In the formula: α k =(1-b)/(1-b k+1 ), forgetting factor b=0.5.

在一个具体的实施例中,测试靶点的精确坐标为(450,450,200),求得的预测位置为(453,461,219),坐标误差在20mm以内,具有较高的准确性。In a specific embodiment, the precise coordinates of the test target point are (450, 450, 200), and the obtained predicted position is (453, 461, 219), and the coordinate error is within 20 mm, which has high accuracy.

S60、依据该定位模型,即可对当前应用环境中的任意物体进行定位,同时根据定位目标采集数据的时间顺序监视并复现运动轨迹。S60. According to the positioning model, any object in the current application environment can be positioned, and at the same time, the movement track can be monitored and reproduced according to the time sequence of the data collected by the positioning target.

在一个具体的实施例中,利用定位模型对靶点位置进行预测,得到靶点的预测坐标如表1所示。In a specific embodiment, the positioning model is used to predict the position of the target point, and the predicted coordinates of the target point are obtained as shown in Table 1.

表1某实施例的靶点预测坐标及维度精度Table 1 Target prediction coordinates and dimensional accuracy of a certain embodiment

Figure BDA0003814663470000123
Figure BDA0003814663470000123

与现有技术相比,本发明具有以下有益效果:Compared with the prior art, the present invention has the following beneficial effects:

本发明的一种基于UWB的三维定位模型能够很好的解决UWB无线通信技术信号干扰问题,利用测试靶点对定位模型进行修正,提高了定位精度。将场景空间三维化,根据目标物体的坐标位置和采集时间能够对任意物体进行位置监视和移动轨迹的复现。具体实施时,可通过锚点和测试靶点对应用场景进行模型纠偏,能够很好的扩展应用于不同的室内环境当中,并具备较高的准确性。The UWB-based three-dimensional positioning model of the present invention can well solve the signal interference problem of the UWB wireless communication technology, and the positioning model is corrected by using test targets, thereby improving the positioning accuracy. The scene space is three-dimensionalized, and the position monitoring and moving track reproduction of any object can be performed according to the coordinate position and acquisition time of the target object. During the specific implementation, the model correction can be performed on the application scene through the anchor point and the test target point, which can be well extended and applied to different indoor environments, and has high accuracy.

以上所述,仅是本发明的较佳实施例而已,并非对本发明作任何形式上的限制,虽然本发明已以较佳实施例揭露如上,然而并非用以限定本发明,任何熟悉本专业的技术人员,在不脱离本发明技术方案范围内,当可利用上述揭示的技术内容作出些许更动或修饰为等同变化的等效实施例,但凡是未脱离本发明技术方案的内容,依据本发明的技术实质对以上实施例所作的任何简单修改、等同变化与修饰,均仍属于本发明技术方案的范围内。The above description is only a preferred embodiment of the present invention, and does not limit the present invention in any form. Although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. Anyone familiar with this field Those skilled in the art, without departing from the scope of the technical solution of the present invention, can use the technical content disclosed above to make some changes or modify equivalent embodiments with equivalent changes, but all the content that does not depart from the technical solution of the present invention, according to the present invention Any simple modifications, equivalent changes and modifications made to the above embodiments by the technical essence still belong to the scope of the technical solutions of the present invention.

Claims (8)

1. A UWB-based three-dimensional positioning model is characterized in that the establishment of the three-dimensional positioning model comprises the following steps:
s1, setting a reference point in an application environment, and three-dimensionally transforming a field space based on the reference point;
s2, arranging 3 or more UWB anchor points at the edge positions, and transmitting signals to all directions around by the UWB anchor points;
s3, setting a test target point, and collecting the distance between an anchor point and the test target point;
s4, classifying and cleaning data, and removing useless data;
and S5, establishing a positioning model by combining a Chan algorithm, a Taylor series algorithm and a Kalman filtering algorithm, and correcting data by testing a target point.
2. The three-dimensional UWB-based positioning model of claim 1, wherein in step S3, the distance between the anchor point and the target point under test can be obtained according to the following formula:
d=c×Δt/2 (1)
in the formula: d is the distance between the anchor point and the target point, and is mm; c is the speed of light, and is taken to be 3X 10 5 km/s; Δ t is the time difference, s, between the anchor point transmit and receive signals.
3. The three-dimensional UWB-based positioning model according to claim 1, wherein in step S4, the useless data comprises abnormal data, missing data and identical data, and the data is defined as follows:
the definition of the abnormal data is as follows: for a data file at a certain target point position, a plurality of groups of sample data exist, and if the deviation of certain sample data and the average value exceeds two times of standard deviation, the group of data is called abnormal data;
the missing data is defined as: for a data file at a certain target point position, a plurality of groups of sample data exist, and if the anchor point ranging value measured by a certain group of sample data is 0/empty, the group of data is regarded as missing data;
the definition of the same data is as follows: for a data file at a certain target point position, a plurality of groups of sample data exist, the whole group of sample data is used as a research object, and if the distances between anchor points of certain two groups of data and the target point are correspondingly the same, the data are regarded as the same data;
the mathematical model of the garbage data may be expressed as:
Figure FDA0003814663460000011
in the formula:
Figure FDA0003814663460000012
the distance between the target point and the anchor point is (i =1,2, 3.. Cndot; k =1,2, 3.. Cndot; m, n is the number of anchor points, and m is the number of sample groups);
Figure FDA0003814663460000013
is an average value;
Figure FDA0003814663460000014
is the standard deviation.
4. The three-dimensional UWB-based positioning model according to claim 1, wherein in step S5, the establishment of the positioning model comprises the following sub-steps:
s51, calculating an initial estimation position of a test target by utilizing a Chan algorithm;
s52, calculating a positioning residual error of the initial estimation position by using a non-line-of-sight residual error identification method, wherein if the positioning residual error value of the initial estimation position is less than or equal to a given threshold value, the position is accurate enough and is called as an observation position; otherwise, iterative solution of the observation position by using a Taylor series algorithm is required;
and S53, removing ranging noise and interference noise by using a Kalman filtering algorithm, and finally obtaining a predicted position.
5. The UWB-based three-dimensional positioning model of claim 4, wherein in step S51, the initial estimated position of the target point is obtained according to the following formula:
Figure FDA0003814663460000021
in the formula:
Figure FDA0003814663460000022
an initial estimated position for the test target; sigma is an error threshold value;
Figure FDA0003814663460000023
the spatial distance between the test target point and the anchor point is set; (x, y, z) are the positioning coordinates of the test target point; (x) i ,y i ,z i ) Is the anchor point coordinate position;
Figure FDA0003814663460000024
R=x 2 +y 2 +z 2 ;d i ranging the test target point and the anchor point; Δ d i For the measurement error of the distance of each anchor point,
Figure FDA0003814663460000025
epsilon is an error vector; phi is a covariance matrix of the error vector epsilon;
Figure FDA0003814663460000026
Δd=[Δd 1 Δd 2 …Δd n ](ii) a Q is the covariance matrix of the measurement error ad,
Figure FDA0003814663460000027
and sigma is an error threshold value.
6. The UWB-based three-dimensional positioning model of claim 4, wherein in step S52, the solution of the observation position is as follows:
step one, expressing the space distance in
Figure FDA0003814663460000028
The first order expansion is performed using the Taylor formula, which has:
Figure FDA0003814663460000029
step two, obtaining an iterative formula of an error vector through a weighted least square method as follows:
Figure FDA0003814663460000031
in the above formula:
Figure FDA0003814663460000032
an initial estimated position for the test target; (x) 0 ,y 0 ,z 0 ) Precise coordinates for the test target;
Figure FDA0003814663460000033
estimating the spatial distance between the initial position of the test target point and the anchor point; d i0 The space distance between the precise coordinate of the test target point and the anchor point; q is a covariance matrix of the measurement error;
Figure FDA0003814663460000034
step three, solving the error vector delta according to the iterative formula
Figure FDA0003814663460000035
And comparing this value with a threshold value
Figure FDA0003814663460000036
Make a comparison if
Figure FDA0003814663460000037
If the value is less than the threshold value, the position is accurate enough, and the (x, y, z) is called an observation position; otherwise, iterative formula of coordinate is needed
Figure FDA0003814663460000038
Performing iterative calculation until
Figure FDA0003814663460000039
Less than the threshold.
7. The UWB-based three-dimensional positioning model of claim 4, wherein in step S53, the solution of the predicted position is as follows:
step one, using a Kalman filtering algorithm to predict, wherein the prediction process can be expressed by the following formula:
Figure FDA00038146634600000310
step two, updating and iterating by using a Kalman filtering algorithm to obtain a predicted position
Figure FDA00038146634600000311
The solution equation is as follows:
Figure FDA0003814663460000041
in the above formula: x k,k-1 An estimate representing a state matrix at time k; x k-1 An estimated value representing a state matrix at the time k-1; f k-1 A state transition matrix from the time k-1 to the time k; p k-1 Representing the state covariance matrix at time k-1; p k,k-1 A state covariance matrix representing time k; process noise w k ~N(0,Q k );Z k To observe the vector, Z k =H k X k,k-1 +v k ;v k To observe noise, v k ~N(0,R k );K k Is the Kalman gain; r k To observe the noise matrix.
8. The UWB-based three-dimensional positioning model according to claim 7, wherein for abnormal situations, an adaptive robust Kalman filter is proposed for R k ,Q k The correction is carried out, and the correction process is as follows:
step one, judging whether the measured value is abnormal or not, and when the interference exists between the target point and the anchor point, the distance measurement can generate an abnormal value which can be considered as
Figure FDA0003814663460000042
Wherein
Figure FDA0003814663460000043
If the distance is accurate, the conditions for judging whether the measured value is abnormal are as follows:
Figure FDA0003814663460000044
step two, to R k And correcting according to the following formula:
Figure FDA0003814663460000045
and step three, estimating the covariance matrix of the system noise in real time by using improved Sage-Husa filtering:
Figure FDA0003814663460000046
in the above formula: c is a threshold value;
Figure FDA0003814663460000047
v k to watchMeasuring noise, v k =Z k -H k X k,k-1 ;D k In the form of a covariance matrix,
Figure FDA0003814663460000048
α k =(1-b)/(1-b k+1 ) And the forgetting factor 0 < b < 1.
CN202211022690.1A 2022-08-25 2022-08-25 A 3D Positioning Model Based on UWB Pending CN115307644A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211022690.1A CN115307644A (en) 2022-08-25 2022-08-25 A 3D Positioning Model Based on UWB

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211022690.1A CN115307644A (en) 2022-08-25 2022-08-25 A 3D Positioning Model Based on UWB

Publications (1)

Publication Number Publication Date
CN115307644A true CN115307644A (en) 2022-11-08

Family

ID=83865095

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211022690.1A Pending CN115307644A (en) 2022-08-25 2022-08-25 A 3D Positioning Model Based on UWB

Country Status (1)

Country Link
CN (1) CN115307644A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115680626A (en) * 2022-11-15 2023-02-03 西南石油大学 Dynamic liquid level monitoring equipment and method for horizontal separator

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108182306A (en) * 2017-12-18 2018-06-19 中国北方车辆研究所 Power train for vehicle abrasive grain characteristic parameter degradation failure threshold value determination method
CN109186609A (en) * 2018-10-09 2019-01-11 南京航空航天大学 UWB localization method based on KF algorithm, Chan algorithm and Taylor algorithm
CN110189051A (en) * 2019-06-06 2019-08-30 北京百奥知信息科技有限公司 A kind of appraisal procedure for the Journals influence power considering reference exceptional value
CN111862538A (en) * 2020-08-03 2020-10-30 中铁二院工程集团有限责任公司 A method and system for early warning of high winds during construction of a large-span arch bridge
CN113516192A (en) * 2021-07-19 2021-10-19 国网北京市电力公司 A method, system, device and storage medium for identifying abnormal user electricity usage
CN114594421A (en) * 2022-02-15 2022-06-07 湖北大学 A moving target position calculation method based on least squares method and Kalman filter

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108182306A (en) * 2017-12-18 2018-06-19 中国北方车辆研究所 Power train for vehicle abrasive grain characteristic parameter degradation failure threshold value determination method
CN109186609A (en) * 2018-10-09 2019-01-11 南京航空航天大学 UWB localization method based on KF algorithm, Chan algorithm and Taylor algorithm
CN110189051A (en) * 2019-06-06 2019-08-30 北京百奥知信息科技有限公司 A kind of appraisal procedure for the Journals influence power considering reference exceptional value
CN111862538A (en) * 2020-08-03 2020-10-30 中铁二院工程集团有限责任公司 A method and system for early warning of high winds during construction of a large-span arch bridge
CN113516192A (en) * 2021-07-19 2021-10-19 国网北京市电力公司 A method, system, device and storage medium for identifying abnormal user electricity usage
CN114594421A (en) * 2022-02-15 2022-06-07 湖北大学 A moving target position calculation method based on least squares method and Kalman filter

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
刘韬;徐爱功;隋心;: "基于自适应抗差卡尔曼滤波的UWB室内定位", 传感技术学报, no. 04, 27 April 2018 (2018-04-27), pages 567 - 572 *
王鑫: "基于UWB的室内目标三维跟踪定位技术研究", 中国优秀硕士学位论文全文数据库 (信息科技辑), 15 November 2021 (2021-11-15), pages 136 - 13 *
邓勃: "关于异常值的检验与处理", 大学化学, no. 04, 30 August 1995 (1995-08-30), pages 5 - 9 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115680626A (en) * 2022-11-15 2023-02-03 西南石油大学 Dynamic liquid level monitoring equipment and method for horizontal separator

Similar Documents

Publication Publication Date Title
CN109597864B (en) Method and system for real-time positioning and map construction of ellipsoid boundary Kalman filtering
CN106980114A (en) Target Track of Passive Radar method
CN109884586A (en) Ultra-bandwidth-based UAV positioning method, device, system and storage medium
CN108882149B (en) NLOS compensation positioning method of distance correlation probability
CN112946626A (en) Airborne phased array radar track correlation method
CN109946694A (en) Circular SAR multi-target tracking method based on random finite sets
CN107561489B (en) MLS passive direction finding localization method based on anomaly detection
CN106932752A (en) A kind of real-time indoor orientation method based on RF phse monitoring
Kong et al. Hybrid indoor positioning method of BLE and monocular VINS-based smartphone
CN115307644A (en) A 3D Positioning Model Based on UWB
Xiong et al. Efficient distributed particle filter for robust range-only SLAM
Kang et al. Ultra-wideband aided UAV positioning using incremental smoothing with ranges and multilateration
CN114973036B (en) Unmanned aerial vehicle three-dimensional positioning method based on GNSS/inertial navigation/wireless base station fusion
Wang et al. Multisensor multitarget tracking arithmetic average fusion method based on probabilistic time window
CN113891251B (en) Inertial navigation-WiFi signal fusion positioning algorithm based on AGV
Sun et al. UWB-IMU-odometer fusion for simultaneous calibration and localization
Ben et al. A robust factor graph optimization method for navigation in land vehicles based on dynamic kernel principal component analysis
KR102572546B1 (en) Device and method of detecting multiple signal differences in single frequency receiver
CN114051207B (en) Ultra-wideband accurate positioning method and device under signal interference and electronic equipment
Noack et al. State estimation considering negative information with switching Kalman and ellipsoidal filtering
Emharraf et al. Mobile Robot: SLAM Implementation for Unknown Indoor Environment Exploration.
CN107390191A (en) A method for spatial error registration of probability hypothesis density filtering radar in ECEF coordinate system
Tian et al. Study on the Improved Unscented Kalman Filter Ultra-Wideband Indoor Location Algorithm based on Two-Way Time-of-Flight.
CN114594421A (en) A moving target position calculation method based on least squares method and Kalman filter
Huggi et al. Implementation of sensor fusion for a mobile robot application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20221108