CN115307644A - A 3D Positioning Model Based on UWB - Google Patents
A 3D Positioning Model Based on UWB Download PDFInfo
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/20—Instruments for performing navigational calculations
- G01C21/206—Instruments for performing navigational calculations specially adapted for indoor navigation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
- G06F17/16—Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
- G06F17/18—Complex 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算法、泰勒级数定位算法和卡尔曼滤波法建立定位模型,通过该模型即可对环境内任意物体进行三维定位。本发明结合数据采集、分类、定位和降噪算法建立定位模型,采用测试靶点对模型算法进行纠偏,能够广泛运用于各种货物室内定位问题,监视和定位不同时刻的货物位置,根据采集数据的时间顺序可复现货物历史移动轨迹,该定位模型具有较高的准确性、有效性和适用性。
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.
Description
技术领域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会采集到多组数据,靶点在同一位置的停留时间越长,组数就越多。所以在采集过程中,靶点的停留时间、障碍物、信号干扰等问题,会产生许多无用(异常、缺失、相同)数据。将靶点与锚点的距离记为(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 (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’组数据对应相同,即(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 (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:
式中:为平均值;为标准差。In the formula: is the average value; 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。假设测试靶点与锚点的空间距离为则有: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 Then there are:
对于某组靶点与锚点的空间距离,可以表示为:For the spatial distance between a certain set of target points and anchor points, it can be expressed as:
作为选优,要求靶点的测距与空间距离误差尽可能小。假设,各个锚点的距离测量误差为Δdi,则有设误差为ε=(ε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 Let the error be ε=(ε i ) n×1 , then:
作为选优,通常故有那么,有:As an option, usually Therefore there Then, there are:
ε≈2D(Δd) (7)ε≈2D(Δd) (7)
式中:Δd=[Δd1 Δd2 … Δdn]。In the formula: Δd=[Δd 1 Δd 2 . . . Δd n ].
作为选优,令σ为误差阀值,测量误差向量Δd的协方差矩阵为那么误差向量ε的协方差矩阵为:As an optimization, let σ be the error threshold, and the covariance matrix of the measurement error vector Δd is 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)
作为选优,设靶点的初始估计位置为为使得误差最小,运用加权最小二乘法计算,计算公式为:As an optimization, let the initial estimated position of the target point be In order to minimize the error, the weighted least square method is used for calculation, and the calculation formula is:
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.
作为选优,设靶点的初始估计位置与精确坐标(x0,y0,z0)各分量的误差对应的误差向量为δ=(Δx,Δy,Δz)T。将空间距离表达式在处利用Taylor公式进行一阶展开,有:As an optimization, set the initial estimated position of the target point 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 Use the Taylor formula to carry out the first-order expansion, which is:
式中:为靶点的初始估计位置与锚点的空间距离;di0为靶点的精确坐标与锚点的空间距离。In the formula: 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。令:通过加权最小二乘法得到误差向量的迭代式如下:As an option, the error can be expressed as ε=(ε i ) n×1 . make: The iterative formula for obtaining the error vector by the weighted least square method is as follows:
式中:Q为测量误差的协方差矩阵。In the formula: Q is the covariance matrix of the measurement error.
作为选优,根据误差向量δ的迭代式,可以得到的值,将这个值与阈值进行比较。若小于阈值,则该位置足够精确,这时的(x,y,z)称之为观测位置;反之,则需要通过坐标迭代式进行迭代计算,直到小于阈值。As an optimization, according to the iterative formula of the error vector δ, we can get value, compare this value with the threshold Compare. like 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 Perform iterative calculations until 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:
式中: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 ).
作为选优,利用卡尔曼滤波算法的更新迭代,求得预测位置更新过程如下:As an optimization, use the update iteration of the Kalman filter algorithm to obtain the predicted position The update process is as follows:
式中:观测向量Zk=HkXk,k-1+vk,观测噪声vk~N(0,Rk);Kk为卡尔曼增益;Rk为观测噪声矩阵。In the formula: observation vector Z k =H k X k,k-1 +v k , 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,协方差矩阵为在不考虑非视距误差且测量环境状况较好时,有vk~N(0,Rk)。然而,当靶点与锚点之间存在干扰时,测距会出现异常值,可认为其中为准确距离。从而,可以设置检验测量值是否为异常的条件为:Observation noise v k = Z k -H k X k,k-1 , the covariance matrix is 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 in for the exact distance. Thus, the conditions for checking whether the measured value is abnormal can be set as:
式中:c为阈值; In the formula: c is the threshold;
对于Rk的修正公式如下:The revised formula for R k is as follows:
作为选优,利用改进的Sage-Husa滤波对系统噪声的协方差矩阵进行实时估计:As an optimization, the improved Sage-Husa filter is used to estimate the covariance matrix of the system noise in real time:
式中:α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会采集到多组数据,靶点在同一位置的停留时间越长,组数就越多。所以在采集过程中,靶点的停留时间、障碍物、信号干扰等问题,会产生许多无用(异常、缺失、相同)数据。将靶点与锚点的距离记为(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 (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’组数据对应相同,即(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 (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:
式中:为平均值;为标准差。In the formula: is the average value; 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。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 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).
作为选优,假设目标靶点与锚点的空间距离为可表示为:As an optimization, it is assumed that the spatial distance between the target point and the anchor point is Can be expressed as:
在一个具体的实施例中,对于靶点与锚点的空间距离,可以表示为:In a specific embodiment, the spatial distance between the target point and the anchor point can be expressed as:
设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)
式中: In the formula:
作为选优,要求靶点到各锚点的测距与空间距离要尽可能小,即min||(x-xi)2+(y-yi)2+(z-zi)2-di||。假设,各个锚点的距离测量误差为Δdi,则有设误差为ε=(ε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 Let the error be ε=(ε i ) n×1 , then:
作为选优,通常故有那么,有:As an option, usually Therefore there Then, there are:
ε≈2D(Δd) (7)ε≈2D(Δd) (7)
式中:Δd=[Δd1 Δd2 Δd3 Δd4]T。In the formula: Δd=[Δd 1 Δd 2 Δd 3 Δd 4 ] T .
作为选优,令σ为误差阀值,测量误差向量Δd的协方差矩阵为那么误差向量ε的协方差矩阵为:As an optimization, let σ be the error threshold, and the covariance matrix of the measurement error vector Δd is 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)
作为选优,设靶点的初始估计位置为为使得误差最小,运用加权最小二乘法计算,计算式为:As an optimization, let the initial estimated position of the target point be In order to minimize the error, the weighted least square method is used to calculate, and the calculation formula is:
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.
作为选优,设靶点的初始估计位置与精确坐标(x0,y0,z0)各分量的误差对应的误差向量为δ=(Δx,Δy,Δz)T。将空间距离表达式在处利用Taylor公式进行一阶展开,有:As an optimization, set the initial estimated position of the target point 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 Use the Taylor formula to carry out the first-order expansion, which is:
式中:为测试靶点的初始估计位置与锚点的空间距离;di0为测试靶点的精确坐标与锚点的空间距离; In the formula: 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;
作为选优,误差可以表示为ε=(εi)n×1。令:通过加权最小二乘法得到误差向量的迭代式如下:As an option, the error can be expressed as ε=(ε i ) n×1 . make: The iterative formula for obtaining the error vector by the weighted least square method is as follows:
式中:Q为测量误差的协方差矩阵。In the formula: Q is the covariance matrix of the measurement error.
作为选优,根据误差向量δ的迭代式,可以得到的值,将这个值与阈值进行比较。若小于阈值,则该位置足够精确,这时的(x,y,z)称之为观测位置;反之,则需要通过坐标迭代式进行迭代计算,直到小于阈值。As an optimization, according to the iterative formula of the error vector δ, we can get value, compare this value with the threshold Compare. like 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 Perform iterative calculations until 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:
式中:表示在k时刻状态矩阵的估计值;表示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), In the formula: Indicates the estimated value of the state matrix at time k; 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 ),
作为选优,利用卡尔曼滤波算法的更新迭代,求得预测位置更新过程如下:As an optimization, use the update iteration of the Kalman filter algorithm to obtain the predicted position The update process is as follows:
式中:观测向量观测噪声vk~N(0,Rk);卡尔曼增益为Kk,其大小表示更相信预测值还是观测值观测噪声矩阵 In the formula: observation vector Observation noise v k ~N(0,R k ); Kalman gain is K k , and its size indicates more confidence in the predicted value or observations 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~N(0,Rk)。然而,当靶点与锚点之间存在干扰时,测距会出现异常值,可认为其中为准确距离。从而,可以设置检验测量值是否为异常的条件为:observation noise The covariance matrix is 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 in for the exact distance. Thus, the conditions for checking whether the measured value is abnormal can be set as:
式中:c为阈值; In the formula: c is the threshold;
对于Rk的修正公式如下:The revised formula for R k is as follows:
作为选优,利用改进的Sage-Husa滤波对系统噪声的协方差矩阵进行实时估计:As an optimization, the improved Sage-Husa filter is used to estimate the covariance matrix of the system noise in real time:
式中:α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
与现有技术相比,本发明具有以下有益效果: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)
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)
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)
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 |
-
2022
- 2022-08-25 CN CN202211022690.1A patent/CN115307644A/en active Pending
Patent Citations (6)
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)
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)
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 |