CN109031263B - Indoor fingerprint map construction method based on mobile crowd sensing data - Google Patents
Indoor fingerprint map construction method based on mobile crowd sensing data Download PDFInfo
- Publication number
- CN109031263B CN109031263B CN201810727605.9A CN201810727605A CN109031263B CN 109031263 B CN109031263 B CN 109031263B CN 201810727605 A CN201810727605 A CN 201810727605A CN 109031263 B CN109031263 B CN 109031263B
- Authority
- CN
- China
- Prior art keywords
- fingerprint
- time
- user
- graph
- formula
- 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.)
- Expired - Fee Related
Links
- 238000010276 construction Methods 0.000 title claims abstract description 16
- 238000001514 detection method Methods 0.000 claims abstract description 9
- 238000005457 optimization Methods 0.000 claims abstract description 9
- 238000004364 calculation method Methods 0.000 claims description 18
- 230000001133 acceleration Effects 0.000 claims description 14
- 230000008447 perception Effects 0.000 claims description 8
- 230000009466 transformation Effects 0.000 claims description 6
- 230000006870 function Effects 0.000 claims description 4
- 238000013480 data collection Methods 0.000 abstract description 2
- 238000000034 method Methods 0.000 description 14
- 238000010586 diagram Methods 0.000 description 8
- 230000033001 locomotion Effects 0.000 description 8
- 230000008859 change Effects 0.000 description 3
- 238000006073 displacement reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 239000011159 matrix material Substances 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 230000000737 periodic effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 238000012549 training Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001186 cumulative effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004807 localization Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S11/00—Systems for determining distance or velocity not using reflection or reradiation
- G01S11/02—Systems for determining distance or velocity not using reflection or reradiation using radio waves
- G01S11/06—Systems for determining distance or velocity not using reflection or reradiation using radio waves using intensity measurements
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Position Fixing By Use Of Radio Waves (AREA)
- Length Measuring Devices With Unspecified Measuring Means (AREA)
Abstract
本发明涉及一种基于移动群智感知数据的室内指纹地图构建方法,本发明包括群智感知数据采集、闭环检测与图的构建、基于Graph SLAM的图优化算法。利用环境中的移动用户作为感知单元,实现指纹数据和用户轨迹的自动收集,可减少指纹定位所需的勘测工作量,有利于指纹定位系统在未知环境中的快速部署。
The invention relates to an indoor fingerprint map construction method based on mobile crowd intelligence sensing data. The invention includes crowd intelligence sensing data collection, closed-loop detection and graph construction, and a graph optimization algorithm based on Graph SLAM. Using mobile users in the environment as sensing units to automatically collect fingerprint data and user trajectories can reduce the survey workload required for fingerprint positioning, and is conducive to the rapid deployment of fingerprint positioning systems in unknown environments.
Description
技术领域technical field
本发明涉及室内指纹定位技术领域,具体涉及一种基于移动群智感知数据的室内指纹地图构建方法。The invention relates to the technical field of indoor fingerprint positioning, in particular to an indoor fingerprint map construction method based on mobile crowd intelligence perception data.
背景技术Background technique
随着物联网的发展和基于位置服务应用的需求,室内定位近年来受到人们越来越多的关注。由于城市建筑物的遮挡,以GPS为代表的室外定位技术在室内不再可用,因此人们需要一种便捷、普适、精准的室内定位技术方案。实际上,国内外研究人员在20多年前就开始对室内定位进行了探索。一些尝试包括在室内一些关键位置部署专门的硬件设备,比如磁标记、红外、RFID和激光传感器等,通过测量距离或方位即可实现定位。虽然这些技术可以提供很好的定位精度,但额外的硬件开销、特制的设备和提前的部署都限制了这些方法的推广和应用。With the development of the Internet of Things and the demand for location-based service applications, indoor positioning has received more and more attention in recent years. Due to the occlusion of urban buildings, the outdoor positioning technology represented by GPS is no longer available indoors, so people need a convenient, universal and accurate indoor positioning technology solution. In fact, researchers at home and abroad began to explore indoor positioning more than 20 years ago. Some attempts include deploying specialized hardware devices, such as magnetic tags, infrared, RFID and laser sensors, at key locations indoors, and positioning can be achieved by measuring distance or bearing. Although these techniques can provide good localization accuracy, additional hardware overhead, special equipment, and early deployment limit the popularization and application of these methods.
市场上大量的移动通信设备(智能手机、笔记本电脑)都内嵌了廉价多样的传感器,例如Wi-Fi模块、运动传感器、GPS和摄像头等。而大部分室内环境都部署有Wi-Fi接入点(access point,AP),因此基于Wi-Fi的室内定位成为目前研究的热点。实际上,Wi-Fi已经被许多公司(包括Google、Apple、Microsoft,百度,以及Skyhook)用于室内定位与导航。目前,位置指纹法是被广泛采用和最先进的Wi-Fi室内定位方法,该方法需要事先对室内环境进行勘测,建立一个指纹地图记录环境中每个位置点对应的指纹信息,通过指纹匹配即可实现设备的定位。这种方法面临的最大难题是庞大指纹数据库的构建。尤其是城市建筑物巨大而且结构非常复杂,环境的勘测往往需要专门的设备和专业的技术人员,因此勘测工程耗费巨大。随着室内环境的变化,需要对指纹地图进行更新和反复的人工勘测,已成为限制指纹定位方法推广的瓶颈。A large number of mobile communication devices (smartphones, laptops) on the market are embedded with inexpensive and diverse sensors, such as Wi-Fi modules, motion sensors, GPS and cameras. Wi-Fi access points (APs) are deployed in most indoor environments, so indoor positioning based on Wi-Fi has become a hot research topic at present. In fact, Wi-Fi has been used by many companies (including Google, Apple, Microsoft, Baidu, and Skyhook) for indoor positioning and navigation. At present, the location fingerprint method is widely used and the most advanced Wi-Fi indoor positioning method. This method needs to survey the indoor environment in advance, and establish a fingerprint map to record the fingerprint information corresponding to each location point in the environment. The positioning of the device can be realized. The biggest difficulty faced by this method is the construction of a huge fingerprint database. In particular, the urban buildings are huge and the structure is very complex, and the survey of the environment often requires special equipment and professional technicians, so the survey engineering costs a lot. With the change of indoor environment, it is necessary to update the fingerprint map and repeat manual survey, which has become a bottleneck restricting the popularization of fingerprint positioning methods.
国内外的一些研究中将SLAM思想引入到Wi-Fi定位中,通过利用高斯过程隐变量模型将高维的信号强度空间映射到低维的二维位置空间。这些方法往往需要依赖信号传播模型,在实现自身定位的同时,需要同时需要估计AP的信号传播模型参数。In some domestic and foreign researches, the SLAM idea is introduced into Wi-Fi positioning, and the high-dimensional signal strength space is mapped to the low-dimensional two-dimensional position space by using the Gaussian process latent variable model. These methods often need to rely on the signal propagation model, and need to estimate the parameters of the signal propagation model of the AP at the same time when realizing self-positioning.
发明内容SUMMARY OF THE INVENTION
本发明所要解决的技术问题是提供一种基于移动群智感知数据的室内指纹地图构建方法,解决现有指纹定位方法中勘测工程浩大的问题。The technical problem to be solved by the present invention is to provide an indoor fingerprint map construction method based on mobile crowd intelligence perception data, so as to solve the problem of huge survey engineering in the existing fingerprint positioning method.
本发明解决上述技术问题的技术方案如下:一种基于移动群智感知数据的室内指纹地图构建方法,包括以下步骤:The technical solution of the present invention to solve the above technical problems is as follows: an indoor fingerprint map construction method based on mobile crowd intelligence perception data, comprising the following steps:
S1、通过手机终端采集用户的指纹信息和航位推算信息,并上传至服务器;S1. Collect the user's fingerprint information and dead reckoning information through the mobile phone terminal, and upload them to the server;
S2、通过服务器对指纹信息和航位推算信息进行分析,得到指纹相似度和用户轨迹数据,利用指纹相似度和用户轨迹数据构建“顶点-约束”图;S2, analyze the fingerprint information and dead reckoning information through the server, obtain the fingerprint similarity and user trajectory data, and use the fingerprint similarity and user trajectory data to construct a "vertex-constraint" graph;
S3、通过图优化算法对“顶点-约束”图进行优化,得到指纹地图。S3. Optimizing the "vertex-constraint" graph through a graph optimization algorithm to obtain a fingerprint map.
在上述技术方案的基础上,本发明还可以做如下改进。On the basis of the above technical solutions, the present invention can also be improved as follows.
进一步,所述步骤S2中“顶点-约束”图的构建方法为:Further, the construction method of the "vertex-constraint" graph in the step S2 is:
S21、将用户的位姿构成顶点,顶点之间的位置关系为边;S21. The pose of the user is formed into vertices, and the positional relationship between the vertices is an edge;
S22、对边进行闭环检测,得到“指纹-闭环”和“转弯-闭环”;S22, perform closed-loop detection on the edge to obtain "fingerprint-closed-loop" and "turn-closed-loop";
S23、通过“指纹-闭环”和“转弯-闭环”构建“顶点-约束”图。S23. Construct a "vertex-constraint" graph through "fingerprint-closed loop" and "turn-closed loop".
进一步,所述步骤S1中航位推算信息R(t,τ)的计算公式为:Further, the calculation formula of the dead reckoning information R(t,τ) in the step S1 is:
在公式(1)中,μ(t,τ)和σ(t,τ)是t与t+τ之间加速度的平均值和标准差,τ为时间延迟参数,l为变量,取值0到τ-1,a(t+l)为t+l时刻加速值,μ(t+τ,τ)和σ(t+τ,τ)是t+τ与t+2τ之间加速度的平均值和标准差。In formula (1), μ(t,τ) and σ(t,τ) are the mean and standard deviation of the acceleration between t and t+τ, τ is the time delay parameter, l is a variable, ranging from 0 to τ-1, a(t+l) is the acceleration value at time t+l, μ(t+τ,τ) and σ(t+τ,τ) are the average sum of the acceleration between t+τ and t+2τ standard deviation.
进一步,所述步骤S2中指纹相似度sij的计算方法为:Further, the calculation method of the fingerprint similarity s ij in the step S2 is:
在公式(2)中,Fi为i时刻采集的指纹信息,Fj为j时刻采集的指纹信息,L为检测到AP的个数,fi,l为i时刻第l个AP的信号强度,fj,l为j时刻第l个AP的信号强度。In formula (2), F i is the fingerprint information collected at time i, F j is the fingerprint information collected at time j, L is the number of detected APs, f i,l is the signal strength of the lth AP at time i , f j,l is the signal strength of the l-th AP at time j.
进一步,所述步骤S22中“指纹-闭环”的计算方法为:Further, the calculation method of "fingerprint-closed loop" in the step S22 is:
A1、计算指纹i与指纹j对应位置的相对距离dij,计算公式为:A1. Calculate the relative distance d ij between the corresponding positions of fingerprint i and fingerprint j. The calculation formula is:
在公式(3)中,xi和xj分别为纹i与指纹j的横坐标,yi和yj分别为指纹i与指纹j的横坐标;In formula (3), x i and x j are the abscissas of pattern i and fingerprint j, respectively, and y i and y j are the abscissas of fingerprint i and fingerprint j, respectively;
A2、计算指纹i与指纹j对应位置的相对角度θij,计算公式为:A2. Calculate the relative angle θ ij between the corresponding positions of fingerprint i and fingerprint j. The calculation formula is:
θij=|θi-θj| (4)θ ij =|θ i -θ j | (4)
在公式(4)中,θi为指纹i的角度,θj为指纹j的角度;In formula (4), θ i is the angle of fingerprint i, and θ j is the angle of fingerprint j;
A3、当相对距离dij小于距离阈值,相对角度θij小于角度阈值,且其指纹相似度sij大于相似度阈值,则指纹i与指纹j构成了“指纹-闭环”。A3. When the relative distance d ij is less than the distance threshold, the relative angle θ ij is less than the angle threshold, and the fingerprint similarity s ij is greater than the similarity threshold, then the fingerprint i and the fingerprint j form a "fingerprint-closed loop".
进一步,所述步骤S22中的“转弯-闭环”的计算方法为:Further, the calculation method of "turning-closed loop" in the step S22 is:
B1、通过滑动窗口w将用户轨迹数据进行分割,得到t时刻轨迹的集合Ct:B1. Divide the user trajectory data through the sliding window w to obtain the set Ct of trajectories at time t:
Ct={xt'} (5)Ct={xt'} (5)
在公式(5)中,t为时间,t'为满足滑动窗口条件的时刻,|t'-t|≤w,x为用户的位姿;In formula (5), t is the time, t' is the moment when the sliding window condition is satisfied, |t'-t|≤w, x is the user's pose;
B2、将集合Ct中小于t时刻方向的平均值记为θ-,大于t时刻方向的平均值记为θ+,若θ-与θ+的差值超过60°,则t时刻处于转弯状态。B2. In the set Ct, the average value in the direction less than time t is denoted as θ-, and the average value in the direction greater than time t is denoted as θ+. If the difference between θ- and θ+ exceeds 60°, it is in a turning state at time t.
进一步,所述步骤S3中的图优化算法为最小化函数:Further, the graph optimization algorithm in described step S3 is to minimize function:
在公式(6)中,Xt=(xt,yt,θt)为t时刻用户航位推算数据,t=i,j,i和j均为顶点,(xt,yt)为t时刻用户的二维位置信息,θt为t时刻用户的方位信息,C为图中所有约束的集合,zij为顶点i和顶点j之间的刚体变换。In formula (6), X t =(x t , y t , θ t ) is the user’s dead reckoning data at time t, t=i, j, i and j are both vertices, and (x t , y t ) is The two-dimensional position information of the user at time t, θ t is the orientation information of the user at time t, C is the set of all constraints in the graph, and z ij is the rigid body transformation between vertex i and vertex j.
本发明的有益效果是:本发明包括群智感知数据采集、闭环检测与图的构建、基于Graph SLAM的图优化算法。利用环境中的移动用户作为感知单元,实现指纹数据和用户轨迹的自动收集,可减少指纹定位所需的勘测工作量,有利于指纹定位系统在未知环境中的快速部署。The beneficial effects of the present invention are as follows: the present invention includes crowd-sensing data collection, closed-loop detection and graph construction, and graph optimization algorithm based on Graph SLAM. Using the mobile users in the environment as the sensing unit to realize the automatic collection of fingerprint data and user trajectories can reduce the survey workload required for fingerprint positioning and facilitate the rapid deployment of fingerprint positioning systems in unknown environments.
附图说明Description of drawings
图1为本发明的流程示意图;Fig. 1 is the schematic flow chart of the present invention;
图2为本发明步骤S2的流程示意图;Fig. 2 is the schematic flow chart of step S2 of the present invention;
图3为本发明群智感知中用户内部和用户之间的约束示意图;3 is a schematic diagram of constraints within and between users in crowd sensing according to the present invention;
图4为本发明用户行走时IMU加速度数据的周期性变化示意图;4 is a schematic diagram of the periodic change of the IMU acceleration data when the user walks according to the present invention;
图5为本发明指纹相似度与距离的不确定性模型示意图;5 is a schematic diagram of the uncertainty model of fingerprint similarity and distance of the present invention;
图6为本发明用户原始轨迹与转弯示意图;6 is a schematic diagram of the original trajectory and turning of the user of the present invention;
图7为本发明利用用户轨迹进行转弯检测以及匹配示意图。FIG. 7 is a schematic diagram of turning detection and matching using a user trajectory according to the present invention.
具体实施方式Detailed ways
以下结合附图对本发明的原理和特征进行描述,所举实例只用于解释本发明,并非用于限定本发明的范围。The principles and features of the present invention will be described below with reference to the accompanying drawings. The examples are only used to explain the present invention, but not to limit the scope of the present invention.
如图1所示,一种基于移动群智感知数据的室内指纹地图构建方法,包括以下步骤:As shown in Figure 1, an indoor fingerprint map construction method based on mobile crowdsensing data includes the following steps:
S1、通过手机终端采集用户的指纹信息和航位推算信息,并上传至服务器;S1. Collect the user's fingerprint information and dead reckoning information through the mobile phone terminal, and upload them to the server;
S2、通过服务器对指纹信息和航位推算信息进行分析,得到指纹相似度和用户轨迹数据,利用指纹相似度和用户轨迹数据构建“顶点-约束”图;S2, analyze the fingerprint information and dead reckoning information through the server, obtain the fingerprint similarity and user trajectory data, and use the fingerprint similarity and user trajectory data to construct a "vertex-constraint" graph;
S3、通过图优化算法对“顶点-约束”图进行优化,得到指纹地图。S3. Optimizing the "vertex-constraint" graph through a graph optimization algorithm to obtain a fingerprint map.
如图2所示,步骤S2中“顶点-约束”图的构建方法为:As shown in Figure 2, the construction method of the "vertex-constraint" graph in step S2 is:
S21、将用户的位姿构成顶点,顶点之间的位置关系为边;S21. The pose of the user is formed into vertices, and the positional relationship between the vertices is an edge;
S22、对边进行闭环检测,得到“指纹-闭环”和“转弯-闭环”;S22, perform closed-loop detection on the edge to obtain "fingerprint-closed-loop" and "turn-closed-loop";
S23、通过“指纹-闭环”和“转弯-闭环”构建“顶点-约束”图。S23. Construct a "vertex-constraint" graph through "fingerprint-closed loop" and "turn-closed loop".
如图3所示,群智感知中用户内部和用户之间的约束示意图,由于观测数据有一定的误差,故所有的约束都附加有一个不确定性参数,使得基于图的SLAM问题转化为优化位姿来使约束带来的误差最小。As shown in Figure 3, a schematic diagram of the constraints within and between users in crowdsensing. Since there is a certain error in the observation data, all constraints are attached with an uncertainty parameter, which makes the graph-based SLAM problem transformed into optimization pose to minimize the error caused by constraints.
在本发明实施例中,步骤S3中的图优化算法为最小化函数:In the embodiment of the present invention, the graph optimization algorithm in step S3 is to minimize the function:
在公式(6)中,Xt=(xt,yt,θt)为t时刻用户航位推算数据,t=i,j,i和j均为顶点,(xt,yt)为t时刻用户的二维位置信息,θt为t时刻用户的方位信息,C为图中所有约束的集合,zij为顶点i和顶点j之间的刚体变换。In formula (6), X t =(x t , y t , θ t ) is the user’s dead reckoning data at time t, t=i, j, i and j are both vertices, and (x t , y t ) is The two-dimensional position information of the user at time t, θ t is the orientation information of the user at time t, C is the set of all constraints in the graph, and z ij is the rigid body transformation between vertex i and vertex j.
对于激光扫描仪,这一变换可以通过扫描匹配(例如迭代最近点算法,ICP)进行估算;对于视觉传感器,这一变换可以通过特征匹配来获取。给定某一AP的信号强度,可快速判定某一用户是否重新访问了该区域,因为每个AP具有唯一的硬件地址,但是通过信号强度估算两个测量点的相对位关系非常困难,因为RSS数据本身没有提供任何距离或方向信息。For laser scanners, this transformation can be estimated by scan matching (eg iterative closest point algorithm, ICP); for vision sensors, this transformation can be obtained by feature matching. Given the signal strength of an AP, it is possible to quickly determine whether a user has revisited the area, because each AP has a unique hardware address, but it is very difficult to estimate the relative bit relationship between two measurement points from the signal strength, because RSS The data itself does not provide any distance or direction information.
使用位置指纹的方法来进行闭环检测,指纹描述在某一位置检测到的AP以及对应的信号强度;就如人体的指纹和DNA一样,Wi-Fi指纹可以用来唯一的描述某一位置,从而克服环境对信号传播的影响;而两个位置的远近可以通过指纹的相似度来进行衡量。Use the method of location fingerprint to perform closed-loop detection. The fingerprint describes the AP detected at a certain location and the corresponding signal strength; just like human fingerprints and DNA, Wi-Fi fingerprints can be used to uniquely describe a certain location. Overcome the influence of the environment on signal propagation; and the distance between two locations can be measured by the similarity of fingerprints.
如果两个指纹的相似度值高于某一阈值,即认为这两个位置是同一处,从而检测到了一个闭环,并通过增加一个不确定性协方差参数来对这一误差进行补偿,在实际的应用中可以选择一个数值很大的对角矩阵。为提高系统的精度,通过一个训练过程来建立相似度和距离的不确定性模型。If the similarity value of the two fingerprints is higher than a certain threshold, it is considered that the two positions are the same, thus a closed loop is detected, and this error is compensated by adding an uncertainty covariance parameter. In the application of , you can choose a diagonal matrix with a large value. To improve the accuracy of the system, a training process is used to build uncertainty models of similarity and distance.
如图4所示为人体步行时垂直加速度的变化规律,目前智能手机都嵌入有低功耗的惯性导航元件,通过对加速度进行双重积分可实现简单的航位推测,由于数据漂移和噪声的影响,不断的双重积分将带来很大的累计误差。基于人类步行动力学的计步算法可以有效的克服这一缺点,通过对人的行为进行识别,并对步数进行统计,从而实现航位推测。采用的算法为自相关分析法,人在运动时,整体加速度值有明显的周期性变化,自相关计步算法利用当前计步周期和上一个计步周期的加速度序列的自相关系数大小来进行计步,从而实现航位推测,步骤S1中航位推算信息R(t,τ)的计算公式为:Figure 4 shows the change rule of vertical acceleration when the human body is walking. At present, smartphones are embedded with low-power inertial navigation components. Simple dead reckoning can be realized by double integration of acceleration. Due to the influence of data drift and noise , the continuous double integration will bring a large cumulative error. The pedometer algorithm based on human walking dynamics can effectively overcome this shortcoming, and realize dead reckoning by identifying human behavior and counting the number of steps. The algorithm used is the autocorrelation analysis method. When a person is moving, the overall acceleration value has obvious periodic changes. The autocorrelation pedometer algorithm uses the autocorrelation coefficient of the acceleration sequence of the current pedometer cycle and the previous pedometer cycle. Step count is used to realize dead reckoning. The calculation formula of the dead reckoning information R(t,τ) in step S1 is:
在公式(1)中,μ(t,τ)和σ(t,τ)是t与t+τ之间加速度的平均值和标准差,τ为时间延迟参数,l为变量,取值0到τ-1,a(t)+l)为t+l时刻加速值,μ(t+τ,τ)和σ(t+τ,τ)是t+τ与t+2τ之间加速度的平均值和标准差。In formula (1), μ(t,τ) and σ(t,τ) are the mean and standard deviation of the acceleration between t and t+τ, τ is the time delay parameter, l is a variable, ranging from 0 to τ-1, a(t)+l) is the acceleration value at time t+l, μ(t+τ,τ) and σ(t+τ,τ) are the average values of acceleration between t+τ and t+2τ and standard deviation.
移动群智感知下,每个用户单独采集数据,其运动轨迹都是基于每个用户的起始位置,而没有公共的参考坐标系,因此需要把用户之间的轨迹合并,从而使每个用户具有共同的参考系,充分发挥群智感知的力量。根据用户的运动方向,考虑以下两种情况:第一种情况,假设用户的方向可以由手机的指南针来获取。这样每个手机的运动方向都在同一参考系下(地球参考系),而仅仅是坐标系存在位移。给定两个用户a和b,利用下面公式求取两个轨迹中相似度最大的两个指纹和 和之间的偏差即为两个坐标系之间的位移为:Under mobile crowd sensing, each user collects data individually, and its motion trajectory is based on the starting position of each user without a common reference coordinate system. Therefore, the trajectories between users need to be merged, so that each user It has a common frame of reference and gives full play to the power of crowd perception. According to the movement direction of the user, consider the following two cases: In the first case, it is assumed that the direction of the user can be obtained by the compass of the mobile phone. In this way, the movement direction of each mobile phone is under the same reference frame (earth reference frame), and only the coordinate system has displacement. Given two users a and b, use the following formula to find the two fingerprints with the largest similarity in the two trajectories and and The deviation between is the displacement between the two coordinate systems for:
第二种情况,手机指南针的方向误差往往很大,而且一些低端的手机不支持指南针传感器,因此一些航位推算系统不提供相对于地球参考系下的运动方向。针对这种情况,用和表示位移,表示旋转,这三个参数可以通过最小化下面的距离函数来获得:In the second case, the direction error of the mobile compass is often very large, and some low-end mobile phones do not support compass sensors, so some dead reckoning systems do not provide the direction of movement relative to the earth's reference frame. In this case, use and represents displacement, Representing the rotation, these three parameters can be obtained by minimizing the following distance function:
在公式(8)中,R为两个坐标系之间的旋转矩阵,为用户b的轨迹与a中指纹t最相似指纹的位置,d()为两点之间的欧式距离。In formula (8), R is the rotation matrix between the two coordinate systems, is the position where the trajectory of user b is most similar to the fingerprint t in a, and d() is the Euclidean distance between the two points.
射频指纹利用射频信号(例如Wi-Fi、RFID和蓝牙)来描述某一位置,能够很好的克服环境对无线信号传播的影响,因此指纹被广泛的应用于室内定位中。就如视觉特征一样,指纹信息可以用于识别某一场景,然而视觉特征的提取需要复杂的算法,而指纹信息却不存在这一问题,因为指纹中AP的硬件地址是全球唯一。Radio frequency fingerprints use radio frequency signals (such as Wi-Fi, RFID and Bluetooth) to describe a certain location, which can well overcome the influence of the environment on wireless signal propagation. Therefore, fingerprints are widely used in indoor positioning. Just like visual features, fingerprint information can be used to identify a certain scene. However, the extraction of visual features requires complex algorithms, but fingerprint information does not have this problem, because the hardware address of the AP in the fingerprint is unique in the world.
在本发明实施例中,步骤S2中指纹相似度sij的计算方法为:In the embodiment of the present invention, the calculation method of the fingerprint similarity s ij in step S2 is:
在公式(2)中,Fi为i时刻采集的指纹信息,Fj为j时刻采集的指纹信息,L为检测到AP的个数,fi,l为i时刻第l个AP的信号强度,fj,l为j时刻第l个AP的信号强度。In formula (2), F i is the fingerprint information collected at time i, F j is the fingerprint information collected at time j, L is the number of detected APs, f i,l is the signal strength of the lth AP at time i , f j,l is the signal strength of the l-th AP at time j.
指纹相似度的计算复杂度与两个指纹检测到AP的数目有很大的关系,在机场或者体育馆的环境下,一次扫描往往能够得到上百个AP,此时的计算开销是不可忽略的,因此引入信号强度阈值的概念,过滤掉信号强度小于的测量数据。一方面,过滤掉一些AP可以大大的节省系统的计算开销;另外一方面,由于受到环境多径效应的影响,过小的信号强度往往代表着更多的噪音,而较大的信号强度可以更好的对位置进行限制。The computational complexity of fingerprint similarity has a great relationship with the number of APs detected by two fingerprints. In the environment of an airport or a gym, hundreds of APs can often be obtained in one scan, and the computational overhead at this time is not negligible. Therefore, the concept of signal strength threshold is introduced to filter out the measurement data whose signal strength is less than that. On the one hand, filtering out some APs can greatly save the computing overhead of the system; on the other hand, due to the influence of environmental multipath effects, the signal strength that is too small often represents more noise, while the larger signal strength can make more noise. OK to limit the location.
如图5所示为指纹相似度与距离的不确定性模型示意图,Graph SLAM中的每一个边都需要指定其不确定性。对于里程计所构建的边,其不确定性可以由运动模型来得到,因此需要指定指纹约束(指纹闭环)的不确定性,并利用里程计数据来训练这一不确定性模型。一般情况下里程计在30米的范围仍然保持很精确。因此计算所有距离小于30米指纹的相似性,这样得到了K个训练数据:sk表示两个指纹的相似度,dk表示两个指纹之间的距离。然后使用分箱方法来对样本进行训练,得到一个模型用于表示某一相似度对应距离的不确定性。也就是说,给定一个相似度s,计算与相似度s间隔为b的所有样本的方差var(s):Figure 5 shows a schematic diagram of the uncertainty model of fingerprint similarity and distance. Each edge in Graph SLAM needs to specify its uncertainty. For the edges constructed by the odometer, the uncertainty can be obtained by the motion model, so it is necessary to specify the uncertainty of the fingerprint constraint (fingerprint closed loop), and use the odometry data to train the uncertainty model. Under normal circumstances, the odometer is still very accurate in the range of 30 meters. Therefore, the similarity of all fingerprints with distances less than 30 meters is calculated, and K training data are obtained: s k represents the similarity of the two fingerprints, and d k represents the distance between the two fingerprints. Then use the binning method to train the samples, and get a model to represent the uncertainty of the distance corresponding to a certain similarity. That is, given a similarity s, calculate the variance var(s) of all samples with an interval b from the similarity s:
在公式(9)中,c(b)为统计相似度落在间隔b的样本的个数,b(s)为相似度坐落在[s-b/2,s+b/2]之间的样本。In formula (9), c(b) is the number of samples whose statistical similarity falls within the interval b, and b(s) is the sample whose similarity is between [s-b/2, s+b/2].
如图6和图7所示,一个典型的室内环境往往包含很多路标,比如转弯、电梯和楼梯,这些特征的检测往往会大大提高室内定位系统的精度。本发明将环境中的转弯特征融合到SLAM系统中。在得到一个指纹闭环后,通过对用户运动轨迹进行分析,检测是否是转弯,并对转弯进行匹配,从而得到转弯闭环。由于受到环境的限制,两个正确匹配转弯的实际位置往往非常接近,比指纹闭环带来的不确定性要小很多,例如一个走廊的宽度往往小于3米,而指纹的定位精度往往远大于3米。如图7所示是基于轨迹的转弯检测以及匹配示意图。As shown in Figure 6 and Figure 7, a typical indoor environment often contains many landmarks, such as turns, elevators, and stairs, and the detection of these features often greatly improves the accuracy of indoor positioning systems. The present invention fuses the turning features in the environment into the SLAM system. After a fingerprint closed loop is obtained, the user's motion trajectory is analyzed to detect whether it is a turn, and the turn is matched to obtain a turn closed loop. Due to the limitation of the environment, the actual positions of the two correctly matched turns are often very close, which is much smaller than the uncertainty brought by the fingerprint closed loop. For example, the width of a corridor is often less than 3 meters, and the positioning accuracy of the fingerprint is often much greater than 3 meters. Meter. Figure 7 is a schematic diagram of trajectory-based turn detection and matching.
在本发明实施例中,步骤S22中“指纹-闭环”的计算方法为:In the embodiment of the present invention, the calculation method of "fingerprint-closed loop" in step S22 is:
A1、计算指纹i与指纹j对应位置的相对距离dij,计算公式为:A1. Calculate the relative distance d ij between the corresponding positions of fingerprint i and fingerprint j. The calculation formula is:
在公式(3)中,xi和xj分别为纹i与指纹j的横坐标,yi和yj分别为纹i与指纹j的横坐标;In formula (3), x i and x j are the abscissas of pattern i and fingerprint j, respectively, and y i and y j are the abscissas of pattern i and fingerprint j, respectively;
A2、计算指纹i与指纹j对应位置的相对角度θij,计算公式为:A2. Calculate the relative angle θ ij between the corresponding positions of fingerprint i and fingerprint j. The calculation formula is:
θij=|θi-θj| (4)θ ij =|θ i -θ j | (4)
在公式(4)中,θi为指纹i的角度,θj为指纹j的角度;In formula (4), θ i is the angle of fingerprint i, and θ j is the angle of fingerprint j;
A3、当相对距离dij小于距离阈值,相对角度θij小于角度阈值,且其指纹相似度sij大于相似度阈值,则指纹i与指纹j构成了“指纹-闭环”。A3. When the relative distance d ij is less than the distance threshold, the relative angle θ ij is less than the angle threshold, and the fingerprint similarity s ij is greater than the similarity threshold, then the fingerprint i and the fingerprint j form a "fingerprint-closed loop".
在本发明实施例中,步骤S22中的“转弯-闭环”的计算方法为:In the embodiment of the present invention, the calculation method of "turn-closed loop" in step S22 is:
B1、通过滑动窗口w将用户轨迹数据进行分割,得到t时刻轨迹的集合Ct:B1. Divide the user trajectory data through the sliding window w to obtain the set Ct of trajectories at time t:
Ct={xt'} (5)Ct={xt'} (5)
在公式(5)中,t为时间,t'为满足滑动窗口条件的时刻,|t'-t|≤w,x为用户的位姿;In formula (5), t is the time, t' is the moment when the sliding window condition is satisfied, |t'-t|≤w, x is the user's pose;
B2、将集合Ct中小于t时刻方向的平均值记为θ-,大于t时刻方向的平均值记为θ+,若θ-与θ+的差值超过60°,则t时刻处于转弯状态。B2. In the set Ct, the average value in the direction less than time t is denoted as θ-, and the average value in the direction greater than time t is denoted as θ+. If the difference between θ- and θ+ exceeds 60°, it is in a turning state at time t.
在激光扫描匹配中,ICP(迭代最近点算法)常常用于找到两组扫描点云之间的坐标变换,从而使两组点云对应点之间的距离和最小。因此使用ICP来判断两个转弯是否匹配。由于航位推算采样频率很低,在执行ICP前对两组运动轨迹进行插值。如果ICP得到对应点的平均距离值小于某一阈值θf,认为两个转弯是匹配的,并将此闭环加入到转弯闭环中。In laser scan matching, ICP (Iterative Closest Point Algorithm) is often used to find the coordinate transformation between two sets of scanned point clouds, so as to minimize the sum of the distances between the corresponding points of the two sets of point clouds. So ICP is used to determine whether two turns match. Due to the low sampling frequency of dead reckoning, two sets of motion trajectories are interpolated before performing ICP. If the average distance value of corresponding points obtained by ICP is less than a certain threshold θ f , the two turns are considered to be matched, and this closed loop is added to the turn closed loop.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection of the present invention. within the range.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810727605.9A CN109031263B (en) | 2018-07-05 | 2018-07-05 | Indoor fingerprint map construction method based on mobile crowd sensing data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810727605.9A CN109031263B (en) | 2018-07-05 | 2018-07-05 | Indoor fingerprint map construction method based on mobile crowd sensing data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109031263A CN109031263A (en) | 2018-12-18 |
CN109031263B true CN109031263B (en) | 2022-04-12 |
Family
ID=65521817
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810727605.9A Expired - Fee Related CN109031263B (en) | 2018-07-05 | 2018-07-05 | Indoor fingerprint map construction method based on mobile crowd sensing data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109031263B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110174105B (en) * | 2019-06-14 | 2022-02-11 | 西南科技大学 | Intelligent agent autonomous navigation algorithm and system in complex environment |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102905368A (en) * | 2012-10-18 | 2013-01-30 | 无锡儒安科技有限公司 | Mobile auxiliary indoor positioning method and system based on smart phone platform |
CN104157020A (en) * | 2014-08-12 | 2014-11-19 | 广州中国科学院沈阳自动化研究所分所 | Hand-held intelligent inspection terminal |
CN104181500A (en) * | 2014-08-19 | 2014-12-03 | 北京邮电大学 | Real-time locating method based on inertia information and chance wireless signal characteristics |
CN104964683A (en) * | 2015-06-04 | 2015-10-07 | 上海物景智能科技有限公司 | Closed loop correction method for indoor environment map creation |
US9204257B1 (en) * | 2005-04-12 | 2015-12-01 | Ehud Mendelson | Indoor and outdoor mapping and navigation utilizing RF bluetooth beacons |
CN105263113A (en) * | 2015-10-26 | 2016-01-20 | 深圳大学 | Wi-Fi location fingerprint map building method and system based on crowd-sourcing |
CN105589064A (en) * | 2016-01-08 | 2016-05-18 | 重庆邮电大学 | Rapid establishing and dynamic updating system and method for WLAN position fingerprint database |
CN106123897A (en) * | 2016-06-14 | 2016-11-16 | 中山大学 | Indoor fusion and positioning method based on multiple features |
CN106707232A (en) * | 2016-12-20 | 2017-05-24 | 南京工业大学 | WLAN (Wireless local area network) propagation model positioning method based on crowd sensing |
CN107688665A (en) * | 2017-09-27 | 2018-02-13 | 深圳大学 | A kind of indoor map method for auto constructing, device and storage medium |
-
2018
- 2018-07-05 CN CN201810727605.9A patent/CN109031263B/en not_active Expired - Fee Related
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9204257B1 (en) * | 2005-04-12 | 2015-12-01 | Ehud Mendelson | Indoor and outdoor mapping and navigation utilizing RF bluetooth beacons |
CN102905368A (en) * | 2012-10-18 | 2013-01-30 | 无锡儒安科技有限公司 | Mobile auxiliary indoor positioning method and system based on smart phone platform |
CN104157020A (en) * | 2014-08-12 | 2014-11-19 | 广州中国科学院沈阳自动化研究所分所 | Hand-held intelligent inspection terminal |
CN104181500A (en) * | 2014-08-19 | 2014-12-03 | 北京邮电大学 | Real-time locating method based on inertia information and chance wireless signal characteristics |
CN104964683A (en) * | 2015-06-04 | 2015-10-07 | 上海物景智能科技有限公司 | Closed loop correction method for indoor environment map creation |
CN105263113A (en) * | 2015-10-26 | 2016-01-20 | 深圳大学 | Wi-Fi location fingerprint map building method and system based on crowd-sourcing |
CN105589064A (en) * | 2016-01-08 | 2016-05-18 | 重庆邮电大学 | Rapid establishing and dynamic updating system and method for WLAN position fingerprint database |
CN106123897A (en) * | 2016-06-14 | 2016-11-16 | 中山大学 | Indoor fusion and positioning method based on multiple features |
CN106707232A (en) * | 2016-12-20 | 2017-05-24 | 南京工业大学 | WLAN (Wireless local area network) propagation model positioning method based on crowd sensing |
CN107688665A (en) * | 2017-09-27 | 2018-02-13 | 深圳大学 | A kind of indoor map method for auto constructing, device and storage medium |
Non-Patent Citations (2)
Title |
---|
"Smartphones based crowdsourcing for indoor localization";C. Wu 等;《IEEE Trans. Mobile Comput.》;20150228;第444-457页 * |
"基于位置指纹的WIFI室内定位算法研究";董艳侠;《中国优秀硕士学位论文全文数据库 信息科技辑》;20160215;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN109031263A (en) | 2018-12-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110856112B (en) | Crowd-sourcing perception multi-source information fusion indoor positioning method and system | |
Liu et al. | Fusion of magnetic and visual sensors for indoor localization: Infrastructure-free and more effective | |
WO2021212878A1 (en) | Indoor positioning algorithm based on crowdsensing and multi-fusion technologies | |
Mirowski et al. | SignalSLAM: Simultaneous localization and mapping with mixed WiFi, Bluetooth, LTE and magnetic signals | |
CN104457751B (en) | Indoor and outdoor scene recognition method and system | |
Zhao et al. | Crowdsourcing and multisource fusion-based fingerprint sensing in smartphone localization | |
US9632169B2 (en) | Using inertial navigation for calibration of indoor positioning system | |
CN106412839B (en) | Based on secondary partition and the matched indoor positioning of fingerprint gradient and tracking | |
Shang et al. | Improvement schemes for indoor mobile location estimation: A survey | |
Du et al. | CRCLoc: A crowdsourcing-based radio map construction method for WiFi fingerprinting localization | |
CN103874191B (en) | A kind of localization method based on WiFi wireless networks | |
CN107396321B (en) | Unsupervised indoor localization method based on mobile phone sensor and iBeacon | |
CN105589064A (en) | Rapid establishing and dynamic updating system and method for WLAN position fingerprint database | |
CN106840163A (en) | A kind of indoor orientation method and system | |
Gong et al. | Robust light-weight magnetic-based door event detection with smartphones | |
Peng et al. | Indoor floor plan construction through sensing data collected from smartphones | |
CN106197418B (en) | An Indoor Positioning Method Based on Sliding Window Fingerprint Method and Sensor Fusion | |
CN108629295A (en) | Corner terrestrial reference identification model training method, the recognition methods of corner terrestrial reference and device | |
Wu et al. | Indoor positioning based on tightly coupling of PDR and one single Wi-Fi FTM AP | |
CN109031263B (en) | Indoor fingerprint map construction method based on mobile crowd sensing data | |
CN111427982A (en) | WiFi indoor positioning fingerprint database construction and updating technology based on crowd sensing | |
CN114674317A (en) | Self-correcting dead reckoning system and method based on activity recognition and fusion filtering | |
Wei et al. | MM-Loc: Cross-sensor indoor smartphone location tracking using multimodal deep neural networks | |
Zhang et al. | Noise reduction for radio map crowdsourcing building in WLAN indoor localization system | |
Qiu et al. | Walk and learn: Enabling accurate indoor positioning by profiling outdoor movement on smartphones |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20220412 |
|
CF01 | Termination of patent right due to non-payment of annual fee |