A method, device and medium for comparing and correcting in-transit billing data
By comparing the transaction flow of gantry and gantry card flow of gantry, using actual reachable relationships to perform path verification, and automatically correcting error records, the problem of errors in highway data is solved, and the accuracy and management efficiency of billing data is improved. .
Patent Information
- Application Number
- CN202410787579.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2044-06-18
AI Technical Summary
With the increase in highway construction and vehicle ownership, the amount of highway toll data has increased rapidly, resulting in frequent errors and omissions in the on-the-go billing data, which has brought huge workload and complexity to the management department and requires a Automatic error correction methods to deal with errors and omissions in the gantry trading flow and gantry card recognition flow.
By comparing the transaction flow of the gantry and the gantry card flow of the gantry, identifying and correcting the errors in each record, using the status mark and subscript mark to sort and deduplicate, and combining the actual reachable relationship between the gantry to make the path reachable Verify, automatically correct error records.
It improves the success rate and accuracy of online billing data accounting, automates the error correction process of error records, and reduces the workload and error forms of management departments.
Smart Images

Figure CN118820212B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of road management, and in particular to a method, device and medium for comparing and correcting in-transit charging data. Background Art
[0002] With the rapid development of modern infrastructure technology, the total mileage of my country's expressways has increased year by year. At the same time, with the sharp increase in the number of vehicles, the amount of expressway toll data has increased dramatically.
[0003] However, with the growth of data volume, more and more errors and omissions appear in the gantry transaction flow and gantry card identification flow involving in-transit billing data. When calculating expenses and statistical accounting, the huge workload and various forms of errors have brought a heavy burden to the management department.
[0004] Therefore, there is an urgent need for a targeted error correction method to automatically detect and correct errors in the vehicle gantry transaction flow and gantry license plate recognition flow in order to cope with the increasing workload of data statistics. Summary of the invention
[0005] In order to overcome the above problems, the present invention provides a method, device and medium for comparing and correcting in-transit billing data.
[0006] The present invention provides a method for comparing and correcting in-transit charging data, which is used to identify and correct errors in each record by comparing the gantry transaction flow and the gantry license plate recognition flow, wherein each record contains a license plate number, charging gantry information and charging time, including:
[0007] Remove the records that do not conform to the record specifications in the door frame transaction flow and the door frame brand recognition flow, and then sort and remove duplicates according to the order of charging time;
[0008] According to the license plate number, the first flow corresponding to the vehicle is separated from the gantry transaction flow, and the second flow corresponding to the vehicle is separated from the gantry license plate recognition flow;
[0009] Add a default different status identifier to each record in the first flow and the second flow, and assign subscript identifiers to all records in sequence; wherein the subscript identifiers are numerical serial numbers arranged in sequence;
[0010] Traverse the first and second flow, determine and modify the status flag of each record, the judgment logic is as follows:
[0011] If there are records with the same toll gate information and the same subscript identification order, and the charging time difference is less than or equal to the first threshold, the status identification of the relevant records is modified to be the same;
[0012] If there are records with the same toll gate information and the same subscript identification order, and the charging time difference is greater than the first threshold, the status identification of the relevant record is modified to indicate that the time difference is too large;
[0013] If there are records with the same toll gate information but with the subscript identifiers in the opposite order, the status identifiers of the relevant records will be modified to be in the opposite order;
[0014] Among the remaining records with different status identifiers, check whether there are records with toll gate information that are opposite to each other, and the toll time difference is less than or equal to the first threshold. If so, modify the status identifier of the record to be opposite to the gate;
[0015] Correct all records. The logic of error correction is as follows:
[0016] When the status is marked as the same or different, no error correction is required;
[0017] When the status indicates that the time gap is too large, the two adjacent records before and after the record are taken, and the path reachability check is performed based on the actual reachability relationship between the gantries to correct the record;
[0018] When the state is marked as reverse order, the forward order and the reverse order are identified according to the actual reachable relationship between the gantries, and the reverse order is corrected according to the forward order;
[0019] When the status is marked as the door frame is reversed, the record of the door frame brand identification flow shall prevail.
[0020] As a preferred embodiment, the actual reachable relationship between the door frames is specifically implemented in the following steps:
[0021] Query the relationship between adjacent gantries;
[0022] Construct an N-ary tree with a depth of n, and use a recursive algorithm to search for the adjacent relationship of the door frames. When the recursive depth is greater than n, or the node is a toll station, terminate the current recursion, where n is a positive integer greater than or equal to 5;
[0023] The recursive result is output as the actual reachable relationship between n adjacent door frames.
[0024] Preferably, the path reachability check is performed to correct the record, and the specific implementation steps are as follows:
[0025] Suppose the record is B, the previous adjacent record of the record is A, and the next adjacent record of the record is C;
[0026] According to the actual reachability relationship between the gantries, determine whether AB is reachable and whether BC is reachable;
[0027] If AB is reachable and BC is reachable, then the chargeable time for correcting the record is between A and C;
[0028] If AB is reachable and BC is not reachable, determine whether AC is reachable. If so, correct the charging time of the record to be after C. Otherwise, delete the record.
[0029] If AB is unreachable but BC is reachable, then determine whether AC is reachable. If so, correct the charging time of the record to be before A. Otherwise, delete the record.
[0030] If AB is unreachable and BC is unreachable, delete the record.
[0031] Preferably, the first threshold is 5 minutes.
[0032] The present invention also provides a device for comparing and correcting in-transit billing data, comprising: a preprocessing module, an extraction module, an identification module, a recognition module and an error correction module;
[0033] The pre-processing module is used to remove the records that do not meet the record specifications in the door rack transaction flow and the door rack card recognition flow, and then sort and remove duplicates according to the order of charging time;
[0034] The extraction module is used to separate the first flow corresponding to the vehicle from the gantry transaction flow and the second flow corresponding to the vehicle from the gantry license plate recognition flow according to the license plate number;
[0035] The identification module is used to add a default different status identification to each record in the first flow and the second flow, and assign subscript identifications to all records in sequence; wherein the subscript identifications are digital serial numbers arranged in sequence;
[0036] The identification module is used to traverse the first and second flow records, determine and modify the status identifier of each record, and the determination logic is as follows:
[0037] If there are records with the same toll gate information and the same subscript identification order, and the charging time difference is less than or equal to the first threshold, the status identification of the relevant records is modified to be the same;
[0038] If there are records with the same toll gate information and the same subscript identification order, and the charging time difference is greater than the first threshold, the status identification of the relevant record is modified to indicate that the time difference is too large;
[0039] If there are records with the same toll gate information but with the subscript identifiers in the opposite order, the status identifiers of the relevant records will be modified to be in the opposite order;
[0040] Among the remaining records with different status identifiers, check whether there are records with toll gate information that are opposite to each other, and the toll time difference is less than or equal to the first threshold. If so, modify the status identifier of the record to be opposite to the gate;
[0041] The error correction module is used to correct all records. The error correction logic is as follows:
[0042] When the status is marked as the same or different, no error correction is required;
[0043] When the status indicates that the time gap is too large, the two adjacent records before and after the record are taken, and the path reachability check is performed based on the actual reachability relationship between the gantries to correct the record;
[0044] When the state is marked as reverse order, the forward order and the reverse order are identified according to the actual reachable relationship between the gantries, and the reverse order is corrected according to the forward order;
[0045] When the status is marked as the door frame is reversed, the record of the door frame brand identification flow shall prevail.
[0046] The present invention provides a terminal device, including a processor and a storage device, wherein the storage device is used to store one or more programs; when the one or more programs are executed by the processor, the processor implements the above-mentioned method for comparing and correcting in-transit billing data.
[0047] The present invention provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned method for comparing and correcting in-transit billing data.
[0048] The beneficial effects of the present invention are:
[0049] (1) By verifying the vehicle's gantry transaction flow and the gantry license plate recognition flow, errors and omissions in the data can be checked, thereby improving the success rate and accuracy of online billing data calculation.
[0050] (2) By performing a path reachability check, the cause of the error in the recorded data is automatically determined based on the actual path relationship between the gantries, thereby automatically correcting the erroneous recorded data. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The present invention will be further described below in conjunction with the accompanying drawings, wherein:
[0052] Figure 1 This is a flow chart of a method according to Embodiment 1 of the present invention;
[0053] Figure 2A list of the first flow and the second flow in the second embodiment of the present invention;
[0054] Figure 3 The list after adding the mark in the second embodiment of the present invention;
[0055] Figure 4 The list after filtering the same items in the second embodiment of the present invention;
[0056] Figure 5 The list is a list in which the screening order of the second embodiment of the present invention is reversed;
[0057] Figure 6 The list after filtering out items with large time differences in the second embodiment of the present invention;
[0058] Figure 7 This is a list after filtering the reverse portals in the second embodiment of the present invention. DETAILED DESCRIPTION
[0059] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0060] See also Figure 1 As a first embodiment of the present invention, a method for comparing and correcting in-transit billing data is disclosed, which is used to identify and correct errors in each record by comparing the gantry transaction flow and the gantry license plate recognition flow, wherein each record includes a license plate number, toll gantry information and toll time, including:
[0061] S1. Preprocessing: remove the records that do not conform to the record specifications in the door rack transaction flow and the door rack brand recognition flow, and then sort and remove duplicates according to the order of charging time;
[0062] S2, object extraction: according to the license plate number, separate the first flow corresponding to the vehicle from the gantry transaction flow, and separate the second flow corresponding to the vehicle from the gantry license plate recognition flow;
[0063] S3, adding an identifier: adding a default different status identifier to each record in the first flow and the second flow, and assigning subscript identifiers to all records in sequence; wherein the subscript identifiers are numerical serial numbers arranged in sequence;
[0064] S4, error judgment: traverse the first and second flow records, judge and modify the status mark of each record;
[0065] S5. Error correction: Correct all records.
[0066] The logic of the judgment in step S4 is as follows:
[0067] If there are records with the same toll gate information and the same subscript identification order, and the charging time difference is less than or equal to the first threshold, the status identification of the relevant records is modified to be the same;
[0068] If there are records with the same toll gate information and the same subscript identification order, and the charging time difference is greater than the first threshold, the status identification of the relevant record is modified to indicate that the time difference is too large;
[0069] If there are records with the same toll gate information but with the subscript identifiers in the opposite order, the status identifiers of the relevant records will be modified to be in the opposite order;
[0070] Among the remaining records with different status identifiers, check whether there are records with toll gate information that are opposite to each other, and the toll time difference is less than or equal to the first threshold. If so, modify the status identifier of the record to be opposite to the gate;
[0071] The error correction logic of step S5 is as follows:
[0072] When the status is marked as the same or different, no error correction is required;
[0073] When the status indicates that the time gap is too large, the two adjacent records before and after the record are taken, and the path reachability check is performed based on the actual reachability relationship between the gantries to correct the record;
[0074] When the state is marked as reverse order, the forward order and the reverse order are identified according to the actual reachable relationship between the gantries, and the reverse order is corrected according to the forward order;
[0075] When the status is marked as the door frame is reversed, the record of the door frame brand identification flow shall prevail.
[0076] The first threshold in this embodiment is 5 minutes.
[0077] This embodiment also discloses a device for comparing and correcting in-transit billing data, including: a preprocessing module, an extraction module, an identification module, a recognition module and an error correction module;
[0078] The pre-processing module is used to remove the records that do not meet the record specifications in the door rack transaction flow and the door rack card recognition flow, and then sort and remove duplicates according to the order of charging time;
[0079] The extraction module is used to separate the first flow corresponding to the vehicle from the gantry transaction flow and the second flow corresponding to the vehicle from the gantry license plate recognition flow according to the license plate number;
[0080] The identification module is used to add a default different status identification to each record in the first flow and the second flow, and assign subscript identifications to all records in sequence; wherein the subscript identifications are digital serial numbers arranged in sequence;
[0081] The identification module is used to traverse the first and second flow records, determine and modify the status identifier of each record, and the determination logic is as follows:
[0082] If there are records with the same toll gate information and the same subscript identification order, and the charging time difference is less than or equal to the first threshold, the status identification of the relevant records is modified to be the same;
[0083] If there are records with the same toll gate information and the same subscript identification order, and the charging time difference is greater than the first threshold, the status identification of the relevant record is modified to indicate that the time difference is too large;
[0084] If there are records with the same toll gate information but with the subscript identifiers in the opposite order, the status identifiers of the relevant records will be modified to be in the opposite order;
[0085] Among the remaining records with different status identifiers, check whether there are records with toll gate information that are opposite to each other, and the toll time difference is less than or equal to the first threshold. If so, modify the status identifier of the record to be opposite to the gate;
[0086] The error correction module is used to correct all records. The error correction logic is as follows:
[0087] When the status is marked as the same or different, no error correction is required;
[0088] When the status indicates that the time gap is too large, the two adjacent records before and after the record are taken, and the path reachability check is performed based on the actual reachability relationship between the gantries to correct the record;
[0089] When the state is marked as reverse order, the forward order and the reverse order are identified according to the actual reachable relationship between the gantries, and the reverse order is corrected according to the forward order;
[0090] When the status is marked as the door frame is reversed, the record of the door frame brand identification flow shall prevail.
[0091] This embodiment verifies the vehicle's gantry transaction flow and the gantry brand recognition flow, thereby checking for errors and omissions in the data, thereby improving the success rate and accuracy of online billing data calculation. By performing path reachability verification, the cause of the error in the recorded data is automatically determined based on the actual path relationship between the gantries, thereby automatically correcting the erroneous recorded data.
[0092] See also Figures 2 to 7As the second embodiment of the present invention, the actual reachable relationship between the door frames of this embodiment is specifically implemented in the following steps:
[0093] Query the relationship between adjacent gantries;
[0094] Construct an N-ary tree with a depth of n, and use a recursive algorithm to search for the adjacent relationship of the door frames. When the recursive depth is greater than n, or the node is a toll station, terminate the current recursion, where n is a positive integer greater than or equal to 5;
[0095] The recursive result is output as the actual reachable relationship between n adjacent door frames.
[0096] By analyzing the actual clearance of the gantry on the map path, the possible route of the vehicle can be analyzed to determine the adjacent clearances between the gantries and whether they can be passed one after another, thus providing a basis for judging whether the record is wrong.
[0097] The path reachability check in this embodiment is performed to correct the record, and the specific implementation steps are as follows:
[0098] Suppose the record is B, the previous adjacent record of the record is A, and the next adjacent record of the record is C;
[0099] According to the actual reachability relationship between the gantries, determine whether AB is reachable and whether BC is reachable;
[0100] If AB is reachable and BC is reachable, then (node B should be between A and C, that is) corrected to ABC;
[0101] If AB is reachable and BC is not reachable, determine whether AC is reachable. If so, correct it to ACB. Otherwise, delete B.
[0102] If AB is unreachable but BC is reachable, determine whether AC is reachable. If so, correct it to BAC. Otherwise, delete B.
[0103] If AB is unreachable and BC is unreachable, delete B.
[0104] For details, please refer to a specific application example of this embodiment below:
[0105] See also Figure 2 , are two kinds of traffic flow data of a vehicle, namely, the first flow and the second flow selected according to the license plate number. This embodiment compares and corrects the gantry transaction flow and the gantry license plate recognition flow corresponding to the vehicle's license plate number, wherein the comparison logic is as follows:
[0106] 1. Set the status of the two flow records to be different and assign a subscript identifier to each flow record;
[0107] 2. Traverse the two flow streams. If there are identical flow streams and the time difference is small, mark their status as the same;
[0108] 3. If there is a difference in the order of the subscripts, the state with the difference is marked as the opposite order;
[0109] 4. If there are identical transactions with a large time difference (greater than 5 minutes), and their status is not in reverse order, mark them as having a large time difference;
[0110] 5. The remaining state identifiers are all different. Then, in the different flow strings, check whether there are flow strings with opposite gates. If there are and their time difference is small, mark the state identifier as opposite gate;
[0111] The first step is to set the status of the two pipelines to be different and assign a subscript identifier to each pipeline, such as Figure 3 As shown;
[0112] The second step is to traverse the two pipelines. If there are identical pipelines and the time difference is small, mark their status as the same; Figure 4 As shown;
[0113] The third step is, if there is a difference in the order of the subscripts, the state with the difference is marked as the reverse order. In the figure, the subscripts 8 and 9 in the door frame transaction flow correspond to the subscripts 16 and 15 in the door frame card recognition flow. Obviously, there is a reverse order between them, so their state is marked as the reverse order, such as Figure 5 As shown;
[0114] Step 4: If there are identical transactions and the time difference is too large (greater than 5 minutes), and their status is not in reverse order, then mark them as having too large a time difference; Figure 6 As shown;
[0115] Step 5. In the flow with different states, if there are mutually opposite gantries and their time difference is small (less than 5 minutes), then mark the state as opposite gantries. In this case, "Bijiang (connected with the main line of the second phase of the Guangzhu West Line) - Wujiawei Interchange and Guangming Foshan, Guangming Guangzhou Interchange" and "Wujiawei Interchange and Guangming Foshan, Guangming Guangzhou Interchange - Bijiang (connected with the main line of the second phase of the Guangzhu West Line)" are mutually opposite gantries, and their time difference is only 5 seconds, so they are marked as opposite gantries. Figure 7 As shown;
[0116] The error correction logic of this embodiment is as follows:
[0117] 1. The status identifiers are the same, so no error correction is required;
[0118] 2. If the status marks are different, no error correction is required;
[0119] 3. If the status mark is in reverse order, determine which side is in forward order and which side is in reverse order according to the adjacent node relationship table. In this case, "Shatin East-Houjie South Interchange and Guangzhou-Shenzhen Expressway Interchange Connection" to "Houjie South Interchange and Guangzhou-Shenzhen Expressway Interchange Connection-Houjie East" are adjacent node relationships, so the gantry transaction flow is in forward order, and the gantry card identification flow is in reverse order. This can correct the errors in these two flows in the gantry card identification flow;
[0120] 4. If the status is marked as a reverse gantry, the gantry brand identification shall prevail (unconditionally trust the gantry brand identification flow), which can correct the flow of the gantry transaction flow with the status of a reverse gantry;
[0121] 5. If the time difference of the state mark is too large, a path reachability check is performed (reachability check between 5 adjacent gantries). The current flow and the two previous and next flows are taken for reachability check, as shown in the following table. If the time difference of the B state mark is too large, the previous and next flows A and C are taken and combined into ABC for reachability check.
[0122] The validation rules are as follows:
[0123] Determine whether AB is reachable and whether BC is reachable.
[0124] There are several situations:
[0125] ① If AB is reachable and BC is reachable, then node B should be between A and C, which can be corrected to ABC.
[0126] ② If AB is reachable and BC is unreachable, it is necessary to determine whether AC is reachable. If so, correct it to ACB. If not, remove node B and correct it to AC.
[0127] ③ If AB is unreachable but BC is reachable, then it is necessary to determine whether AC is reachable. If so, correct it to BAC. If not, remove node B. Correct it to AC.
[0128] ④ If AB is unreachable and BC is unreachable, remove node B and correct it to AC.
[0129] The present invention also discloses a terminal device, including a processor and a storage device, wherein the storage device is used to store one or more programs; when the one or more programs are executed by the processor, the processor implements the above-mentioned method for comparing and correcting in-transit charging data. The processor can be a central processing unit (CPU), or other general processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The processor is the control center of the test equipment, and uses various interfaces and lines to connect various parts of the entire test equipment.
[0130] The storage device can be used to store computer programs and / or modules. The processor realizes various functions of the terminal device by running or executing the computer programs and / or modules stored in the storage device, and calling the data stored in the storage device. The storage device can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the terminal device, etc. In addition, the storage device can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Med ia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0131] Among them, if the module / unit integrated in the device for comparing and correcting in-transit billing data is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in at least one computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. Computer-readable media can include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.
[0132] It should be noted that the embodiments of the devices and apparatuses described above are only illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Claims
1. A method for comparing and correcting in-transit billing data, for identifying and correcting errors in each record by comparing the gantry transaction flow and the gantry brand recognition flow, wherein: Each record contains the license plate number, toll gate information and toll time, and is characterized by: Remove the records that do not conform to the record specifications in the door frame transaction flow and the door frame brand recognition flow, and then sort and remove duplicates according to the order of charging time; According to the license plate number, the first flow corresponding to the vehicle is separated from the gantry transaction flow, and the second flow corresponding to the vehicle is separated from the gantry license plate recognition flow; Add a default different status identifier to each record in the first flow and the second flow, and assign subscript identifiers to all records in sequence; wherein the subscript identifiers are numerical serial numbers arranged in sequence; Traverse the first and second flow, determine and modify the status flag of each record, the judgment logic is as follows: If there are records with the same toll gate information and the same subscript identification order, and the charging time difference is less than or equal to the first threshold, the status identification of the relevant records is modified to be the same; If there are records with the same toll gate information and the same subscript identification order, and the charging time difference is greater than the first threshold, the status identification of the relevant record is modified to indicate that the time difference is too large; If there are records with the same toll gate information but with the subscript identifiers in the opposite order, the status identifiers of the relevant records will be modified to be in the opposite order; Among the remaining records with different status identifiers, check whether there are records with toll gate information that are opposite to each other, and the toll time difference is less than or equal to the first threshold. If so, modify the status identifier of the record to be opposite to the gate; Correct all records. The logic of error correction is as follows: When the status is marked as the same or different, no error correction is required; When the status indicates that the time gap is too large, the two adjacent records before and after the record are taken, and the path reachability check is performed based on the actual reachability relationship between the gantries to correct the record; When the state is marked as reverse order, the forward order and the reverse order are identified according to the actual reachable relationship between the gantries, and the reverse order is corrected according to the forward order; When the status is marked as the door frame is reversed, the record of the door frame brand identification flow shall prevail.
2. The method for comparing and correcting in-transit billing data according to claim 1, characterized in that: The actual reachable relationship between the door frames is specifically implemented in the following steps: Query the relationship between adjacent gantries; Construct an N-ary tree with a depth of n, and use a recursive algorithm to search for the adjacent relationship of the door frames. When the recursive depth is greater than n, or the node is a toll station, terminate the current recursion, where n is a positive integer greater than or equal to 5; The recursive result is output as the actual reachable relationship between n adjacent door frames.
3. The method for comparing and correcting in-transit billing data according to claim 2, characterized in that: The path reachability check is performed to correct the record, and the specific implementation steps are as follows: Suppose the record is B, the previous adjacent record of the record is A, and the next adjacent record of the record is C; According to the actual reachability relationship between the gantries, determine whether AB is reachable and whether BC is reachable; If AB is reachable and BC is reachable, then the chargeable time for correcting the record is between A and C; If AB is reachable and BC is not reachable, determine whether AC is reachable. If so, correct the charging time of the record to be after C. Otherwise, delete the record. If AB is unreachable but BC is reachable, then determine whether AC is reachable. If so, correct the charging time of the record to be before A. Otherwise, delete the record. If AB is unreachable and BC is unreachable, delete the record.
4. The method for comparing and correcting in-transit billing data according to claim 1, characterized in that: The first threshold is 5 minutes.
5. A device for comparing and correcting in-transit billing data, used to identify and correct errors in each record by comparing the gantry transaction flow and the gantry brand recognition flow, wherein: Each record contains the license plate number, toll gate information and toll time, and is characterized by comprising: a pre-processing module, an extraction module, an identification module, a recognition module and an error correction module; The pre-processing module is used to remove the records that do not meet the record specifications in the door rack transaction flow and the door rack card recognition flow, and then sort and remove duplicates according to the order of charging time; The extraction module is used to separate the first flow corresponding to the vehicle from the gantry transaction flow and the second flow corresponding to the vehicle from the gantry license plate recognition flow according to the license plate number; The identification module is used to add a default different status identification to each record in the first flow and the second flow, and assign subscript identifications to all records in sequence; wherein the subscript identifications are digital serial numbers arranged in sequence; The identification module is used to traverse the first and second flow records, determine and modify the status identifier of each record, and the determination logic is as follows: If there are records with the same toll gate information and the same subscript identification order, and the charging time difference is less than or equal to the first threshold, the status identification of the relevant records is modified to be the same; If there are records with the same toll gate information and the same subscript identification order, and the charging time difference is greater than the first threshold, the status identification of the relevant record is modified to indicate that the time difference is too large; If there are records with the same toll gate information but with the subscript identifiers in the opposite order, the status identifiers of the relevant records will be modified to be in the opposite order; Among the remaining records with different status identifiers, check whether there are records with toll gate information that are opposite to each other, and the toll time difference is less than or equal to the first threshold. If so, modify the status identifier of the record to be opposite to the gate; The error correction module is used to correct all records. The error correction logic is as follows: When the status is marked as the same or different, no error correction is required; When the status indicates that the time gap is too large, the two adjacent records before and after the record are taken, and the path reachability check is performed based on the actual reachability relationship between the gantries to correct the record; When the state is marked as reverse order, the forward order and the reverse order are identified according to the actual reachable relationship between the gantries, and the reverse order is corrected according to the forward order; When the status is marked as the door frame is reversed, the record of the door frame brand identification flow shall prevail.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the method for comparing and correcting in-transit billing data as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Highway toll collection method and system based on micro-service and double-link transmission
CN112862992A
ETC lane transaction and license plate identification fusion method based on time sequence queue
CN116012962A
Data preprocessing method and system for accurately restoring actual passing track of vehicle
CN116258488A
Data storage method, device, system and equipment and readable storage medium
CN116501264A
Accuracy and efficiency of road user charging
US20160364919A1
