A method for storing and retrieving high-speed traffic data based on lateral fusion of traffic signs

By constructing point-line relationships through the horizontal fusion method based on traffic marks, the problem of low efficiency in retrieval of highway traffic data is solved, efficient data retrieval and system performance improvement are achieved, and the needs of highway clearing and settlement are met.

CN114218260BActive Publication Date: 2024-10-18SHANGHAI SEARI INTELLIGENT SYST CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111399480.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-24
Publication Date
2024-10-18
Estimated Expiration
2041-11-24

AI Technical Summary

Technical Problem

In the existing technology, the retrieval efficiency of highway traffic data is low and cannot meet the needs of highway clearing and settlement. This is mainly due to the poor efficiency of data scattered storage and traffic identification matching retrieval, which leads to an increase in system operation load.

Method used

The horizontal fusion method based on traffic marks is used to record the traffic records generated by the high-speed mast to build point-line relationships, including horizontal relationships and vertical fusion relationships, to achieve horizontal data retrieval and vertical data retrieval, and improve query efficiency.

Benefits of technology

It significantly improves the query efficiency of data retrieval, reduces the IO load of relational databases, solves the conflict between high-frequency retrieval and offline analysis competing for IO, and improves the performance of the clearing and settlement system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114218260B_ABST
    Figure CN114218260B_ABST
Patent Text Reader

Abstract

The present application discloses a method for storing and retrieving high-speed traffic data based on the horizontal fusion of traffic marks, which is characterized by comprising the following steps: Step 1, recording the traffic records generated by the gantry on the highway; Step 2, constructing point-line relationships: Horizontal relationship construction: When the traffic record is generated in step 1, a timeline chain corresponding to the traffic medium is established based on the traffic mark, and the traffic identification of the traffic medium is used as the key information to associate all the traffic records on the timeline of the traffic medium, and each point represents a traffic record; Vertical fusion relationship construction: Based on the completion of the horizontal relationship construction, a vertical fusion relationship between the traffic mark and the traffic record is constructed, including the gantry information, the record ID of the traffic record generated by the gantry, and the position of the traffic record in the constructed horizontal relationship. Using the above data, in the application scenario of the clearing and settlement system, the efficiency of horizontal data retrieval and vertical data retrieval is higher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to a method for storing and retrieving high-speed traffic data based on lateral fusion of traffic marks, and belongs to the field of intelligent transportation technology. Background Art

[0002] Since the removal of provincial boundary toll stations on national highways, in accordance with the unified requirements of the Ministry of Transport, each province (city) has adopted the ETC gantry system toll clearing and splitting mode. At present, the traditional data retrieval mode relying on the traditional relational database can no longer meet the existing clearing and settlement application requirements; daily clearing and settlement work is mainly based on the following data:

[0003] Entrance lane flow: When a vehicle passes through a toll station, the entrance toll station writes the entry time, entry license plate, pass equipment code and other information to the CPC card or OBU tag device;

[0004] Exit lane flow: After the vehicle has passed through the expressway, it passes through the exit toll station, and reads the entry time, entry license plate, pass equipment code, accumulated mileage, accumulated billing amount and other information on the CPC card or OBU tag, and completes the deduction transaction and other information;

[0005] ETC gantry billing and deduction transaction data: data generated by the interaction between the CPC card or OBU tag and the gantry when the vehicle passes through the gantry, mainly including: vehicle entrance information, passing time, vehicle model, gantry billing mileage, billing amount, etc.

[0006] ETC gantry license plate recognition flow data: including gantry number, capture time, recognized license plate number, recognized vehicle model, shooting location, etc.;

[0007] The above data come from multiple sources such as toll lanes, toll stations, road ETC gantries, etc. However, when conducting clearing and settlement, in order to form accurate clearing and splitting information, it is necessary to match the above types of data one by one and merge them into one piece of data as the basis for clearing and splitting.

[0008] In the current clearing and settlement application system, data such as entrance lane flow, exit lane flow, ETC gantry billing and deduction transaction data, and ETC gantry license plate recognition flow are scattered and stored in multiple data tables. The data matching usually adopts the pass identification method, that is, when a vehicle enters the highway, a unified pass identification is generated according to the license plate number, entry time, and pass medium number, and the relevant data stored in multiple data tables are retrieved through the identification. This method has the following disadvantages:

[0009] 1) Since the amount of data in each data table is inconsistent, it is impossible to achieve consistent matching retrieval response efficiency, and the periodic growth of each data is also inconsistent, the gap in matching retrieval response efficiency of various data will become larger and larger;

[0010] 2) When matching and retrieving multiple data at the same time, if the matching and retrieval of a certain data fails, it is necessary to re-match and retrieve all the data. The secondary data retrieval and matching increases the operating load of the system;

[0011] Therefore, it is difficult to achieve satisfactory efficiency by matching and searching only through access identifiers. Summary of the invention

[0012] The technical problem to be solved by this application is how to improve the retrieval efficiency of high-speed traffic data.

[0013] In order to solve the above technical problems, the technical solution of the present application is to provide a high-speed traffic data storage method based on the horizontal fusion of traffic marks, which is characterized by comprising the following steps:

[0014] Step 1: Record the passage record generated by the high-speed gantry: the passage record includes at least the record ID, the passage mark corresponding to the passage medium generating the passage record, and the detailed information of the passage record;

[0015] Step 2: Construction of point-line relationship:

[0016] Step 2.1: Horizontal relationship building:

[0017] When the passage record is generated in step 1, a timeline chain corresponding to the passage medium is established based on the passage mark, and the passage mark of the passage medium is used as the key information to associate all the passage records on the passage medium timeline, and each point represents a passage record;

[0018] Step 2.2: Building vertical integration relationships:

[0019] Based on the completion of the horizontal relationship construction in step 2.1, a vertical fusion relationship between the recorded pass mark and the pass record is constructed, including the gantry information, the record ID of the pass record generated by the gantry, and the position of the horizontal relationship of the pass record constructed in step 2.1.

[0020] Preferably, the record ID in step one includes the following information: gantry information, time information when the passage record is generated, and passage medium information.

[0021] Preferably, the passage mark in step 1 is a combination of the passage medium's high-speed entry time and the passage medium.

[0022] On the other hand, the present application also provides a high-speed traffic data retrieval method based on horizontal fusion of traffic marks, which retrieves data stored by the above-mentioned high-speed traffic data storage method based on horizontal fusion of traffic marks, and is characterized in that it includes horizontal data retrieval and vertical data retrieval;

[0023] The horizontal data retrieval:

[0024] That is, the collection of all the passage records corresponding to a single passage of the passage medium is retrieved. For the passage medium m with the passage identifier P, the timeline chain with the passage identifier P in the horizontal relationship is directly retrieved to obtain the passage record set of the passage medium m;

[0025] The longitudinal data retrieval:

[0026] That is, retrieve the collection of all the pass records corresponding to the gantry, first obtain the position of the pass records generated by the gantry in the horizontal relationship according to the vertical fusion relationship, and then obtain the detailed information of the pass records according to the pass record set of the horizontal data.

[0027] The advantage of this application is that compared with the retrieval method based on traditional database storage index design, the massive data retrieval method with horizontal integration of pass tags can greatly improve the query efficiency of data retrieval, effectively reduce the IO load of the relational database, and successfully solve the contradiction between high-frequency retrieval and offline analysis for IO. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 It is a schematic diagram of vertical retrieval based on point-line relationship provided in the embodiment. DETAILED DESCRIPTION

[0029] In order to make the present application more clear and understandable, a preferred embodiment is described in detail as follows with reference to the accompanying drawings.

[0030] Example

[0031] This embodiment provides a high-speed traffic data storage and retrieval method based on the horizontal fusion of traffic marks, which includes three parts: discrete data entry (storage), point-line relationship construction (storage), and traffic data retrieval (retrieval).

[0032] 1. Discrete data entry: Under the current highway gantry toll collection basis, the generation and transmission of gantry data do not have temporal and spatial coherence. Therefore, from the perspective of a single vehicle travel, the gantry toll collection and deduction transaction data generated by all routes in the travel are discrete; effective, efficient and reliable discrete data entry is the design basis of the massive data retrieval method based on the horizontal integration of travel marks;

[0033] The data of the entrance lane flow, exit lane flow, ETC gantry billing and deduction transaction data, ETC gantry license plate recognition flow, etc. are all uniformly constructed as a pass record tr-record. All pass records tr-records constitute a set Tr-records = {tr-record1, tr-record2, tr-record3...} that needs to be stored. The information contained in a single pass record includes at least:

[0034] Record ID: gtm, where g represents the entrance, exit or a certain ETC gantry, t represents the time when the pass record is generated, and m represents the pass medium;

[0035] Passage mark P: et-m, where et represents the entry time and m represents the passing medium;

[0036] And other traffic information.

[0037] Take the following traffic data as an example:

[0038] Journey 1: The medium m1 enters the expressway through the entrance g0 at time et1, and the passage mark p1 is et1m1, generating the entrance record g0et1m1. It passes through the g1 gantry at t1 to generate the g1t1m1 gantry record, passes through the g2 gantry at t2 to generate the g2t2m1 gantry record, passes through the g3 gantry at t3 to generate g3t3m1, and passes through the g4 gantry at t4 to generate g4t4m1.

[0039] Journey 2: The medium M2 enters the expressway through the entrance G0 at time et2, and the passage mark P2 is et2m2, generating the entrance record G0et2m2. At t5, it passes through the G1 gantry to generate the G1t5m2 gantry record, and at t6, it passes through the G2 gantry to generate the G2t6m2 gantry record.

[0040] Trip 3: The medium m3 enters the expressway through the entrance g0 at time et3, and the pass mark p3 is et3m3, generating the entrance record g0et3m3. It passes through the g1 gantry at t7 to generate the g1t7m3 gantry record, passes through the g2 gantry at t8 to generate the g2t8m3 gantry record, and passes through the g3 gantry at t9 to generate the g3t9m3 gantry record.

[0041] The above-mentioned pass data storage list is as follows:

[0042] Tr-records Record ID time Passing medium Passage sign P tr-record1 g0et1m1 et1 m1 et1m1 ... tr-record2 g1t1m1 t1 m1 et1m1 ... tr-record3 g2t2m1 t2 m1 et1m1 ... tr-record4 g3t3m1 t3 m1 et1m1 ... tr-record5 g4t4m1 t4 m1 et1m1 ... tr-record6 g0et2m2 et2 m2 et2m2 ... tr-record7 g1t5m2 t5 m2 et2m2 ... tr-record8 g2t6m2 t6 m2 et2m2 ... tr-record9 g0et3m3 et3 m3 et3m3 ... tr-record11 g1t7m3 t7 m3 et3m3 ... tr-record12 g2t8m3 t8 m3 et3m3 ... tr-record13 g3t9m3 t9 m3 et3m3 ...

[0043] At this point, the entry of the transit record set Tr-records is completed.

[0044] 2. Construction of point-line relationship:

[0045] In the application scenario, the main data retrieval goal is to obtain all the pass records in a single trip of a certain pass medium and to retrieve all the pass records generated by the gantry g. In the actual pass record set Tr-records, the pass records of a single pass medium are generated sporadically and the storage content is scattered in the pass record set Tr-records. In order to realize the retrieval of the pass records of a single pass medium in the traditional relational database, it is often necessary to build a structure based on the relationship of the gantry record and index the p attribute to improve the retrieval efficiency. The database index is usually implemented based on the B+ tree with a time complexity of O(logN). As the data grows, the retrieval time will become worse and worse, and it will gradually fail to meet the needs of fast clearing and settlement.

[0046] 1. Horizontal relationship building

[0047] When a passage record is generated, in addition to storing all the information of the passage record, a timeline chain index corresponding to the passage medium m is established based on the passage mark P, and the passage mark P of the passage medium m is used as the key information to associate all the passage records on the timeline of the passage medium m. Each point represents the storage location of a passage record, as shown in the following table:

[0048] Passage Marking Chain Record 1 Record 2 Record 3 Record 4 Record 5 et1m1 g0et1m1 g1t1m1 g2t2m1 g3t3m1 g4t4m1 et2m2 g0et2m2 g1t5m2 g2t6m2 et3m3 g0et3m3 g1t7m3 g2t8m3 g3t9m3

[0049] At this point, the horizontal relationship construction of the transit record set Tr-records is completed.

[0050] 2. Vertical relationship building

[0051] Based on the completion of the horizontal relationship construction, an index is constructed to record the vertical fusion relationship between the passage record p and the tr-record. There is no need to store all the attributes of the tr-record. The id is constructed to store the gantry id, the item stores the record id, and the r column stores the fusion relationship, as shown in the following table:

[0052]

[0053] At this point, the vertical relationship construction of the transit record set Tr-records is completed.

[0054] 3. Pass Data Retrieval

[0055] In the application scenarios of the clearing and settlement system, according to application requirements, it is divided into two types: horizontal data retrieval and vertical data retrieval.

[0056] 1. For horizontal data retrieval

[0057] That is, retrieve the collection of all pass records corresponding to a single pass, establish hash(p) for the pass identifier P, and by directly searching hash(p)=m-Tr-records, you can get all the points of the pass identifier P that constitute the pass record set m-Tr-records corresponding to the pass medium m, and the time complexity is O(1).

[0058] 2. For longitudinal data retrieval

[0059] That is, to retrieve the collection of all the passage records corresponding to a single gantry, first retrieve the vertical relationship index to obtain the relationship between tr-record and p, and then obtain the detailed information of tr-record from the set of hash(p)=m-Tr-records, such as Figure 1 As shown:

[0060] At this time, the query method f(id) = r, and the query id = g1:

[0061] r=f(g1)={hash(et1m1)[0],hash(et2m2)[0],hash(et3m3)[0]} The query based on the gantry ID can achieve a query efficiency of time complexity O(1)+O(3) based on the above retrieval method.

[0062] Beneficial effects:

[0063] Compared with the retrieval method based on traditional database storage index design, the massive data retrieval method with horizontal fusion of access tags can greatly improve the query efficiency of data retrieval, effectively reduce the IO load of relational databases, and successfully solve the contradiction between high-frequency retrieval and offline analysis for IO.

Claims

1. A method for storing high-speed traffic data based on lateral fusion of traffic marks, characterized in that: The following steps are involved: Step 1: Record the passage record generated by the high-speed gantry: The passage record includes at least the record ID, the passage mark corresponding to the passage medium that generated the passage record, and the detailed information of the passage record; Step 2: Construct the point-line relationship: Step 2.1: Horizontal relationship building: When the passage record is generated in step 1, a timeline chain corresponding to the passage medium is established based on the passage mark, and the passage mark of the passage medium is used as the key information to associate all the passage records on the passage medium timeline, and each point represents a passage record; Step 2.2, vertical fusion relationship construction: Based on the completion of the horizontal relationship construction in step 2.1, a vertical fusion relationship between the recorded passage mark and the passage record is constructed, including the gantry information, the record ID of the passage record generated by the gantry, and the position of the passage record in the horizontal relationship constructed in step 2.1; The data stored in the high-speed traffic data storage method based on the horizontal fusion of traffic marks provides a high-speed traffic data retrieval method based on the horizontal fusion of traffic marks, including horizontal data retrieval and vertical data retrieval; The horizontal data retrieval: That is, the collection of all the passage records corresponding to a single passage of the passage medium is retrieved. For the passage medium m with the passage identifier P, the timeline chain with the passage identifier P in the horizontal relationship is directly retrieved to obtain the passage record set of the passage medium m; The longitudinal data retrieval: That is, retrieve the collection of all the pass records corresponding to the gantry, first obtain the position of the pass records generated by the gantry in the horizontal relationship according to the vertical fusion relationship, and then obtain the detailed information of the pass records according to the pass record set of the horizontal data.

2. The method for storing high-speed traffic data based on lateral fusion of traffic marks according to claim 1, characterized in that: The record ID in step 1 includes the following information: gantry information, time information of the passage record generation and passage medium information.

3. The high-speed traffic data storage method based on lateral fusion of traffic marks according to claim 1 is characterized in that: The passing mark in step 1 is a combination of the passing medium's high-speed entry time and the passing medium.

Citation Information

Patent Citations

  • Passage cost determination method, road network node relation model construction method and device

    CN109271562A

  • High-speed charging method and system based on block chain

    CN110992499A