Multi-source vehicle information matching fusion method in expressway portal frame scene based on single-agent structure large language model

By using a single-agent structure large language model to match and train multi-source vehicle information in the highway ETC system, the problem of low matching accuracy caused by inconsistent license plate information is solved, efficient vehicle information matching is achieved, and supports highway ETC Intelligent charging system.

CN118861978AActive Publication Date: 2024-10-29SOUTHEAST UNIV
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410891860.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-10-29
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

When the existing highway ETC toll collection system handles the inconsistency of license plate information collected by multiple sensors, the matching accuracy is low and it cannot effectively identify large vehicles and small signs.

Method used

A multi-source vehicle information matching and fusion method based on a single-agent structure large language model is used to construct multi-source vehicle information matching by mining and annotating the video captured vehicle holographic sensing data and RSU vehicle information sensing data in the highway mast scene. Fusion of data sets, and use the large language single-agent structure model LLMSA-MVIMF-EGS for matching training and prediction to generate matching results.

Benefits of technology

The accuracy rate of matching and fusion of multi-source vehicle information is over 98%, effectively supporting the operation of the highway ETC intelligent toll collection system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118861978A_ABST
    Figure CN118861978A_ABST
Patent Text Reader

Abstract

The invention discloses a method for matching and fusing multi-source vehicle information in a highway portal scene based on a single-agent structure large language model. The method comprises the following steps: mining and labeling multi-source vehicle information sensing data in the highway portal scene; constructing a multi-source vehicle information matching fusion data set in the highway portal scene; the method comprises the following steps: based on a multi-source vehicle information matching process, constructing a large language single agent structure model LLMSA-MVIMF-EGS for matching and fusing multi-source vehicle information in an expressway portal frame scene; and outputting a multi-source vehicle information matching fusion result through the large language single agent structure model LLMSA-MVIMF-EGS. According to the invention, on the basis of a large language model, matching training is carried out on multi-source vehicle information data in a specific highway portal scene, and certain technical support is provided for highway portal ETC.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of intelligent transportation, relates to highway vehicle information recognition, and specifically relates to a multi-source vehicle information matching and fusion method in a highway gantry scene based on a single-agent structure large language model. Background Art

[0002] As an important channel for transportation in my country, expressways undertake huge transportation tasks. In the process of intelligent development of expressways, multi-source data fusion technology is of great significance for the analysis of expressway ETC toll data. By integrating the holographic perception data of video-captured vehicles and the information perception data of RSU vehicles, it is possible to analyze transportation needs more comprehensively and accurately and formulate reasonable toll policies; at the same time, it helps to improve toll collection efficiency, reduce road pressure, and improve road safety and highway service levels.

[0003] Currently, ETC toll collection on highways mostly adopts a vehicle toll data matching method based on the calculation of vehicle license plate character similarity. However, when dealing with the inconsistency of license plate information collected by multiple sensors, this technology will face problems such as reduced matching accuracy and inability to effectively identify large vehicles with small license plates.

[0004] Therefore, a new technical solution is needed to solve these problems. Summary of the invention

[0005] Purpose of the invention: In order to overcome the deficiencies in the prior art, a method for matching and fusing multi-source vehicle information in a highway gantry scenario based on a large language model with a single-agent structure is provided. On the basis of the large language model, matching training is performed on multi-source vehicle information data in a specific highway gantry scenario, thereby providing certain technical support for highway gantry ETC charging.

[0006] Technical solution: To achieve the above purpose, the present invention provides a method for matching and fusing multi-source vehicle information in a highway gantry scene based on a single-agent structure large language model, comprising the following steps:

[0007] S1: Mining and labeling multi-source vehicle information perception data in highway gantry scenes;

[0008] S2: Based on the data annotated in step S1, a multi-source vehicle information matching fusion dataset in the highway gantry scene is constructed;

[0009] S3: Based on the multi-source vehicle information matching process, a large language single-agent structure model LLMSA-MVIMF-EGS is constructed for multi-source vehicle information matching and fusion in highway gantry scenarios;

[0010] S4: According to the fusion data set of step S2, the multi-source vehicle information matching fusion result is output through the large language single agent structure model LLMSA-MVIMF-EGS (Large Language Model based Single-Agent for Multi-source Vehicle Information Matching and Fusion in Expressway Gantry Scenes).

[0011] Furthermore, the multi-source vehicle information perception data in the highway gantry scene in step S1 includes video captured vehicle holographic perception data and RSU vehicle information perception data;

[0012] The holographic perception data of vehicles captured by video include vehicle license plate information, vehicle passing time, vehicle type information, etc., and the vehicle license plate information and vehicle passing time are pre-processed respectively; the RSU vehicle perception data mainly include vehicle license plate information, vehicle passing time, vehicle transaction results, vehicle type information, etc., and the vehicle passing time, vehicle transaction results, and vehicle type information are pre-processed respectively.

[0013] Furthermore, in step S1, the text information matching fusion method based on character comparison and the text information matching fusion method based on unsupervised contrastive learning are combined to construct a process for labeling multi-source vehicle information perception data in highway gantry scenarios, specifically: labeling multi-source vehicle information perception data in highway gantry scenarios, during the labeling process, mainly based on license plate features and time features for data matching, and assuming that the license plate information characters of the same vehicle transaction data are allowed to have two or less errors; for time features, given that vehicles with the same license plate may pass through the gantry multiple times on the same day, in order to reduce the computing cost and improve the timeliness and accuracy of data labeling, a time window of five minutes above and below the time of a vehicle passing can be set to narrow the data retrieval range; for any data A in the video captured vehicle holographic perception data i , first extract the vehicle passing time data t i , and divide the five minutes before and after it into a time period, and then find the data whose time information meets the requirements of the time period in the RSU vehicle information perception data set (B i1 ,B i2 ……B ij ), and reduce the retrieval scope from the entire RSU vehicle information perception data set to j pieces of data that meet the time condition;

[0014] After labeling, a certain number of matching fusion success, matching fusion failure and vehicle license plate-free data are obtained. The matching fusion success data includes vehicle license plate completely consistent data and vehicle license plate roughly consistent data.

[0015] Furthermore, the specific process of constructing the multi-source vehicle information matching fusion data set in the highway gantry scene in step S2 is:

[0016] S2-1: The data that simultaneously meets the vehicle license plate characteristics and vehicle type characteristics are taken as positive samples, and the data that does not simultaneously meet the vehicle license plate characteristics and vehicle type characteristics are taken as negative samples;

[0017] S2-2: Add label "1" to the positive sample data pairs, and add label "0" to the negative sample data pairs; the training set contains positive and negative data set samples with completely consistent license plates and roughly consistent license plates, and the validation set and test set only contain positive and negative data set samples with roughly consistent license plates; the data ratio of data set positive samples to data set negative samples is 1:1, the data ratio of vehicle license plates that are completely consistent and vehicle license plates that are roughly consistent in the training set is 1:1, and the data ratio of vehicle license plates that are roughly consistent in the training set, validation set, and test set is 6:2:2.

[0018] Furthermore, the large language single agent structure model LLMSA-MVIMF-EGS in step S3 includes a Single-Agent module, a large language model and an information output module;

[0019] The Single-Agent module is used to generate prompt words and data to be matched in the highway gantry scene to a large language model;

[0020] The large language model is used to make predictions based on the requirements of the prompt word and the data to be matched, and output the matching results;

[0021] The information output module is used to classify and save the matching result data.

[0022] Furthermore, the prompt words constructed in the Single-Agent module consist of six parts: the role played by the large language model, the question background, the context information, the input data, the expected output result and the special requirements. For the role played by the large language model, the prompt words set it as a professional data analyst. For the question background, the prompt words set it as the classification problem of vehicle license plates and vehicle types. For the context information, the prompt words input the classification criteria of vehicle license plates and vehicle types. For the input data, the prompt words take the constructed multi-source vehicle information matching fusion data test set in the highway gantry scene as input. For the expected output result, the prompt words require the large language model to output yes or no according to the recognition result. For the special requirements, the prompt words require the output result length of the large language model to be controlled within 1 character. When comparing the vehicle license plate area code and the alphanumeric sequence, the model needs to pay attention to the inclusion relationship of the sequence rather than the corresponding relationship, and the characters of the different points will not be calculated additionally during the comparison process.

[0023] Furthermore, the large language model is a Classify GPT4 module. The Transformer module in the Classify GPT4 module adopts a Causal Decoder architecture, takes Full Language Modeling as a prediction target, and generates a classification result (0 / 1) of the data to be matched.

[0024] Furthermore, the present invention constructs a multi-source vehicle information matching process based on a large language single agent: first, the multi-source vehicle perception data in the highway gantry scene is input into the single-agent structure model, the single-agent structure model performs the question content enhancement task, and combines the vehicle license plate data with the vehicle type data, converts them into the data format for inputting the large language model, and generates prompt words and data to be matched in the highway gantry scene respectively; secondly, the single-agent structure model inputs the prompt words into the large language model, and the large language model learns the task content according to the role played by the large language model in the prompt words, the question background, context information, input data samples, expected output results and special requirements; then, the single-agent structure model inputs the data to be matched into the large language model in turn, the large language model predicts the data to be matched according to the requirements of the prompt words, and outputs the matching results (0 / 1); finally, the single-agent structure model classifies and saves the data to be matched according to the matching results. If the matching result is 0, the group of data is marked as failed matching data; if the matching result is 1, the time difference of the vehicles passing through the group of data is calculated, and the data with time difference within the successful matching range counted in the present invention is marked as successful matching data, otherwise it is marked as questionable data for manual secondary verification later.

[0025] Based on the above matching process, the specific process of step S4 is as follows:

[0026] S4-1: Input the multi-source vehicle information test set in the highway gantry scene into the Single-Agent module; among them, the video capture vehicle holographic perception dataset contains vehicle license plate data (PA1, PA2…PA n ), vehicle type data (VA1, VA2…VA n ), through time data (TA1, TA2…TA n ); RSU vehicle information perception dataset contains vehicle license plate data (PB1, PB2…PB n ), vehicle type data (VB1, VB2…VB n ), through time data (TB1, TB2…TB n );

[0027] S4-2: The Single-Agent module inputs the role played by the model, question background, context information, input data samples, expected output results and special requirements into the large language model to help the large language model Classify GPT4 that classifies vehicle license plate information and vehicle type information understand the work task requirements; the Single-Agent module inputs the vehicle license plate data PA in the video capture vehicle holographic perception dataset i and vehicle type data VA i The vehicle license plate data PB in the RSU vehicle information perception dataset i and vehicle type data VB i , converted into the data format for input into the large language model (PA i +VA i ,PB i +VB i ), as the data to be matched, input into the Classify GPT4 module;

[0028] S4-3: The Transformer module of the Classify GPT4 module adopts the Causal Decoder architecture, takes Full Language Modeling as the prediction target, generates the classification results (0 / 1) of the data to be matched, and the Single-Agent module saves the classification results as the data to be matched (PA i +VA i ,PB i +VB i ) and then repeat the next piece of data to be matched (PA i+1 +VA i+1 ,PB i+1 +VB i+1 ) until all data are matched and integrated, and all data are output to the information output module;

[0029] S4-4: The information output module is based on the data to be matched (PA i +VA i ,PB i +VB i )'s label Label-i classifies and saves the data. Specifically, if Label-i is 0, the original data pair (PA i ,VA i ,TA i ), (PB i ,VB i ,TB i ) and label Label-i are saved to the matching failure dataset; if Label-i is 1, the next step of judgment is performed; the information output module calculates the passing time data TA in the video capture vehicle holographic perception dataset i TB of passing time data in the RSU vehicle information perception dataset i Make a difference and calculate the time difference T of the vehicles passing by i =(TA i -TB i );Information output module to T i To judge, if T i In the range of (-30s, 120s), the original data of this group of data (PA i ,VA i ,TA i ), (PB i ,VB i ,TB i ) and label Label-i are saved to the matching successful data set; if T i If the range is beyond (-30s, 120s), the original data pair (PA i ,VA i ,TA i ), (PB i ,VB i ,TB i ) and label Label-i are saved to the result questionable dataset.

[0030] Beneficial effects: Compared with the prior art, the present invention, based on a large language model, performs matching training and prediction on multi-source vehicle information data in a specific highway gantry scenario, with a matching fusion accuracy of over 98%. It can effectively match the video-captured vehicle holographic perception data and the RSU vehicle information perception data, and provide certain technical support for the highway ETC intelligent toll collection system. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1This is a matching fusion flow chart based on a large language single agent structure model in the present invention;

[0032] Figure 2 The operation diagram of the LLMSA-MVIMF-EGS model provided by the present invention;

[0033] Figure 3 It is the structure diagram of CDSSM-MVIMF-EGS model;

[0034] Figure 4 This is the structure diagram of the MVLSTM-MVIMF-EGS model;

[0035] Figure 5 This is the structure diagram of the ALBERT-MVIMF-EGS model. DETAILED DESCRIPTION

[0036] The present invention is further explained below in conjunction with the accompanying drawings and specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention. After reading the present invention, various equivalent forms of modifications to the present invention by those skilled in the art all fall within the scope defined by the claims attached to this application.

[0037] like Figure 1 and Figure 2 As shown, the present invention provides a method for matching and fusing multi-source vehicle information in a highway gantry scene based on a single-agent structure large language model, comprising the following steps:

[0038] S1: Mining and labeling multi-source vehicle information perception data in highway gantry scenes;

[0039] The data set used in step S1 of this embodiment comes from relevant data collected by four different gantries for four consecutive days in January 2024. The multi-source vehicle information perception data in the highway gantry scene includes video capture vehicle holographic perception data and RSU vehicle information perception data;

[0040] The video captured vehicle holographic perception data and RSU vehicle information perception data collected by each gantry are shown in Table 1:

[0041] Table 1 Number of multi-source vehicle information perception data in highway gantry scenes (unit: item)

[0042]

[0043] The holographic perception data of the vehicle captured by the video includes vehicle license plate information, vehicle passing time, vehicle type information, etc., and the vehicle license plate information and vehicle passing time are preprocessed respectively; the RSU vehicle perception data mainly includes vehicle license plate information, vehicle passing time, vehicle transaction results, vehicle type information, etc., and the vehicle passing time, vehicle transaction results, and vehicle type information are preprocessed respectively. First, the vehicle passing time information is uniformly converted into a date format that can be recognized and calculated by the Datetime module in Python; secondly, the numbers in the column where the vehicle transaction results are located are converted into the corresponding transaction status; finally, the numbers in the column where the vehicle type information is located are converted into the vehicle type information corresponding to the text description;

[0044] The text information matching fusion method based on character comparison and the text information matching fusion method based on unsupervised contrastive learning are combined to construct a process for labeling multi-source vehicle information perception data in highway gantry scenarios. Specifically, the multi-source vehicle information perception data in highway gantry scenarios are labeled. During the labeling process, data matching is mainly based on license plate features and time features, and it is assumed that the license plate information characters of the same vehicle transaction data are allowed to have two or less errors; for time features, given that vehicles with the same license plate may pass through the gantry multiple times on the same day, in order to reduce the computing cost and improve the timeliness and accuracy of data labeling, a time window of five minutes above and below the time of a vehicle passing can be set to narrow the data retrieval scope; for any data A in the video captured vehicle holographic perception data i , first extract the vehicle passing time data t i , and divide the five minutes before and after it into a time period, and then find the data whose time information meets the requirements of the time period in the RSU vehicle information perception data set (B i1 ,B i2 ……B ij ), and reduce the retrieval scope from the entire RSU vehicle information perception data set to j pieces of data that meet the time condition;

[0045] After labeling in this embodiment, a total of 462,199 positive sample data with successful matching and fusion, 40,167 negative sample data with failed matching and fusion, and 65,690 data without vehicle license plates were obtained. The positive sample data with successful matching and fusion respectively included 442,643 vehicle license plate completely consistent data and 19,556 vehicle license plate roughly consistent data. The specific labeling results are shown in Table 2:

[0046] Table 2 Labeling results of multi-source vehicle information perception data in highway gantry scene (unit: item)

[0047]

[0048] S2: Based on the data annotated in step S1, a multi-source vehicle information matching fusion dataset in the highway gantry scene is constructed. The specific process is as follows:

[0049] S2-1: The data that simultaneously meets the characteristics of the vehicle license plate and the vehicle type is taken as a positive sample, and the data that does not simultaneously meet the characteristics of the vehicle license plate and the vehicle type is taken as a negative sample; the number of each type of data is shown in Table 3:

[0050] Table 3 Number of sample data of various types in the multi-source vehicle information matching fusion dataset in the highway gantry scene

[0051]

[0052] S2-2: Add label "1" to the positive sample data pair, and add label "0" to the negative sample data pair; the training set contains positive and negative data set samples with completely consistent license plates and roughly consistent license plates, and the validation set and test set only contain positive and negative data set samples with roughly consistent license plates; the data ratio of positive data set samples to negative data set samples is 1:1, the data ratio of completely consistent vehicle license plates and roughly consistent vehicle license plates in the training set is 1:1, and the data ratio of positive and negative data set samples with roughly consistent vehicle license plates in the training set, validation set, and test set is 6:2:2; the number of each type of sample data in the constructed training set, validation set, and test set is shown in Table 4:

[0053] Table 4 Number of sample data in each type of training set, validation set, and test set

[0054]

[0055] S3: Based on the multi-source vehicle information matching process, a large language single-agent structure model LLMSA-MVIMF-EGS is constructed for multi-source vehicle information matching and fusion in highway gantry scenarios;

[0056] The large language single agent structure model LLMSA-MVIMF-EGS includes a Single-Agent module, a large language model and an information output module;

[0057] The Single-Agent module is used to generate prompt words and data to be matched in the highway gantry scene to the large language model; the large language model is used to predict the data to be matched according to the requirements of the prompt words and output the matching results; the information output module is used to classify and save the matching result data;

[0058] The prompt words constructed in the Single-Agent module consist of six parts: the role played by the large language model, the question background, context information, input data, expected output results and special requirements; for the role played by the large language model, the prompt words set it as a professional data analyst; for the question background, the prompt words set it as the classification problem of vehicle license plates and vehicle types; for context information, the prompt words input the classification criteria of vehicle license plates and vehicle types; for input data, the prompt words take the constructed multi-source vehicle information matching fusion data test set in the highway gantry scene as input; for the expected output results, the prompt words require the large language model to output yes or no according to the recognition results; for special requirements, the prompt words require the output result length of the large language model to be controlled within 1 character, and when comparing the vehicle license plate area code and the alphanumeric sequence, the model needs to pay attention to the inclusion relationship of the sequence rather than the corresponding relationship, and no additional calculations will be made for the characters that exist at different points during the comparison process.

[0059] In this embodiment, the large language model is the Classify GPT4 module. The Transformer module in the Classify GPT4 module adopts the Causal Decoder architecture, takes Full Language Modeling as the prediction target, and generates the classification result (0 / 1) of the data to be matched.

[0060] S4: Based on the fused data set of step S2, the multi-source vehicle information matching fusion result is output through the large language single-agent structure model LLMSA-MVIMF-EGS.

[0061] The present invention constructs a multi-source vehicle information matching process based on a large language single agent: first, the multi-source vehicle perception data in the highway gantry scene is input into the single agent structure model, the single agent structure model performs the question content enhancement task, and combines the vehicle license plate data with the vehicle type data, converts them into the data format input into the large language model, and generates prompt words and to-be-matched data in the highway gantry scene respectively; secondly, the single agent structure model inputs the prompt words into the large language model, and the large language model learns the task content according to the role played by the large language model in the prompt words, the question background, context information, input data samples, expected output results and special requirements; then, the single agent structure model inputs the to-be-matched data into the large language model in turn, the large language model predicts the to-be-matched data according to the requirements of the prompt words, and outputs the matching results (0 / 1); finally, the single agent structure model classifies and saves the to-be-matched data according to the matching results. If the matching result is 0, the group of data is marked as failed matching data; if the matching result is 1, the time difference of the vehicles passing through the group of data is calculated, and the data with time difference within the successful matching range counted in the present invention is marked as successful matching data, otherwise it is marked as questionable data for manual secondary verification later.

[0062] Based on the above matching process, the specific process of step S4 is:

[0063] S4-1: Input the multi-source vehicle information test set in the highway gantry scene into the Single-Agent module; among them, the video capture vehicle holographic perception dataset contains vehicle license plate data (PA1, PA2…PA n ), vehicle type data (VA1, VA2…VA n ), through time data (TA1, TA2…TA n ); RSU vehicle information perception dataset contains vehicle license plate data (PB1, PB2…PB n ), vehicle type data (VB1, VB2…VB n ), through time data (TB1, TB2…TB n );

[0064] S4-2: The Single-Agent module inputs the role played by the model, question background, context information, input data samples, expected output results and special requirements into the large language model to help the large language model Classify GPT4 that classifies vehicle license plate information and vehicle type information understand the work task requirements; the Single-Agent module inputs the vehicle license plate data PA in the video capture vehicle holographic perception dataset i and vehicle type data VA i The vehicle license plate data PB in the RSU vehicle information perception dataseti and vehicle type data VB i , converted into the data format for input into the large language model (PA i +VA i ,PB i +VB i ), as the data to be matched, input into the Classify GPT4 module;

[0065] S4-3: The Transformer module of the Classify GPT4 module adopts the Causal Decoder architecture, takes Full Language Modeling as the prediction target, generates the classification results (0 / 1) of the data to be matched, and the Single-Agent module saves the classification results as the data to be matched (PA i +VA i ,PB i +VB i ) and then repeat the next piece of data to be matched (PA i+1 +VA i+1 ,PB i+1 +VB i+1 ) until all data are matched and integrated, and all data are output to the information output module;

[0066] S4-4: The information output module is based on the data to be matched (PA i +VA i ,PB i +VB i )'s label Label-i classifies and saves the data. Specifically, if Label-i is 0, the original data pair (PA i ,VA i ,TA i ), (PB i ,VB i ,TB i ) and label Label-i are saved to the matching failure dataset; if Label-i is 1, the next step of judgment is performed; the information output module calculates the passing time data TA in the video capture vehicle holographic perception dataset i TB of passing time data in the RSU vehicle information perception dataset i Make a difference and calculate the time difference T of the vehicles passing by i =(TA i -TB i );Information output module to T i To judge, if T i In the range of (-30s, 120s), the original data of this group of data (PAi ,VA i ,TA i ), (PB i ,VB i ,TB i ) and label Label-i are saved to the matching successful data set; if T i If the range is beyond (-30s, 120s), the original data pair (PA i ,VA i ,TA i ), (PB i ,VB i ,TB i ) and label Label-i are saved to the result questionable dataset.

[0067] Based on the above content, in order to verify the superiority of the GPT4SA-MVIMF-EGS model provided by the present invention, in this embodiment, a total of six models including CDSSM-MVIMF-EGS, MVLSTM-MVIMF-EGS, ALBERT-MVIMF-EGS, BaiChuan2SA-MVIMF-EGS and ChatGLM3SA-MVIMF-EGS as well as the GPT4SA-MVIMF-EGS of the present invention are constructed for matching experiments, and the construction method is as follows:

[0068] 1. Construct a CDSSM-MVIMF-EGS model for matching and fusing multi-source vehicle information in highway gantry scenarios based on convolutional neural networks. The main contents are as follows: Convolutional Deep Structured Semantic Models. CDSSM enhances the ability to capture contextual relationships by incorporating word-level n-gram analysis and convolutional pooling mechanisms, thereby achieving significant improvements in model performance. The CDSSM-MVIMF-EGS model structure is as follows: Figure 3 The parameters of the CDSSM-MVIMF-EGS model are shown in Table 5:

[0069] Table 5 - CDSSM-MVIMF-EGS model parameters

[0070]

[0071] For text A and text B input to the CDSSM-MVIMF-EGS model, the text is first decomposed into characters by using the embedding layer EmbeddingLayer and character-level n-gram technology, and each word is converted into a corresponding vector representation of size (None, 64, 200) through the Letter-Trigram matrix to capture the local features of the text. This sophisticated text information representation strategy not only keenly captures the subtle semantic changes in the text information, but also improves the generalization of the model for different text types. Secondly, the local features of the text information are extracted by the convolution layer. These convolution layers obtain rich local text features by sliding windows on the character-level n-gram. The feature matrix of text A is converted into a feature vector of size (None, 64, 300) through the convolution layer Conv1D_1, and the feature matrix of text B is converted into a feature vector of size (None, 64, 300) through the convolution layer Conv1D_2. Each convolution operation can be regarded as a feature detection, which can Identify the key patterns and structures in the text; then, the CDSSM-MVIMF-EGS model uses the Max-Pooling layer to reduce the feature dimension, aiming to reduce the risk of overfitting and improve the generalization ability. The feature vector of text A is converted into a feature vector of size (None, 300) through the pooling layer Global_Max_Pooling1d_1, and the feature vector of text B is converted into a feature vector of size (None, 300) through the pooling layer Global_Max_Pooling1d_2; finally, the CDSSM-MVIMF-EGS model realizes the output of the matching fusion results between text information through the processing of the fully connected layer and the dot multiplication calculation of the similarity. The feature vector of text A is converted into a feature vector of size (None, 128) through two layers of dense layers Dense_1 and Dense_2, and the feature vector of text B is converted into a feature vector of size (None, 128) through two layers of dense layers Dense_3 and Dense_4. The two feature vectors are input into the Dot Layer for similarity dot multiplication calculation, and connected to the dense layer Dense_5 to output the matching fusion results of text A and text B.

[0072] 2. The specific contents of constructing the MVLSTM-MVIMF-EGS model for matching and fusion of multi-source vehicle information in highway gantry scenes based on recurrent neural networks are as follows: Multi-View Long Short-Term Memor, MVLSTM multi-view long short-term memory network, is a model based on the long short-term memory network for capturing long-distance dependencies in text sequences, and introducing a multi-view strategy to enhance the effect of text information representation and sentence interaction. The MVLSTM-MVIMF-EGS model is mainly composed of a sentence representation layer, a multi-view matching layer, and an interaction aggregation layer. In the sentence representation layer, the text information of each input model is passed through a bidirectional long short-term memory network to obtain bidirectional semantic information, and the bidirectional semantic information of each word is spliced ​​and output as the semantic representation of the word. Assume that the text A and text B input into the MVLSTM-MVIMF-EGS model are converted into sentence representations u and v. In the multi-view matching layer, the sentence representations are respectively extracted through cosine similarity, bilinear (Bilinear), and tensor layer (Tensor Layer) to extract fine-grained interaction relationships between sentences. Among them, the cosine similarity calculation method is The bilinear calculation method is s(u,v)=u T M1v+b, the tensor layer calculation method is Among them, M1 represents the matrix weight, b represents the bias parameter, M2 represents the tensor parameter, and f represents the nonlinear function. In the interactive pooling layer, the similarity matrix of text A and text B is calculated through inter-office interaction, and the K-Max pooling layer is connected to extract the features of the similarity matrix, and the matching fusion result is output through the fully connected layer. The MVLSTM-MVIMF-EGS model structure is as follows Figure 4 As shown, the MVLSTM-MVIMF-EGS model parameters are shown in Table 6:

[0073] Table 6 Parameters of each layer of MVLSTM-MVIMF-EGS neural network

[0074]

[0075]

[0076] First, the text A and text B input to the MVLSTM-MVIMF-EGS model are processed by the Embedding Layer and converted into feature vectors of size (None, 64, 100); secondly, the feature vectors of text A and text B are respectively input into the bidirectional long short-term memory network in the bidirectional layer to extract the bidirectional semantic information of each word in the text information, and the output is a feature vector of size (None, 64, 128); then, the feature vectors of text A and text B are respectively input into the Lambda_1 layer and the Lambda_2 layer to extract the fine-grained cosine similarity, bilinear and tensor layer relationship between sentences; then, in the Dot Layer performs local interactive calculations on the multi-view features of text A and text B to generate a similarity matrix of size (None, 64, 64), connects the Reshape layer to transform the similarity matrix into a size of (None, 4096), and connects the maximum pooling layer K_Max_Pooling to generate a feature vector of size (None, 50); finally, the MVLSTM-MVIMF-EGS model realizes the output of the matching fusion results between text information through the processing of the fully connected layer, connects the two dense layers Dense_1 and Dense_2 and the Dropout layer to transform them into a feature vector of size (None, 128), and connects the dense layer Dense_3 to output the matching fusion results of text A and text B.

[0077] 3. Construct an ALBERT-MVIMF-EGS model based on Transformer for matching and fusing multi-source vehicle information in highway gantry scenarios. The specific method is: A Lite BERT, the ALBERT model is an improved pre-trained language model based on the BERT model. The model uses two key technologies, embedded parameter sharing and cross-layer parameter sharing, which significantly reduces the scale and training cost of the model while maintaining or even improving model performance. In addition, the ALBERT model also introduces sentence order prediction SOP, which enhances the model's depth of understanding of text structure. The constructed ALBERT-MVIMF-EG model structure is as follows: Figure 5 As shown, the ALBERT-MVIMF-EG model parameters are shown in Table 7:

[0078] Table 7 Parameters of each layer of AERT-MVIMF-EGS model

[0079]

[0080]

[0081] The ALBERT-MVIMF-EGS model consists of three parts: the input layer, the encoder layer, and the output layer. In the input layer, the text A and text B input to the ALBERT-MVIMF-EGS model are first subdivided into the smallest unit Token through processing steps such as word segmentation and standardization, and then the classification tag [CLS] and the separation tag [SEP] are added respectively to complete the format conversion; secondly, each Token is processed through three levels: Token Embedding) layer, Segment Embedding layer, and Position Embedding layer to obtain a rich semantic representation vector that integrates the lexical features, paragraph sources, and position information of the tag. In the process of generating word vectors, the ALBERT-MVIMF-EGS model uses the embedding parameter decomposition technology to split the larger word embedding matrix into two smaller matrices and multiply them to reduce the number of parameters; finally, the BERT-MVIMF-EGS model integrates the output results of these three layers, integrates the lexical features, paragraph sources, and position information of the tag, and constructs a semantic representation vector of size (None, None, 1024). This vector is then used as input to the encoder layer for deeper semantic understanding and processing. At the encoder layer, the ALBERT-MVIMF-EGS model contains 24 Transformer encoder modules, each of which contains a multi-head self-attention layer and a feedforward neural network, designed to encode and model the input text information. The ALBERT-MVIMF-EGS model uses cross-layer parameter sharing technology to share the multi-head self-attention layer and feedforward neural network parameters of the encoder layer. In this model, only the parameters of the first Transformer encoder are learned, and the remaining 23 Transformer encoders share the parameters of one Transformer encoder. At the output layer, the ALBERT-MVIMF-EGS model contains pooling layers and classification layers. The pooling layers Pooler-Lambda and Pooler-Dense are responsible for pooling the output results of the encoder layer to obtain a fixed-dimensional representation of the input sequence (None, 1024). The classification layer contains a fully connected layer and a Softmax activation function, which is responsible for converting the fixed dimension of the pooling layer output into a probability distribution for text matching and outputting the prediction results of text matching.

[0082] In this embodiment, six models, namely CDSSM-MVIMF-EGS, MVLSTM-MVIMF-EGS, ALBERT-MVIMF-EGS, GPT4SA-MVIMF-EGS, BaiChuan2SA-MVIMF-EGS and ChatGLM3SA-MVIMF-EGS, are used for matching experiments to obtain the detection results of the test set, as shown in Table 8.

[0083] Table 8 Experimental results analysis

[0084]

[0085] It can be seen from Table 8 that the comprehensive detection performance of the GPT4SA-MVIMF-EGS model provided by the present invention is better than that of the other five models, of which the above three are matching models constructed based on convolutional neural networks, recurrent neural networks and Transformer architectures, respectively, and BaiChuan2SA-MVIMF-EGS and ChatGLM3SA-MVIMF-EGS are the other two matching models constructed based on large language single agent structures. Because GPT4SA-MVIMF-EGS is a single agent structure matching model based on the GPT4 large language model, (1) compared with convolutional neural networks, recurrent neural networks and Transformer architectures, large language models can understand the requirements of classification tasks faster and more accurately; (2) GPT4 has advantages over other large language models in model structure, parameters and training sets, and has better performance. Therefore, the GPT4SA-MVIMF-EGS model is more suitable for matching multi-source vehicle information in highway gantry scenarios. The model adopts the Causal Decoder architecture and uses Full Language Modeling as the prediction target to generate classification results for the data to be matched.

Claims

1. A method for matching and fusion of multi-source vehicle information in highway gantry scenarios based on a single-agent structure and large language model. It is characterized in that The steps include: S1: Mining and labeling multi-source vehicle information perception data in highway gantry scenes; S2: Based on the data annotated in step S1, a multi-source vehicle information matching fusion dataset in the highway gantry scene is constructed; S3: Based on the multi-source vehicle information matching process, a large language single-agent structure model LLMSA-MVIMF-EGS is constructed for multi-source vehicle information matching and fusion in highway gantry scenarios; S4: Based on the fused data set of step S2, the multi-source vehicle information matching fusion result is output through the large language single-agent structure model LLMSA-MVIMF-EGS.

2. According to claim 1, a method for matching and fusing multi-source vehicle information in a highway gantry scene based on a single-agent structure large language model, It is characterized in that The multi-source vehicle information perception data in the highway gantry scene in step S1 includes video captured vehicle holographic perception data and RSU vehicle information perception data; The holographic perception data of vehicles captured by video include vehicle license plate information, vehicle passing time, and vehicle type information, and the vehicle license plate information and vehicle passing time are pre-processed respectively; the RSU vehicle perception data include vehicle license plate information, vehicle passing time, vehicle transaction results, and vehicle type information, and the vehicle passing time, vehicle transaction results, and vehicle type information are pre-processed respectively.

3. According to claim 2, a method for matching and fusing multi-source vehicle information in a highway gantry scene based on a single-agent structure large language model, It is characterized in that In step S1, the text information matching and fusion method based on character comparison and the text information matching and fusion method based on unsupervised contrastive learning are combined to construct a process for labeling multi-source vehicle information perception data in highway gantry scenes, specifically: labeling multi-source vehicle information perception data in highway gantry scenes, during the labeling process, data matching is performed based on license plate features and time features, and it is assumed that the license plate information characters of the same vehicle transaction data are allowed to have two or less errors; for time features, a time window of five minutes above and below the time of a vehicle passing is set to narrow the data retrieval range; for any data A in the video captured vehicle holographic perception data i , first extract the vehicle passing time data t i , and divide the five minutes before and after it into a time period, and then find the data whose time information meets the requirements of the time period in the RSU vehicle information perception data set (B i1 ,B i2 ……B ij ), and reduce the retrieval scope from the entire RSU vehicle information perception data set to j pieces of data that meet the time condition; After labeling, we obtain data of successful matching and fusion, data of failed matching and fusion, and data without vehicle license plate. The successful matching and fusion data includes data with completely consistent vehicle license plate and data with roughly consistent vehicle license plate.

4. According to claim 3, a method for matching and fusing multi-source vehicle information in a highway gantry scene based on a single-agent structure large language model, It is characterized in that The specific process of constructing the multi-source vehicle information matching fusion data set in the highway gantry scene in step S2 is: S2-1: The data that simultaneously meets the vehicle license plate characteristics and vehicle type characteristics are taken as positive samples, and the data that does not simultaneously meet the vehicle license plate characteristics and vehicle type characteristics are taken as negative samples; S2-2: Add label "1" to the positive sample data pairs, and label "0" to the negative sample data pairs; the training set contains positive and negative data set samples with completely consistent license plates and roughly consistent license plates, and the validation set and test set only contain positive and negative data set samples with roughly consistent license plates.

5. According to claim 1, a method for matching and fusing multi-source vehicle information in a highway gantry scene based on a single-agent structure large language model, It is characterized in that The large language single agent structure model LLMSA-MVIMF-EGS in step S3 includes a Single-Agent module, a large language model and an information output module; The Single-Agent module is used to generate prompt words and data to be matched in the highway gantry scene to a large language model; The large language model is used to make predictions based on the requirements of the prompt word and the data to be matched, and output the matching results; The information output module is used to classify and save the matching result data.

6. According to claim 5, a method for matching and fusing multi-source vehicle information in a highway gantry scene based on a single-agent structure large language model, It is characterized in that The prompt words constructed in the Single-Agent module consist of six parts: the role played by the large language model, the question background, context information, input data, expected output results and special requirements; for the role played by the large language model, the prompt words set it as a professional data analyst; for the question background, the prompt words set it as a classification problem of vehicle license plates and vehicle types; for the context information, the prompt words input the classification criteria of vehicle license plates and vehicle types; for the input data, the prompt words take the constructed multi-source vehicle information matching fusion data test set in the highway gantry scene as input; for the expected output results, the prompt words require the large language model to output yes or no according to the recognition results; for the special requirements, the prompt words require the output result length of the large language model to be controlled within 1 character, and when the model compares the vehicle license plate area code and the alphanumeric sequence, it needs to pay attention to the inclusion relationship of the sequence rather than the corresponding relationship, and the characters of the different points will not be calculated additionally during the comparison process.

7. According to claim 6, a method for matching and fusing multi-source vehicle information in a highway gantry scene based on a single-agent structure large language model, It is characterized in that The large language model is the Classify GPT4 module. The Transformer module in the Classify GPT4 module adopts the Causal Decoder architecture, takes Full Language Modeling as the prediction target, and generates the classification results of the data to be matched.

8. According to claim 7, a method for matching and fusing multi-source vehicle information in a highway gantry scene based on a single-agent structure large language model, It is characterized in that The specific process of step S4 is as follows: S4-1: Input the multi-source vehicle information test set in the highway gantry scene into the Single-Agent module; among them, the video capture vehicle holographic perception dataset contains vehicle license plate data (PA 1 ,PA 2 …PA n ), vehicle type data (VA 1 ,VA 2 …VA n ), through time data (TA 1 ,TA 2 …TA n ); RSU vehicle information perception dataset includes vehicle license plate data (PB 1 ,PB 2 …PB n ), vehicle type data (VB 1 ,VB 2 …VB n ), through time data (TB 1 ,TB 2 …TB n ); S4-2: The Single-Agent module inputs the role played by the model, question background, context information, input data samples, expected output results and special requirements into the large language model to help the large language model Classify GPT4 that classifies vehicle license plate information and vehicle type information understand the work task requirements; the Single-Agent module inputs the vehicle license plate data PA in the video capture vehicle holographic perception dataset i and vehicle type data VA i The vehicle license plate data PB in the RSU vehicle information perception dataset i and vehicle type data VB i , converted into the data format for input into the large language model (PA i +VA i ,PB i +VB i ), as the data to be matched, input into the Classify GPT4 module; S4-3: The Transformer module of the Classify GPT4 module adopts the Causal Decoder architecture, takes Full Language Modeling as the prediction target, generates the classification results (0 / 1) of the data to be matched, and the Single-Agent module saves the classification results as the data to be matched (PA i +VA i ,PB i +VB i ) and then repeat the next piece of data to be matched (PA i+1 +VA i+1 ,PB i+1 +VB i+1 ) until all data are matched and integrated, and all data are output to the information output module; S4-4: The information output module is based on the data to be matched (PA i +VA i ,PB i +VB i ) labels Label-i to classify and save the data. Specifically, if Label-i is 0, the original data pair (PA i ,VA i ,TA i ), (PB i ,VB i ,TB i ) and label Label-i are saved to the matching failure dataset; if Label-i is 1, the next step of judgment is performed; the information output module calculates the passing time data TA in the video capture vehicle holographic perception dataset i TB of passing time data in the RSU vehicle information perception dataset i Make a difference and calculate the time difference T of the vehicles passing by i =(TA i -TB i );Information output module to T i To judge, if T i In the range of (-30s, 120s), the original data of this group of data (PA i ,VA i ,TA i ), (PB i ,VB i ,TB i ) and label Label-i are saved to the matching successful data set; if T i If the range is beyond (-30s, 120s), the original data will be i ,VA i ,TA i ), (PB i ,VB i ,TB i ) and label Label-i are saved to the result questionable dataset.

Citation Information

Patent Citations

  • Intelligent charging system based on vehicle holographic perception and OBU information fusion

    CN114170695A

  • Highway vehicle image retrieval method based on deep learning fusion model

    CN115731436A

  • Toll road customer service system based on large language model

    CN117788002A

  • Toll road path fitting method and system based on large language model

    CN117973542A

  • Multi-modal data processing method for enhancing large language model

    CN118070227A