CN111288999A - A mobile terminal-based pedestrian road network attribute detection method, device and equipment - Google Patents
A mobile terminal-based pedestrian road network attribute detection method, device and equipment Download PDFInfo
- Publication number
- CN111288999A CN111288999A CN202010104216.8A CN202010104216A CN111288999A CN 111288999 A CN111288999 A CN 111288999A CN 202010104216 A CN202010104216 A CN 202010104216A CN 111288999 A CN111288999 A CN 111288999A
- Authority
- CN
- China
- Prior art keywords
- data
- road network
- attribute
- trajectory
- attributes
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 63
- 238000012549 training Methods 0.000 claims abstract description 84
- 238000000034 method Methods 0.000 claims abstract description 61
- 238000013145 classification model Methods 0.000 claims abstract description 34
- 238000012545 processing Methods 0.000 claims abstract description 15
- 230000004927 fusion Effects 0.000 claims abstract description 12
- 238000012937 correction Methods 0.000 claims abstract description 5
- 238000005070 sampling Methods 0.000 claims description 33
- 238000010801 machine learning Methods 0.000 claims description 19
- 230000002159 abnormal effect Effects 0.000 claims description 17
- 239000000284 extract Substances 0.000 claims description 13
- 230000008569 process Effects 0.000 claims description 13
- 230000001133 acceleration Effects 0.000 claims description 11
- 230000006870 function Effects 0.000 claims description 10
- 241000288113 Gallirallus australis Species 0.000 claims description 8
- 230000008030 elimination Effects 0.000 claims description 4
- 238000003379 elimination reaction Methods 0.000 claims description 4
- 238000004891 communication Methods 0.000 description 10
- 238000004364 calculation method Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 238000007781 pre-processing Methods 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000000717 retained effect Effects 0.000 description 3
- AYFVYJQAPQTCCC-GBXIJSLDSA-N L-threonine Chemical compound C[C@@H](O)[C@H](N)C(O)=O AYFVYJQAPQTCCC-GBXIJSLDSA-N 0.000 description 2
- 230000009471 action Effects 0.000 description 2
- 238000013480 data collection Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000013075 data extraction Methods 0.000 description 1
- 238000007418 data mining Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 238000007499 fusion processing Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 108091008695 photoreceptors Proteins 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 238000012800 visualization Methods 0.000 description 1
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/26—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
- G01C21/28—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network with correlation of data from several navigational instruments
- G01C21/30—Map- or contour-matching
- G01C21/32—Structuring or formatting of map data
-
- 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/26—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
- G01C21/34—Route searching; Route guidance
- G01C21/3407—Route searching; Route guidance specially adapted for specific applications
- G01C21/3415—Dynamic re-routing, e.g. recalculating the route when the user deviates from calculated route or after detecting real-time traffic data or accidents
-
- 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
- G01S19/00—Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
- G01S19/38—Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
- G01S19/39—Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
- G01S19/42—Determining position
- G01S19/45—Determining position by combining measurements of signals from the satellite radio beacon positioning system with a supplementary measurement
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Computer Networks & Wireless Communication (AREA)
- Navigation (AREA)
- Traffic Control Systems (AREA)
Abstract
本发明公开了一种基于移动终端的行人路网属性检测方法、装置和设备,方法包括:若干用户的移动终端采集传感器数据,得到原始数据后,一分部数据记录道路属性用于构建训练集数据,另一部分数据作为轨迹数据用于属性检测;使用训练集数据对不同属性的样本数据进行分类训练,得到分类模型;使用训练所得分类模型检测轨迹数据的属性,并与位置信息进行数据融合得到带属性信息的GPS数据;基于现有的行人路网数据,将轨迹点所检测的属性赋予路网中被匹配的位置点,经过投票与修正处理后,即得到了带有属性信息的路网数据。本发明在解决现有技术的导航系统无法为用户提供特定需求的个性化导航服务;采用智能手机传感器所采集数据检测行人路网的道路属性,为实现个性化的行人导航提供数据基础。
The invention discloses a method, device and equipment for detecting pedestrian road network attributes based on mobile terminals. The method comprises: collecting sensor data by mobile terminals of several users, and after obtaining the original data, recording road attributes in a part of the data for constructing a training set data, and another part of the data is used as trajectory data for attribute detection; use the training set data to classify and train sample data with different attributes to obtain a classification model; use the classification model obtained from the training to detect the attributes of the trajectory data, and perform data fusion with the location information to obtain GPS data with attribute information; based on the existing pedestrian road network data, the attributes detected by the trajectory points are assigned to the matched location points in the road network, and after voting and correction processing, the road network with attribute information is obtained. data. The invention solves the problem that the prior art navigation system cannot provide users with personalized navigation services for specific needs; uses data collected by smart phone sensors to detect road attributes of the pedestrian road network, and provides a data basis for realizing personalized pedestrian navigation.
Description
技术领域technical field
本发明涉及智能交通数据处理技术领域,特别是涉及一种基于移动终端的行人路网属性检测方法、装置和设备。The present invention relates to the technical field of intelligent traffic data processing, in particular to a method, device and equipment for detecting pedestrian road network attributes based on a mobile terminal.
背景技术Background technique
作为智能交通的一个重要的组成部分,行人路网描述了行人路段几何关系的拓扑图,是行人导航系统的基础数据。而行人导航系统旨在对行人路网的路径规划,这意味着需要行人路网的及时构建与更新,但现有的大多方法都忽略了行人路网基础数据中对属性信息的添加。路径规划时,缺少对属性信息的度量,仅使用最短路分析进行路径规划,无法提供满足特殊的出行需求。道路属性,是特殊群体出行的首要考虑因素,比如骑自行车出行者、行动受限人群,道路障碍会极大程度的影响其出行的通达性及舒适性。尤其针对轮椅用户,当出行时遇到无配套无障碍服务设施的人行天桥或楼梯,该群体无法自主通行。此外,遇到不同坡度值的道路时,对出行通达性的影响亦是相差甚远。针对现有的行人导航服务,基础数据中缺失对属性信息,无法为出行群体提供满足不同出行需求的最优路径,以至于无法实现个性化导航。As an important part of intelligent transportation, pedestrian road network describes the topological map of the geometric relationship of pedestrian road segments, and is the basic data of pedestrian navigation system. The pedestrian navigation system is designed to plan the path of the pedestrian road network, which means that the pedestrian road network needs to be constructed and updated in time, but most of the existing methods ignore the addition of attribute information in the basic data of the pedestrian road network. During route planning, there is no measure of attribute information, and only the shortest path analysis is used for route planning, which cannot meet special travel needs. Road attributes are the primary consideration for travel of special groups, such as cyclists and people with limited mobility. Road obstacles will greatly affect their travel accessibility and comfort. Especially for wheelchair users, when they encounter pedestrian bridges or stairs without supporting barrier-free service facilities, the group cannot pass by themselves. In addition, when encountering roads with different slope values, the impact on travel accessibility is also very different. For the existing pedestrian navigation service, the attribute information is missing in the basic data, and it is impossible to provide the optimal path for travel groups to meet different travel needs, so that personalized navigation cannot be realized.
即现有技术的导航系统无法为用户提供特定需求的个性化导航服务,致使导航系统对部分用户的友好性差,一定程度上降低了出行群体对其的使用感受。That is, the navigation system in the prior art cannot provide users with personalized navigation services for specific needs, resulting in poor user friendliness of the navigation system for some users, which reduces the use experience of travel groups to a certain extent.
发明内容SUMMARY OF THE INVENTION
本发明所要解决的技术问题是,提供一种基于移动终端的行人路网属性检测方法、装置和设备,旨在解决路网基础数据中缺少属性信息,现有技术的导航系统无法为用户提供特定需求的个性化导航服务,出行群体对导航系统体验感差的问题;采用移动终端的传感器数据检测行人路网的道路属性,丰富行人路网的基础数据,为实现个性化的行人导航服务提供数据基础,以满足不同出行群体的特殊需求。The technical problem to be solved by the present invention is to provide a mobile terminal-based pedestrian road network attribute detection method, device and equipment, aiming to solve the lack of attribute information in the road network basic data, and the navigation system in the prior art cannot provide users with specific information. The need for personalized navigation services, and the problem that the travel group has a poor experience of the navigation system; the sensor data of the mobile terminal is used to detect the road attributes of the pedestrian road network, enrich the basic data of the pedestrian road network, and provide data for the realization of personalized pedestrian navigation services. basis to meet the special needs of different travel groups.
一种基于移动终端的行人路网属性检测方法,其中,包括:A mobile terminal-based pedestrian road network attribute detection method, comprising:
若干用户的移动终端采集传感器数据,得到原始数据后,提取所需的传感器数据;记录部分用户移动终端所采集数据的路网属性,用于构建训练集数据,其余用户移动终端所采集的数据直接上传至云端获得众包数据,并作为轨迹数据用于属性检测;The mobile terminals of several users collect sensor data, and after obtaining the original data, extract the required sensor data; record the road network attributes of the data collected by the mobile terminals of some users, which are used to construct the training set data, and the data collected by the mobile terminals of other users are directly Upload to the cloud to obtain crowdsourced data, and use it as trajectory data for attribute detection;
对用于构建训练集的数据,进行预处理,依据滑动窗口采样,计算每个样本的特征值并标注相应的属性类型,使用机器学习中的特征选择算法筛选特征值,构建训练数据集;Preprocess the data used to construct the training set, calculate the eigenvalues of each sample according to the sliding window sampling and label the corresponding attribute types, use the feature selection algorithm in machine learning to filter the eigenvalues, and construct the training data set;
根据得到的训练数据集,采用机器学习的方法,对不同属性的样本数据进行分类训练,得到适用于路网属性的分类模型;According to the obtained training data set, the method of machine learning is used to classify and train sample data of different attributes, and a classification model suitable for road network attributes is obtained;
将众包的轨迹数据进行数据处理,并用训练好的分类模型,进行属性检测;将轨迹数据的位置信息与属性信息进行数据融合,得到带属性信息的GPS数据;Process the crowdsourced trajectory data, and use the trained classification model to perform attribute detection; fuse the location information and attribute information of the trajectory data to obtain GPS data with attribute information;
基于现有行人路网的基础数据,进行地图匹配,将轨迹点的属性信息赋予所匹配到现有路网中的位置点;对匹配到多个属性标签的位置点,使用多数投票法得到位置点的唯一标签;修正异常标签,得到带有属性信息的路网数据。Based on the basic data of the existing pedestrian road network, map matching is performed, and the attribute information of the trajectory points is assigned to the location points matched to the existing road network; for the location points matched with multiple attribute labels, the majority voting method is used to obtain the location. The unique label of the point; correct the abnormal label to get the road network data with attribute information.
所述基于移动终端的行人路网属性检测方法,其中,所述若干用户的移动终端采集传感器数据,得到原始数据后,提取所需的传感器数据;记录部分用户移动终端所采集数据的路网属性,用于构建训练集数据,其余用户移动终端所采集的数据直接上传至云端获得众包数据,并作为轨迹数据用于属性检测的步骤包括:The mobile terminal-based pedestrian road network attribute detection method, wherein the mobile terminals of several users collect sensor data, and after obtaining the original data, extract the required sensor data; record the road network attributes of the data collected by the mobile terminals of some users , used to construct training set data, and the data collected by other user mobile terminals are directly uploaded to the cloud to obtain crowdsourced data, and used as trajectory data for attribute detection. The steps include:
通过若干用户的移动终端采集多个传感器数据,并提取加速度计、气压计、GPS三个传感器的数据;得到三轴加速度、气压值、GPS数据,并保留时间戳数据。Collect multiple sensor data through several users' mobile terminals, and extract data from three sensors: accelerometer, barometer, and GPS; obtain three-axis acceleration, barometric pressure, and GPS data, and retain timestamp data.
所述基于移动终端的行人路网属性检测方法,其中,所述对用于构建训练集的数据,进行预处理,依据滑动窗口采样,计算每个样本的特征值并标注相应的属性类型,使用机器学习中的特征选择算法筛选特征值,构建训练数据集的步骤包括:The mobile terminal-based pedestrian road network attribute detection method, wherein, the data used to construct the training set is preprocessed, and the feature value of each sample is calculated according to the sliding window sampling and the corresponding attribute type is marked, using Feature selection algorithms in machine learning filter feature values, and the steps to construct a training dataset include:
对用于构建训练集的原始数据中的噪声数据进行剔除,对气压值进行滤波处理,得到用于构建训练集的初始数据;The noise data in the original data used to construct the training set is eliminated, and the air pressure value is filtered to obtain the initial data used to construct the training set;
将得到的用于构建训练集的数据,通过滑动窗口进行数据采样,得到数据集的多个样本;The obtained data used to construct the training set is sampled through a sliding window to obtain multiple samples of the data set;
数据采样完成后,选取均值、方差、相关系数、气压差作为样本初始特征,计算每个样本的特征值,并保留每个样本的第一条时间戳数据,随后采用Weka的特征选择功能对初始特征进行筛选,并提取最优特征子集;After the data sampling is completed, select the mean, variance, correlation coefficient, and pressure difference as the initial characteristics of the sample, calculate the eigenvalues of each sample, and retain the first timestamp data of each sample, and then use Weka's feature selection function to analyze the initial data. Features are screened, and the optimal feature subset is extracted;
获得各样本的特征值后,添加其对应的属性标签,得到最终所需的训练集数据。After obtaining the characteristic value of each sample, add its corresponding attribute label to obtain the final required training set data.
所述基于移动终端的行人路网属性检测方法,其中,所述对用于构建训练集的数据中的噪声数据进行剔除的步骤包括:The mobile terminal-based pedestrian road network attribute detection method, wherein the step of eliminating noise data in the data used to construct the training set includes:
根据采集的数据确定采样频率;Determine the sampling frequency according to the collected data;
依据计算得到的采样频率设置方差阈值及剔除量;Set the variance threshold and the rejection amount according to the calculated sampling frequency;
根据剔除量剔除始末部分数据;Eliminate some data at the beginning and end according to the amount of elimination;
依据所设置方差阈值,剔除非运动状态所采集的数据。According to the set variance threshold, the data collected in the non-motion state is eliminated.
所述基于移动终端的行人路网属性检测方法,其中,所述根据得到的训练数据集,采用机器学习的方法,对不同属性的样本数据进行分类训练,得到适用于路网属性的分类模型的步骤包括:The mobile terminal-based pedestrian road network attribute detection method, wherein, according to the obtained training data set, the method of machine learning is used to classify and train sample data of different attributes, so as to obtain a classification model suitable for road network attributes. Steps include:
将得到的最终训练集数据作为模型输入,采用K-邻近模型作为分类模型进行训练,得到适用于路网属性的分类模型。The obtained final training set data is used as the model input, and the K-proximity model is used as the classification model for training, and a classification model suitable for road network attributes is obtained.
所述基于移动终端的行人路网属性检测方法,其中,所述将众包的轨迹数据进行数据处理,并用训练好的分类模型,进行属性检测;将轨迹数据的位置信息与属性信息进行数据融合,得到带属性信息的GPS数据的步骤包括:The mobile terminal-based pedestrian road network attribute detection method, wherein the crowdsourced trajectory data is subjected to data processing, and a trained classification model is used to perform attribute detection; the location information of the trajectory data and the attribute information are data fused. , the steps of obtaining GPS data with attribute information include:
对众包的轨迹数据进行预处理并采样,依据训练数据中所选特征计算各样本特征值,同时保留每个样本的第一条时间戳数据;Preprocess and sample the crowdsourced trajectory data, calculate the feature value of each sample according to the selected features in the training data, and retain the first timestamp data of each sample;
使用训练好的K-邻近模型,对处理后的轨迹数据进行属性检测,即得到轨迹数据每个样本的属性信息,并且带有时间信息;Use the trained K-proximity model to perform attribute detection on the processed trajectory data, that is, to obtain the attribute information of each sample of the trajectory data, with time information;
将得到带有时间信息的属性信息与位置信息进行数据融合,得到各轨迹的GPS数据带有属性信息。Integrate the attribute information with time information and position information to obtain the GPS data of each track with attribute information.
所述基于移动终端的行人路网属性检测方法,其中,所述基于现有行人路网的基础数据,进行地图匹配,将轨迹点的属性信息赋予所匹配到现有路网中的位置点;对匹配到多个属性标签的位置点,使用多数投票法得到位置点的唯一标签;修正异常标签,得到带有属性信息的路网数据的步骤包括:The mobile terminal-based pedestrian road network attribute detection method, wherein the map matching is performed based on the basic data of the existing pedestrian road network, and the attribute information of the trajectory points is assigned to the position points matched to the existing road network; For the location points that match multiple attribute labels, use the majority voting method to obtain the unique label of the location point; the steps of correcting the abnormal label to obtain road network data with attribute information include:
获取现有路网的基础数据,将融合后的轨迹数据,依据一定的时间窗长度进行采样,将每个样本作为一个轨迹段根据位置进行属性匹配;Obtain the basic data of the existing road network, sample the fused trajectory data according to a certain time window length, and use each sample as a trajectory segment to perform attribute matching according to the location;
匹配完成后,由于路网点密度与轨迹点密度的差距,存在部分路网的位置点被匹配至多个属性标签,使用多数投票法,对各位置点的多个属性标签进行投票以得到唯一标签。After the matching is completed, due to the gap between the density of road network points and the density of trajectory points, there are some location points in the road network that are matched to multiple attribute labels. Using the majority voting method, the multiple attribute labels of each location point are voted to obtain a unique label.
获取唯一标签后,由于分类精度的影响,存在部分位置点所检测的属性有误,需进行逻辑判断,获取异常标签并进行修正,以得到最终的带有属性的路网基础数据。After obtaining the unique label, due to the influence of the classification accuracy, there are some wrong attributes detected by the location points. It is necessary to make logical judgments, obtain the abnormal labels and make corrections, so as to obtain the final road network basic data with attributes.
一种基于移动终端的行人路网属性检测装置,其中,包括:A mobile terminal-based pedestrian road network attribute detection device, comprising:
采集模块,用于若干用户的移动终端采集传感器数据,得到原始数据后,提取所需的传感器数据;记录部分用户移动终端所采集数据的路网属性,用于构建训练集数据,其余用户移动终端所采集的数据直接上传至云端获得众包数据,并作为轨迹数据用于属性检测;The acquisition module is used for the mobile terminals of several users to collect sensor data, and after obtaining the original data, extract the required sensor data; record the road network attributes of the data collected by the mobile terminals of some users, which are used to construct the training set data, and the mobile terminals of other users The collected data is directly uploaded to the cloud to obtain crowdsourced data, and used as trajectory data for attribute detection;
构建模块,用于对用于构建训练集的数据,进行预处理,依据滑动窗口采样,计算每个样本的特征值并标注相应的属性类型,使用机器学习中的特征选择算法筛选特征值,构建训练数据集;The building module is used to preprocess the data used to construct the training set, calculate the eigenvalues of each sample according to the sliding window sampling and label the corresponding attribute types, use the feature selection algorithm in machine learning to filter the eigenvalues, and construct training dataset;
分类模块,用于使用得到的训练数据集,采用机器学习的方法,对不同属性的样本数据进行分类训练,得到适用于路网属性的分类模型;The classification module is used to use the obtained training data set to classify and train sample data of different attributes by using the method of machine learning, so as to obtain a classification model suitable for road network attributes;
融合模块,用于将众包的轨迹数据进行数据处理,并用训练好的分类模型,进行属性检测;将轨迹数据的位置信息与属性信息进行数据融合,得到带属性信息的GPS数据;The fusion module is used to process the crowdsourced trajectory data, and use the trained classification model to perform attribute detection; fuse the location information and attribute information of the trajectory data to obtain GPS data with attribute information;
匹配模块,用于基于现有行人路网的基础数据,进行地图匹配,将轨迹点的属性信息赋予所匹配到现有路网中的位置点;对匹配到多个属性标签的位置点,使用多数投票法得到位置点的唯一标签;修正异常标签,得到带有属性信息的路网数据。The matching module is used to perform map matching based on the basic data of the existing pedestrian road network, and assign the attribute information of the trajectory points to the position points matched to the existing road network; for the position points matched to multiple attribute labels, use The majority voting method obtains the unique label of the location point; corrects the abnormal label to obtain the road network data with attribute information.
一种计算机设备,其中,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于执行如权利要求1-7中任意一项所述基于移动终端的行人路网属性检测方法的步骤。A computer apparatus comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors including The steps for executing the method for detecting the attributes of a pedestrian road network based on a mobile terminal according to any one of claims 1-7.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行上述任意一项所述基于移动终端的行人路网属性检测方法的步骤。A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute any one of the above-mentioned methods for detecting pedestrian road network attributes based on a mobile terminal. step.
与现有技术相比,本发明实施例具有以下优点:Compared with the prior art, the embodiment of the present invention has the following advantages:
根据本发明实施方式提供的方法,使用智能手机采集多个传感器的数据,对数据进行处理并标注属性标签,选择合适的样本特征,用于训练分类模型,以实现对轨迹数据的属性检测的功能。自动检测出行人路网中的道路属性,添加至行人路网的基础数据中,改善在路径规划中缺少对属性因素的考虑的现状,实现最优路径的规划,满足行人出行的特殊需求。According to the method provided by the embodiment of the present invention, a smart phone is used to collect data from multiple sensors, process the data and label attribute labels, and select appropriate sample features for training a classification model, so as to realize the function of attribute detection of trajectory data. . The road attributes in the pedestrian road network are automatically detected and added to the basic data of the pedestrian road network to improve the status quo of the lack of consideration of attribute factors in route planning, realize optimal route planning, and meet the special needs of pedestrian travel.
本发明采用智能手机传感器所采集数据检测行人路网的道路属性,丰富行人路网的基础数据,为实现个性化的行人导航服务提供数据基础,以满足不同出行群体的特殊需求。The invention uses the data collected by smart phone sensors to detect the road attributes of the pedestrian road network, enriches the basic data of the pedestrian road network, provides a data basis for realizing personalized pedestrian navigation services, and meets the special needs of different travel groups.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments described in the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为本发明实施例中一种基于移动终端的行人路网属性检测方法的流程示意图;1 is a schematic flowchart of a mobile terminal-based pedestrian road network attribute detection method in an embodiment of the present invention;
图2为本发明实施例中一种基于移动终端的行人路网属性检测方法的坡路数据的提取示例示意图FIG. 2 is a schematic diagram of an example of extracting slope data of a method for detecting pedestrian road network attributes based on a mobile terminal according to an embodiment of the present invention.
图3为本发明实施例中一种基于移动终端的行人路网属性检测方法的人行天桥(楼梯)数据的提取示例示意图。FIG. 3 is a schematic diagram of an example of extraction of pedestrian bridge (staircase) data based on a mobile terminal-based pedestrian road network attribute detection method according to an embodiment of the present invention.
图4为本发明实施例中一种基于移动终端的行人路网属性检测装置功能原理框图。FIG. 4 is a functional principle block diagram of a mobile terminal-based pedestrian road network attribute detection apparatus according to an embodiment of the present invention.
图5为本发明进一步实施例中基于移动终端的行人路网属性检测装置的结构示意图。FIG. 5 is a schematic structural diagram of a mobile terminal-based pedestrian road network attribute detection apparatus in a further embodiment of the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make those skilled in the art better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
发明人经过研究发现,现有的行人路网基础数据忽略了行人路网属性信息的添加。导航系统在路径分析过程中,缺少对属性信息的度量,仅使用最短路分析进行路径规划,无法提供满足特殊的出行需求。道路属性,是特殊群体出行的首要考虑因素,比如骑自行车出行者、行动受限人群,道路障碍会极大程度的影响其出行的通达性及舒适性。尤其针对轮椅用户,当出行时遇到无配套无障碍服务设施的人行天桥或楼梯,该群体无法自主通行。此外,遇到不同坡度值的道路时,对出行通达性的影响亦是相差甚远。针对现有的行人导航服务,无法为出行群体提供满足不同出行需求的最优路径,以至于无法实现个性化导航。The inventor found through research that the existing basic data of the pedestrian road network ignores the addition of the attribute information of the pedestrian road network. In the process of route analysis, the navigation system lacks the measurement of attribute information, and only uses the shortest path analysis for route planning, which cannot meet special travel needs. Road attributes are the primary consideration for travel of special groups, such as cyclists and people with limited mobility. Road obstacles will greatly affect their travel accessibility and comfort. Especially for wheelchair users, when they encounter pedestrian bridges or stairs without supporting barrier-free service facilities, the group cannot pass by themselves. In addition, when encountering roads with different slope values, the impact on travel accessibility is also very different. For the existing pedestrian navigation services, it is impossible to provide optimal paths for travel groups to meet different travel needs, so that personalized navigation cannot be realized.
为了解决上述问题,在本发明实施例中,对导航系统的基础数据中添加行人路网属性信息,为用户提供特定需求的个性化导航服务,可以通过智能终端例如使用智能手机采集多个传感器的数据,对数据进行处理并标注属性标签,选择合适的样本特征,用于训练分类模型,以实现对轨迹数据的属性检测的功能。自动检测出行人路网中的道路属性,添加至行人路网的基础数据中,改善在路径规划中缺少对属性因素的考虑的现状,实现最优路径的规划,满足行人出行的特殊需求。In order to solve the above problems, in the embodiment of the present invention, the attribute information of the pedestrian road network is added to the basic data of the navigation system to provide users with personalized navigation services according to specific needs. Data, process the data and mark the attribute labels, select the appropriate sample features, and use them to train the classification model, so as to realize the function of attribute detection of the trajectory data. The road attributes in the pedestrian road network are automatically detected and added to the basic data of the pedestrian road network to improve the status quo of the lack of consideration of attribute factors in route planning, realize optimal route planning, and meet the special needs of pedestrian travel.
智能移动终端如智能手机等内置了多种传感器,包括加速度计、陀螺仪、磁力计、气压计、感光器以及GPS等,因此本发明采用基于多传感器数据检测行人行径路段的属性信息。智能手机的普遍使用,使得本发明方法实现使用众包数据的属性检测。将带有属性信息的GPS数据,映射于OpenStreetMap(简称OSM,中文是公开地图)的行人路网中,实现属性在路网中的可视化。最终,搭建平台,将各用户采集的数据上传至平台,采用本发明的方法,得到各轨迹的属性信息,添加至行人路网的基础数据中,在路径规划过程中对属性进行考虑,实现满足特殊需求的路径规划。Intelligent mobile terminals such as smart phones have built-in various sensors, including accelerometers, gyroscopes, magnetometers, barometers, photoreceptors and GPS, etc. Therefore, the present invention uses multi-sensor data to detect attribute information of pedestrian paths. The widespread use of smart phones enables the method of the present invention to implement attribute detection using crowdsourced data. Map the GPS data with attribute information to the pedestrian road network of OpenStreetMap (OSM for short, public map in Chinese) to realize the visualization of attributes in the road network. Finally, build a platform, upload the data collected by each user to the platform, use the method of the present invention to obtain the attribute information of each track, add it to the basic data of the pedestrian road network, and consider the attributes in the path planning process to achieve the satisfaction of Path planning for special needs.
下面结合附图,详细说明本发明的各种非限制性实施方式。Various non-limiting embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
参见图1,示出了本发明实施例中的一种基于移动终端的行人路网属性检测方法。在本实施例中,所述方法例如可以包括以下步骤:Referring to FIG. 1 , a mobile terminal-based pedestrian road network attribute detection method in an embodiment of the present invention is shown. In this embodiment, the method may include the following steps, for example:
S210:通过若干用户的移动终端采集传感器数据,得到原始数据后,提取所需的传感器数据;在所采集传感器数据中的记录部分用户移动终端所采集数据的路网属性,用于构建训练集数据,其余用户移动终端所采集的数据直接上传至云端获得众包数据,并作为轨迹数据用于属性检测。S210: Collect sensor data through mobile terminals of several users, and extract the required sensor data after obtaining the original data; record the road network attributes of the data collected by the mobile terminals of some users in the collected sensor data, and use it to construct training set data , and the data collected by the mobile terminals of other users are directly uploaded to the cloud to obtain crowdsourced data, and used as trajectory data for attribute detection.
本实施例中,通过N多个客户的智能手机采集多个传感器数据,并提取加速度计、气压计、GPS三个传感器的数据;得到三轴加速度、气压值、GPS数据后,保留时间戳数据的同时,对该类数据进行以下预处理。In this embodiment, multiple sensor data are collected through the smart phones of N multiple customers, and the data of the three sensors, accelerometer, barometer, and GPS are extracted; after the three-axis acceleration, air pressure value, and GPS data are obtained, the timestamp data is retained. At the same time, the following preprocessing is performed on this type of data.
S220:对用于构建训练集的数据,进行预处理,随后依据滑动窗口采样,计算每个样本的特征值并标注相应的属性类型,使用机器学习中的特征选择算法筛选特征值,构建训练数据集;S220: Preprocess the data used to construct the training set, then sample the eigenvalues of each sample according to the sliding window, label the corresponding attribute types, use the feature selection algorithm in machine learning to filter the eigenvalues, and construct training data set;
其中,所述步骤S220具体包括:Wherein, the step S220 specifically includes:
S221.首先对用于构建训练集的原始数据中的噪声数据进行剔除,由于运动状态下手机抖动明显,气压值无法直接用于表示真实气压变化,需对气压值进行滤波处理,而后得到用于构建训练集的初始数据;S221. First, remove the noise data in the original data used to construct the training set. Since the mobile phone shakes obviously in the motion state, the air pressure value cannot be directly used to represent the real air pressure change. Build the initial data for the training set;
因为行人行走的不确定影响因素多,造成加速度数据中存在噪点,比如由于对设备的操作,在采集的过程的起始与结束均为静止状态,或遇到不定因素,造成行人在原地停留的场景。该些非运动状态所采集的数据即为数据中的噪声数据。需要剔除噪声数据,以避免对模型训练及后续检测精度的造成影响。此外,运动状态下手机的抖动明显,所采集的气压值无法直接用于表示气压的真实变化,所以使用巴特沃兹滤波器,对气压值进行滤波处理。Because there are many uncertain factors affecting pedestrian walking, there are noises in the acceleration data. For example, due to the operation of the device, the start and end of the acquisition process are in a static state, or there are uncertain factors that cause pedestrians to stay in place. Scenes. The data collected in these non-motion states are noise data in the data. Noise data needs to be removed to avoid affecting the model training and subsequent detection accuracy. In addition, the vibration of the mobile phone is obvious under the motion state, and the collected air pressure value cannot be directly used to represent the real change of air pressure, so the Butterworth filter is used to filter the air pressure value.
首先,根据采集的数据确定采样频率,采样频率frequency由相邻时间之差Δt确定得到。First, the sampling frequency is determined according to the collected data, and the sampling frequency frequency is determined by the difference Δt between adjacent times.
frequency=1000/(∑Δt/n)frequency=1000/(∑Δt/n)
其中,n为数据量。Among them, n is the amount of data.
依据计算得到的采样频率设置方差阈值threshold及剔除量reject,具体见下表所示。其中,方差阈值是用于判断所采集的数据是否为运动状态,即行径坡路或楼梯;剔除量是指需消除采集数据过程中开始之后和结束之前的一部分数据。Set the variance threshold threshold and the rejection amount reject according to the calculated sampling frequency, as shown in the following table. Among them, the variance threshold is used to determine whether the collected data is in a motion state, that is, walking on a slope or stairs; the amount of rejection refers to the need to eliminate a part of the data after the start and before the end of the data collection process.
表3.1采样频率、方差阈值、剔除量间的数值关系Table 3.1 Numerical relationship among sampling frequency, variance threshold, and rejection
其次,时间窗大小可设置为1.25、2.56、5.12、7.68等数值,依据需要确定时间窗长度time_window,通过采样频率确定方差阈值std_thre的大小。根据时间窗的大小分段采样,并计算每个样本中z轴加速的方差std_z,与方差阈值进行对比。当每个样本中z轴加速的方差std_z>std_thre方差阈值时,则认为该样本为运动状态,并对数据进行标注。本发明实施例中得到每个样本的运动状态后,将每个样本的始末时间信息与运动状态相关联,用于下一步的数据提取。其中,时间窗对数据的分段,采用以下式子计算,式中及分别表示第i个样本的起始和结束的位置。Secondly, the time window size can be set to 1.25, 2.56, 5.12, 7.68 and other values, the time window length time_window is determined as needed, and the variance threshold std_thre is determined by the sampling frequency. The samples are sampled in segments according to the size of the time window, and the variance std_z of the z-axis acceleration in each sample is calculated and compared with the variance threshold. When the variance of the z-axis acceleration in each sample is std_z > std_thre variance threshold, the sample is considered to be in motion, and the data is marked. In the embodiment of the present invention, after the motion state of each sample is obtained, the start and end time information of each sample is associated with the motion state, which is used for the next step of data extraction. Among them, the segmentation of data by the time window is calculated by the following formula, where and represent the start and end positions of the ith sample, respectively.
最后,根据剔除量剔除始末部分数据,将原始数据与运动状态,通过时间戳的比对,提取运动状态所采集的数据,并保存,得到最终用于构建训练集的数据。Finally, according to the culling amount, the beginning and end part of the data is removed, the original data and the motion state are compared, and the data collected by the motion state is extracted and saved to obtain the data that is finally used to construct the training set.
如图2和图3所示,其中图2为本发明实施例中一种基于移动终端的行人路网属性检测方法的坡路数据的提取示例示意图As shown in FIG. 2 and FIG. 3, FIG. 2 is a schematic diagram of an example of extracting slope data of a mobile terminal-based pedestrian road network attribute detection method in an embodiment of the present invention
图3为本发明实施例中一种基于移动终端的行人路网属性检测方法的人行天桥(楼梯)数据的提取示例示意图。FIG. 3 is a schematic diagram of an example of extraction of pedestrian bridge (staircase) data based on a mobile terminal-based pedestrian road network attribute detection method according to an embodiment of the present invention.
S222.将得到的用于构建训练集的数据,通过滑动窗口进行数据采样,得到数据集的多个样本。S222. Using the obtained data for constructing a training set, perform data sampling through a sliding window to obtain multiple samples of the data set.
本发明中,对数据预处理后,即得到用于构建训练集的数据。根据采样频率frequency及时间窗time_window,确定滑动窗口slide_window,以50%作为窗口重叠进行数据采样,且用于接下来的特征计算。其中,每个样本的采样位置具体通过下式确定。In the present invention, after preprocessing the data, the data for constructing the training set is obtained. According to the sampling frequency frequency and the time window time_window, determine the sliding window slide_window, take 50% as the window overlap to perform data sampling, and use it for the next feature calculation. The sampling position of each sample is specifically determined by the following formula.
slide_window=frequency*time_windowslide_window=frequency*time_window
S223、数据采样完成后,选取均值、方差、相关系数、气压差作为样本初始特征,计算每个样本的特征值,并保留每个样本的第一条时间戳数据,随后采用Weka的特征选择功能对初始特征进行筛选,并提取最优的特征子集S223. After the data sampling is completed, select the mean value, variance, correlation coefficient, and air pressure difference as the initial characteristics of the sample, calculate the characteristic value of each sample, and retain the first timestamp data of each sample, and then use Weka's feature selection function Screen the initial features and extract the optimal feature subset
本发明中,完成数据预处理后,得到了数据集的多个样本,选取均值、方差、相关系数、气压差作为样本初始特征,计算每个样本的特征值,并保留每个样本的第一条时间戳数据,随后采用Weka的特征选择功能对初始特征进行筛选,并提取最优的特征子集。Weka作为机器学习集成平台,是数据挖掘的常用工具。Weka中的其一功能Select attributes,是通过搜索数据中所有可能的属性组合,以找出预测效果最佳的属性子集。本发明为了使分模型的分类精度更优,将采用Weka的特征选择功能,对训练集的初始特征进行筛选,提取出最优的特征子集,得到最终的训练集。In the present invention, after the data preprocessing is completed, multiple samples of the data set are obtained, the mean value, variance, correlation coefficient, and pressure difference are selected as the initial characteristics of the samples, the characteristic value of each sample is calculated, and the first value of each sample is retained. Timestamp data, and then use Weka's feature selection function to filter the initial features and extract the optimal feature subset. As a machine learning integration platform, Weka is a common tool for data mining. One of the functions in Weka, Select attributes, is to search all possible combinations of attributes in the data to find the subset of attributes with the best prediction performance. In order to make the classification accuracy of the sub-model better, the present invention uses the feature selection function of Weka to screen the initial features of the training set, extracts the optimal feature subset, and obtains the final training set.
所选初始特征说明如下表所示。The selected initial feature descriptions are shown in the table below.
表3.2特征值及其说明Table 3.2 Eigenvalues and their descriptions
具体计算公式如下:The specific calculation formula is as follows:
Δbaro=baroend-barobegin Δbaro=baro end -baro begin
式中,m表示每个样本中的数据量,ai(i=1,2,3)分别表示xyz三轴加速度数据。In the formula, m represents the amount of data in each sample, and a i (i=1, 2, 3) represents the xyz three-axis acceleration data, respectively.
S224、获得各样本的特征值后,添加其对应的属性标签,得到最终所需的训练集数据。S224 , after obtaining the characteristic value of each sample, add its corresponding attribute label to obtain the final required training set data.
本发明实施例中,每个样本特征值计算完成后,添加其对应的属性标签,获得所需的训练集。道路属性主要分为道路坡度、道路障碍。具体分为平路、坡路、楼梯三大类,而后两者依据坡度值的不同分为不同类型。属性类型具体如下表所示。In the embodiment of the present invention, after the calculation of the characteristic value of each sample is completed, its corresponding attribute label is added to obtain the required training set. Road attributes are mainly divided into road slope and road obstacles. Specifically, it is divided into three categories: flat road, slope road, and stairs, and the latter two are divided into different types according to the different slope values. The attribute types are shown in the following table.
表3.3属性类型及说明Table 3.3 Attribute types and descriptions
S230:根据得到的训练数据集,采用机器学习的方法,对不同属性的样本数据进行分类训练,得到分类模型。S230: According to the obtained training data set, a machine learning method is used to classify and train sample data of different attributes to obtain a classification model.
在一种实施方式中,所述步骤S230具体包括:In one embodiment, the step S230 specifically includes:
S231将得到的最终训练集数据作为模型输入,采用K-邻近模型作为分类模型进行训练,得到适用于路网属性的分类模型。S231 takes the obtained final training set data as the model input, uses the K-neighbor model as the classification model for training, and obtains a classification model suitable for road network attributes.
本发明中关于训练与检测:About training and detection in the present invention:
采用K-邻近(K-Nearest Neighbour,KNN)模型,通过测量不同特征值之间的距离进行分类,若一个样本在特征空间中的K个最相邻(即特征空间中最邻近)的样本中大多数属于某一类别,则该样本也属该类别,且具有该类别样本的特性。The K-Nearest Neighbour (KNN) model is used to classify by measuring the distance between different eigenvalues. If most of them belong to a certain category, the sample also belongs to this category and has the characteristics of samples of that category.
K值的选择很大程度上决定了KNN模型的训练结果很,同时,通过计算对象间距离作为各个对象之间的非相似性指标,避免了对象之间的匹配问题。距离的计算使用欧氏距离,公式如下所示:The choice of the K value largely determines the training results of the KNN model. At the same time, the problem of matching between objects is avoided by calculating the distance between objects as an indicator of dissimilarity between objects. The calculation of distance uses Euclidean distance, the formula is as follows:
式中,x,y为需求两者间距离的对象,M为数据集中对象个数。In the formula, x and y are the objects that require the distance between them, and M is the number of objects in the data set.
KNN模型在确定分类决策上,仅依据最邻近的一个或多个样本的类别来决定,而不是单一的对象类别决策,避免了训练对象被分得多个类别的问题。此外,KNN模型的训练时间复杂度相对较低,准确度高,因此本发明将采用KNN模型作为分类模型进行训练,训练K-邻近模型,得到分类模型,并应用于轨迹数据的属性检测。In determining the classification decision of the KNN model, it is only determined according to the category of the nearest one or more samples, rather than a single object category decision, which avoids the problem that the training object is divided into multiple categories. In addition, the training time complexity of the KNN model is relatively low and the accuracy is high, so the present invention uses the KNN model as a classification model for training, trains the K-proximity model, and obtains a classification model, which is applied to attribute detection of trajectory data.
S240:将众包的轨迹数据进行数据处理,并用训练好的分类模型,进行属性检测;将轨迹数据的位置信息与属性信息进行数据融合,得到带属性信息的GPS数据。S240: Perform data processing on the crowdsourced trajectory data, and use the trained classification model to perform attribute detection; perform data fusion of the location information and attribute information of the trajectory data to obtain GPS data with attribute information.
本发明实施例中,通过使用上述得到的训练集,训练KNN模型,在达到较好的分类精度后,即得到适用于路网属性检测的分类模型,用于轨迹数据的属性检测。In the embodiment of the present invention, by using the training set obtained above to train the KNN model, after achieving better classification accuracy, a classification model suitable for road network attribute detection is obtained, which is used for attribute detection of trajectory data.
所述步骤S240包括:The step S240 includes:
S241、与训练数据的预处理方式相同,剔除众包的轨迹数据中的噪声数据并滤波气压值,随后进行数据采样,依据训练数据中所选择特征计算各样本的特征值,同时保留每个样本的第一条时间戳数据。S241. In the same way as the preprocessing of the training data, remove the noise data in the crowdsourced trajectory data and filter the air pressure value, then perform data sampling, calculate the feature value of each sample according to the selected features in the training data, and keep each sample at the same time The first timestamp data of .
S242、根据上述得到处理好的数据后,使用训练好的KNN模型(K-邻近模型),对处理后的轨迹数据进行属性检测,即得到轨迹数据每个样本的属性信息,并且带有时间信息。S242. After obtaining the processed data according to the above, use the trained KNN model (K-proximity model) to perform attribute detection on the processed trajectory data, that is, to obtain the attribute information of each sample of the trajectory data with time information .
S243、将得到带有时间信息的属性信息与位置信息进行数据融合,得到各轨迹的GPS数据带有属性信息;S243, performing data fusion on the obtained attribute information with time information and location information, and obtains the GPS data of each track with attribute information;
本步骤中,例如通过时间戳的对比,以及采样窗口长度,将每个样本的属性标签赋予该样本所对应的轨迹段数据,实现属性信息与位置信息的数据融合,即可使得各轨迹的GPS数据带有属性信息。In this step, for example, through the comparison of time stamps and the length of the sampling window, the attribute label of each sample is assigned to the track segment data corresponding to the sample, so as to realize the data fusion of attribute information and position information, so that the GPS of each track can be obtained. The data has attribute information.
本发明中,得到带有时间戳数据的属性信息后,将其与位置信息进行数据融合。因通过滑动窗口对数据采样,每条轨迹被分割为多个轨迹段进行的特征计算及属性检测。因而,每个轨迹段有唯一的属性信息,但指向多个位置数据,所以需对数据融合处理,才能达到路网基础数据添加的目的。属性信息带有时间戳数据,将其时间戳与原始轨迹数据的时间戳进行比对,根据采样窗口长度,确定某一属性所指向的轨迹段GPS数据,将两类数据结合,即使得位置数据带有属性信息。In the present invention, after the attribute information with time stamp data is obtained, data fusion is performed with the location information. Because the data is sampled through a sliding window, each trajectory is divided into multiple trajectory segments for feature calculation and attribute detection. Therefore, each track segment has unique attribute information, but it points to multiple location data, so data fusion processing is required to achieve the purpose of adding basic road network data. The attribute information has timestamp data. Compare the timestamp with the timestamp of the original trajectory data. According to the length of the sampling window, determine the GPS data of the trajectory segment pointed to by an attribute, and combine the two types of data to obtain the position data. with attribute information.
S250:基于现有行人路网的基础数据,进行地图匹配,将轨迹点的属性信息赋予所匹配到现有路网中的位置点;对匹配到多个属性标签的位置点,使用多数投票法得到位置点的唯一标签;修正异常标签后,即得到了带有属性信息的路网数据。S250: Perform map matching based on the basic data of the existing pedestrian road network, and assign the attribute information of the track points to the position points matched to the existing road network; for the position points matched with multiple attribute labels, use the majority voting method The unique label of the location point is obtained; after correcting the abnormal label, the road network data with attribute information is obtained.
其中,所述步骤S250具体包括:Wherein, the step S250 specifically includes:
S251、首先,获取现有路网的基础数据,将融合后的轨迹数据,依据一定的时间窗长度进行采样,将每个样本作为一个轨迹段根据位置进行属性匹配。实际路网为多个路段的连接组合,将各路段作为匹配的候选路段。通过欧氏距离依次计算轨迹段中各GPS点到候选路网的距离,并求和以表示该轨迹段至该路段的距离指标。获得各轨迹段到各候选路段的距离指标后,选取距离最近的路段作为匹配对象。确定轨迹段所应匹配的路网路段后,由于路网中位置点为路段的特征点,每条路段仅有起终两点,需路网路段的两位置点间以差值的方式进行增加点数,以提高位置匹配的精准度。依据欧氏距离,获取轨迹段各点距离匹配对象最近的点,并将轨迹点的属性赋值给被匹配的位置点;S251. First, obtain the basic data of the existing road network, sample the fused trajectory data according to a certain time window length, and use each sample as a trajectory segment to perform attribute matching according to the location. The actual road network is a connection combination of multiple road segments, and each road segment is used as a matching candidate road segment. The distances from each GPS point in the track segment to the candidate road network are sequentially calculated by Euclidean distance, and summed to represent the distance index from the track segment to the road segment. After obtaining the distance index from each track segment to each candidate road segment, select the road segment with the closest distance as the matching object. After determining the road network segment that the track segment should match, since the location points in the road network are the characteristic points of the road segment, each road segment has only two starting and ending points, and the difference between the two location points of the road network segment needs to be increased by the difference value. points to improve the accuracy of location matching. According to the Euclidean distance, obtain the closest point of each point of the trajectory segment to the matching object, and assign the attribute of the trajectory point to the matched position point;
S252、匹配完成后,由于增加点数后的路网点密度与轨迹点密度仍有差距,存在部分路网的位置点被匹配至多个属性标签,使用多数投票法,对各位置点的多个属性标签进行投票以得到唯一标签;S252. After the matching is completed, since there is still a gap between the density of road network points and the density of track points after the number of points is increased, some location points of the road network are matched to multiple attribute labels, and a majority voting method is used to evaluate the multiple attribute labels of each location point. Voting for unique tags;
S253、获取唯一标签后,由于分类精度的影响,存在部分位置点所检测的属性有误,需进行逻辑判断,获取异常标签并进行修正,以得到最终的带有属性的路网基础数据。S253 , after obtaining the unique label, due to the influence of the classification accuracy, there are some wrong attributes detected by the location points, and it is necessary to carry out logical judgment, obtain the abnormal label and make corrections, so as to obtain the final road network basic data with attributes.
本实施例中由于分类精度的问题,连续同一属性的轨迹点,可能会出现一个或少数几个异常属性,需对该类异常标签进行逻辑判断并修正,以提高路网属性检测的精度。In this embodiment, due to the problem of classification accuracy, there may be one or a few abnormal attributes for consecutive track points of the same attribute, and it is necessary to logically judge and correct the abnormal labels to improve the accuracy of road network attribute detection.
本发明实施例中用户所采集的位置数据经过融合后得到了属性信息,但由于GPS的定位误差,无法直接反映真实的路网数据,因此需要对融合后的数据,基于现有的路网数据进行匹配,使得实际路网中具备属性信息。匹配过程主要是将轨迹数据根据一定的时间窗长度进行采样,每个样本作为一个轨迹段进行位置的匹配。In the embodiment of the present invention, the location data collected by the user is fused to obtain attribute information. However, due to the GPS positioning error, the real road network data cannot be directly reflected. Therefore, the fused data needs to be based on the existing road network data. Matching is carried out so that the actual road network has attribute information. The matching process is mainly to sample the trajectory data according to a certain time window length, and each sample is used as a trajectory segment for position matching.
首先,找出距离轨迹段最近的路网路段,作为匹配对象。为了避免轨迹采集时GPS数据的偏移,造成单点匹配的误差。本发明将先基于轨迹段的匹配,将路网的各路段作为匹配候选,分别计算轨迹点到候选路段的距离,即计算点到线段的直线距离,累加各点的计算距离以得到距离指标。选择距离指标最短所对应的候选路网作为最终的匹配对象。距离计算公式如下:First, find the road network segment closest to the trajectory segment as the matching object. In order to avoid the offset of GPS data when the trajectory is collected, the error of single point matching is caused. In the present invention, based on the matching of track segments, each road segment of the road network is used as a matching candidate, and the distance from the track point to the candidate road segment is calculated respectively, that is, the straight line distance from the point to the line segment is calculated, and the calculated distance of each point is accumulated to obtain the distance index. The candidate road network corresponding to the shortest distance index is selected as the final matching object. The distance calculation formula is as follows:
其中xi,yi分别表示轨迹点的经纬度,ABC由候选路段所对应的直线决定,即直线Ax+By+C=0,经过候选路段。Where x i , y i represent the latitude and longitude of the track point respectively, and ABC is determined by the straight line corresponding to the candidate road segment, that is, the straight line Ax+By+C=0, which passes through the candidate road segment.
其次,将匹配的路段进增点操作。现有的路网有各路段组成,路段仅带有始末两个位置点的GPS数据,需对路段的位置点进行增加以提高位置的匹配精准度。根据经验值确定增加点的间距,然后通过内插法获取路段中增加点的GPS数据。Second, add the matching road segment to the point increase operation. The existing road network is composed of various road sections, and the road section only has GPS data of two position points at the beginning and the end. It is necessary to increase the position points of the road section to improve the matching accuracy of the position. The spacing of the added points is determined according to the empirical value, and then the GPS data of the added points in the road segment are obtained by interpolation.
随后,基于增点后的路段,进行最后的点属性匹配,将轨迹段各轨迹点的属性标签赋值于匹配路段上的最近点位置点。通过欧氏距离计算轨迹点值匹配路段中各点的距离,并将属性赋予距离最近的位置点,完整轨迹点的属性匹配。Then, based on the added road segment, the final point attribute matching is performed, and the attribute label of each trajectory point of the trajectory segment is assigned to the closest point position point on the matched road segment. The Euclidean distance is used to calculate the distance between the track point value and each point in the road segment, and the attribute is assigned to the closest position point, and the attributes of the complete track point are matched.
欧氏距离: Euclidean distance:
式中,ρ为点对间距离;x,y分别位置点的经度和纬度。In the formula, ρ is the distance between point pairs; x and y are the longitude and latitude of the location point, respectively.
最后,进行属性修正的操作。由于数据采集频率的原因,无法实现一个路网的位置点仅匹配到唯一的属性标签。因此,在匹配完成后,路网中部分位置点会出现被匹配至多个属性标签得情况,需对该些位置点进行处理,得到唯一标签。本发明采用多数投票法,对其进行主元素的选择。多数投票法得方法简单易实现,且实现速度快。多数投票法,主要是对给定的无序数组,找出其中的多数元素,多数元素的出现次数需超过50%。通过对各位置点的多个属性标签进行扫描判断,得到其多数元素作为该位置点的最终属性标签。由于检测误差的问题,同一属性的轨迹中,会偶尔出现一个或少数个不同的属性标签。然而点属性需连续出现一定数量时,才可作为路段的属性。因此,将该类属性标签作为异常标签,进行逻辑判断并修正为正常标签,提高最终的检测精度。Finally, the operation of attribute correction is performed. Due to the frequency of data collection, it is impossible to match the location points of a road network to only unique attribute labels. Therefore, after the matching is completed, some location points in the road network may be matched to multiple attribute labels, and these location points need to be processed to obtain unique labels. The present invention adopts the majority voting method to select the main element. The majority voting method is simple and easy to implement, and the implementation speed is fast. The majority voting method is mainly to find the majority of elements in a given unordered array, and the number of occurrences of the majority element must exceed 50%. By scanning and judging multiple attribute labels of each position point, most of its elements are obtained as the final attribute label of the position point. Due to the problem of detection error, one or a few different attribute labels occasionally appear in the trajectory of the same attribute. However, the point attribute can be used as the attribute of the road segment only when a certain number of consecutive occurrences are required. Therefore, this type of attribute label is regarded as an abnormal label, and logical judgment is made and corrected to a normal label, so as to improve the final detection accuracy.
由上可见,本发明提出的基于智能手机的道路属性检测方法,提供了一种应用移动终端内置多传感器采集的数据,自动检测行径路网道路属性的方法,将检测的属性用以丰富行人路网的基础数据。在路径规划过程重,行人导航系统将路网属性纳入路径规划的度量因素中,提供满足个人特殊需求的最优路径,而非最短路径,提升了行人对导航系统的使用感,为用户的使用提供了方便。It can be seen from the above that the method for detecting road attributes based on smart phones proposed by the present invention provides a method for automatically detecting the road attributes of the road network using the data collected by the built-in multi-sensors of the mobile terminal, and the detected attributes are used to enrich the pedestrian roads. basic data of the network. In the process of route planning, the pedestrian navigation system incorporates the road network attributes into the measurement factors of route planning, providing the optimal route that meets the special needs of individuals, rather than the shortest route, which improves pedestrians' sense of use of the navigation system and improves the user's use of the system. Provided convenience.
示例性设备Exemplary Equipment
参见图4,示出了本发明实施例中一种基于移动终端的行人路网属性检测装置,包括:Referring to FIG. 4 , a mobile terminal-based pedestrian road network attribute detection apparatus in an embodiment of the present invention is shown, including:
采集模块41,用于若干用户的移动终端采集传感器数据,得到原始数据后,提取所需的传感器数据;记录部分用户移动终端所采集数据的路网属性,用于构建训练集数据,其余用户移动终端所采集的数据直接上传至云端获得众包数据,并作为轨迹数据用于属性检测;The
构建模块42,用于对用于构建训练集的数据,进行预处理,依据滑动窗口采样,计算每个样本的特征值并标注相应的属性类型,使用机器学习中的特征选择算法筛选特征值,构建训练数据集;具体如上所述;The
分类模块43,用于使用得到的训练数据集,采用机器学习的方法,对不同属性的样本数据进行分类训练,得到适用于路网属性的分类模型;具体如上所述;The
融合模块44,用于将众包的轨迹数据进行数据处理,并用训练好的分类模型,进行属性检测;将轨迹数据的位置信息与属性信息进行数据融合,得到带属性信息的GPS数据;具体如上所述;The
匹配模块45,用于基于现有行人路网的基础数据,进行地图匹配,将轨迹点的属性信息赋予所匹配到现有路网中的位置点;对匹配到多个属性标签的位置点,使用多数投票法得到位置点的唯一标签;修正异常标签,得到带有属性信息的路网数据。The
参照图5,本发明的基于移动终端的行人路网属性检测装置1800可以包括以下一个或多个组件:处理组件1802,存储器1804,电源组件1806,多媒体组件1806,音频组件1810,输入/输出(I/O)的接口1812,传感器组件1814,以及通信组件1816。5, the mobile terminal-based pedestrian road network
处理组件1802通常控制装置1800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件1802可以包括一个或多个处理器1820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1802可以包括一个或多个模块,便于处理组件1802和其他组件之间的交互。例如,处理部件1802可以包括多媒体模块,以方便多媒体组件1806和处理组件1802之间的交互。The
存储器1804被配置为存储各种类型的数据以支持在设备1800的操作。这些数据的示例包括用于在装置1800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电源组件1806为装置1800的各种组件提供电力。电源组件1806可以包括电源管理系统,一个或多个电源,及其他与为装置1800生成、管理和分配电力相关联的组件。
多媒体组件1806包括在所述装置1800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1806包括一个前置摄像头和/或后置摄像头。当设备1800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件1810被配置为输出和/或输入音频信号。例如,音频组件1810包括一个麦克风(MIC),当装置1800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1804或经由通信组件1816发送。在一些实施例中,音频组件1810还包括一个扬声器,用于输出音频信号。
I/O接口1812为处理组件1802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/
传感器组件1814包括一个或多个传感器,用于为装置1800提供各个方面的状态评估。例如传感器组件1814可以检测到设备1800的打开/关闭状态,组件的相对定位,例如所述组件为装置1800的显示器和小键盘,传感器组件1814还可以检测装置1800或装置1800一个组件的位置改变,用户与装置1800接触的存在或不存在,装置1800方位或加速/减速和装置1800的温度变化。传感器组件1814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件1816被配置为便于装置1800和其他设备之间有线或无线方式的通信。装置1800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信部件1816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信部件1816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,装置1800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment,
本发明实施例提供了一种设备。该设备包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:An embodiment of the present invention provides a device. The apparatus includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, including for performing the following operations command:
S210:通过用户的移动终端采集传感器数据,记录部分用户移动终端所采集数据的路网属性,用于构建训练集数据,其余用户移动终端所采集的数据直接上传至云端获得众包数据,并作为轨迹数据用于属性检测。S210: Collect sensor data through the user's mobile terminal, record the road network attributes of the data collected by some user's mobile terminals, and use it to construct training set data, and upload the data collected by the rest of the user's mobile terminals directly to the cloud to obtain crowdsourced data, and use them as Trajectory data is used for attribute detection.
本发明实施例中,可以采用多个用户智能手机采集多个传感器数据,并提取加速度计、气压计、GPS三个传感器的数据;得到三轴加速度、气压值、GPS数据,并保留时间戳数据。In the embodiment of the present invention, multiple user smart phones can be used to collect multiple sensor data, and the data of the three sensors of accelerometer, barometer, and GPS can be extracted; three-axis acceleration, air pressure value, and GPS data can be obtained, and the time stamp data can be retained. .
S220:对用于构建训练集的数据,进行预处理,依据滑动窗口采样,计算每个样本的特征值并标注相应的属性类型,使用机器学习中的特征选择算法筛选特征值,构建训练数据集;S220: Preprocess the data used to construct the training set, calculate the feature value of each sample according to the sliding window sampling, mark the corresponding attribute type, use the feature selection algorithm in machine learning to filter the feature value, and construct the training data set ;
本发明实施例中,步骤S220包括:In this embodiment of the present invention, step S220 includes:
S221、首先对用于构建训练集的原始数据中的噪声数据进行剔除,由于运动状态下手机抖动明显,气压值无法直接用于表示真实气压变化,需对气压值进行滤波处理,而后得到用于构建训练集的初始数据;S221. First, remove the noise data in the original data used to construct the training set. Since the mobile phone shakes obviously in the motion state, the air pressure value cannot be directly used to represent the real air pressure change. Build the initial data for the training set;
S222、将得到的用于构建训练集的数据,通过滑动窗口进行数据采样,得到多个样本;S222, sampling the obtained data for constructing the training set through a sliding window to obtain multiple samples;
S223、数据采样完成后,选取均值、方差、相关系数、气压差作为样本初始特征,计算每个样本的特征值,并保留每个样本的第一条时间戳数据,随后采用Weka的特征选择功能对初始特征进行筛选,并提取最优的特征子集;S223. After the data sampling is completed, select the mean value, variance, correlation coefficient, and air pressure difference as the initial characteristics of the sample, calculate the characteristic value of each sample, and retain the first timestamp data of each sample, and then use Weka's feature selection function Screen the initial features and extract the optimal feature subset;
S224、获得各样本的特征值后,添加其对应的属性标签,得到所需的训练数据集。S224 , after obtaining the characteristic value of each sample, add its corresponding attribute label to obtain the required training data set.
其中,所述对所采集的数据中的噪声数据进行剔除的步骤包括:Wherein, the step of eliminating noise data in the collected data includes:
根据采集的数据确定采样频率;通过采样频率设置方差阈值及剔除量,阈值用于判断数据是否为运动状态下所采集;而剔除量则用于删除始末部分数据;确定方差阈值后,通过计算所采集数据z轴方向加速度的方差。Determine the sampling frequency according to the collected data; set the variance threshold and the elimination amount by the sampling frequency, the threshold is used to judge whether the data is collected in a motion state; and the elimination amount is used to delete the beginning and end data; after determining the variance threshold, calculate the The variance of the acceleration in the z-axis direction of the collected data.
S230:根据得到的训练数据集,采用机器学习的方法,对不同属性的样本数据进行分类训练,得到分类模型;S230: According to the obtained training data set, adopt the method of machine learning to classify and train sample data of different attributes to obtain a classification model;
其中,所述步骤S230具体包括:Wherein, the step S230 specifically includes:
S231将得到的最终的训练集作为模型输入,采用K-邻近模型作为分类模型进行训练,得到适用于路网属性的分类模型。S231 takes the obtained final training set as the model input, uses the K-neighbor model as the classification model for training, and obtains a classification model suitable for road network attributes.
S240:将预处理后的众包的轨迹数据,使用训练好的分类模型,进行属性检测,并将轨迹数据的属性信息与位置信息进行数据融合,得到带属性信息的GPS数据;S240: Use the preprocessed crowdsourced trajectory data to perform attribute detection using the trained classification model, and perform data fusion between the attribute information of the trajectory data and the location information to obtain GPS data with attribute information;
所述步骤S240包括:The step S240 includes:
S241与训练数据的预处理方式相同,剔除众包的轨迹数据中的噪声数据并滤波气压值,,而后进行数据采样,依据训练数据中所选择特征计算各样本的特征值,同时保留每个样本的第一条时间戳数据;S241 is the same as the preprocessing method of the training data, removing the noise data in the crowdsourced trajectory data and filtering the air pressure value, and then performing data sampling, calculating the feature value of each sample according to the selected features in the training data, and keeping each sample at the same time The first timestamp data of ;
S242使用训练好的KNN模型,对处理好的轨迹数据进行属性检测,即得到轨迹数据每个样本的属性信息;S242 uses the trained KNN model to perform attribute detection on the processed trajectory data, that is, to obtain the attribute information of each sample of the trajectory data;
S243得到带有时间信息的属性信息后,将其与位置信息进行数据融合;S243, after obtaining the attribute information with time information, perform data fusion with the location information;
通过时间戳的对比,以及采样窗口长度,将每个样本的属性标签赋予该样本所对应的轨迹段数据,实现属性信息与位置信息的数据融合,即可使得各轨迹的GPS数据带有属性信息。Through the comparison of timestamps and the length of the sampling window, the attribute label of each sample is assigned to the trajectory segment data corresponding to the sample, and the data fusion of attribute information and location information can be realized, so that the GPS data of each trajectory can have attribute information. .
S250:基于现有行人路网的基础数据,进行地图匹配,将轨迹点的属性信息赋予所匹配到现有路网中的位置点。对匹配到多个属性标签的位置点,使用多数投票法得到位置点的唯一标签。修正异常标签后,即得到了带有属性信息的路网数据。S250: Perform map matching based on the basic data of the existing pedestrian road network, and assign the attribute information of the trajectory points to the position points matched to the existing road network. For the location points that match multiple attribute labels, the unique label of the location point is obtained using the majority voting method. After correcting the abnormal label, the road network data with attribute information is obtained.
其中,所述步骤S250包括:Wherein, the step S250 includes:
S251、获取现有路网的基础数据,将融合后的轨迹数据,依据一定的时间窗长度进行采样,将每个样本作为一个轨迹段根据位置进行属性匹配。实际路网为多个线段的连接组合,将各路段作为匹配的候选路段。通过欧氏距离依次计算轨迹段中各GPS点到候选路段的距离,并求和以表示该轨迹段至该路段的距离指标。获得各样本轨迹段到各候选路段的距离指标后,选取距离最近的线段作为匹配对象。确定轨迹段所应匹配的路网路段后,由于路网中位置点为路段的特征点,每条路段仅有起终两点,需路网路段的两位置点间以差值的方式进行增加点数,以提高位置匹配的精准度。依据欧氏距离,获取轨迹段各点距离匹配对象最近的点,并将轨迹点的属性赋值给被匹配的位置点;S251: Acquire the basic data of the existing road network, sample the fused trajectory data according to a certain time window length, and use each sample as a trajectory segment to perform attribute matching according to the location. The actual road network is a connection combination of multiple line segments, and each road segment is used as a matching candidate road segment. The distances from each GPS point in the trajectory segment to the candidate road segment are sequentially calculated by Euclidean distance, and the summation is performed to represent the distance index from the trajectory segment to the road segment. After obtaining the distance index from each sample trajectory segment to each candidate road segment, select the line segment with the closest distance as the matching object. After determining the road network segment that the track segment should match, since the location points in the road network are the characteristic points of the road segment, each road segment has only two starting and ending points, and the difference between the two location points of the road network segment needs to be increased by the difference value. points to improve the accuracy of location matching. According to the Euclidean distance, obtain the closest point of each point of the trajectory segment to the matching object, and assign the attribute of the trajectory point to the matched position point;
S252、匹配完成后,由于增加点数后的路网点密度与轨迹点密度仍有差距,存在部分路网的位置点被匹配至多个属性标签,使用多数投票法,对各位置点的多个属性标签进行投票以得到唯一标签;S252. After the matching is completed, since there is still a gap between the density of road network points and the density of track points after the number of points is increased, some location points of the road network are matched to multiple attribute labels, and a majority voting method is used to evaluate the multiple attribute labels of each location point. Voting for unique tags;
S253、由于分类精度的问题,连续同一属性的轨迹点,可能会出现一个或少数几个异常属性,需对该类异常标签进行逻辑判断并修正,以提高路网属性检测的精度。S253 , due to the problem of classification accuracy, one or a few abnormal attributes may appear in the trajectory points of the same attribute in succession. It is necessary to logically judge and correct the abnormal labels to improve the accuracy of road network attribute detection.
本发明实施例还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1804,上述指令可由装置1800的处理器1820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。Embodiments of the present invention also provide a non-transitory computer-readable storage medium including instructions, such as a
一种非临时性计算机可读存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行上述实施例所述的基于移动终端的行人路网属性检测方法,具体如上所述。A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the method for detecting pedestrian road network attributes based on a mobile terminal described in the foregoing embodiments, Specifically as described above.
与现有技术相比,本发明实施例具有以下优点:Compared with the prior art, the embodiment of the present invention has the following advantages:
根据本发明实施方式提供的方法,使用移动终端采集多个传感器的数据,对数据进行处理并标注属性标签,选择合适的样本特征,用于训练分类模型,以实现对轨迹数据的属性检测的功能。自动检测出行人路网中的道路属性,添加至行人路网的基础数据中,改善在路径规划中缺少对属性因素的考虑的现状,为实现最优路径的规划,满足行人出行的特殊需求提供数据基础。According to the method provided by the embodiment of the present invention, a mobile terminal is used to collect data of multiple sensors, process the data and mark attribute labels, select appropriate sample features, and use them to train a classification model, so as to realize the function of attribute detection of trajectory data. . Automatically detect the road attributes in the pedestrian road network and add it to the basic data of the pedestrian road network to improve the current situation of lack of consideration of attribute factors in route planning, and to provide optimal route planning and meet the special needs of pedestrian travel. Data base.
本发明采用移动终端内置传感器所采集数据检测行人路网的道路属性,丰富行人路网的基础数据后,可提供满足特定需求的个性化导航服务,为出行群体提供便利舒适的导航服务。The invention uses the data collected by the built-in sensor of the mobile terminal to detect the road attributes of the pedestrian road network, and after enriching the basic data of the pedestrian road network, can provide personalized navigation services that meet specific needs, and provide convenient and comfortable navigation services for traveling groups.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本发明旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. The present invention is intended to cover any modifications, uses or adaptations of the present invention that follow the general principles of the invention and include common knowledge or common technical means in the art not disclosed by this disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the invention being indicated by the following claims.
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制It should be understood that the present invention is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from its scope. The scope of the present invention is limited only by the appended claims
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within the range.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010104216.8A CN111288999B (en) | 2020-02-19 | 2020-02-19 | A mobile terminal-based pedestrian road network attribute detection method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010104216.8A CN111288999B (en) | 2020-02-19 | 2020-02-19 | A mobile terminal-based pedestrian road network attribute detection method, device and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111288999A true CN111288999A (en) | 2020-06-16 |
CN111288999B CN111288999B (en) | 2021-08-31 |
Family
ID=71025556
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010104216.8A Active CN111288999B (en) | 2020-02-19 | 2020-02-19 | A mobile terminal-based pedestrian road network attribute detection method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111288999B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112013862A (en) * | 2020-07-31 | 2020-12-01 | 深圳大学 | Pedestrian network extraction and updating method based on crowdsourcing trajectory |
CN112380316A (en) * | 2020-12-09 | 2021-02-19 | 浙江浙蕨科技有限公司 | Travel situation data processing method and storage medium |
CN112527930A (en) * | 2020-11-19 | 2021-03-19 | 深圳大学 | Pedestrian road gradient information extraction method based on smart phone |
CN113848878A (en) * | 2021-08-24 | 2021-12-28 | 深圳大学 | Construction method of indoor and outdoor 3D pedestrian road network based on crowd-source data |
CN114359774A (en) * | 2021-11-17 | 2022-04-15 | 山东省国土测绘院 | Pedestrian movement mode classification method and device and electronic equipment |
CN115081505A (en) * | 2022-01-18 | 2022-09-20 | 中国地质大学(武汉) | Pedestrian network incremental generation method based on walking track data |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105263113A (en) * | 2015-10-26 | 2016-01-20 | 深圳大学 | Wi-Fi location fingerprint map building method and system based on crowd-sourcing |
CN105426826A (en) * | 2015-11-09 | 2016-03-23 | 张静 | Tag noise correction based crowd-sourced tagging data quality improvement method |
CN105957342A (en) * | 2016-05-30 | 2016-09-21 | 武汉大学 | Lane-level road mapping method and system based on crowdsourcing space-time big data |
CN107330396A (en) * | 2017-06-28 | 2017-11-07 | 华中科技大学 | A kind of pedestrian's recognition methods again based on many attributes and many strategy fusion study |
CN107688665A (en) * | 2017-09-27 | 2018-02-13 | 深圳大学 | A kind of indoor map method for auto constructing, device and storage medium |
CN109215347A (en) * | 2018-10-22 | 2019-01-15 | 北京航空航天大学 | A kind of traffic data quality control method based on crowdsourcing track data |
CN109816982A (en) * | 2019-02-25 | 2019-05-28 | 东南大学 | Attribute correction method of non-motorized vehicle lanes in virtual road network based on shared bicycle trajectory |
JP2019164761A (en) * | 2018-01-29 | 2019-09-26 | 楽天株式会社 | Improving quality of labeled training data |
CN110287276A (en) * | 2019-05-27 | 2019-09-27 | 百度在线网络技术(北京)有限公司 | High-precision map updating method, device and storage medium |
US20190355173A1 (en) * | 2018-05-16 | 2019-11-21 | Samsung Electronics Co., Ltd. | Leveraging crowdsourced data for localization and mapping within an environment |
-
2020
- 2020-02-19 CN CN202010104216.8A patent/CN111288999B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105263113A (en) * | 2015-10-26 | 2016-01-20 | 深圳大学 | Wi-Fi location fingerprint map building method and system based on crowd-sourcing |
CN105426826A (en) * | 2015-11-09 | 2016-03-23 | 张静 | Tag noise correction based crowd-sourced tagging data quality improvement method |
CN105957342A (en) * | 2016-05-30 | 2016-09-21 | 武汉大学 | Lane-level road mapping method and system based on crowdsourcing space-time big data |
CN107330396A (en) * | 2017-06-28 | 2017-11-07 | 华中科技大学 | A kind of pedestrian's recognition methods again based on many attributes and many strategy fusion study |
CN107688665A (en) * | 2017-09-27 | 2018-02-13 | 深圳大学 | A kind of indoor map method for auto constructing, device and storage medium |
JP2019164761A (en) * | 2018-01-29 | 2019-09-26 | 楽天株式会社 | Improving quality of labeled training data |
US20190355173A1 (en) * | 2018-05-16 | 2019-11-21 | Samsung Electronics Co., Ltd. | Leveraging crowdsourced data for localization and mapping within an environment |
CN109215347A (en) * | 2018-10-22 | 2019-01-15 | 北京航空航天大学 | A kind of traffic data quality control method based on crowdsourcing track data |
CN109816982A (en) * | 2019-02-25 | 2019-05-28 | 东南大学 | Attribute correction method of non-motorized vehicle lanes in virtual road network based on shared bicycle trajectory |
CN110287276A (en) * | 2019-05-27 | 2019-09-27 | 百度在线网络技术(北京)有限公司 | High-precision map updating method, device and storage medium |
Non-Patent Citations (3)
Title |
---|
XUE YANG 等: "Pedestrian network generation based on crowdsourced tracking data", 《INTERNATIONAL JOURNAL OF GEOGRPHICAL INFORMATION SCIENCE》 * |
吴迪: "基于多轨迹GPS数据和路网属性的个性化行人导航系统设计与实现", 《中国优秀硕士学位论文全文数据库 工程科技II辑》 * |
谢金运等: "大规模浮动车流数据并行地图匹配方法", 《武汉大学学报(信息科学版)》 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112013862A (en) * | 2020-07-31 | 2020-12-01 | 深圳大学 | Pedestrian network extraction and updating method based on crowdsourcing trajectory |
CN112013862B (en) * | 2020-07-31 | 2022-06-17 | 深圳大学 | A Crowdsourcing Trajectory-Based Pedestrian Network Extraction and Update Method |
CN112527930A (en) * | 2020-11-19 | 2021-03-19 | 深圳大学 | Pedestrian road gradient information extraction method based on smart phone |
CN112527930B (en) * | 2020-11-19 | 2023-11-03 | 深圳大学 | A smartphone-based method for extracting road slope information from pedestrian road networks |
CN112380316A (en) * | 2020-12-09 | 2021-02-19 | 浙江浙蕨科技有限公司 | Travel situation data processing method and storage medium |
CN113848878A (en) * | 2021-08-24 | 2021-12-28 | 深圳大学 | Construction method of indoor and outdoor 3D pedestrian road network based on crowd-source data |
CN113848878B (en) * | 2021-08-24 | 2023-08-08 | 深圳大学 | Construction Method of Indoor and Outdoor 3D Pedestrian Network Based on Crowdsource Data |
CN114359774A (en) * | 2021-11-17 | 2022-04-15 | 山东省国土测绘院 | Pedestrian movement mode classification method and device and electronic equipment |
CN114359774B (en) * | 2021-11-17 | 2023-04-07 | 山东省国土测绘院 | Pedestrian movement mode classification method and device and electronic equipment |
CN115081505A (en) * | 2022-01-18 | 2022-09-20 | 中国地质大学(武汉) | Pedestrian network incremental generation method based on walking track data |
CN115081505B (en) * | 2022-01-18 | 2024-10-15 | 中国地质大学(武汉) | Pedestrian road network incremental generation method based on walking track data |
Also Published As
Publication number | Publication date |
---|---|
CN111288999B (en) | 2021-08-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111288999A (en) | A mobile terminal-based pedestrian road network attribute detection method, device and equipment | |
Grassi et al. | Parkmaster: An in-vehicle, edge-based video analytics service for detecting open parking spaces in urban environments | |
CN110728650B (en) | Well lid depression detection method based on intelligent terminal and related equipment | |
CN104537837B (en) | Method, device and system for determining traffic routes | |
US20160066155A1 (en) | Travel and activity capturing | |
CN110599794B (en) | Intelligent vehicle finding method and system based on Internet of vehicles | |
CN103914559A (en) | Network user screening method and network user screening device | |
CN106961520A (en) | Carwash based reminding method, device and terminal | |
CN107133576A (en) | Age of user recognition methods and device | |
CN108629354A (en) | Object detection method and device | |
CN106228158A (en) | The method and apparatus of picture detection | |
EP2137674A2 (en) | Motion and image quality monitor | |
CN105808542B (en) | Information processing method and information processing apparatus | |
CN111814510B (en) | Method and device for detecting legacy host | |
CN106295511A (en) | Face tracking method and device | |
CN107391604A (en) | Map styles display methods, device and mobile terminal based on active state | |
CN106203306A (en) | The Forecasting Methodology at age, device and terminal | |
CN108717542A (en) | Identify the method, apparatus and computer readable storage medium of character area | |
CN107527024A (en) | Face face value appraisal procedure and device | |
CN107786746B (en) | Control method, device and system for traffic application and storage medium | |
CN107341226B (en) | Information display method and device and mobile terminal | |
JP2013134601A (en) | Electronic device | |
CN116246299A (en) | Low-head-group intelligent recognition system combining target detection and gesture recognition technology | |
CN111275089B (en) | Classification model training method and device and storage medium | |
WO2024255687A1 (en) | Image information enhancement method and apparatus, model training method and apparatus, and device and medium |
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 |