Congestion detection method and application of highway toll station based on feature optimization

Through transfer learning and unsupervised learning, combined with feature optimization technology, the problem of feature extraction in highway toll station data is solved, efficient and accurate congestion detection is achieved, and the decision support capability of traffic management is improved.

CN118628966BActive Publication Date: 2024-10-15HANGZHOU PIXEL TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411098953.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-10-15
Estimated Expiration
2044-08-12

AI Technical Summary

Technical Problem

It is difficult for existing technology to effectively extract useful features from massive data at highway toll stations and accurately reflect traffic status, resulting in low accuracy of highway congestion detection and high computational complexity. Traditional unsupervised learning algorithms have problems in feature extraction and optimization. limitation.

Method used

Using transfer learning, unsupervised learning and integrated learning, by obtaining the pre-trained video understanding model, converting it into a congestion detection framework, conducting unsupervised training, extracting key semantic information in the video, and through feature optimization and fusion, generate Finally predict features to detect congestion.

Benefits of technology

In the absence of a large amount of labeled data, congestion detection with high detection accuracy is achieved, improving the performance and efficiency of the detection algorithm, reducing computational complexity, providing accurate congestion detection results, and helping to optimize traffic flow.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628966B_ABST
    Figure CN118628966B_ABST
Patent Text Reader

Abstract

This application proposes a method and application for detecting congestion at highway toll stations based on feature optimization, including the following steps: obtaining multiple pre-trained video understanding models, and converting each video understanding model into a congestion detection model using a transfer learning method; obtaining a video to be detected, and obtaining the congestion result features of the video to be detected through the video understanding model and the congestion detection model; assigning fusion weights to the congestion result features and each key congestion semantic feature, and fusing the congestion result features with each key congestion semantic feature according to the fusion weights to obtain the final prediction features. By combining transfer learning, unsupervised learning, and integrated learning, this solution can effectively detect and identify congestion at highway toll stations without a large amount of labeled data, and provide accurate congestion detection results for traffic management departments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer vision technology, and in particular to a method and application for detecting congestion at a highway toll station based on feature optimization. Background Art

[0002] With the rapid development of the economy and the sharp increase in the number of motor vehicles, the problem of highway traffic congestion has become increasingly serious, causing significant impacts on traffic safety, operating efficiency, environmental impact, and the healthy development of the social economy. Therefore, accurate and timely detection of the occurrence of highway traffic congestion is of great significance for traffic management departments to take corresponding management measures, optimize traffic flow, prevent secondary accidents, and reduce economic losses.

[0003] At present, highway congestion detection technologies mainly include direct detection methods based on video images and indirect identification methods based on traffic flow data. The direct detection method relies on image processing technology. Although it can provide microscopic traffic flow information, it is limited by equipment coverage density and acquisition quality, and the cost is relatively high. The indirect identification method mainly infers the congestion status by analyzing traffic flow parameters such as speed, density, occupancy, etc. It has the advantages of low cost and easy implementation, but may lack an in-depth understanding of the microscopic behavior of traffic flow.

[0004] The toll collection system and ETC gantry system of highways provide a large amount of vehicle travel data, which provides a rich source of information for traffic congestion detection. However, how to effectively extract useful features from these massive data and accurately reflect the traffic status is a major challenge facing current technology. In addition, the incompleteness of the data, outliers and the dynamically changing traffic environment all increase the complexity of congestion detection.

[0005] Unsupervised learning algorithms such as cluster analysis are valued because they do not require labeled training data. Unsupervised learning can automatically discover models and structures from raw data, which is suitable for automatic identification of traffic congestion. However, traditional unsupervised learning algorithms may have limitations in feature extraction and optimization. In unsupervised learning, feature selection and optimization have a decisive influence on the performance of the algorithm. Effective features can not only improve the accuracy of congestion detection, but also reduce computational complexity and improve the algorithm's operating efficiency. Therefore, studying how to extract and optimize features from highway toll data and ETC gantry data is the key to improving the performance of congestion detection algorithms.

[0006] In summary, developing an algorithm that can accurately and efficiently detect the congestion status of highway toll stations has important practical significance and application value for alleviating traffic congestion and optimizing traffic flow. Summary of the invention

[0007] The embodiment of the present application provides a highway toll station congestion detection method and application based on feature optimization. By combining transfer learning, unsupervised learning and integrated learning, it can effectively detect and identify congestion at highway toll stations without a large amount of labeled data, provide accurate congestion detection results for traffic management departments, help optimize traffic flow, reduce the negative impact of congestion, and improve road use efficiency.

[0008] In a first aspect, an embodiment of the present application provides a method for detecting congestion at a highway toll station based on feature optimization, the method comprising:

[0009] Acquire multiple pre-trained video understanding models, convert each video understanding model into a congestion detection framework using a transfer learning method, and train each congestion detection framework in an unsupervised mode to obtain a congestion detection model, wherein the video understanding model is used to extract all key semantic information in the video, and the congestion detection model is used to extract key congestion semantic information about congestion events at highway toll stations in the video;

[0010] Acquire a video to be detected, input the video to be detected into each congestion detection framework to obtain a plurality of key semantic features, input the video to be detected into each congestion detection model to obtain a plurality of key congestion semantic features, splice the corresponding key semantic features with the key congestion semantic features to obtain a plurality of spliced ​​congestion features to form a congestion feature set, and select a plurality of spliced ​​congestion features with large feature values ​​from the congestion feature set to splice to obtain a congestion result feature;

[0011] Fusion weights are assigned to the congestion result features and each key congestion semantic feature, and the congestion result features are fused with each key congestion semantic feature according to the fusion weights to obtain final prediction features, and congestion detection results are obtained according to the final prediction features, wherein the fusion weight of the congestion result features is greater than the fusion weight of each key congestion semantic feature.

[0012] In a second aspect, the embodiment of the present application provides a highway toll station congestion detection device based on feature optimization, comprising:

[0013] A migration module is used to obtain multiple pre-trained video understanding models, convert each video understanding model into a congestion detection framework using a migration learning method, and train each congestion detection framework in an unsupervised mode to obtain a congestion detection model, wherein the video understanding model is used to extract all key semantic information in the video, and the congestion detection model is used to extract key congestion semantic information about congestion events at highway toll stations in the video;

[0014] A feature optimization module is used to obtain a video to be detected, input the video to be detected into each congestion detection framework to obtain a plurality of key semantic features, input the video to be detected into each congestion detection model to obtain a plurality of key congestion semantic features, splice the corresponding key semantic features with the key congestion semantic features to obtain a plurality of spliced ​​congestion features to form a congestion feature set, and select a plurality of spliced ​​congestion features with large feature values ​​from the congestion feature set to splice to obtain a congestion result feature;

[0015] The detection module is used to assign fusion weights to the congestion result features and each key congestion semantic feature, and fuse the congestion result features with each key congestion semantic feature according to the fusion weights to obtain a final prediction feature, and obtain a congestion detection result according to the final prediction feature, wherein the fusion weight of the congestion result feature is greater than the fusion weight of each key congestion semantic feature.

[0016] In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute a highway toll station congestion detection method based on feature optimization.

[0017] In a fourth aspect, an embodiment of the present application provides a readable storage medium, in which a computer program is stored. The computer program includes a program code for controlling a process to execute a process, and the process includes a highway toll station congestion detection method based on feature optimization.

[0018] The main contributions and innovations of the present invention are as follows:

[0019] The embodiment of the present application uses a transfer learning method to transfer multiple pre-trained video understanding models into a congestion detection framework that can extract congestion events at highway toll stations, so that the present solution does not need to spend a lot of resources on model training; by performing unsupervised training on the congestion detection framework, it is ensured that a congestion detection model with high detection accuracy can be obtained even in the absence of a large number of training samples; the present solution combines the features extracted by the corresponding video understanding model with the congestion detection model, and optimizes and fuses the features, thereby improving the overall prediction performance.

[0020] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0022] Figure 1 is a flow chart of a highway toll station congestion detection method based on feature optimization according to an embodiment of the present application;

[0023] Figure 2 is a logical schematic diagram of a highway toll station congestion detection method based on feature optimization according to an embodiment of the present application;

[0024] Figure 3 It is a structural block diagram of a highway toll station congestion detection device based on feature optimization according to an embodiment of the present application;

[0025] Figure 4 It is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0026] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of this specification. Instead, they are merely examples of devices and methods consistent with some aspects of one or more embodiments of this specification as detailed in the appended claims.

[0027] It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the steps included in the method may be more or less than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may be combined into a single step for description in other embodiments.

[0028] Embodiment 1

[0029] The embodiment of the present application provides a method for constructing an unsupervised highway toll station congestion detection model based on feature optimization. By combining transfer learning, unsupervised learning and ensemble learning, it is possible to effectively detect and identify congestion at highway toll stations without a large amount of labeled data, provide accurate congestion detection results for traffic management departments, help optimize traffic flow, reduce the negative impact of congestion, and improve road use efficiency. Specifically, reference Figure 1 as well as Figure 2 , the method comprising:

[0030] Acquire multiple pre-trained video understanding models, convert each video understanding model into a congestion detection framework using a transfer learning method, and train each congestion detection framework in an unsupervised mode to obtain a congestion detection model, wherein the video understanding model is used to extract all key semantic information in the video, and the congestion detection model is used to extract key congestion semantic information about congestion events at highway toll stations in the video;

[0031] Acquire a video to be detected, input the video to be detected into each congestion detection framework to obtain a plurality of key semantic features, input the video to be detected into each congestion detection model to obtain a plurality of key congestion semantic features, splice the corresponding key semantic features with the key congestion semantic features to obtain a plurality of spliced ​​congestion features to form a congestion feature set, and select a plurality of spliced ​​congestion features with large feature values ​​from the congestion feature set to splice to obtain a congestion result feature;

[0032] Fusion weights are assigned to the congestion result features and each key congestion semantic feature, and the congestion result features are fused with each key congestion semantic feature according to the fusion weights to obtain final prediction features, and congestion detection results are obtained according to the final prediction features, wherein the fusion weight of the congestion result features is greater than the fusion weight of each key congestion semantic feature.

[0033] In this solution, the pre-trained video understanding model is a Transformer algorithm model that uses an attention mechanism.

[0034] Transfer learning is a machine learning method that transfers the parameters of a trained model to a new model to help train the new model. In this solution, transfer learning is performed on some video extraction models used to extract key semantic information from videos, making these models suitable for extracting key congestion semantic information about congestion events at highway toll stations.

[0035] Specifically, the model parameters of the video extraction model are expressed as , the formula for transfer learning of model parameters is as follows:

[0036]

[0037] in, is the loss function of the video extraction model, is the prediction function of the video extraction model, is the input of the video extraction model, is the prediction result of the video extraction model, are the parameters of the migrated congestion detection framework.

[0038] In the step of "training each congestion detection framework in an unsupervised mode to obtain a congestion detection model", a video including a highway toll station is obtained as a training sample. Each congestion detection framework obtains a first feature vector and a second feature vector by extracting features from any two training samples and mapping them to a low-dimensional space. A loss function is constructed based on the similarity between the first feature vector and the second feature vector to train the congestion detection framework to obtain a congestion detection model.

[0039] Furthermore, the feature extraction results of the training samples are mapped to a low-dimensional space through a fully connected layer to obtain a first eigenvector and a second eigenvector.

[0040] Specifically, in order to obtain better detection results, the collection of training samples covers various lighting conditions in the evening, early morning, rainy and snowy weather, as well as various types of highway toll stations.

[0041] Specifically, the formula for extracting features from training samples in the congestion detection framework is expressed as follows:

[0042]

[0043] in, is the result of feature extraction, is the prediction function of the congestion detection framework, represents training sample i.

[0044] Specifically, low-dimensional space can obtain more feature representations, so this solution uses a fully connected layer to map the result of feature extraction to low-dimensional space. The formula is as follows:

[0045]

[0046] in, represents the first eigenvector, FC represents the fully connected layer, Represents the configuration parameters of the fully connected layer.

[0047] Similarly, for another training sample j, the second feature vector is obtained by the above method , the formula for calculating the similarity between the first eigenvector and the second eigenvector is as follows:

[0048]

[0049] in, Represents the similarity between the first eigenvector and the second eigenvector.

[0050] Furthermore, a gradient update optimization strategy is adopted in the training process of the congestion detection framework, and the configuration parameters of the congestion detection framework and the configuration parameters of the fully connected layer are updated in a back-propagation manner.

[0051] Specifically, the formula for updating the configuration parameters of the congestion detection framework and the configuration parameters of the fully connected layer in a back-propagation manner is as follows:

[0052]

[0053] in, represents the gradient of the configuration parameters of the congestion detection framework, Represents the gradient of the fully connected layer configuration parameters.

[0054] In this scheme, the formula of the loss function is expressed as:

[0055]

[0056] Where N represents the total number of training samples and τ is the loss parameter, which is used to control the smoothness of the similarity distribution during training.

[0057] Specifically, if the first feature vector and the second feature vector both represent congestion at a highway toll station, then these two feature vectors are positive samples. The similarity of positive samples is high, indicating that the congestion event at a highway toll station is manifested differently in different video images. Therefore, the loss function is expressed by the numerator To increase the weight of positive samples, the feature representations of different image frames of the same event are closer, while for negative samples, that is, the first feature vector and the second feature vector do not represent the same event, their similarity is low, through the denominator Reduce the impact on the weight so that the features of negative samples are far away from the feature representation of highway toll station congestion events. When τ is too small, the similarity distribution will fluctuate greatly. If τ is too large, the similarity distribution will be too concentrated and lack distinction. Therefore, τ can be used to control the smoothness of the similarity distribution during training to ensure that highway toll station congestion events are correctly distinguished.

[0058] In the step of "joining the corresponding key semantic features with the key congestion semantic features to obtain a plurality of joined congestion features to form a congestion feature set", the corresponding key semantic features are joined with the key congestion semantic features and then linear dimension reduction is performed to obtain a plurality of joined congestion features.

[0059] Furthermore, the linear dimensionality reduction operation is: splicing the corresponding key semantic features with the key congestion semantic features to obtain multiple first splicing results, calculating the feature standard deviation and the feature mean of the multiple first splicing results, calculating each first splicing result based on the feature standard deviation and the feature mean to obtain multiple second splicing results, calculating the covariance matrix based on the multiple second splicing results, and using the covariance matrix to multiply each second splicing result to obtain multiple splicing congestion features.

[0060] Specifically, the linear dimensionality reduction operation can retain the most feature information and reduce the feature dimension to facilitate subsequent fusion.

[0061] Specifically, the formula for obtaining the first splicing result is as follows:

[0062]

[0063] in, For the first splicing result, NumPy is an open source numerical computing extension in Python, which is used to process large matrix operations. Represents key semantic features, Represents key congestion semantic features.

[0064] Specifically, the formula for obtaining the second splicing result is as follows:

[0065]

[0066] in, Represents the second splicing result, is the first splicing result, μ is the feature mean, and σ is the feature standard deviation.

[0067] The formula for obtaining the covariance matrix is ​​as follows:

[0068]

[0069] Among them, C is the covariance matrix, n is the total number of features, i is the number of first concatenated features and second concatenated features, and T represents the transpose calculation.

[0070] The formula for obtaining the splicing congestion feature is as follows:

[0071]

[0072] in, To splice congestion features, is the second concatenated feature, and C is the covariance matrix.

[0073] The formula for selecting multiple congestion features with large feature values ​​from the congestion feature set and concatenating them to obtain the congestion result feature is as follows:

[0074]

[0075] The above formula indicates that k congestion features with large eigenvalues ​​are selected to concatenate and obtain the congestion result feature , thereby selecting the optimal k congestion features while reducing the dimension.

[0076] In this scheme, the congestion result characteristics are used as the main basis for judgment, and the result characteristics output by other congestion detection models are used as auxiliary judgments to obtain the most accurate congestion judgment results. Therefore, this scheme assigns a large weight to the congestion result characteristics, and then assigns different weights according to the performance of other congestion detection models to obtain the congestion detection results.

[0077] Specifically, the fusion weight in this solution is set in an artificial way.

[0078] Specifically, since this solution uses multiple congestion detection models for integrated prediction, and the recognition effects of different congestion detection models are different, even the best model will have generalization problems. Therefore, in order to adapt to the recognition effects in different scenarios and multiple situations, the overall detection effect is improved by giving different fusion weights to different congestion detection models.

[0079] Embodiment 2

[0080] Based on the same idea, refer to Figure 3 , the present application also proposes a highway toll station congestion detection device based on feature optimization, comprising:

[0081] A migration module is used to obtain multiple pre-trained video understanding models, convert each video understanding model into a congestion detection framework using a migration learning method, and train each congestion detection framework in an unsupervised mode to obtain a congestion detection model, wherein the video understanding model is used to extract all key semantic information in the video, and the congestion detection model is used to extract key congestion semantic information about congestion events at highway toll stations in the video;

[0082] A feature optimization module is used to obtain a video to be detected, input the video to be detected into each congestion detection framework to obtain a plurality of key semantic features, input the video to be detected into each congestion detection model to obtain a plurality of key congestion semantic features, splice the corresponding key semantic features with the key congestion semantic features to obtain a plurality of spliced ​​congestion features to form a congestion feature set, and select a plurality of spliced ​​congestion features with large feature values ​​from the congestion feature set to splice to obtain a congestion result feature;

[0083] The detection module is used to assign fusion weights to the congestion result features and each key congestion semantic feature, and fuse the congestion result features with each key congestion semantic feature according to the fusion weights to obtain a final prediction feature, and obtain a congestion detection result according to the final prediction feature, wherein the fusion weight of the congestion result feature is greater than the fusion weight of each key congestion semantic feature.

[0084] Embodiment 3

[0085] This embodiment also provides an electronic device, referring to Figure 4 , comprises a memory 404 and a processor 402, wherein the memory 404 stores a computer program, and the processor 402 is configured to run the computer program to execute the steps in any of the above method embodiments.

[0086] Specifically, the processor 402 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0087] Among them, the memory 404 may include a large capacity memory 404 for data or instructions. For example, but not limitation, the memory 404 may include a hard disk drive (HDD), a floppy disk drive, a solid state drive (SSD), a flash memory, an optical disk, a magneto-optical disk, a tape, or a universal serial bus (USB) drive, or a combination of two or more of these. In appropriate cases, the memory 404 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 404 may be inside or outside the data processing device. In a specific embodiment, the memory 404 is a non-volatile memory. In a specific embodiment, the memory 404 includes a read-only memory (ROM) and a random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, PROM for short), an erasable PROM (Erasable Programmable Read-Only Memory, EPROM for short), an electrically erasable PROM (Electrically Erasable Programmable Read-Only Memory, EEPROM for short), an electrically alterable ROM (Electrically Alterable Read-Only Memory, EAROM for short) or a flash memory (FLASH) or a combination of two or more of these. In appropriate circumstances, the RAM may be a static random access memory (SRAM) or a dynamic random access memory (DRAM), wherein the DRAM may be a fast page mode dynamic random access memory 404 (FPMDRAM), an extended data output dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.

[0088] The memory 404 may be used to store or cache various data files required for processing and / or communication, as well as possible computer program instructions executed by the processor 402 .

[0089] The processor 402 reads and executes the computer program instructions stored in the memory 404 to implement any one of the highway toll station congestion detection methods based on feature optimization in the above embodiments.

[0090] Optionally, the electronic device may further include a transmission device 406 and an input / output device 408 , wherein the transmission device 406 is connected to the processor 402 , and the input / output device 408 is connected to the processor 402 .

[0091] The transmission device 406 can be used to receive or send data via a network. Specific examples of the above-mentioned network may include a wired or wireless network provided by a communication provider of the electronic device. In one example, the transmission device includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 406 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0092] The input and output device 408 is used to input or output information. In this embodiment, the input information may be a video to be detected, configuration parameters of a video understanding model, etc., and the output information may be configuration parameters of a congestion detection model, congestion detection results, etc.

[0093] Optionally, in this embodiment, the processor 402 may be configured to perform the following steps through a computer program:

[0094] Acquire multiple pre-trained video understanding models, convert each video understanding model into a congestion detection framework using a transfer learning method, and train each congestion detection framework in an unsupervised mode to obtain a congestion detection model, wherein the video understanding model is used to extract all key semantic information in the video, and the congestion detection model is used to extract key congestion semantic information about congestion events at highway toll stations in the video;

[0095] Acquire a video to be detected, input the video to be detected into each congestion detection framework to obtain a plurality of key semantic features, input the video to be detected into each congestion detection model to obtain a plurality of key congestion semantic features, splice the corresponding key semantic features with the key congestion semantic features to obtain a plurality of spliced ​​congestion features to form a congestion feature set, and select a plurality of spliced ​​congestion features with large feature values ​​from the congestion feature set to splice to obtain a congestion result feature;

[0096] Fusion weights are assigned to the congestion result features and each key congestion semantic feature, and the congestion result features are fused with each key congestion semantic feature according to the fusion weights to obtain final prediction features, and congestion detection results are obtained according to the final prediction features, wherein the fusion weight of the congestion result features is greater than the fusion weight of each key congestion semantic feature.

[0097] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0098] In general, various embodiments may be implemented in hardware or dedicated circuits, software, logic, or any combination thereof. Some aspects of the invention may be implemented in hardware, while other aspects may be implemented in firmware or software that may be executed by a controller, microprocessor, or other computing device, but the invention is not limited thereto. Although various aspects of the invention may be shown and described as block diagrams, flow charts, or using some other graphical representation, it should be understood that, as non-limiting examples, the boxes, devices, systems, techniques, or methods described herein may be implemented in hardware, software, firmware, dedicated circuits or logic, general-purpose hardware or controllers or other computing devices, or some combination thereof.

[0099] Embodiments of the present invention may be implemented by computer software that is executable by a data processor of a mobile device, such as in a processor entity, or by hardware, or by a combination of software and hardware. Computer software or programs (also referred to as program products) including software routines, applets and / or macros may be stored in any device-readable data storage medium, and they include program instructions for performing specific tasks. A computer program product may include one or more computer executable components configured to perform an embodiment when the program is run. One or more computer executable components may be at least one software code or a portion thereof. In addition, at this point, it should be noted that, for example, Figure 4 Any block of the logic flow in the program may represent program steps, or interconnected logic circuits, blocks and functions, or a combination of program steps and logic circuits, blocks and functions. The software may be stored on physical media such as memory chips or storage blocks implemented within a processor, magnetic media such as hard disks or floppy disks, and optical media such as, for example, DVDs and their data variants, CDs, etc. Physical media are non-transitory media.

[0100] Those skilled in the art should understand that the technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0101] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A highway toll station congestion detection method based on feature optimization, characterized in that: The following steps are involved: Acquire multiple pre-trained video understanding models, convert each video understanding model into a congestion detection framework using a transfer learning method, and train each congestion detection framework in an unsupervised mode to obtain a congestion detection model, wherein the video understanding model is used to extract all key semantic information in the video, and the congestion detection model is used to extract key congestion semantic information about congestion events at highway toll stations in the video; Acquire a video to be detected, input the video to be detected into each congestion detection framework to obtain a plurality of key semantic features, input the video to be detected into each congestion detection model to obtain a plurality of key congestion semantic features, splice the corresponding key semantic features with the key congestion semantic features to obtain a plurality of spliced ​​congestion features to form a congestion feature set, and select a plurality of spliced ​​congestion features with large feature values ​​from the congestion feature set to splice to obtain a congestion result feature; Fusion weights are assigned to the congestion result features and each key congestion semantic feature, and the congestion result features are fused with each key congestion semantic feature according to the fusion weights to obtain final prediction features, and congestion detection results are obtained according to the final prediction features, wherein the fusion weight of the congestion result features is greater than the fusion weight of each key congestion semantic feature.

2. A highway toll station congestion detection method based on feature optimization according to claim 1, characterized in that: In the step of "training each congestion detection framework in an unsupervised mode to obtain a congestion detection model", a video including a highway toll station is obtained as a training sample. Each congestion detection framework obtains a first feature vector and a second feature vector by extracting features from any two training samples and mapping them to a low-dimensional space. A loss function is constructed based on the similarity between the first feature vector and the second feature vector to train the congestion detection framework to obtain a congestion detection model.

3. A highway toll station congestion detection method based on feature optimization according to claim 2, characterized in that: The feature extraction results of the training samples are mapped to a low-dimensional space through a fully connected layer to obtain the first eigenvector and the second eigenvector.

4. A highway toll station congestion detection method based on feature optimization according to claim 3, characterized in that: In the training process of the congestion detection framework, a gradient update optimization strategy is adopted, and the configuration parameters of the congestion detection framework and the configuration parameters of the fully connected layer are updated in a back-propagation manner.

5. The highway toll station congestion detection method based on feature optimization according to claim 1 is characterized in that: In the step of "joining the corresponding key semantic features with the key congestion semantic features to obtain a plurality of joined congestion features to form a congestion feature set", the corresponding key semantic features are joined with the key congestion semantic features and then linear dimension reduction is performed to obtain a plurality of joined congestion features.

6. A highway toll station congestion detection method based on feature optimization according to claim 5, characterized in that: The linear dimensionality reduction operation is: splicing the corresponding key semantic features with the key congestion semantic features to obtain multiple first splicing results, calculating the feature standard deviation and the feature mean of the multiple first splicing results, calculating each first splicing result based on the feature standard deviation and the feature mean to obtain multiple second splicing results, calculating the covariance matrix based on the multiple second splicing results, and using the covariance matrix to multiply each second splicing result to obtain multiple splicing congestion features.

7. A highway toll station congestion detection device based on feature optimization, characterized in that: include: A migration module is used to obtain multiple pre-trained video understanding models, convert each video understanding model into a congestion detection framework using a migration learning method, and train each congestion detection framework in an unsupervised mode to obtain a congestion detection model, wherein the video understanding model is used to extract all key semantic information in the video, and the congestion detection model is used to extract key congestion semantic information about congestion events at highway toll stations in the video; A feature optimization module is used to obtain a video to be detected, input the video to be detected into each video understanding model to obtain a plurality of key semantic features, input the video to be detected into each congestion detection framework to obtain a plurality of key congestion semantic features, splice the corresponding key semantic features with the key congestion semantic features to obtain a plurality of spliced ​​congestion features to form a congestion feature set, and select a plurality of spliced ​​congestion features with large feature values ​​from the congestion feature set to splice to obtain a congestion result feature; The detection module is used to assign fusion weights to the congestion result features and each key congestion semantic feature, and fuse the congestion result features with each key congestion semantic feature according to the fusion weights to obtain a final prediction feature, and obtain a congestion detection result according to the final prediction feature, wherein the fusion weight of the congestion result feature is greater than the fusion weight of each key congestion semantic feature.

8. An electronic device comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is configured to run the computer program to execute a highway toll station congestion detection method based on feature optimization as described in any one of claims 1-6.

9. A readable storage medium, characterized in that: The readable storage medium stores a computer program, which includes a program code for controlling a process to execute a process, and the process includes a highway toll station congestion detection method based on feature optimization according to any one of claims 1-6.

Citation Information

Patent Citations

  • A congestion index prediction method combining a road network topological structure and semantic association

    CN109636049A

  • Learning type energy management method of hybrid transmission system under commuting road section

    CN116070783A

  • Road traffic jam early warning method and system

    US20220222556A1