CN115100856B - Method for analyzing vehicle flow direction from multiple departure places to multiple destinations - Google Patents

Method for analyzing vehicle flow direction from multiple departure places to multiple destinations Download PDF

Info

Publication number
CN115100856B
CN115100856B CN202210695137.8A CN202210695137A CN115100856B CN 115100856 B CN115100856 B CN 115100856B CN 202210695137 A CN202210695137 A CN 202210695137A CN 115100856 B CN115100856 B CN 115100856B
Authority
CN
China
Prior art keywords
vehicle
destination
source
bayonet
information
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.)
Active
Application number
CN202210695137.8A
Other languages
Chinese (zh)
Other versions
CN115100856A (en
Inventor
孔晨晨
姜鉴铎
张森
童刚
张东辉
李小武
黄辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Traffic Management Research Institute of Ministry of Public Security
Original Assignee
Traffic Management Research Institute of Ministry of Public Security
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Traffic Management Research Institute of Ministry of Public Security filed Critical Traffic Management Research Institute of Ministry of Public Security
Priority to CN202210695137.8A priority Critical patent/CN115100856B/en
Publication of CN115100856A publication Critical patent/CN115100856A/en
Application granted granted Critical
Publication of CN115100856B publication Critical patent/CN115100856B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/0104Measuring and analyzing of parameters relative to traffic conditions
    • G08G1/0125Traffic data processing
    • G08G1/0129Traffic data processing for creating historical data or processing based on historical data
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Landscapes

  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Traffic Control Systems (AREA)

Abstract

本发明提供的一种从多个出发地到多个目的地的车辆流向分析方法,其预设需要进行车辆流向分析的来源地、目的地和分析时间段后,根据来源地、目的地包括的不同的行政区级别的地区与卡口备案信息的对应关系,找到来源地、目的地中所有的卡口设备,在全国车辆通行记录数据中提取来源地、目的地对应的待操作数据;再通过待操作数据包括的号牌种类和号牌号码,统计待分析的来源地、目的地车辆通行基本信息;进而针对每辆目标车辆,得到从来源地到目的地的车辆流向分析基础结果,将异常数据过滤后,得到车辆流向分析结果,将车辆流向分析结果按照所述目的地分组后,分别推送到所述目的地。

Figure 202210695137

The present invention provides a vehicle flow direction analysis method from multiple departure points to multiple destinations, which presets the source, destination and analysis time period for which the vehicle flow analysis needs to be carried out. Corresponding relationship between different administrative regions and bayonet filing information, find all the bayonet equipment in the source and destination, and extract the pending operation data corresponding to the source and destination from the national vehicle traffic record data; The type and number of the license plate included in the operation data, and the basic information of the source and destination vehicles to be analyzed are counted; and then for each target vehicle, the basic results of the vehicle flow analysis from the source to the destination are obtained, and the abnormal data After filtering, the vehicle flow analysis results are obtained, and the vehicle flow analysis results are grouped according to the destinations and pushed to the destinations respectively.

Figure 202210695137

Description

一种从多个出发地到多个目的地的车辆流向分析方法A Method of Vehicle Flow Analysis from Multiple Departures to Multiple Destinations

技术领域technical field

本发明涉及智能交通控制技术领域,具体为一种从多个出发地到多个目的地的车辆流向分析方法。The invention relates to the technical field of intelligent traffic control, in particular to a method for analyzing vehicle flow from multiple starting points to multiple destinations.

背景技术Background technique

现代的交通控制中,面对省外或者市外的突发情况,需要迅速查控并持续关注各辖区内具有重点地区途经史的车辆,对于车辆流向的分析要求快速且准确。特别是当需要查控从多个指定的出发地出发、流入指定的多个目的地的车辆时,查控工作需要每日开展且持续较久,同时来源地、目的地处于变化中,来源地和目的地的行政区级别也处于变化中,数据计算量非常大,且计算复杂。现有技术中,没有一个快速准确的方法可以很快的确定这种从多个来源地到多个目的地的车辆流向,通常需要管理部门投入很大的人力和时间才能完成这种调查分析工作。In modern traffic control, in the face of emergencies outside the province or outside the city, it is necessary to quickly check and control and continue to pay attention to vehicles with passing history in key areas in each jurisdiction. The analysis of vehicle flow requires fast and accurate analysis. Especially when it is necessary to check and control vehicles departing from multiple designated departure points and flowing into multiple designated destinations, the inspection and control work needs to be carried out every day and last for a long time. At the same time, the source and destination are changing. The level of administrative districts and destinations is also changing, and the amount of data calculation is very large and the calculation is complicated. In the prior art, there is no fast and accurate method to quickly determine the flow of vehicles from multiple sources to multiple destinations, and it usually requires the management department to invest a lot of manpower and time to complete this investigation and analysis work .

发明内容Contents of the invention

为了解决现有交通控制技术中无法兼顾多来源地到多目的地的车辆流向分析的问题,本发明提供一种从多个出发地到多个目的地的车辆流向分析方法,其可准确地研判预设时段内多来源地到多目的地的车辆流向,为目的地辖区迅速定位并查控相关车辆提供数据支持,不但提高了分析工作的效率,而且节省了人力资源。In order to solve the problem that the existing traffic control technology cannot take into account the analysis of vehicle flow from multiple sources to multiple destinations, the present invention provides a vehicle flow analysis method from multiple departure points to multiple destinations, which can accurately study and predict Set the flow of vehicles from multiple sources to multiple destinations within a time period, and provide data support for the destination jurisdiction to quickly locate and check related vehicles, which not only improves the efficiency of analysis work, but also saves human resources.

本发明的技术方案是这样的:一种从多个出发地到多个目的地的车辆流向分析方法,其特征在于,其包括以下步骤:The technical solution of the present invention is as follows: a vehicle flow direction analysis method from multiple starting places to multiple destinations, characterized in that it includes the following steps:

S1:创建车辆通行记录提取操作记录表,记作:操作记录表,所述操作记录表初始化为空;S1: Create a vehicle passage record extraction operation record table, denoted as: operation record table, and the operation record table is initialized to be empty;

所述操作记录表包括:行政区划代码和日期;The operation record sheet includes: administrative division code and date;

构建基础数据集,初始化为空;Build the basic data set and initialize it to be empty;

所述基础数据集包括:省级车辆通行基本信息、市级车辆通行基本信息、区级车辆通行基本信息;The basic data set includes: provincial-level vehicle traffic basic information, city-level vehicle traffic basic information, and district-level vehicle traffic basic information;

S2:确定需要进行车辆流向分析的来源地、目的地和分析时间段;S2: Determine the source, destination and analysis time period that need to be analyzed for vehicle flow;

所述来源地为:需要进行车辆流出分析的地区;The place of origin mentioned is: the area where vehicle outflow analysis is required;

所述目的地为:需要分析流入车辆的地区;The stated destination is: the area where the inflow of vehicles needs to be analyzed;

所述分析时间段为:需要进行车辆流向分析的时间段;The analysis time period is: the time period in which vehicle flow analysis is required;

S3:将所述来源地、所述目的地对应的行政区划代码和所述分析时间段对应的日期,提取出来生成临时表;S3: Extract the source, the administrative division code corresponding to the destination, and the date corresponding to the analysis time period to generate a temporary table;

所述临时表包括:行政区划代码和日期;The temporary table includes: administrative division code and date;

S4:比较所述临时表和所述操作记录表,将两个表格中行政区和日期重复的数据,从所述临时表中删除,得到待操作表;所述待操作表包括:行政区划代码和日期;S4: Comparing the temporary table and the operation record table, deleting the repeated data of administrative regions and dates in the two tables from the temporary table to obtain a table to be operated; the table to be operated includes: administrative division code and date;

S5:在所述分析时间段内,在全国范围内,获取车辆通行记录,创建全国车辆通行记录数据;S5: within the analysis time period, obtain vehicle traffic records nationwide, and create national vehicle traffic record data;

所述全国车辆通行记录数据包括:卡口设备编号、卡口抓拍时间、卡口抓拍方向、号牌种类和号牌号码;The national vehicle traffic record data includes: bayonet equipment number, bayonet capture time, bayonet capture direction, license plate type and license plate number;

S6:将所述全国车辆通行记录数据基于卡口备案信息,与所述待操作表进行关联,提取所述来源地和所述目的地对应的车辆通行记录数据,得到:待操作数据;S6: Associate the national vehicle traffic record data with the pending operation table based on the bayonet filing information, extract the vehicle traffic record data corresponding to the source and the destination, and obtain: pending operation data;

将所述待操作数据中包括的车辆,记作:待分析车辆;Denote the vehicles included in the data to be operated as: vehicles to be analyzed;

所述卡口备案信息包括:卡口设备编号、卡口所在省份2位省份代码、卡口所在地市4位地市代码、卡口所在行政区划6位行政区划代码、卡口所在道路、卡口所在道路类型、卡口经度和卡口纬度;The bayonet filing information includes: the bayonet equipment number, the 2-digit province code of the province where the bayonet is located, the 4-digit city code of the city where the bayonet is located, the 6-digit administrative division code of the administrative division where the bayonet is located, the road where the bayonet is located, and the road where the bayonet is located. The type of road, the longitude and latitude of the checkpoint;

所述待操作数据包括:卡口设备编号、卡口抓拍时间、卡口抓拍方向、号牌种类、号牌号码、卡口所在省份2位省份代码、卡口所在地市4位地市代码和卡口所在行政区划6位行政区划代码;The data to be operated includes: bayonet equipment number, bayonet capture time, bayonet capture direction, plate type, plate number, 2-digit province code of the province where the bayonet is located, 4-digit city code of the city where the bayonet is located, and card The 6-digit administrative division code of the administrative division where the port is located;

S7:根据所述待操作表,基于所述待操作数据中的号牌号码、号牌种类和行政区划代码,对所述待操作数据整理后,按行政区级别分别提取所述待分析车辆在各级行政区的通行基本信息;S7: According to the table to be operated, based on the number plate number, type of license plate and administrative division code in the data to be operated, after sorting the data to be operated, extract the status of the vehicle to be analyzed according to the administrative district level. The basic information of traffic in the level administrative area;

将所述待分析车辆在各级行政区的通行基本信息,按照行政区级别分别存入到所述基础数据集中的省级车辆通行基本信息、市级车辆通行基本信息、区级车辆通行基本信息中;The basic traffic information of the vehicles to be analyzed in administrative regions at all levels is respectively stored in the provincial-level vehicle traffic basic information, city-level vehicle traffic basic information, and district-level vehicle traffic basic information in the basic data set according to the administrative district level;

将所述待操作表内容存入到所述操作记录表中;storing the contents of the table to be operated into the operation record table;

S8:从所述基础数据集中,按照不同行政区级别,分别统计基础数据集包括的每一辆车在所述分析时间段内与所述目的地、所述来源地对应的通行基本信息;S8: From the basic data set, according to different administrative district levels, respectively count the basic traffic information of each vehicle included in the basic data set corresponding to the destination and the source within the analysis time period;

将所述分析时间段内基础数据集包括的车辆,记作:目标车辆;The vehicles included in the basic data set in the analysis time period are denoted as: target vehicles;

将统计的各个行政区级别的所述目的地、所述来源地的车辆通行基本信息,记作:地区通行基本信息数据集;所述地区通行基本信息数据集包括:来源地车辆通行基本信息、目的地车辆通行基本信息;The statistics of the basic information of the destination and the source of the vehicle traffic at each administrative district level are recorded as: the basic information data set of the regional traffic; the basic information data set of the regional traffic includes: the basic information of the vehicle traffic of the source, the purpose Basic information on local vehicle traffic;

S9:按行政区级别的不同组合,从所述地区通行基本信息数据集逐对取出来源地、目的地车辆通行基本信息,以所述来源地、目的地为基础进行数据筛选,针对每一个所述目标车辆,保留来源地与目的地不同,且来源地最晚抓拍时间早于目的地最晚抓拍时间的关联结果,记作:车辆流向分析基础结果;S9: According to different combinations of administrative district levels, extract the source and destination vehicle traffic basic information pair by pair from the basic traffic information data set in the area, and perform data screening on the basis of the source and destination. For the target vehicle, keep the correlation result that the source is different from the destination, and the latest capture time of the source is earlier than the latest capture time of the destination, which is recorded as: the basic result of vehicle flow analysis;

S10:将所述车辆流向分析基础结果中的异常数据进行过滤,得到车辆流向分析结果;S10: Filter the abnormal data in the basic result of the vehicle flow analysis to obtain the vehicle flow analysis result;

S11:将所述车辆流向分析结果按照所述目的地分组后,分别推送到所述目的地;S11: After grouping the vehicle flow analysis results according to the destinations, push them to the destinations respectively;

S12:循环执行步骤S9~S11,直至所述目的地、所述来源地对应的所有行政区级别的数据都已经提取完毕并参与计算,则完成本次车辆流向分析;S12: Steps S9-S11 are executed cyclically until all the administrative region-level data corresponding to the destination and the source have been extracted and participated in the calculation, then the vehicle flow analysis is completed;

S13:指定所述来源地、所述目的地和所述分析时间段,循环执行步骤S2~S12,持续监测车辆流向。S13: Specify the source, the destination and the analysis time period, execute steps S2-S12 in a loop, and continuously monitor the vehicle flow.

其进一步特征在于:It is further characterized by:

所述车辆流向分析结果包括:车辆信息、来源地信息、目的地信息、分析时间段的来源地通行记录信息、分析时间段的目的地通行记录信息;The vehicle flow analysis results include: vehicle information, source information, destination information, source traffic record information in the analysis time period, and destination traffic record information in the analysis time period;

所述车辆信息包括:号牌种类、号牌号码;The vehicle information includes: license plate type, license plate number;

所述来源地信息包括:来源地省份代码、地市代码、行政区划代码;The source information includes: source province code, city code, administrative division code;

所述目的地信息包括:目的地省份代码、地市代码、行政区划代码;The destination information includes: destination province code, city code, administrative division code;

分析时间段的所述来源地通行记录信息包括:车辆在来源地抓拍次数、高速公路抓拍次数、最早抓拍时间、最晚抓拍时间、行驶天数、车辆在来源地最晚抓拍对应的卡口设备编号、抓拍方向、所在道路、道路类型;The traffic record information of the source in the analysis time period includes: the number of snapshots of the vehicle at the source, the number of highway snapshots, the earliest capture time, the latest capture time, the number of driving days, and the number of the bayonet device corresponding to the latest capture of the vehicle at the source , capture direction, road, road type;

分析时间段的所述目的地通行记录信息包括:车辆在目的地抓拍次数、高速公路抓拍次数、最早抓拍时间、最晚抓拍时间、行驶天数、车辆在目的地最晚抓拍对应的卡口设备编号、抓拍方向、所在道路、道路类型;The destination traffic record information in the analysis time period includes: the number of snapshots taken by the vehicle at the destination, the number of snapshots taken on the expressway, the earliest snapshot time, the latest snapshot time, the number of driving days, and the number of the bayonet device corresponding to the latest snapshot taken by the vehicle at the destination , capture direction, road, road type;

所述车辆流向分析基础结果按来源地与目的地行政区级别划分,包括:省-省、省-市、省-区、市-省、市-市、市-区、区-省、区-市、区-区;The basic results of the vehicle flow analysis are classified according to the source and destination administrative regions, including: province-province, province-city, province-district, city-province, city-city, city-district, district-province, district-city , district-district;

步骤S10中,将所述车辆流向分析基础结果中的异常数据进行过滤,包括以下步骤:In step S10, filtering the abnormal data in the basic result of the vehicle flow analysis includes the following steps:

a1:预设速度阈值vt;a1: preset speed threshold vt;

所述速度阈值为所述目标车辆在两个地区之间的能够达到的平均行驶速度的最大值;The speed threshold is the maximum value of the attainable average driving speed of the target vehicle between two regions;

a2:获取所述目标车辆在所述来源地最后一次被抓拍时的卡口设备,在卡口设备的备案信息中获取卡口设备的经纬度,记作:来源地经纬度Gs;抓拍时间记作:t1;a2: Obtain the bayonet device when the target vehicle was last captured at the source, and obtain the latitude and longitude of the bayonet device from the record information of the bayonet device, which is recorded as: the longitude and latitude of the source place Gs; the capture time is recorded as: t1;

获取所述目标车辆在目的地最后一次被抓拍时的卡口设备,在卡口设备的备案信息中获取卡口设备的经纬度,记作:目的地经纬度Ge;抓拍时间记作:tg;Obtain the bayonet device when the target vehicle was last captured at the destination, and obtain the latitude and longitude of the bayonet device in the filing information of the bayonet device, denoted as: destination longitude and latitude Ge; capture time as: tg;

a3:计算所述来源地经纬度Gs、所述目的地经纬度Ge的球面距离,得到来源地和目的地的空间间隔L;a3: Calculate the spherical distance between the latitude and longitude Gs of the source and the latitude and longitude Ge of the destination to obtain the spatial interval L between the source and the destination;

计算t1和tg的差值,得到来源地和目的地的时间间隔T;Calculate the difference between t1 and tg to obtain the time interval T between the source and destination;

则,所述目标车辆在两个地区之间的行驶速度V=L/T;Then, the traveling speed of the target vehicle between the two regions V=L/T;

a4:比较V和vt;a4: Compare V and vt;

如果V>vt则,判定所述目标车辆从来源地和目的地之间的通行记录数据为异常数据;If V>vt then, it is determined that the target vehicle is abnormal data from the traffic record data between the source and the destination;

否则,判定为非异常数据;Otherwise, it is judged as non-abnormal data;

a5:将异常数据对应的车辆通行记录信息删除,完成异常数据过滤,得到所述车辆流向分析结果。a5: Delete the vehicle traffic record information corresponding to the abnormal data, complete the filtering of the abnormal data, and obtain the analysis result of the vehicle flow.

本发明提供的本发明提供的一种从多个出发地到多个目的地的车辆流向分析方法,其预设需要进行车辆流向分析的来源地、目的地和分析时间段后,根据来源地、目的地包括的不同的行政区级别的地区与卡口备案信息的对应关系,找到来源地、目的地中所有的卡口设备,在全国车辆通行记录数据中提取来源地、目的地对应的待操作数据;再通过待操作数据包括的号牌种类和号牌号码,统计待分析的来源地、目的地车辆通行基本信息;进而针对每辆目标车辆,得到从来源地到目的地的车辆流向分析基础结果,将异常数据过滤后,得到车辆流向分析结果,将车辆流向分析结果按照所述目的地分组后,分别推送到所述目的地;本发明技术方案将所有的数据先按照行政区级别进行划分处理,再对流向分析结果进行异常数据过滤,得到车辆从出发地到目的地的通行记录数据,避免了冗余的数据处理和存储,快速的得到最终结果,尤其适合持续较长时间的海量数据分析过程;同时,通过构建基础数据集存储不同级别行政区的车辆通行基本信息,以车辆通行记录提取操作记录表、临时表、待操作表作为海量数据提取与分析的辅助,每次对来源地、目的地的数据进行提取和分析前,进行临时表与操作记录表的比对,当每次分析过程的来源地、目的地和分析时间段与以往分析存在交叉时,已经参与过数据提取和分析的行政区及其对应的日期将被过滤,不再进行重复操作,避免了数据的重复存储和分析,提高了系统整体的分析效率,可以快速准确地计算得到结果,确保本发明技术方案灵活地适用于各种不同场景,提高了分析工作的效率,节省了人力资源。The present invention provides a vehicle flow analysis method from multiple departure points to multiple destinations, which presets the source, destination, and analysis time period that need to be analyzed for vehicle flow, according to the source, Corresponding relationship between different administrative district-level areas included in the destination and checkpoint filing information, find all the checkpoint equipment in the source and destination, and extract the data to be operated corresponding to the source and destination from the national vehicle traffic record data ; Then, through the license plate type and license plate number included in the data to be operated, the basic information of the source and destination vehicles to be analyzed is counted; and then for each target vehicle, the basic results of the vehicle flow analysis from the source to the destination are obtained After filtering the abnormal data, the vehicle flow analysis results are obtained, and the vehicle flow analysis results are grouped according to the destinations, and pushed to the destinations respectively; the technical solution of the present invention divides and processes all the data according to the administrative district level, Then filter the abnormal data of the flow direction analysis results to obtain the traffic record data of the vehicle from the departure point to the destination, avoid redundant data processing and storage, and quickly obtain the final result, especially suitable for the massive data analysis process that lasts for a long time ; At the same time, by constructing a basic data set to store the basic information of vehicle traffic in different levels of administrative regions, the vehicle traffic records are used to extract the operation record table, temporary table, and pending operation table as an aid to the extraction and analysis of massive data. Before the data is extracted and analyzed, the temporary table is compared with the operation record table. When the source, destination and analysis time period of each analysis process overlap with the previous analysis, the administrative districts that have participated in data extraction and analysis And the corresponding date will be filtered, no repeated operations will be performed, the repeated storage and analysis of data will be avoided, the overall analysis efficiency of the system will be improved, and the results can be calculated quickly and accurately, ensuring that the technical solution of the present invention is flexibly applicable to various Different scenarios can improve the efficiency of analysis work and save human resources.

附图说明Description of drawings

图1为本发明的从多个来源地到多个目的地的车辆流向分析方法的流程示意图。FIG. 1 is a schematic flowchart of a method for analyzing vehicle flow from multiple sources to multiple destinations according to the present invention.

具体实施方式Detailed ways

如图1所示,本发明包括一种从多个出发地到多个目的地的车辆流向分析方法,其包括以下步骤。As shown in FIG. 1 , the present invention includes a vehicle flow analysis method from multiple origins to multiple destinations, which includes the following steps.

S1:创建车辆通行记录提取操作记录表,记作:操作记录表,操作记录表初始化为空;S1: Create a vehicle passage record extraction operation record table, denoted as: operation record table, the operation record table is initialized to be empty;

操作记录表包括:行政区划代码和日期;The operation record sheet includes: administrative division code and date;

构建基础数据集,初始化为空;Build the basic data set and initialize it to be empty;

基础数据集包括:省级车辆通行基本信息、市级车辆通行基本信息、区级车辆通行基本信息。The basic data set includes: provincial-level vehicle traffic basic information, city-level vehicle traffic basic information, and district-level vehicle traffic basic information.

具体实施时,基础数据集包括的字段为基于现有的卡口设备和卡口备案信息能够直接采集到的数据,具体包包括:号牌种类、号牌号码、卡口设备编号、卡口抓拍方向、卡口抓拍时间、卡口所在道路类型、卡口所在省份代码、卡口所在地市代码、卡口所在行政区划代码、最初抓拍时间、抓拍次数、高速公路抓拍次数。During the specific implementation, the fields included in the basic data set are the data that can be directly collected based on the existing checkpoint equipment and checkpoint filing information. The specific package includes: license plate type, license plate number, checkpoint equipment number, checkpoint snapshot Direction, checkpoint capture time, road type where checkpoint is located, province code where checkpoint is located, city code where checkpoint is located, administrative division code where checkpoint is located, initial capture time, number of snapshots, and number of expressway snapshots.

S2:确定需要进行车辆流向分析的来源地、目的地和分析时间段;S2: Determine the source, destination and analysis time period that need to be analyzed for vehicle flow;

来源地为:需要进行车辆流出分析的地区;The source is: the area where vehicle outflow analysis is required;

目的地为:需要分析流入车辆的地区;The destination is: the area where the inflow of vehicles needs to be analyzed;

分析时间段为:需要进行车辆流向分析的时间段。The analysis time period is: the time period in which vehicle flow analysis is required.

根据现有的行政区划分和行政区划代码的记录方式,来源地、目的地包括:省、市、区级行政区,其中省、市、区级行政区分别以2、4、6位行政区划代码作指代。According to the existing administrative division and administrative division code recording method, the source and destination include: province, city and district-level administrative divisions, among which the province, city and district-level administrative divisions are respectively referred to by 2, 4 and 6-digit administrative division codes. generation.

本实施例中:分析时间段为2022年1月1日至2日,共2天;In this embodiment: the analysis time period is from January 1 to January 2, 2022, a total of 2 days;

来源地设置为河北省、河北省邢台市、河北省邢台市南宫市,行政区划代码分别为13、1305、130581;The origin is set to Hebei Province, Xingtai City, Hebei Province, and Nangong City, Xingtai City, Hebei Province, and the administrative division codes are 13, 1305, and 130581 respectively;

目的地设置为江苏省、江苏省苏州市、江苏省苏州市昆山市,行政区划代码分别为32、3205、320583。The destination is set to Jiangsu Province, Suzhou City, Jiangsu Province, and Kunshan City, Suzhou City, Jiangsu Province, and the administrative division codes are 32, 3205, and 320583 respectively.

S3:将来源地、目的地对应的行政区划代码和分析时间段对应的日期,提取出来生成临时表;临时表包括:行政区划代码和日期。S3: Extract the administrative division code corresponding to the source and destination and the date corresponding to the analysis time period to generate a temporary table; the temporary table includes: administrative division code and date.

S4:比较临时表和操作记录表,将两个表格中行政区和日期重复的数据,从临时表中删除,得到待操作表;待操作表包括:行政区划代码和日期;具体参照表1。S4: Compare the temporary table and the operation record table, and delete the duplicate data of administrative regions and dates in the two tables from the temporary table to obtain the pending operation table; the pending operation table includes: administrative division code and date; refer to Table 1 for details.

表1:待操作表的实施例Table 1: Examples of Tables to Be Operated

行政区划代码Administrative division code 日期date 1313 2022-01-012022-01-01 13051305 2022-01-012022-01-01 130581130581 2022-01-012022-01-01 3232 2022-01-012022-01-01 32053205 2022-01-012022-01-01 320583320583 2022-01-012022-01-01 1313 2022-01-022022-01-02 13051305 2022-01-022022-01-02 130581130581 2022-01-022022-01-02 3232 2022-01-022022-01-02 32053205 2022-01-022022-01-02 320583320583 2022-01-022022-01-02

通过临时表与操作记录表的比较,将已经进行过数据提取与存储的行政区及对应日期过滤,并将未进行数据提取与存储的行政区及对应日期记录在待操作表,以待操作表作为海量通行记录数据提取与存储步骤的指引,一方面可以确保来源地、目的地和分析时间段可以灵活指定,另一方面不会增加系统冗余的计算量和存储空间,使本发明方案适用于各种应用场景。By comparing the temporary table with the operation record table, the administrative districts and corresponding dates that have been extracted and stored are filtered, and the administrative districts and corresponding dates that have not been extracted and stored are recorded in the pending operation table, and the pending operation table is used as a mass The guidelines for the extraction and storage steps of traffic record data, on the one hand, can ensure that the source, destination, and analysis time period can be flexibly specified; application scenarios.

S5:在分析时间段内,在全国范围内,获取车辆通行记录,创建全国车辆通行记录数据;S5: Obtain vehicle traffic records across the country within the analysis time period, and create national vehicle traffic record data;

全国车辆通行记录数据包括:卡口设备编号、卡口抓拍时间、卡口抓拍方向、号牌种类和号牌号码;National vehicle traffic record data include: bayonet equipment number, bayonet capture time, bayonet capture direction, license plate type and license plate number;

S6:将全国车辆通行记录数据基于卡口备案信息,与待操作表进行关联,提取来源地和目的地对应的车辆通行记录数据,得到:待操作数据;S6: Associate the national vehicle traffic record data with the pending operation table based on the bayonet filing information, extract the vehicle traffic record data corresponding to the source and destination, and obtain: pending operation data;

待操作数据中包括的车辆,记作:待分析车辆;Vehicles included in the data to be operated, denoted as: vehicles to be analyzed;

卡口备案信息包括的字段有:卡口设备编号、卡口所在省份2位省份代码、卡口所在地市4位地市代码、卡口所在行政区划6位行政区划代码、卡口所在道路、卡口所在道路类型、卡口经度和卡口纬度;Checkpoint filing information includes the following fields: checkpoint equipment number, 2-digit province code of the province where the checkpoint is located, 4-digit city code of the city where the checkpoint is located, 6-digit administrative division code of the administrative division where the checkpoint is located, road where the checkpoint is located, card The type of road where the checkpoint is located, the longitude and latitude of the checkpoint;

待操作数据包括:卡口设备编号、卡口抓拍时间、卡口抓拍方向、号牌种类、号牌号码、卡口所在省份2位省份代码、卡口所在地市4位地市代码和卡口所在行政区划6位行政区划代码。The data to be operated includes: bayonet equipment number, bayonet capture time, bayonet capture direction, license plate type, license plate number, 2-digit province code of the province where the bayonet is located, 4-digit city code of the bayonet location and bayonet location Administrative division 6-digit administrative division code.

S7:根据待操作表,基于待操作数据中的号牌号码、号牌种类和行政区划代码,对待操作数据整理后,按行政区级别分别提取待分析车辆在各级行政区的通行基本信息;S7: According to the table to be operated, based on the number plate number, type of license plate and administrative division code in the data to be operated, after sorting the data to be operated, extract the basic information on the passage of the vehicles to be analyzed in the administrative areas at all levels according to the level of the administrative area;

其中,行政区划代码包括:2位省份代码、4位地市代码和6位行政区划代码,将待操作数据分别划分为三个行政区级别的数据,然后再按照待分析车辆分别提取;Among them, the administrative division code includes: 2-digit province code, 4-digit city code and 6-digit administrative division code. The data to be operated is divided into three administrative division-level data, and then extracted according to the vehicles to be analyzed;

将待分析车辆在各级行政区的通行基本信息,按照行政区级别分别存入到基础数据集中的省级车辆通行基本信息、市级车辆通行基本信息、区级车辆通行基本信息中;The basic traffic information of the vehicles to be analyzed in administrative regions at all levels is stored in the provincial-level vehicle traffic basic information, municipal-level vehicle traffic basic information, and district-level vehicle traffic basic information in the basic data set according to the administrative district level;

将待操作表内容存入到操作记录表中。Store the content of the table to be operated into the operation record table.

具体实施时,基础数据集中的省级车辆通行基本信息、市级车辆通行基本信息、区级车辆通行基本信息以日期为单元统计并存储,具体内容如下:During specific implementation, the provincial-level vehicle traffic basic information, city-level vehicle traffic basic information, and district-level vehicle traffic basic information in the basic data set are counted and stored in units of dates. The specific content is as follows:

省级车辆通行基本信息包含字段有:号牌种类、号牌号码、省份代码、车辆一日内在该省最晚抓拍对应的卡口设备编号、抓拍方向、所在道路、道路类型、地市代码、行政区划代码、车辆一日内在该省最初抓拍时间、最晚抓拍时间、抓拍次数、高速公路抓拍次数;The basic information of provincial-level vehicle traffic includes the following fields: plate type, plate number, province code, bayonet device number corresponding to the latest capture of the vehicle in the province within a day, capture direction, road where it is located, road type, prefecture code, Administrative division code, the initial capture time, the latest capture time, the number of captures, and the number of expressway captures in the province within a day;

市级车辆通行基本信息包含字段有:号牌种类、号牌号码、省份代码、地市代码、车辆一日内在该市最晚抓拍对应的卡口设备编号、抓拍方向、所在道路、道路类型、行政区划代码、车辆一日内在该市最初抓拍时间、最晚抓拍时间、抓拍次数、高速公路抓拍次数;The basic information of city-level vehicle traffic contains fields: license plate type, license plate number, province code, prefecture and city code, the bayonet device number corresponding to the latest capture of the vehicle in the city within a day, capture direction, road where it is located, road type, Administrative division code, the initial capture time, the latest capture time, the number of captures, and the number of expressway captures in the city within a day;

区级车辆通行基本信息包含字段有:号牌种类、号牌号码、省份代码、地市代码、行政区划代码、车辆一日内在该区最晚抓拍对应的卡口设备编号、抓拍方向、所在道路、道路类型、车辆一日内在该区最初抓拍时间、最晚抓拍时间、抓拍次数、高速公路抓拍次数。The basic information of vehicle traffic at the district level includes the following fields: license plate type, license plate number, province code, city code, administrative division code, the number of the bayonet device corresponding to the latest capture of the vehicle in the area within a day, the capture direction, and the road where it is located , road type, the initial capture time, the latest capture time, the number of captures, and the number of expressway captures within a day.

S8:从基础数据集中,按照不同行政区级别,分别统计基础数据集包括的每一辆车在分析时间段内与目的地、来源地对应的通行基本信息;将所述分析时间段内基础数据集包括的车辆,记作:目标车辆;S8: From the basic data set, according to different administrative district levels, respectively count the basic traffic information of each vehicle included in the basic data set corresponding to the destination and source within the analysis time period; the basic data set in the analysis time period Included vehicles, denoted as: target vehicle;

将统计的各个行政区级别的目的地、来源地的车辆通行基本信息,记作:地区通行基本信息数据集;地区通行基本信息数据集包括:来源地车辆通行基本信息、目的地车辆通行基本信息。The statistics of the basic information on vehicle traffic at the destination and source at each administrative district level are recorded as: the basic information data set on regional traffic; the basic information data set on regional traffic includes: basic information on vehicle traffic at the source and basic information on vehicle traffic at the destination.

将基础数据集分别与临时表中相应级别行政区划代码关联,按照不同行政区级别分别统计目标车辆在各个来源地、目的地通行基本信息,来源地、目的地通行基本信息各分为省、市、区三类单独存储。The basic data set is associated with the corresponding level of administrative division code in the temporary table, and the basic information of the target vehicle's traffic in each source and destination is calculated according to different administrative district levels. The basic information of the source and destination is divided into provinces, cities, The three types of areas are stored separately.

本实施例中,来源地设置为河北省、河北省邢台市、河北省邢台市南宫市;目的地设置为江苏省、江苏省苏州市、江苏省苏州市昆山市。来源地和目的地包括的行政区级别有:省级、市级和区级,则具体实施时,第一轮按省级提取河北省、江苏省待操作数据,统计通行基本信息并存入基础数据集,再从中分别统计分析时间段内河北省、江苏省车辆通行基本信息,实施后续步骤S9~S11;第二轮按市级提取河北省邢台市、江苏省苏州市待操作数据,统计通行基本信息并存入基础数据集,再从中分别统计分析时间段内河北省邢台市、江苏省苏州市车辆通行基本信息,实施后续步骤S9~S11;第三轮按区级提取河北省邢台市南宫市、江苏省苏州市昆山市待操作数据,统计通行基本信息并存入基础数据集,再从中分别统计分析时间段内河北省邢台市南宫市、江苏省苏州市昆山市车辆通行基本信息,实施后续步骤S9~S11。In this embodiment, the source is set to Hebei Province, Xingtai City, Hebei Province, and Nangong City, Xingtai City, Hebei Province; the destination is set to Jiangsu Province, Suzhou City, Jiangsu Province, and Kunshan City, Suzhou City, Jiangsu Province. The sources and destinations include administrative district levels: provincial level, municipal level and district level. During the specific implementation, the first round of data to be operated in Hebei Province and Jiangsu Province will be extracted according to the provincial level, and the basic traffic information will be counted and stored in the basic data. Collect, and then statistically analyze the basic information of vehicle traffic in Hebei Province and Jiangsu Province within the time period, and implement the subsequent steps S9~S11; the second round extracts the data to be operated in Xingtai City, Hebei Province, and Suzhou City, Jiangsu Province according to the city level, and the traffic statistics are basically The information is stored in the basic data set, and then the basic information of vehicle traffic in Xingtai City, Hebei Province and Suzhou City, Jiangsu Province is statistically analyzed from it, and the subsequent steps S9~S11 are implemented; the third round extracts Nangong City, Xingtai City, Hebei Province according to the district level , Kunshan City, Suzhou City, Jiangsu Province, the data to be operated, the basic traffic information is counted and stored in the basic data set, and then the basic information of vehicle traffic in Nangong City, Xingtai City, Hebei Province, and Kunshan City, Suzhou City, Jiangsu Province is statistically analyzed from it, and the follow-up Steps S9-S11.

省级来源地、目的地车辆通行基本信息包含字段有:号牌种类、号牌号码、省份代码;车辆在时间段内在该省最晚抓拍对应的:卡口设备编号、抓拍方向、所在道路、道路类型、地市代码、行政区划代码;车辆在时间段内在该省内:最初抓拍时间、最晚抓拍时间、抓拍次数总和、高速公路抓拍次数总和、抓拍天数;The basic information of provincial source and destination vehicle traffic contains fields: license plate type, license plate number, and province code; corresponding to the latest capture of the vehicle in the province within the time period: bayonet device number, capture direction, road, Road type, city code, administrative division code; vehicle in the province within the time period: initial capture time, latest capture time, sum of capture times, sum of expressway capture times, and capture days;

市级来源地、目的地车辆通行基本信息包含字段有:号牌种类、号牌号码、省份代码、地市代码;车辆在时间段内在该市最晚抓拍对应的:卡口设备编号、抓拍方向、所在道路、道路类型、行政区划代码;车辆在时间段内在该市内:最初抓拍时间、最晚抓拍时间、抓拍次数总和、高速公路抓拍次数总和、抓拍天数;The basic information of city-level source and destination vehicle traffic contains fields: plate type, plate number, province code, prefecture and city code; corresponding to the latest capture of the vehicle in the city within the time period: bayonet device number, capture direction , road, road type, administrative division code; the vehicle is in the city within the time period: the initial capture time, the latest capture time, the sum of the capture times, the sum of the expressway capture times, and the capture days;

区级来源地、目的地车辆通行基本信息包含字段有:号牌种类、号牌号码、省份代码、地市代码、行政区划代码;车辆在时间段内在该区最晚抓拍对应的:卡口设备编号、抓拍方向、所在道路、道路类型;车辆在时间段内在该区内:最初抓拍时间、最晚抓拍时间、抓拍次数总和、高速公路抓拍次数总和、抓拍天数。District-level source and destination vehicle traffic basic information contains fields: license plate type, license plate number, province code, prefecture-city code, administrative division code; corresponding to the latest capture of the vehicle in the area within the time period: bayonet device Number, capture direction, road, road type; vehicles in the area within the time period: initial capture time, latest capture time, sum of capture times, sum of expressway capture times, and capture days.

S9:按行政区级别的不同组合,从地区通行基本信息数据集逐对取出来源地、目的地车辆通行基本信息,以来源地、目的地为基础进行数据筛选,针对每一个目标车辆,保留来源地与目的地不同,且来源地最晚抓拍时间早于目的地最晚抓拍时间的关联结果,记作:车辆流向分析基础结果。S9: According to the different combinations of the administrative district level, the basic information of the source and destination vehicles is taken out pair by pair from the regional traffic basic information data set, and the data is screened on the basis of the source and destination. For each target vehicle, the source is retained The association result that is different from the destination and the latest capture time of the source is earlier than the latest capture time of the destination is recorded as: the basic result of vehicle flow analysis.

车辆流向分析基础结果按来源地与目的地行政区级别划分,本实施例中,行政区级别的不同组合具体包括9种划分方式:省-省、省-市、省-区、市-省、市-市、市-区、区-省、区-市、区-区。The basic results of vehicle flow analysis are divided according to the level of source and destination administrative regions. In this embodiment, different combinations of administrative region levels specifically include 9 division methods: province-province, province-city, province-district, city-province, city- City, city-district, district-province, district-city, district-district.

具体实施时,每次取出来源地和目的地行政区级别的一对组合,如:省-区,基于目标车辆对省级来源地和区级目的地的车辆通行基本信息进行数据筛选。In the specific implementation, a pair of combinations of the source and destination administrative regions is taken out each time, such as: province-district, and data screening is performed on the basic vehicle traffic information of the provincial source and district-level destinations based on the target vehicle.

车辆流向分析基础结果包括的字段内容与车辆流向分析结果相同,包括:车辆信息、来源地信息、目的地信息、分析时间段的来源地通行记录信息、分析时间段的目的地通行记录信息;The basic results of the vehicle flow analysis include the same fields as the vehicle flow analysis results, including: vehicle information, source information, destination information, source traffic record information in the analysis time period, and destination traffic record information in the analysis time period;

车辆信息包括:号牌种类、号牌号码;Vehicle information includes: license plate type, license plate number;

来源地信息包括:来源地省份代码、地市代码、行政区划代码;Source information includes: source province code, city code, administrative division code;

目的地信息包括:目的地省份代码、地市代码、行政区划代码;Destination information includes: destination province code, city code, administrative division code;

分析时间段的来源地通行记录信息包括:车辆在来源地抓拍次数、高速公路抓拍次数、最早抓拍时间、最晚抓拍时间、行驶天数、车辆在来源地最晚抓拍对应的卡口设备编号、抓拍方向、所在道路、道路类型;The source traffic record information of the analysis time period includes: the number of snapshots taken by the vehicle at the source, the number of highway snapshots, the earliest snapshot time, the latest snapshot time, the number of driving days, the corresponding bayonet device number of the vehicle’s latest snapshot at the source, and the snapshot direction, road, road type;

分析时间段的目的地通行记录信息包括:车辆在目的地抓拍次数、高速公路抓拍次数、最早抓拍时间、最晚抓拍时间、行驶天数、车辆在目的地最晚抓拍对应的卡口设备编号、抓拍方向、所在道路、道路类型。The destination traffic record information in the analysis time period includes: the number of snapshots taken by the vehicle at the destination, the number of snapshots taken on the expressway, the earliest snapshot time, the latest snapshot time, the number of driving days, the number of the bayonet device corresponding to the latest snapshot of the vehicle at the destination, and the snapshot Direction, road, road type.

本实施例中,车辆流向分析基础结果共有9类,分别为河北省-江苏省、河北省-江苏省苏州市、河北省-江苏省苏州市昆山市、河北省邢台市-江苏省、河北省邢台市-江苏省苏州市、河北省邢台市-江苏省苏州市昆山市、河北省邢台市南宫市-江苏省、河北省邢台市南宫市-江苏省苏州市、河北省邢台市南宫市-江苏省苏州市昆山市。In this example, there are 9 types of basic results of vehicle flow analysis, namely Hebei Province-Jiangsu Province, Hebei Province-Suzhou City, Jiangsu Province, Hebei Province-Kunshan City, Suzhou City, Jiangsu Province, Xingtai City, Hebei Province-Jiangsu Province, and Hebei Province Xingtai City-Suzhou City, Jiangsu Province, Xingtai City, Hebei Province-Kunshan City, Suzhou City, Jiangsu Province, Nangong City, Xingtai City, Hebei Province-Jiangsu Province, Nangong City, Xingtai City, Hebei Province-Suzhou City, Jiangsu Province, Nangong City, Xingtai City, Hebei Province-Jiangsu Province Kunshan City, Suzhou City, Province.

S10:将车辆流向分析基础结果中的异常数据进行过滤,得到车辆流向分析结果。S10: Filter the abnormal data in the basic results of the vehicle flow analysis to obtain the vehicle flow analysis results.

将车辆流向分析基础结果中的异常数据进行过滤,具体包括以下步骤:Filter the abnormal data in the basic results of the vehicle flow analysis, including the following steps:

a1:预设速度阈值vt;a1: preset speed threshold vt;

速度阈值为目标车辆在两个地区之间的能够达到的平均行驶速度的最大值;The speed threshold is the maximum value of the average driving speed that the target vehicle can reach between the two regions;

a2:获取目标车辆在来源地最后一次被抓拍时的卡口设备,在卡口设备的备案信息中获取卡口设备的经纬度,记作:来源地经纬度Gs;抓拍时间记作:t1;a2: Obtain the bayonet device when the target vehicle was last captured at the source, and obtain the latitude and longitude of the bayonet device from the record information of the bayonet device, which is recorded as: the longitude and latitude of the source place Gs; the capture time is recorded as: t1;

获取目标车辆在目的地最后一次被抓拍时的卡口设备,在卡口设备的备案信息中获取卡口设备的经纬度,记作:目的地经纬度Ge;抓拍时间记作:tg;Obtain the bayonet device when the target vehicle was last captured at the destination, and obtain the latitude and longitude of the bayonet device from the filing information of the bayonet device, which is recorded as: destination longitude and latitude Ge; capture time is recorded as: tg;

a3:计算来源地经纬度Gs、目的地经纬度Ge的球面距离,得到来源地和目的地的空间间隔L;a3: Calculate the spherical distance between the source latitude and longitude Gs and the destination latitude and longitude Ge, and obtain the spatial interval L between the source place and the destination place;

计算t1和tg的差值,得到来源地和目的地的时间间隔T;Calculate the difference between t1 and tg to obtain the time interval T between the source and destination;

则,目标车辆在两个地区之间的行驶速度V=L/T;Then, the traveling speed of the target vehicle between the two regions V=L/T;

a4:比较V和vt;a4: Compare V and vt;

如果V>vt则,判定目标车辆从来源地和目的地之间的通行记录数据为异常数据;If V>vt, it is determined that the traffic record data of the target vehicle between the source and the destination is abnormal data;

否则,判定为非异常数据;Otherwise, it is judged as non-abnormal data;

a5:将异常数据对应的车辆通行记录信息删除,完成异常数据过滤,得到车辆流向分析结果。a5: Delete the vehicle traffic record information corresponding to the abnormal data, complete the abnormal data filtering, and obtain the vehicle flow analysis results.

本实施例中,速度阈值vt设置为120km/h,即:在目前的高速公路运行速度规定下,车辆行驶平均速度不会超过120km/h,超过此阈值认为是抓拍图片识别错误造成两地出现相同号牌造成的异常数据,将异常数据对应的分析结果删除,完成异常数据过滤,提高计算结果的准确性。In this embodiment, the speed threshold vt is set to 120km/h, that is, under the current expressway operating speed regulations, the average speed of the vehicle will not exceed 120km/h, exceeding this threshold is considered to be an error in the recognition of the captured picture and the occurrence of two places. For the abnormal data caused by the same number plate, the analysis results corresponding to the abnormal data are deleted, and the abnormal data filtering is completed to improve the accuracy of the calculation results.

S11:将车辆流向分析结果按照目的地分组后,分别推送到每个目的地。S11: After grouping the vehicle flow analysis results by destination, push them to each destination respectively.

车辆流向分析结果包括:车辆信息、来源地信息、目的地信息、分析时间段的来源地通行记录信息、分析时间段的目的地通行记录信息;The results of vehicle flow analysis include: vehicle information, source information, destination information, source traffic record information in the analysis time period, and destination traffic record information in the analysis time period;

车辆信息包括:号牌种类、号牌号码;Vehicle information includes: license plate type, license plate number;

来源地信息包括:来源地省份代码、地市代码、行政区划代码;Source information includes: source province code, city code, administrative division code;

目的地信息包括:目的地省份代码、地市代码、行政区划代码;Destination information includes: destination province code, city code, administrative division code;

分析时间段的来源地通行记录信息包括:车辆在来源地抓拍次数、高速公路抓拍次数、最早抓拍时间、最晚抓拍时间、行驶天数、车辆在来源地最晚抓拍对应的卡口设备编号、抓拍方向、所在道路、道路类型;The source traffic record information of the analysis time period includes: the number of snapshots taken by the vehicle at the source, the number of highway snapshots, the earliest snapshot time, the latest snapshot time, the number of driving days, the corresponding bayonet device number of the vehicle’s latest snapshot at the source, and the snapshot direction, road, road type;

分析时间段的目的地通行记录信息包括:车辆在目的地抓拍次数、高速公路抓拍次数、最早抓拍时间、最晚抓拍时间、行驶天数、车辆在目的地最晚抓拍对应的卡口设备编号、抓拍方向、所在道路、道路类型。The destination traffic record information in the analysis time period includes: the number of snapshots taken by the vehicle at the destination, the number of snapshots taken on the expressway, the earliest snapshot time, the latest snapshot time, the number of driving days, the number of the bayonet device corresponding to the latest snapshot of the vehicle at the destination, and the snapshot Direction, road, road type.

按目的地整合车辆流向分析结果,为江苏省推送河北省-江苏省、河北省邢台市-江苏省、河北省邢台市南宫市-江苏省的分析结果,为江苏省苏州市推送河北省-江苏省苏州市、河北省邢台市-江苏省苏州市、河北省邢台市南宫市-江苏省苏州市的分析结果,为江苏省苏州市昆山市推送河北省-江苏省苏州市昆山市、河北省邢台市-江苏省苏州市昆山市、河北省邢台市南宫市-江苏省苏州市昆山市的分析结果。Integrate the analysis results of vehicle flow by destination, and push the analysis results of Hebei Province-Jiangsu Province, Xingtai City, Hebei Province-Jiangsu Province, Nangong City, Xingtai City, Hebei Province-Jiangsu Province for Jiangsu Province, and push Hebei Province-Jiangsu Province for Suzhou City, Jiangsu Province The analysis results of Suzhou City, Hebei Province, Xingtai City, Hebei Province-Suzhou City, Jiangsu Province, Nangong City, Xingtai City, Hebei Province-Suzhou City, Jiangsu Province are pushed to Kunshan City, Suzhou City, Jiangsu Province, Hebei Province-Kunshan City, Suzhou City, Jiangsu Province, and Xingtai City, Hebei Province City-Kunshan City, Suzhou City, Jiangsu Province, and Nangong City, Xingtai City, Hebei Province-Kunshan City, Suzhou City, Jiangsu Province.

S12:循环执行步骤S9~S11,直至目的地、来源地对应的所有行政区级别的数据都已经提取完毕并参与计算,则完成本次车辆流向分析。S12: Steps S9-S11 are executed in a loop until all the administrative region-level data corresponding to the destination and the source have been extracted and participated in the calculation, then the vehicle flow analysis is completed.

S13:指定来源地、目的地和分析时间段,循环执行步骤S2~S12,持续监测车辆流向。S13: Designate the source, destination and analysis time period, execute steps S2-S12 in a loop, and continuously monitor the flow of vehicles.

使用本发明的技术方案,先预设分析时间段、来源地、目的地,通过设置临时表,将临时表与车辆通行记录提取操作记录表进行比较,确定海量通行记录数据的每次提取与存储的最小处理量,提高系统处理效率;分省、市、区三级组织来源地与目的地车辆通行记录数据,统计各级来源地、目的地通行车辆基本信息,再将分析时间段内来源地与目的地通行车辆基本信息进行关联,经筛选、整合后推送给各个目的地。基于本发明技术方案,无需增加新的硬件设备,结合卡口设备备案信息,在研判从多个来源地到多个目的地车辆流向方面条理清晰、效率较高。本发明技术方案不但能避免数据的冗余处理和存储,而且数据处理过程分级分类,条理清楚,容易实现,分析结果内容丰富、详细,为各地区在突发情况下对从不同重点关注的来源地流入辖区的车辆组织查控、保持每日关注提供有力支持。Using the technical solution of the present invention, first preset the analysis time period, source, and destination, and compare the temporary table with the vehicle traffic record extraction operation record table by setting a temporary table to determine each extraction and storage of massive traffic record data The minimum processing capacity of the system can be improved to improve the processing efficiency of the system; the traffic record data of the source and destination vehicles are organized at the provincial, municipal, and district levels, and the basic information of the source and destination vehicles at all levels is counted, and then the source and destination within the analysis time period It is associated with the basic information of vehicles passing through the destination, and is pushed to each destination after screening and integration. Based on the technical solution of the present invention, there is no need to add new hardware devices, combined with the record information of bayonet devices, the flow direction of vehicles from multiple sources to multiple destinations can be studied and judged in a clear and efficient manner. The technical scheme of the present invention can not only avoid redundant processing and storage of data, but also classify and classify the data processing process, which is clear and easy to implement. Provide strong support for organizing investigation and control of vehicles entering the jurisdiction and maintaining daily attention.

Claims (4)

1. A method of analyzing a vehicle flow direction from a plurality of departure points to a plurality of destinations, comprising the steps of:
s1: creating a vehicle passing record extraction operation record table, which is recorded as: an operation record table initialized to be empty;
the operation record table includes: administrative district codes and dates;
constructing a basic data set and initializing to be empty;
the base data set includes: provincial level vehicle passing basic information, municipal level vehicle passing basic information and regional level vehicle passing basic information;
s2: determining a source, a destination and an analysis period of time for which a vehicle flow direction analysis is required;
the source is: areas where vehicle outflow analysis is required;
the destination is: the area into which the vehicle is to be analyzed;
the analysis time period is as follows: a time period during which a vehicle flow direction analysis is required;
s3: extracting administrative division codes corresponding to the source and the destination and dates corresponding to the analysis time period to generate a temporary table;
the temporary table includes: administrative district codes and dates;
s4: comparing the temporary table with the operation record table, deleting the data of administrative areas and date repetition in the two tables from the temporary table, and obtaining a table to be operated; the table to be operated includes: administrative district codes and dates;
s5: acquiring a vehicle passing record in a national range in the analysis time period, and creating national vehicle passing record data;
the national vehicle passage record data includes: the bayonet equipment number, the bayonet snapshot time, the bayonet snapshot direction, the number plate type and the number plate number;
s6: associating the national vehicle passing record data with the table to be operated based on the bayonet record information, and extracting the vehicle passing record data corresponding to the source and the destination to obtain: data to be operated;
and recording the vehicles included in the data to be operated as: a vehicle to be analyzed;
the bayonet record information comprises: the method comprises the steps of bayonet equipment numbering, a bayonet-located province 2-bit province code, a bayonet-located city 4-bit city code, a bayonet-located administrative division 6-bit administrative division code, a bayonet-located road type, a bayonet longitude and a bayonet latitude;
the data to be operated includes: the method comprises the steps of bayonet equipment numbering, bayonet snapshot time, bayonet snapshot direction, number plate type, number plate number, 2-bit province code of the province where the bayonet is located, 4-bit city code of the city where the bayonet is located and 6-bit administrative division code of the administrative division where the bayonet is located;
s7: according to the table to be operated, based on the number plate number, the number plate type and the administrative division code in the data to be operated, after the data to be operated are arranged, the basic traffic information of the vehicle to be analyzed in each administrative division is respectively extracted according to the administrative division level;
the passing basic information of the vehicles to be analyzed in each administrative area is respectively stored into provincial vehicle passing basic information, municipal vehicle passing basic information and regional vehicle passing basic information in the basic data set according to the administrative area level;
storing the contents of the table to be operated into the operation record table;
s8: respectively counting the passing basic information of each vehicle included in the basic data set corresponding to the destination and the source in the analysis time period according to different administrative district levels from the basic data set;
the vehicles included in the basic data set in the analysis period are recorded as: a target vehicle;
recording the counted vehicle passing basic information of the destination and the source at each administrative district level as: a regional traffic basic information dataset; the regional traffic basic information data set comprises: source vehicle traffic basic information and destination vehicle traffic basic information;
s9: according to different combinations of administrative district levels, extracting source and destination vehicle passing basic information pair by pair from the district passing basic information data set, carrying out data screening based on the source and destination, and reserving the associated results that the source and destination are different and the latest snapshot time of the source is earlier than the latest snapshot time of the destination for each target vehicle, wherein the associated results are recorded as: analyzing a basic result of the vehicle flow direction;
s10: filtering abnormal data in the basic result of the vehicle flow direction analysis to obtain a vehicle flow direction analysis result;
s11: grouping the vehicle flow direction analysis results according to the destination, and then respectively pushing the vehicle flow direction analysis results to the destination;
s12: step S9-S11 is circularly executed until all the data of the administrative region levels corresponding to the destination and the source are extracted and participate in calculation, and then the flow direction analysis of the vehicle is completed;
s13: and designating the source, the destination and the analysis time period, and circularly executing the steps S2-S12 to continuously monitor the vehicle flow direction.
2. A vehicle flow direction analysis method from a plurality of departure points to a plurality of destinations according to claim 1, wherein: the vehicle flow direction analysis result includes: vehicle information, source information, destination information, source traffic record information for an analysis period, destination traffic record information for an analysis period;
the vehicle information includes: number plate type, number plate number;
the source location information includes: source province code, city code and administrative division code;
the destination information includes: destination province code, city code, administrative division code;
analyzing the source-location passing record information for a time period includes: the method comprises the steps of capturing the number of times of the vehicle at a source, capturing the number of times of the expressway, capturing the earliest capturing time, capturing the latest capturing time, driving days, capturing the corresponding bayonet equipment number, capturing direction, road and road type of the vehicle at the source at the latest capturing time;
analyzing the destination entry information for a time period includes: the method comprises the steps of capturing the vehicle at a destination, capturing the vehicle at the expressway, capturing the vehicle at the earliest capturing time, capturing the vehicle at the latest capturing time, driving days, capturing the vehicle at the latest capturing corresponding bayonet equipment number, capturing direction, road and road type.
3. A vehicle flow direction analysis method from a plurality of departure points to a plurality of destinations according to claim 1, wherein: the vehicle flow direction analysis basic result is divided into a source administrative district level and a destination administrative district level, and the vehicle flow direction analysis basic result comprises the following components: province-province, province-city, province-district, city-province, city-city, city-district, district-province, district-city, district-district.
4. A vehicle flow direction analysis method from a plurality of departure points to a plurality of destinations according to claim 1, wherein: in step S10, filtering the abnormal data in the basic result of the vehicle flow direction analysis, including the following steps:
a1: presetting a speed threshold vt;
the speed threshold is the maximum value of the average running speed that the target vehicle can reach between two areas;
a2: acquiring a bayonet device when the target vehicle is captured for the last time at the source, acquiring longitude and latitude of the bayonet device from record information of the bayonet device, and marking as: source latitude and longitude Gs; the snapshot time is recorded as: t1;
acquiring a bayonet device when the target vehicle is captured for the last time at a destination, acquiring longitude and latitude of the bayonet device from record information of the bayonet device, and marking as: destination longitude and latitude Ge; the snapshot time is recorded as: tg;
a3: calculating the source longitude and latitude Gs and the spherical distance of the destination longitude and latitude Ge to obtain a space interval L between the source and the destination;
calculating the difference between T1 and tg to obtain a time interval T of a source and a destination;
then, the travel speed v=l/T of the target vehicle between the two regions;
a4: comparing V and vt;
if V > vt, judging that the traffic record data of the target vehicle from the source and the destination is abnormal data;
otherwise, judging the data to be non-abnormal data;
a5: deleting the vehicle passing record information corresponding to the abnormal data, and completing the filtering of the abnormal data to obtain the vehicle flow direction analysis result.
CN202210695137.8A 2022-06-20 2022-06-20 Method for analyzing vehicle flow direction from multiple departure places to multiple destinations Active CN115100856B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210695137.8A CN115100856B (en) 2022-06-20 2022-06-20 Method for analyzing vehicle flow direction from multiple departure places to multiple destinations

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210695137.8A CN115100856B (en) 2022-06-20 2022-06-20 Method for analyzing vehicle flow direction from multiple departure places to multiple destinations

Publications (2)

Publication Number Publication Date
CN115100856A CN115100856A (en) 2022-09-23
CN115100856B true CN115100856B (en) 2023-05-26

Family

ID=83290244

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210695137.8A Active CN115100856B (en) 2022-06-20 2022-06-20 Method for analyzing vehicle flow direction from multiple departure places to multiple destinations

Country Status (1)

Country Link
CN (1) CN115100856B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002319093A (en) * 2001-04-19 2002-10-31 Fujitsu Ltd Vehicle allocation planning support device, computer program, and recording medium
CN104408920A (en) * 2014-11-25 2015-03-11 公安部交通管理科学研究所 Checkpoint traffic information-based method for judging traffic violation of long-distance passenger vehicles
CN105654730A (en) * 2015-12-31 2016-06-08 公安部交通管理科学研究所 Method for identifying fake-licensed car based on block port throughput big data analysis
CN108986478A (en) * 2018-09-17 2018-12-11 公安部交通管理科学研究所 A method of fixed point screens illegal vehicle
WO2020186764A1 (en) * 2019-03-21 2020-09-24 江苏智通交通科技有限公司 Vehicle-to-turn area lane saturated time headway calculation method based on video license plate device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9600541B2 (en) * 2014-05-02 2017-03-21 Kookmin University Industry Academy Corporation Foundation Method of processing and analysing vehicle driving big data and system thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002319093A (en) * 2001-04-19 2002-10-31 Fujitsu Ltd Vehicle allocation planning support device, computer program, and recording medium
CN104408920A (en) * 2014-11-25 2015-03-11 公安部交通管理科学研究所 Checkpoint traffic information-based method for judging traffic violation of long-distance passenger vehicles
CN105654730A (en) * 2015-12-31 2016-06-08 公安部交通管理科学研究所 Method for identifying fake-licensed car based on block port throughput big data analysis
CN108986478A (en) * 2018-09-17 2018-12-11 公安部交通管理科学研究所 A method of fixed point screens illegal vehicle
WO2020186764A1 (en) * 2019-03-21 2020-09-24 江苏智通交通科技有限公司 Vehicle-to-turn area lane saturated time headway calculation method based on video license plate device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于云计算的智能卡口系统研究;彭宁;刘忠山;周海波;;软件导刊(第05期);全文 *

Also Published As

Publication number Publication date
CN115100856A (en) 2022-09-23

Similar Documents

Publication Publication Date Title
CN108346292B (en) Urban expressway real-time traffic index calculation method based on checkpoint data
CN104484993B (en) Processing method of cell phone signaling information for dividing traffic zones
CN107958031B (en) Resident travel OD distribution extraction method based on fusion data
CN109634946B (en) A trajectory intelligent matching association analysis method based on big data mining
CN110222131A (en) The beginning and the end information extracting method and device
CN113470376B (en) Real-time regional in-transit vehicle counting method and system based on bayonet vehicle passing data
CN110807919A (en) Evaluation method of traffic operation situation of urban road network based on passing data
CN110874369A (en) Multidimensional data fusion investigation system and method thereof
CN107967323A (en) The method and system of abnormal in-trips vehicles analysis are carried out based on big data
CN106056903B (en) The detection method in the road congestion region based on GPS data
CN115862331B (en) Vehicle travel trajectory reconstruction method considering the topological structure of the checkpoint network
CN104615858A (en) Method for calculating starting place and destination of vehicles
CN114647684A (en) Traffic prediction method and device based on stacking algorithm and related equipment
CN111949701A (en) Moving object travel rule analysis method and device based on track similarity
CN107146414B (en) Road network traffic capacity extraction method based on vehicle identification
CN106251628B (en) A method and device for determining the traffic volume of a motor vehicle
CN112651992A (en) A trajectory tracking method and system
CN115100856B (en) Method for analyzing vehicle flow direction from multiple departure places to multiple destinations
CN115063977B (en) Method for analyzing vehicle flow direction from single departure place to multiple destinations
CN107610465B (en) Traffic monitoring data matching method, system and storage device
CN112052280A (en) A real population analysis method and system based on spatiotemporal data
CN116798236A (en) Abnormal behavior vehicle recognition system
CN113470347B (en) Congestion identification method and system combining bayonet vehicle passing record and floating vehicle GPS data
CN114637883B (en) Hot spot route analysis method, device, electronic device and storage medium
CN112991804B (en) Stay area determination method and related device

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