CN108280993A - A kind of distribution recognition methods of road traffic stream type and terminal - Google Patents
A kind of distribution recognition methods of road traffic stream type and terminal Download PDFInfo
- Publication number
- CN108280993A CN108280993A CN201711322239.0A CN201711322239A CN108280993A CN 108280993 A CN108280993 A CN 108280993A CN 201711322239 A CN201711322239 A CN 201711322239A CN 108280993 A CN108280993 A CN 108280993A
- Authority
- CN
- China
- Prior art keywords
- mobile object
- wifi
- type
- signal
- signal set
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 16
- 238000007418 data mining Methods 0.000 abstract description 2
- 238000007726 management method Methods 0.000 description 8
- 238000004458 analytical method Methods 0.000 description 5
- 238000001514 detection method Methods 0.000 description 4
- 238000007405 data analysis Methods 0.000 description 3
- 238000013500 data storage Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000008520 organization Effects 0.000 description 2
- 230000008054 signal transmission Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000000844 transformation Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08G—TRAFFIC CONTROL SYSTEMS
- G08G1/00—Traffic control systems for road vehicles
- G08G1/01—Detecting movement of traffic to be counted or controlled
- G08G1/0104—Measuring and analyzing of parameters relative to traffic conditions
- G08G1/0108—Measuring and analyzing of parameters relative to traffic conditions based on the source of data
- G08G1/0112—Measuring and analyzing of parameters relative to traffic conditions based on the source of data from the vehicle, e.g. floating car data [FCD]
-
- G—PHYSICS
- G08—SIGNALLING
- G08G—TRAFFIC CONTROL SYSTEMS
- G08G1/00—Traffic control systems for road vehicles
- G08G1/01—Detecting movement of traffic to be counted or controlled
- G08G1/0104—Measuring and analyzing of parameters relative to traffic conditions
- G08G1/0108—Measuring and analyzing of parameters relative to traffic conditions based on the source of data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
Landscapes
- Chemical & Material Sciences (AREA)
- Analytical Chemistry (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Traffic Control Systems (AREA)
Abstract
本发明涉及数据挖掘领域,尤其涉及一种道路交通流类型分布识别方法及终端。本发明通过在道路上预设多个定向WIFI天线;多个所述定向WIFI天线接收第一WIFI设备发射的信号,得到第一信号集合;所述第一信号集合中的每一元素包括所述第一WIFI设备的MAC地址、信号接收时间和接收到所述信号的定向WIFI天线的位置信息;根据所述第一信号集合获取与所述第一WIFI设备对应的移动对象的移动速度和移动方向;根据所述移动速度识别与所述第一WIFI设备对应的移动对象的类型;根据所述道路上多个移动对象的类型和移动方向分析得到与所述道路对应的交通流类型分布。实现识别道路交通流类型分布。
The invention relates to the field of data mining, in particular to a method for identifying road traffic flow type distribution and a terminal. The present invention presets multiple directional WIFI antennas on the road; multiple directional WIFI antennas receive signals transmitted by the first WIFI device to obtain a first signal set; each element in the first signal set includes the The MAC address of the first WIFI device, the signal receiving time and the position information of the directional WIFI antenna that received the signal; according to the first set of signals, the moving speed and the moving direction of the mobile object corresponding to the first WIFI device are acquired ; identifying the type of mobile object corresponding to the first WIFI device according to the moving speed; analyzing and obtaining the traffic flow type distribution corresponding to the road according to the types and moving directions of multiple mobile objects on the road. Realize the identification of road traffic flow type distribution.
Description
技术领域technical field
本发明涉及数据挖掘领域,尤其涉及一种道路交通流类型分布识别方法及终端。The invention relates to the field of data mining, in particular to a method for identifying road traffic flow type distribution and a terminal.
背景技术Background technique
随着国家经济的快速发展,城区建设的快速推进,城市道路网络复杂多变,交通管理部门无法快速、准确提取复杂的交通流信息进行交通分流、交通诱导,导致交通道路拥堵,路网运行效率低。With the rapid development of the national economy and the rapid advancement of urban construction, the urban road network is complex and changeable, and the traffic management department cannot quickly and accurately extract complex traffic flow information for traffic diversion and traffic guidance, resulting in traffic congestion and road network operation efficiency. Low.
申请号为201610673261.9的专利文献提供一种基于WiFi信号的交通流量检测系统及检测方法,其中检测系统包括基于WIFI信号的交通流量检测器、数据存储及分析系统和通信网络;所述交通流量检测器包括信号收发模块、信号传输模块和供电模块,所述信号收发模块用于发送WIFI广播,以触发移动设备向周围发送信号;以及用于接收移动设备发送的数据,该数据包括移动设备的标识码;所述信号传输模块用于将接收到的数据发送到数据存储及分析系统;数据存储及分析系统用于存储数据并根据所述数据计算交通流量。本发明无需在移动设备上安装移动信号检测器模块,也无需强制安装定位软件或者定位装置,推广成本低、阻力小;同时,设备耐用性强,安装方便,可以密集布置于各路段;再次,该检测器的功耗低,能源消耗小,绿色环保。The patent document whose application number is 201610673261.9 provides a traffic flow detection system and detection method based on WiFi signals, wherein the detection system includes a traffic flow detector, a data storage and analysis system and a communication network based on WIFI signals; the traffic flow detector It includes a signal transceiver module, a signal transmission module and a power supply module, the signal transceiver module is used to send WIFI broadcasts to trigger the mobile device to send signals around; and is used to receive data sent by the mobile device, the data includes the identification code of the mobile device ; The signal transmission module is used to send the received data to the data storage and analysis system; the data storage and analysis system is used to store the data and calculate the traffic flow according to the data. The present invention does not need to install a mobile signal detector module on the mobile device, nor does it require mandatory installation of positioning software or positioning devices, so the promotion cost is low and the resistance is small; at the same time, the equipment is durable, easy to install, and can be densely arranged in various road sections; again, The detector has low power consumption, small energy consumption, and is environmentally friendly.
虽然上述专利文献提供了交通流量的检测方法,但是无法检测交通类型,不能为交通管理部门提供更充分的信息进行交通管理。Although the above-mentioned patent documents provide a detection method for traffic flow, they cannot detect traffic types, and cannot provide traffic management departments with more sufficient information for traffic management.
发明内容Contents of the invention
本发明所要解决的技术问题是:如何识别道路交通流类型分布。The technical problem to be solved by the invention is: how to identify the type distribution of road traffic flow.
为了解决上述技术问题,本发明采用的技术方案为:In order to solve the problems of the technologies described above, the technical solution adopted in the present invention is:
本发明提供一种道路交通流类型分布识别方法,包括:The invention provides a road traffic flow type distribution identification method, comprising:
在道路上预设多个定向WIFI天线;Preset multiple directional WIFI antennas on the road;
多个所述定向WIFI天线接收第一WIFI设备发射的信号,得到第一信号集合;所述第一信号集合中的每一元素包括所述第一WIFI设备的MAC地址、信号接收时间和接收到所述信号的定向WIFI天线的位置信息;Multiple directional WIFI antennas receive signals transmitted by the first WIFI device to obtain a first signal set; each element in the first signal set includes the MAC address of the first WIFI device, the signal receiving time and the received The position information of the directional WIFI antenna of the signal;
根据所述第一信号集合获取与所述第一WIFI设备对应的移动对象的移动速度和移动方向;Acquiring the moving speed and moving direction of the mobile object corresponding to the first WIFI device according to the first signal set;
根据所述移动速度识别与所述第一WIFI设备对应的移动对象的类型;identifying the type of the mobile object corresponding to the first WIFI device according to the moving speed;
根据所述道路上多个移动对象的类型和移动方向分析得到与所述道路对应的交通流类型分布。The traffic flow type distribution corresponding to the road is obtained through analysis according to the types and moving directions of the multiple moving objects on the road.
本发明还提供一种道路交通流类型分布识别终端,包括:The present invention also provides a road traffic flow type distribution identification terminal, including:
在道路上预设多个定向WIFI天线;Preset multiple directional WIFI antennas on the road;
多个所述定向WIFI天线接收第一WIFI设备发射的信号,得到第一信号集合;所述第一信号集合中的每一元素包括所述第一WIFI设备的MAC地址、信号接收时间和接收到所述信号的定向WIFI天线的位置信息;Multiple directional WIFI antennas receive signals transmitted by the first WIFI device to obtain a first signal set; each element in the first signal set includes the MAC address of the first WIFI device, the signal receiving time and the received The position information of the directional WIFI antenna of the signal;
根据所述第一信号集合获取与所述第一WIFI设备对应的移动对象的移动速度和移动方向;Acquiring the moving speed and moving direction of the mobile object corresponding to the first WIFI device according to the first signal set;
根据所述移动速度识别与所述第一WIFI设备对应的移动对象的类型;identifying the type of the mobile object corresponding to the first WIFI device according to the moving speed;
根据所述道路上多个移动对象的类型和移动方向分析得到与所述道路对应的交通流类型分布。The traffic flow type distribution corresponding to the road is obtained through analysis according to the types and moving directions of the multiple moving objects on the road.
本发明的有益效果在于:本发明通过在道路上预设多个定向WIFI天线,由定向WIFI天线接收道路上移动对象携带的WIFI设备发射的信号,并根据不同定向WIFI天线采集到的与同一移动对象对应的WIFI设备发射的信号信息识别出移动对象的类型和移动方向,进而分析得到与该道路对应的交通流类型分布。本发明提供的道路交通流类型分布识别方法及终端,为交通组织管理及城市关键区域交通保障等提供了重要的交通流类型分布信息,为交通管理者治理交通拥堵提供决策依据,可有效提高交通组织管理能力。The beneficial effects of the present invention are: the present invention presets a plurality of directional WIFI antennas on the road, and the directional WIFI antennas receive the signals transmitted by the WIFI equipment carried by the mobile objects on the road, and according to the signals collected by different directional WIFI antennas with the same mobile The signal information emitted by the WIFI device corresponding to the object identifies the type and direction of the moving object, and then analyzes the traffic flow type distribution corresponding to the road. The road traffic flow type distribution identification method and terminal provided by the present invention provide important traffic flow type distribution information for traffic organization management and traffic security in key urban areas, provide decision-making basis for traffic managers to control traffic congestion, and can effectively improve traffic flow. Organizational management ability.
附图说明Description of drawings
图1为本发明提供的一种道路交通流类型分布识别方法的具体实施方式的流程框图;Fig. 1 is the flowchart of the embodiment of a kind of road traffic flow type distribution recognition method provided by the present invention;
图2为本发明提供的一种道路交通流类型分布识别终端的具体实施方式的结构框图;Fig. 2 is a structural block diagram of a specific embodiment of a road traffic flow type distribution identification terminal provided by the present invention;
图3为定向WFII天线信号强度分布示意图;Figure 3 is a schematic diagram of the signal strength distribution of the directional WFII antenna;
标号说明:Label description:
1、处理器;2、存储器。1. Processor; 2. Memory.
具体实施方式Detailed ways
为详细说明本发明的技术内容、所实现目的及效果,以下结合实施方式并配合附图予以说明。In order to describe the technical content, achieved goals and effects of the present invention in detail, the following descriptions will be made in conjunction with the embodiments and accompanying drawings.
请参照图1至图3,Please refer to Figure 1 to Figure 3,
如图1所示,本发明提供一种道路交通流类型分布识别方法,包括:As shown in Figure 1, the present invention provides a kind of road traffic flow type distribution identification method, comprising:
在道路上预设多个定向WIFI天线;Preset multiple directional WIFI antennas on the road;
多个所述定向WIFI天线接收第一WIFI设备发射的信号,得到第一信号集合;所述第一信号集合中的每一元素包括所述第一WIFI设备的MAC地址、信号接收时间和接收到所述信号的定向WIFI天线的位置信息;Multiple directional WIFI antennas receive signals transmitted by the first WIFI device to obtain a first signal set; each element in the first signal set includes the MAC address of the first WIFI device, the signal receiving time and the received The position information of the directional WIFI antenna of the signal;
根据所述第一信号集合获取与所述第一WIFI设备对应的移动对象的移动速度和移动方向;Acquiring the moving speed and moving direction of the mobile object corresponding to the first WIFI device according to the first signal set;
根据所述移动速度识别与所述第一WIFI设备对应的移动对象的类型;identifying the type of the mobile object corresponding to the first WIFI device according to the moving speed;
根据所述道路上多个移动对象的类型和移动方向分析得到与所述道路对应的交通流类型分布。The traffic flow type distribution corresponding to the road is obtained through analysis according to the types and moving directions of the multiple moving objects on the road.
进一步地,根据所述第一信号集合获取与所述第一WIFI设备对应的移动对象的移动方向,具体为:Further, acquiring the moving direction of the mobile object corresponding to the first WIFI device according to the first signal set, specifically:
获取所述第一信号集合中具有所述第一WIFI设备的MAC地址的元素,得到第二信号集合;Obtaining elements with the MAC address of the first WIFI device in the first signal set to obtain a second signal set;
根据所述信号接收时间排序所述第二信号集合中的元素,得到第三信号集合;sorting the elements in the second signal set according to the signal receiving time to obtain a third signal set;
获取所述第三信号集合中的一元素,得到第一元素;Obtain an element in the third signal set to obtain the first element;
获取与所述第一元素对应的位置信息,得到第一位置;Obtaining position information corresponding to the first element to obtain a first position;
获取所述第三信号集合中排列在所述第一元素之后的一元素,得到第二元素;Obtaining an element arranged after the first element in the third signal set to obtain a second element;
获取与所述第二元素对应的位置信息,得到第二位置;Obtaining position information corresponding to the second element to obtain a second position;
设置与所述第一WIFI设备对应的移动对象的移动方向为由所述第一位置至所述第二位置的方向。Set the moving direction of the mobile object corresponding to the first WIFI device as the direction from the first position to the second position.
进一步地,根据所述第一信号集合获取与所述第一WIFI设备对应的移动对象的移动速度,具体为:Further, the moving speed of the mobile object corresponding to the first WIFI device is acquired according to the first signal set, specifically:
获取所述第三信号集合中的一元素,得到第三元素;Obtain an element in the third signal set to obtain a third element;
获取与所述第三元素对应的位置信息,得到第三位置;Obtaining position information corresponding to the third element to obtain a third position;
获取与所述第三元素对应的信号接收时间,得到起始时间;Obtaining the signal receiving time corresponding to the third element to obtain the start time;
获取所述第三信号集合中排列在所述第三元素之后的一元素,得到第四元素;Obtaining an element arranged after the third element in the third signal set to obtain a fourth element;
获取与所述第四元素对应的位置信息,得到第四位置;Obtaining position information corresponding to the fourth element to obtain a fourth position;
获取与所述第四元素对应的信号接收时间,得到终止时间;Acquiring the signal receiving time corresponding to the fourth element to obtain the termination time;
计算所述第三位置与所述第四位置之间的路程距离;calculating a travel distance between the third location and the fourth location;
根据所述路程距离、所述起始时间和所述终止时间计算得到所述移动对象从所述第三位置移动至所述第四位置的移动速度。The moving speed of the mobile object moving from the third position to the fourth position is calculated according to the travel distance, the start time and the end time.
进一步地,根据所述移动速度识别与所述第一WIFI设备对应的移动对象的类型,具体为:Further, the type of the mobile object corresponding to the first WIFI device is identified according to the moving speed, specifically:
当所述移动速度小于预设的行人步行速度阈值时,设置所述移动对象的类型为行人;When the moving speed is less than a preset pedestrian walking speed threshold, the type of the moving object is set as a pedestrian;
当所述移动速度大于预设的电动车速度阈值时,设置所述移动对象的类型为汽车;When the moving speed is greater than the preset electric vehicle speed threshold, the type of the moving object is set as a car;
当所述移动速度大于所述行人步行速度阈值且小于所述电动车速度阈值时,设置所述移动对象的类型为非行人。When the moving speed is greater than the pedestrian walking speed threshold and less than the electric vehicle speed threshold, the type of the moving object is set as non-pedestrian.
进一步地,当所述移动速度大于所述行人步行速度阈值且小于所述电动车速度阈值时,设置所述移动对象的类型为非行人,具体为:Further, when the moving speed is greater than the pedestrian walking speed threshold and less than the electric vehicle speed threshold, set the type of the moving object as non-pedestrian, specifically:
若存在一个以上第二WIFI设备与所述第一WIFI设备的移动速度相同,且多个定向WIFI天线接收到所述第一WIFI设备和一个以上所述第二WIFI设备发送的信号,则设置所述移动对象的类型为汽车;If there is more than one second WIFI device moving at the same speed as the first WIFI device, and multiple directional WIFI antennas receive signals sent by the first WIFI device and more than one second WIFI device, set the The type of the moving object is a car;
否则,设置所述移动对象的类型为电动车。Otherwise, set the type of the moving object as an electric vehicle.
由上述描述可知,由于电动车一般只能乘坐两人,而汽车可乘坐两人以上,因此本发明在移动速度大于行人步行速度阈值且小于电动车速度阈值时,根据移动对象携带的WIFI设备数量区分电动车和汽车,提高识别移动对象类型的准确度。As can be seen from the above description, since an electric car generally can only take two people, and a car can take more than two people, when the moving speed of the present invention is greater than the pedestrian walking speed threshold and less than the electric car speed threshold, the number of WIFI devices carried by the moving object Distinguish between EVs and cars and improve the accuracy of identifying types of moving objects.
如图2所示,本发明还提供一种道路交通流类型分布识别终端,包括一个或多个处理器1及存储器2,所述存储器2存储有程序,并且被配置成由所述一个或多个处理器1执行以下步骤:As shown in Figure 2, the present invention also provides a road traffic flow type distribution identification terminal, including one or more processors 1 and memory 2, the memory 2 stores a program, and is configured to be controlled by the one or more Processor 1 performs the following steps:
在道路上预设多个定向WIFI天线;Preset multiple directional WIFI antennas on the road;
多个所述定向WIFI天线接收第一WIFI设备发射的信号,得到第一信号集合;所述第一信号集合中的每一元素包括所述第一WIFI设备的MAC地址、信号接收时间和接收到所述信号的定向WIFI天线的位置信息;Multiple directional WIFI antennas receive signals transmitted by the first WIFI device to obtain a first signal set; each element in the first signal set includes the MAC address of the first WIFI device, the signal receiving time and the received The position information of the directional WIFI antenna of the signal;
根据所述第一信号集合获取与所述第一WIFI设备对应的移动对象的移动速度和移动方向;Acquiring the moving speed and moving direction of the mobile object corresponding to the first WIFI device according to the first signal set;
根据所述移动速度识别与所述第一WIFI设备对应的移动对象的类型;identifying the type of the mobile object corresponding to the first WIFI device according to the moving speed;
根据所述道路上多个移动对象的类型和移动方向分析得到与所述道路对应的交通流类型分布。The traffic flow type distribution corresponding to the road is obtained through analysis according to the types and moving directions of the multiple moving objects on the road.
进一步地,根据所述第一信号集合获取与所述第一WIFI设备对应的移动对象的移动方向,具体为:Further, acquiring the moving direction of the mobile object corresponding to the first WIFI device according to the first signal set, specifically:
获取所述第一信号集合中具有所述第一WIFI设备的MAC地址的元素,得到第二信号集合;Obtaining elements with the MAC address of the first WIFI device in the first signal set to obtain a second signal set;
根据所述信号接收时间排序所述第二信号集合中的元素,得到第三信号集合;sorting the elements in the second signal set according to the signal receiving time to obtain a third signal set;
获取所述第三信号集合中的一元素,得到第一元素;Obtain an element in the third signal set to obtain the first element;
获取与所述第一元素对应的位置信息,得到第一位置;Obtaining position information corresponding to the first element to obtain a first position;
获取所述第三信号集合中排列在所述第一元素之后的一元素,得到第二元素;Obtaining an element arranged after the first element in the third signal set to obtain a second element;
获取与所述第二元素对应的位置信息,得到第二位置;Obtaining position information corresponding to the second element to obtain a second position;
设置与所述第一WIFI设备对应的移动对象的移动方向为由所述第一位置至所述第二位置的方向。Set the moving direction of the mobile object corresponding to the first WIFI device as the direction from the first position to the second position.
进一步地,根据所述第一信号集合获取与所述第一WIFI设备对应的移动对象的移动速度,具体为:Further, the moving speed of the mobile object corresponding to the first WIFI device is acquired according to the first signal set, specifically:
获取所述第三信号集合中的一元素,得到第三元素;Obtain an element in the third signal set to obtain a third element;
获取与所述第三元素对应的位置信息,得到第三位置;Obtaining position information corresponding to the third element to obtain a third position;
获取与所述第三元素对应的信号接收时间,得到起始时间;Obtaining the signal receiving time corresponding to the third element to obtain the start time;
获取所述第三信号集合中排列在所述第三元素之后的一元素,得到第四元素;Obtaining an element arranged after the third element in the third signal set to obtain a fourth element;
获取与所述第四元素对应的位置信息,得到第四位置;Obtaining position information corresponding to the fourth element to obtain a fourth position;
获取与所述第四元素对应的信号接收时间,得到终止时间;Acquiring the signal receiving time corresponding to the fourth element to obtain the termination time;
计算所述第三位置与所述第四位置之间的路程距离;calculating a travel distance between the third location and the fourth location;
根据所述路程距离、所述起始时间和所述终止时间计算得到所述移动对象从所述第三位置移动至所述第四位置的移动速度。The moving speed of the mobile object moving from the third position to the fourth position is calculated according to the travel distance, the start time and the end time.
进一步地,根据所述移动速度识别与所述第一WIFI设备对应的移动对象的类型,具体为:Further, the type of the mobile object corresponding to the first WIFI device is identified according to the moving speed, specifically:
当所述移动速度小于预设的行人步行速度阈值时,设置所述移动对象的类型为行人;When the moving speed is less than a preset pedestrian walking speed threshold, the type of the moving object is set as a pedestrian;
当所述移动速度大于预设的电动车速度阈值时,设置所述移动对象的类型为汽车;When the moving speed is greater than the preset electric vehicle speed threshold, the type of the moving object is set as a car;
当所述移动速度大于所述行人步行速度阈值且小于所述电动车速度阈值时,设置所述移动对象的类型为非行人。When the moving speed is greater than the pedestrian walking speed threshold and less than the electric vehicle speed threshold, the type of the moving object is set as non-pedestrian.
进一步地,当所述移动速度大于所述行人步行速度阈值且小于所述电动车速度阈值时,设置所述移动对象的类型为非行人,具体为:Further, when the moving speed is greater than the pedestrian walking speed threshold and less than the electric vehicle speed threshold, set the type of the moving object as non-pedestrian, specifically:
若存在一个以上第二WIFI设备与所述第一WIFI设备的移动速度相同,且多个定向WIFI天线接收到所述第一WIFI设备和一个以上所述第二WIFI设备发送的信号,则设置所述移动对象的类型为汽车;If there is more than one second WIFI device moving at the same speed as the first WIFI device, and multiple directional WIFI antennas receive signals sent by the first WIFI device and more than one second WIFI device, set the The type of the moving object is a car;
否则,设置所述移动对象的类型为电动车。Otherwise, set the type of the moving object as an electric vehicle.
本发明的实施例一为:Embodiment one of the present invention is:
本实施例提供一种道路交通流类型分布识别方法,包括:This embodiment provides a road traffic flow type distribution identification method, including:
S1、在道路上预设多个定向WIFI天线。S1. Preset multiple directional WIFI antennas on the road.
其中,在需要识别道路交通流类型分布的道路旁,预设距离间隔设置一定向WIFI天线,用于接收在该道路上的移动对象携带的WIFI设备发射的信号。Wherein, beside the road where the type distribution of road traffic flow needs to be identified, a directional WIFI antenna is set at a preset distance interval to receive signals transmitted by WIFI devices carried by mobile objects on the road.
S2、多个所述定向WIFI天线接收第一WIFI设备发射的信号,得到第一信号集合;所述第一信号集合中的每一元素包括所述第一WIFI设备的MAC地址、信号接收时间和接收到所述信号的定向WIFI天线的位置信息。S2. Multiple directional WIFI antennas receive signals transmitted by the first WIFI device to obtain a first signal set; each element in the first signal set includes the MAC address of the first WIFI device, the signal receiving time and The location information of the directional WIFI antenna that receives the signal.
S3、根据所述第一信号集合获取与所述第一WIFI设备对应的移动对象的移动速度和移动方向。S3. Obtain the moving speed and moving direction of the mobile object corresponding to the first WIFI device according to the first signal set.
S31、根据所述第一信号集合获取与所述第一WIFI设备对应的移动对象的移动方向,具体为:S31. Obtain the moving direction of the mobile object corresponding to the first WIFI device according to the first signal set, specifically:
获取所述第一信号集合中具有所述第一WIFI设备的MAC地址的元素,得到第二信号集合;Obtaining elements with the MAC address of the first WIFI device in the first signal set to obtain a second signal set;
根据所述信号接收时间排序所述第二信号集合中的元素,得到第三信号集合;sorting the elements in the second signal set according to the signal receiving time to obtain a third signal set;
获取所述第三信号集合中的一元素,得到第一元素;Obtain an element in the third signal set to obtain the first element;
获取与所述第一元素对应的位置信息,得到第一位置;Obtaining position information corresponding to the first element to obtain a first position;
获取所述第三信号集合中排列在所述第一元素之后的一元素,得到第二元素;Obtaining an element arranged after the first element in the third signal set to obtain a second element;
获取与所述第二元素对应的位置信息,得到第二位置;Obtaining position information corresponding to the second element to obtain a second position;
设置与所述第一WIFI设备对应的移动对象的移动方向为由所述第一位置至所述第二位置的方向。Set the moving direction of the mobile object corresponding to the first WIFI device as the direction from the first position to the second position.
例如,如图3所示,一移动对象携带第一WIFI设备先后通过P0点和P1点,则定向WIFI天线a1接收到的与所述第一WIFI设备对应的信号信息排列在定向WIFI天线a2接收到的与所述第一WIFI设备对应的信号信息之前。所述信号集合中排列在前的一信号由位于P0的定向WIFI天线T1接收,排列在后的一信号由位于P1的定向WIFI天线T2接收,则与所述第一WIFI设备对应的移动对象的移动方向为由P0至P1方向。For example, as shown in Figure 3, a mobile object carrying the first WIFI device passes through P 0 and P 1 successively, then the signal information corresponding to the first WIFI device received by the directional WIFI antenna a1 is arranged on the directional WIFI antenna a2 before the received signal information corresponding to the first WIFI device. The first signal in the signal set is received by the directional WIFI antenna T1 located at P 0 , and the last signal is received by the directional WIFI antenna T2 located at P 1 , then the mobile corresponding to the first WIFI device The moving direction of the object is from P 0 to P 1 .
S32、根据所述第一信号集合获取与所述第一WIFI设备对应的移动对象的移动速度,具体为:S32. Obtain the moving speed of the mobile object corresponding to the first WIFI device according to the first signal set, specifically:
获取所述第三信号集合中的一元素,得到第三元素;Obtain an element in the third signal set to obtain a third element;
获取与所述第三元素对应的位置信息,得到第三位置;Obtaining position information corresponding to the third element to obtain a third position;
获取与所述第三元素对应的信号接收时间,得到起始时间;Obtaining the signal receiving time corresponding to the third element to obtain the start time;
获取所述第三信号集合中排列在所述第三元素之后的一元素,得到第四元素;Obtaining an element arranged after the third element in the third signal set to obtain a fourth element;
获取与所述第四元素对应的位置信息,得到第四位置;Obtaining position information corresponding to the fourth element to obtain a fourth position;
获取与所述第四元素对应的信号接收时间,得到终止时间;Acquiring the signal receiving time corresponding to the fourth element to obtain the termination time;
计算所述第三位置与所述第四位置之间的路程距离;calculating a travel distance between the third location and the fourth location;
根据所述路程距离、所述起始时间和所述终止时间计算得到所述移动对象从所述第三位置移动至所述第四位置的移动速度。The moving speed of the mobile object moving from the third position to the fourth position is calculated according to the travel distance, the start time and the end time.
例如,如图3所示,一移动对象先后经过P0点和P1点,并记录接收到该移动对象携带的第一WIFI设备发射信号的时刻T0和T1,可根据两点距离及所用时间计算得到该移动对象的移动速度:For example, as shown in Figure 3, a mobile object passes through P 0 and P 1 successively, and records the time T0 and T1 when the signal transmitted by the first WIFI device carried by the mobile object is received. Calculate the moving speed of the moving object:
L=|P1-P0|L=|P1-P0|
△t=T1-T0Δt=T1-T0
V=L/△tV=L/△t
为了提高移动速度测试的准确性,本实施例选取多个点进行速度测量,得到多个速度后,取其中的速度最大值作为移动对象的移动速度。In order to improve the accuracy of the moving speed test, multiple points are selected for speed measurement in this embodiment, and after obtaining multiple speeds, the maximum speed among them is taken as the moving speed of the moving object.
S4、根据所述移动速度识别与所述第一WIFI设备对应的移动对象的类型;具体为:S4. Identify the type of the mobile object corresponding to the first WIFI device according to the moving speed; specifically:
S41、当所述移动速度小于预设的行人步行速度阈值时,设置所述移动对象的类型为行人。S41. When the moving speed is less than a preset pedestrian walking speed threshold, set the type of the moving object as a pedestrian.
可选地,所述行人步行速度阈值为5km/h。Optionally, the pedestrian walking speed threshold is 5km/h.
S42、当所述移动速度大于预设的电动车速度阈值时,设置所述移动对象的类型为汽车。S42. When the moving speed is greater than a preset electric vehicle speed threshold, set the type of the moving object as a car.
可选地,所述电动车速度阈值为30km/h。Optionally, the electric vehicle speed threshold is 30km/h.
S43、当所述移动速度大于所述行人步行速度阈值且小于所述电动车速度阈值时,设置所述移动对象的类型为非行人。S43. When the moving speed is greater than the pedestrian walking speed threshold and smaller than the electric vehicle speed threshold, set the type of the moving object as non-pedestrian.
可选地,若存在一个以上第二WIFI设备与所述第一WIFI设备的移动速度相同,且多个定向WIFI天线接收到所述第一WIFI设备和一个以上所述第二WIFI设备发送的信号,则设置所述移动对象的类型为汽车;否则,设置所述移动对象的类型为电动车。Optionally, if there is more than one second WIFI device moving at the same speed as the first WIFI device, and multiple directional WIFI antennas receive signals sent by the first WIFI device and more than one second WIFI device , then set the type of the mobile object as a car; otherwise, set the type of the mobile object as an electric vehicle.
其中,本实施例主要通过移动速度进行判断交通流类型,通过移动速度可以解决大部分的分类,通过移动对象携带的WIFI设备数量进一步区分汽车和电动车只是一个辅助信息。一般,电动车可乘人数是1~2人,因此认为WIFI设备小于3个的为电动车,而大于等于3个的为汽车。虽然存在一定的误差,但是这个误差非常小,并不影响交通管理部门做出正确决策。Among them, this embodiment mainly judges the type of traffic flow based on the moving speed, which can solve most of the classifications, and it is only auxiliary information to further distinguish automobiles and electric vehicles through the number of WIFI devices carried by the moving objects. Generally, the number of people that an electric vehicle can take is 1 to 2, so it is considered that a vehicle with less than 3 WIFI devices is an electric vehicle, and a vehicle with more than or equal to 3 is considered a car. Although there is a certain error, the error is very small and does not affect the traffic management department to make correct decisions.
S5、根据所述道路上多个移动对象的类型和移动方向分析得到与所述道路对应的交通流类型分布。S5. Analyze and obtain a traffic flow type distribution corresponding to the road according to the types and moving directions of the multiple moving objects on the road.
本发明的实施例二为:Embodiment two of the present invention is:
本实施例提供一种道路交通流类型分布识别终端,包括一个或多个处理器1及存储器2,所述存储器2存储有程序,并且被配置成由所述一个或多个处理器1执行以下步骤:This embodiment provides a road traffic flow type distribution identification terminal, including one or more processors 1 and a memory 2, the memory 2 stores a program, and is configured to be executed by the one or more processors 1 as follows step:
S1、在道路上预设多个定向WIFI天线。S1. Preset multiple directional WIFI antennas on the road.
其中,在需要识别道路交通流类型分布的道路旁,预设距离间隔设置一定向WIFI天线,用于接收在该道路上的移动对象携带的WIFI设备发射的信号。Wherein, beside the road where the type distribution of road traffic flow needs to be identified, a directional WIFI antenna is set at a preset distance interval to receive signals transmitted by WIFI devices carried by mobile objects on the road.
S2、多个所述定向WIFI天线接收第一WIFI设备发射的信号,得到第一信号集合;所述第一信号集合中的每一元素包括所述第一WIFI设备的MAC地址、信号接收时间和接收到所述信号的定向WIFI天线的位置信息。S2. Multiple directional WIFI antennas receive signals transmitted by the first WIFI device to obtain a first signal set; each element in the first signal set includes the MAC address of the first WIFI device, the signal receiving time and The location information of the directional WIFI antenna that receives the signal.
S3、根据所述第一信号集合获取与所述第一WIFI设备对应的移动对象的移动速度和移动方向。S3. Obtain the moving speed and moving direction of the mobile object corresponding to the first WIFI device according to the first signal set.
S31、根据所述第一信号集合获取与所述第一WIFI设备对应的移动对象的移动方向,具体为:S31. Obtain the moving direction of the mobile object corresponding to the first WIFI device according to the first signal set, specifically:
获取所述第一信号集合中具有所述第一WIFI设备的MAC地址的元素,得到第二信号集合;Obtaining elements with the MAC address of the first WIFI device in the first signal set to obtain a second signal set;
根据所述信号接收时间排序所述第二信号集合中的元素,得到第三信号集合;sorting the elements in the second signal set according to the signal receiving time to obtain a third signal set;
获取所述第三信号集合中的一元素,得到第一元素;Obtain an element in the third signal set to obtain the first element;
获取与所述第一元素对应的位置信息,得到第一位置;Obtaining position information corresponding to the first element to obtain a first position;
获取所述第三信号集合中排列在所述第一元素之后的一元素,得到第二元素;Obtaining an element arranged after the first element in the third signal set to obtain a second element;
获取与所述第二元素对应的位置信息,得到第二位置;Obtaining position information corresponding to the second element to obtain a second position;
设置与所述第一WIFI设备对应的移动对象的移动方向为由所述第一位置至所述第二位置的方向。Set the moving direction of the mobile object corresponding to the first WIFI device as the direction from the first position to the second position.
S32、根据所述第一信号集合获取与所述第一WIFI设备对应的移动对象的移动速度,具体为:S32. Obtain the moving speed of the mobile object corresponding to the first WIFI device according to the first signal set, specifically:
获取所述第三信号集合中的一元素,得到第三元素;Obtain an element in the third signal set to obtain a third element;
获取与所述第三元素对应的位置信息,得到第三位置;Obtaining position information corresponding to the third element to obtain a third position;
获取与所述第三元素对应的信号接收时间,得到起始时间;Obtaining the signal receiving time corresponding to the third element to obtain the start time;
获取所述第三信号集合中排列在所述第三元素之后的一元素,得到第四元素;Obtaining an element arranged after the third element in the third signal set to obtain a fourth element;
获取与所述第四元素对应的位置信息,得到第四位置;Obtaining position information corresponding to the fourth element to obtain a fourth position;
获取与所述第四元素对应的信号接收时间,得到终止时间;Acquiring the signal receiving time corresponding to the fourth element to obtain the termination time;
计算所述第三位置与所述第四位置之间的路程距离;calculating a travel distance between the third location and the fourth location;
根据所述路程距离、所述起始时间和所述终止时间计算得到所述移动对象从所述第三位置移动至所述第四位置的移动速度。The moving speed of the mobile object moving from the third position to the fourth position is calculated according to the travel distance, the start time and the end time.
S4、根据所述移动速度识别与所述第一WIFI设备对应的移动对象的类型;具体为:S4. Identify the type of the mobile object corresponding to the first WIFI device according to the moving speed; specifically:
S41、当所述移动速度小于预设的行人步行速度阈值时,设置所述移动对象的类型为行人。S41. When the moving speed is less than a preset pedestrian walking speed threshold, set the type of the moving object as a pedestrian.
可选地,所述行人步行速度阈值为5km/h。Optionally, the pedestrian walking speed threshold is 5km/h.
S42、当所述移动速度大于预设的电动车速度阈值时,设置所述移动对象的类型为汽车。S42. When the moving speed is greater than a preset electric vehicle speed threshold, set the type of the moving object as a car.
可选地,所述电动车速度阈值为30km/h。Optionally, the electric vehicle speed threshold is 30km/h.
S43、当所述移动速度大于所述行人步行速度阈值且小于所述电动车速度阈值时,设置所述移动对象的类型为非行人。S43. When the moving speed is greater than the pedestrian walking speed threshold and smaller than the electric vehicle speed threshold, set the type of the moving object as non-pedestrian.
可选地,若存在一个以上第二WIFI设备与所述第一WIFI设备的移动速度相同,且多个定向WIFI天线接收到所述第一WIFI设备和一个以上所述第二WIFI设备发送的信号,则设置所述移动对象的类型为汽车;否则,设置所述移动对象的类型为电动车。Optionally, if there is more than one second WIFI device moving at the same speed as the first WIFI device, and multiple directional WIFI antennas receive signals sent by the first WIFI device and more than one second WIFI device , then set the type of the mobile object as a car; otherwise, set the type of the mobile object as an electric vehicle.
S5、根据所述道路上多个移动对象的类型和移动方向分析得到与所述道路对应的交通流类型分布。S5. Analyze and obtain a traffic flow type distribution corresponding to the road according to the types and moving directions of the multiple moving objects on the road.
综上所述,本发明提供的一种道路交通流类型分布识别方法及终端,通过在道路上预设多个定向WIFI天线,由定向WIFI天线接收道路上移动对象携带的WIFI设备发射的信号,并根据不同定向WIFI天线采集到的与同一移动对象对应的WIFI设备发射的信号信息识别出移动对象的类型和移动方向,进而分析得到与该道路对应的交通流类型分布。本发明提供的道路交通流类型分布识别方法及终端,为交通组织管理及城市关键区域交通保障等提供了重要的交通流类型分布信息,为交通管理者治理交通拥堵提供决策依据,可有效提高交通组织管理能力。To sum up, the present invention provides a road traffic flow type distribution identification method and terminal, by presetting multiple directional WIFI antennas on the road, the directional WIFI antennas receive signals transmitted by WIFI devices carried by mobile objects on the road, And according to the signal information transmitted by the WIFI equipment corresponding to the same mobile object collected by different directional WIFI antennas, the type and direction of movement of the mobile object can be identified, and then the traffic flow type distribution corresponding to the road can be obtained by analysis. The road traffic flow type distribution identification method and terminal provided by the present invention provide important traffic flow type distribution information for traffic organization management and traffic security in key urban areas, provide decision-making basis for traffic managers to control traffic congestion, and can effectively improve traffic flow. Organizational management ability.
以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等同变换,或直接或间接运用在相关的技术领域,均同理包括在本发明的专利保护范围内。The above description is only an embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent transformations made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in related technical fields, are all included in the same principle. Within the scope of patent protection of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711322239.0A CN108280993A (en) | 2017-12-12 | 2017-12-12 | A kind of distribution recognition methods of road traffic stream type and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711322239.0A CN108280993A (en) | 2017-12-12 | 2017-12-12 | A kind of distribution recognition methods of road traffic stream type and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108280993A true CN108280993A (en) | 2018-07-13 |
Family
ID=62801509
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711322239.0A Pending CN108280993A (en) | 2017-12-12 | 2017-12-12 | A kind of distribution recognition methods of road traffic stream type and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108280993A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109935082A (en) * | 2019-04-30 | 2019-06-25 | 长安大学 | A WiFi-based traffic data collection system and method for collecting data using the same |
CN110428654A (en) * | 2019-08-24 | 2019-11-08 | 安徽中科美络信息技术有限公司 | A kind of traffic lights crossing safe passing method and system |
CN113132907A (en) * | 2019-12-27 | 2021-07-16 | 中国移动通信集团浙江有限公司 | Pedestrian flow distribution identification method and device, computing device and storage device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101184266A (en) * | 2007-12-18 | 2008-05-21 | 北京西塔网络科技有限公司 | Information release device and information release method |
CN102291754A (en) * | 2010-12-31 | 2011-12-21 | 吴东辉 | Positioning and speed measuring method and system for mobile terminal based on mobile communication system |
US20120081235A1 (en) * | 2010-09-30 | 2012-04-05 | Siemens Corporation | Power Control in Wireless Traffic Detection Devices |
CN104658251A (en) * | 2015-02-06 | 2015-05-27 | 长安大学 | Intersection traffic flow detection method and device based on directional antenna |
CN105070052A (en) * | 2015-07-17 | 2015-11-18 | 袁丽 | Wireless communication system and method used for intelligent traffic monitoring |
US20160323741A1 (en) * | 2015-04-30 | 2016-11-03 | Research & Business Foundation Sungkyunkwan University | Method and apparatus for transmitting vehicle accident information based on interaction between devices and method and vehicle accident information collection apparatus |
CN106097731A (en) * | 2016-08-16 | 2016-11-09 | 寿光明 | Traffic flow detector based on WIFI signal and detecting system |
CN106251646A (en) * | 2016-08-16 | 2016-12-21 | 寿光明 | Traffic flow detection system based on WIFI signal and detection method |
-
2017
- 2017-12-12 CN CN201711322239.0A patent/CN108280993A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101184266A (en) * | 2007-12-18 | 2008-05-21 | 北京西塔网络科技有限公司 | Information release device and information release method |
US20120081235A1 (en) * | 2010-09-30 | 2012-04-05 | Siemens Corporation | Power Control in Wireless Traffic Detection Devices |
CN102291754A (en) * | 2010-12-31 | 2011-12-21 | 吴东辉 | Positioning and speed measuring method and system for mobile terminal based on mobile communication system |
CN104658251A (en) * | 2015-02-06 | 2015-05-27 | 长安大学 | Intersection traffic flow detection method and device based on directional antenna |
US20160323741A1 (en) * | 2015-04-30 | 2016-11-03 | Research & Business Foundation Sungkyunkwan University | Method and apparatus for transmitting vehicle accident information based on interaction between devices and method and vehicle accident information collection apparatus |
CN105070052A (en) * | 2015-07-17 | 2015-11-18 | 袁丽 | Wireless communication system and method used for intelligent traffic monitoring |
CN106097731A (en) * | 2016-08-16 | 2016-11-09 | 寿光明 | Traffic flow detector based on WIFI signal and detecting system |
CN106251646A (en) * | 2016-08-16 | 2016-12-21 | 寿光明 | Traffic flow detection system based on WIFI signal and detection method |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109935082A (en) * | 2019-04-30 | 2019-06-25 | 长安大学 | A WiFi-based traffic data collection system and method for collecting data using the same |
CN110428654A (en) * | 2019-08-24 | 2019-11-08 | 安徽中科美络信息技术有限公司 | A kind of traffic lights crossing safe passing method and system |
CN110428654B (en) * | 2019-08-24 | 2021-07-30 | 安徽中科美络信息技术有限公司 | Traffic signal lamp intersection safe passing method and system |
CN113132907A (en) * | 2019-12-27 | 2021-07-16 | 中国移动通信集团浙江有限公司 | Pedestrian flow distribution identification method and device, computing device and storage device |
CN113132907B (en) * | 2019-12-27 | 2022-11-08 | 中国移动通信集团浙江有限公司 | Pedestrian flow distribution identification method and device, computing device and storage device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11323865B2 (en) | Vehicle tracking system using smart-phone as active transponder | |
Lewandowski et al. | Road traffic monitoring system based on mobile devices and bluetooth low energy beacons | |
Nawaz et al. | Parksense: A smartphone based sensing system for on-street parking | |
US10943475B2 (en) | Parking sensors capable of determining direction and speed of vehicle entering or leaving a parking lot | |
CA2980476C (en) | System, method and computer program for an access control system | |
CN107945352A (en) | Bus passenger flow data acquisition equipment and OD analysis systems | |
CN207883011U (en) | Bus passenger flow data acquisition equipment and OD analysis systems | |
CN103477597A (en) | Method for adaptive channel estimation for wireless communication between a vehicle and other communication subscribers using the measurement results of the environment sensor system | |
CN107273771B (en) | Vehicle driving direction identification method and system, identification station, memory and background server | |
CN108280993A (en) | A kind of distribution recognition methods of road traffic stream type and terminal | |
CN101615207A (en) | A method for obtaining boarding stations for passengers with bus IC cards | |
CN106104654A (en) | Vehicle identification | |
CN103383779A (en) | Method, device and system for electronic toll collection without stopping vehicle | |
US20140133347A1 (en) | Apparatus and method for managing beacon messaging period of vehicular communication | |
CN103606281A (en) | Vehicle incoming and outgoing behavior detection method for intelligent parking lot | |
CN109523646A (en) | A kind of Vehicular intelligent passing method and system | |
CN108171968A (en) | The road condition analyzing system and method for position data based on mobile terminal device signaling | |
CN104700630A (en) | Method and system for monitoring vehicle flow of highway | |
CN104408926A (en) | RFID intelligent electronic license plate identification system | |
Li et al. | A generic approach to estimate freeway traffic time using vehicle ID‐matching technologies | |
Bernas et al. | Wireless network with bluetooth low energy beacons for vehicle detection and classification | |
CN107844856A (en) | Bus passenger flow Forecasting Methodology based on vehicle GPS and website WiFi | |
CN202632538U (en) | Bus GPS positioning station reporting integrated display system | |
Gore et al. | Exploring credentials of Wi‐Fi sensors as a complementary transport data: an Indian experience | |
CN105788265A (en) | Low-cost expressway vehicle passing path identification method |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180713 |