A method, device and medium for real-time traffic situation monitoring in a tunnel

By setting up multiple monitoring devices in the tunnel, using preset vehicle trajectory detection models and traffic condition analysis to monitor the traffic situation in the tunnel, the problem of resource waste caused by the large amount of image data in the existing technology is solved, and the problem of waste of resources is realized. Efficient monitoring and safety improvement of tunnel traffic.

CN118522158BActive Publication Date: 2024-09-17JINAN URBAN CONSTR GRP CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411000737.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-09-17
Estimated Expiration
2044-07-25

AI Technical Summary

Technical Problem

In the existing technology, all images in the tunnel are detected to monitor the traffic situation, which results in a large amount of image data and consumes a lot of financial and detection resources.

Method used

By acquiring the vehicle images captured by the monitoring devices at the first and second positions in the tunnel, the preset vehicle trajectory detection model is used to perform trajectory judgment and risk information output, combined with vehicle traffic status analysis, to monitor the traffic situation in the tunnel.

Benefits of technology

It achieves timely monitoring of tunnel traffic conditions, improves prediction accuracy and efficiency, detects and handles traffic problems in a timely manner, and improves the safety and efficiency of tunnel traffic.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118522158B
    Figure CN118522158B
Patent Text Reader

Abstract

The embodiment of the present application discloses a method, device and medium for real-time traffic situation monitoring in a tunnel. It belongs to the field of intelligent traffic control technology and solves the problem of consuming a large amount of detection resources for detecting all images in a tunnel. Multiple target vehicles in the first vehicle image are given a first label; the trajectories of multiple target vehicles in the first vehicle image are judged respectively, and the predicted position images of multiple target vehicles traveling to the second position are output, and the driving risk information of the first vehicle is output; the second vehicle image corresponding to the second position in the tunnel is obtained; the predicted position image is compared with the second vehicle image to analyze the vehicle traffic conditions of the current section of the tunnel, and the driving risk information of the second vehicle is output; based on the vehicle traffic conditions analysis results of the current section of the tunnel, the driving risk information of the first vehicle and the driving risk information of the second vehicle, the traffic situation of the current section of the tunnel is monitored.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent traffic control technology, and in particular to a method, device and medium for real-time traffic situation monitoring in a tunnel. Background Art

[0002] With the rapid advancement of urbanization, tunnels, as an important part of the urban transportation network, are increasingly valued for their efficiency and safety. Traditional tunnel traffic management methods often rely on manual monitoring and patrolling, which is not only inefficient but also difficult to cope with complex traffic conditions. Therefore, using advanced image processing technology and data analysis methods to monitor and predict the traffic situation in tunnels in real time has become a hot topic and trend in current research.

[0003] In tunnel traffic management, monitoring devices play a vital role. By installing monitoring devices at key locations in the tunnel, real-time vehicle image information in the tunnel can be obtained to provide data support for subsequent vehicle identification, trajectory judgment and risk analysis. However, in the prior art, all images in the tunnel are usually detected to monitor the traffic situation in the tunnel. This method requires a large amount of image data to be analyzed, which consumes a lot of financial resources and detection resources. Summary of the invention

[0004] The embodiments of the present application provide a method, device and medium for real-time traffic situation monitoring in a tunnel, which are used to solve the following technical problems: In the prior art, all images in a tunnel are usually detected to monitor the traffic situation in the tunnel. This method requires a large amount of image data to be analyzed, resulting in a large amount of financial resources and detection resources.

[0005] The present application embodiment adopts the following technical solutions:

[0006] The embodiment of the present application provides a method for real-time traffic situation monitoring in a tunnel. The method includes: obtaining a first vehicle image captured by a monitoring device at a first position in the tunnel, and assigning a first number to multiple target vehicles in the first vehicle image; based on a preset vehicle driving trajectory detection model, performing trajectory judgment on multiple target vehicles in the first vehicle image respectively, and outputting a predicted position image of multiple target vehicles driving to a second position, and outputting first vehicle driving risk information based on the first vehicle image and the predicted position image; obtaining a second vehicle image captured by a monitoring device at a second position in the tunnel, wherein the target vehicle exists in the second vehicle image; comparing the predicted position image with the second vehicle image, so as to analyze the vehicle traffic conditions of the current section of the tunnel according to the vehicle numbers with position differences, and outputting the second vehicle driving risk information based on the second vehicle image; based on the vehicle traffic conditions analysis result of the current section of the tunnel, the first vehicle driving risk information and the second vehicle driving risk information, monitoring the traffic situation of the current section of the tunnel.

[0007] The embodiment of the present application ensures timely monitoring of tunnel traffic conditions by acquiring vehicle images in the tunnel in real time. Labeling vehicles facilitates subsequent tracking and analysis of specific vehicles. Using a preset trajectory detection model to determine the trajectory improves the accuracy and efficiency of the prediction. The vehicle image is acquired again by a monitoring device at a second location, and the vehicle's driving trajectory is verified and analyzed to detect the traffic situation in the tunnel based on changes in the vehicle's trajectory. The embodiment of the present application comprehensively evaluates the traffic situation of the current section of the tunnel, including the degree of congestion, potential accident risks, etc., by integrating vehicle driving risk information and vehicle traffic condition analysis results. This allows timely detection and handling of traffic problems, thereby improving the safety and efficiency of tunnel traffic.

[0008] In one implementation of the present application, first vehicle driving risk information is output based on a first vehicle image and a predicted position image, specifically including: obtaining vehicle types and vehicle sizes corresponding to multiple target vehicles respectively; determining first spacings corresponding to multiple target vehicles in the first vehicle image, and determining second spacings corresponding to multiple target vehicles in the predicted position image, and determining the spacing difference between the first spacing and the second spacing; performing weight calculation on the vehicle type, vehicle size and spacing difference to determine the first vehicle driving risk level according to the weight calculation result; and inputting the vehicle type, vehicle size and spacing difference into a first preset vehicle risk prediction model to output the first vehicle risk information; and obtaining the first vehicle driving risk information based on the first vehicle driving risk level and the first vehicle risk information.

[0009] In one implementation of the present application, the predicted position image is compared with the second vehicle image to analyze the vehicle traffic conditions of the current section of the tunnel according to the vehicle number with position difference, specifically including: determining the reference image shooting time period based on the preset vehicle speed corresponding to the current section and the distance between the first position and the second position; performing a similarity comparison between the second vehicle image within the reference image shooting time period and the predicted position image to determine the reference image; comparing the predicted position image with the reference image to determine the vehicle number with position difference; wherein the position difference includes at least one of the missing vehicle number and the vehicle position distance not meeting the preset distance condition; analyzing the vehicle status based on the position difference to determine the vehicle traffic conditions of the current section of the tunnel based on the vehicle status.

[0010] In one implementation of the present application, the vehicle status is analyzed based on the position difference to determine the vehicle traffic condition of the current section of the tunnel based on the vehicle status, specifically including: when the position difference is a missing vehicle number, obtaining vehicle information corresponding to the vehicle with the missing number, and performing a vehicle query in the monitoring system based on the vehicle information; determining the driving status corresponding to the vehicle with the missing number; when the driving status is a stop, detecting the stop time and the stop position, and when it is detected that the stop time is greater than the preset stop time or the stop position is a non-stop area, determining that a congestion condition occurs within a preset range corresponding to the stop position; when the driving status is driving, determining the driving speed, and comparing the driving speed with the driving speed of vehicles around the vehicle with the missing number, and when the driving speed meets the similarity threshold, determining that a congestion condition occurs in the current section.

[0011] In one implementation of the present application, the vehicle status is analyzed based on the position difference to determine the vehicle traffic condition of the current section of the tunnel based on the vehicle status, specifically including: when the position difference is that the vehicle position distance does not meet the preset distance condition, if the lane corresponding to the vehicle changes, based on the vehicle driving monitoring image of the current section of the tunnel, the traffic accident information is detected; if the lane corresponding to the vehicle has not changed, based on the vehicle position distances corresponding to multiple target vehicles in the image, multiple actual vehicle distances are determined; based on the image shooting time, the vehicle driving time is determined, and based on the multiple actual vehicle distances and the vehicle driving time, the congestion information of the current section of the tunnel is determined.

[0012] In one implementation of the present application, outputting second vehicle driving risk information based on the second vehicle image specifically includes: obtaining vehicle types and vehicle sizes corresponding to multiple target vehicles in the second vehicle image; determining third distances corresponding to the multiple target vehicles in the second vehicle image; performing weight calculation on the vehicle type, vehicle size and third distance to determine the second vehicle driving risk level according to the weight calculation result; and, inputting the vehicle type, vehicle size and third distance into a second preset vehicle risk prediction model to output second vehicle risk information; and obtaining second vehicle driving risk information based on the second vehicle driving risk level and the second vehicle risk information.

[0013] In one implementation of the present application, based on the vehicle traffic condition analysis results of the current section of the tunnel, the first vehicle driving risk information and the second vehicle driving risk information, the traffic situation of the current section in the tunnel is monitored, specifically including: based on the vehicle traffic condition analysis results, determining the vehicle collision information and road congestion information corresponding to the current section of the tunnel; inputting the first vehicle driving risk information, the second vehicle driving risk information, the vehicle collision information, the road congestion information and the weather information into a preset dynamic risk assessment model to obtain a risk assessment value corresponding to the current section of the tunnel; comparing the risk assessment value with a preset traffic flow control table to determine the reference traffic flow information corresponding to the risk assessment value; wherein the preset traffic flow control table includes multiple risk assessment values, and also includes traffic flow information corresponding to the multiple risk assessment values; based on the reference traffic flow information, vehicles entering the current section of the tunnel are controlled to complete the monitoring of the traffic situation of the current section in the tunnel.

[0014] In one implementation of the present application, a first vehicle image captured by a monitoring device at a first position in a tunnel is obtained, and a plurality of target vehicles in the first vehicle image are given a first label, specifically including: performing target monitoring on the acquired first vehicle image to extract a vehicle area; performing feature extraction on the extracted vehicle area, and determining a driving direction of the vehicle based on the extracted features; and grouping the vehicles in the first vehicle image based on different driving directions, and sequentially numbering the vehicles in each group.

[0015] The embodiment of the present application provides a real-time traffic situation monitoring device in a tunnel, comprising: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can: obtain a first vehicle image taken by a monitoring device at a first position in the tunnel, and assign a first label to multiple target vehicles in the first vehicle image; based on a preset vehicle driving trajectory detection model, respectively determine the trajectories of multiple target vehicles in the first vehicle image, and output predicted position images of multiple target vehicles driving to a second position, and output first vehicle driving risk information based on the first vehicle image and the predicted position image; obtain a second vehicle image taken by a monitoring device at a second position in the tunnel, wherein the target vehicle exists in the second vehicle image; compare the predicted position image with the second vehicle image to analyze the vehicle traffic condition of the current section of the tunnel according to the vehicle labels with position differences, and output the second vehicle driving risk information based on the second vehicle image; monitor the traffic situation of the current section of the tunnel based on the vehicle traffic condition analysis result of the current section of the tunnel, the first vehicle driving risk information and the second vehicle driving risk information.

[0016] A non-volatile computer storage medium provided by an embodiment of the present application stores computer executable instructions, wherein the computer executable instructions are configured to: obtain a first vehicle image taken by a monitoring device at a first position in a tunnel, and assign a first label to multiple target vehicles in the first vehicle image; based on a preset vehicle driving trajectory detection model, respectively determine the trajectories of multiple target vehicles in the first vehicle image, and output predicted position images of multiple target vehicles driving to a second position, and output first vehicle driving risk information based on the first vehicle image and the predicted position image; obtain a second vehicle image taken by a monitoring device at a second position in the tunnel, wherein the target vehicle exists in the second vehicle image; compare the predicted position image with the second vehicle image to analyze the vehicle traffic condition of the current section of the tunnel according to the vehicle labels with position differences, and output the second vehicle driving risk information based on the second vehicle image; monitor the traffic situation of the current section of the tunnel based on the vehicle traffic condition analysis result of the current section of the tunnel, the first vehicle driving risk information, and the second vehicle driving risk information.

[0017] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects: The embodiments of the present application ensure timely monitoring of tunnel traffic conditions by acquiring vehicle images in the tunnel in real time. Vehicle labeling facilitates subsequent tracking and analysis of specific vehicles. Trajectory judgment is performed using a preset trajectory detection model to improve the accuracy and efficiency of prediction. The vehicle image is acquired again by the monitoring device at the second position, and the vehicle's driving trajectory is verified and analyzed to detect the traffic situation in the tunnel according to the changes in the vehicle trajectory. The embodiments of the present application comprehensively evaluate the traffic situation of the current section of the tunnel, including the degree of congestion, potential accident risks, etc., by integrating vehicle driving risk information and vehicle traffic condition analysis results. This allows timely detection and handling of traffic problems and improves the safety and efficiency of tunnel traffic. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. In the drawings:

[0019] Figure 1 A flow chart of a method for real-time traffic situation monitoring in a tunnel provided in an embodiment of the present application;

[0020] Figure 2 A schematic diagram of the structure of a real-time traffic situation monitoring device in a tunnel provided in an embodiment of the present application.

[0021] Reference numerals:

[0022] 200: real-time traffic situation monitoring equipment in a tunnel, 201: processor, 202: memory. DETAILED DESCRIPTION

[0023] The embodiments of the present application provide a method, device and medium for real-time traffic situation monitoring in a tunnel.

[0024] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0025] The technical solution proposed in the embodiment of the present invention is described in detail below with reference to the accompanying drawings.

[0026] Figure 1 A flow chart of a method for real-time traffic situation monitoring in a tunnel provided in an embodiment of the present application. Figure 1 As shown, the real-time traffic situation monitoring method in a tunnel includes the following steps:

[0027] Step 101: obtain a first vehicle image captured by a monitoring device at a first position in a tunnel, and assign first numbers to a plurality of target vehicles in the first vehicle image.

[0028] In one embodiment of the present application, the acquired first vehicle image is subjected to target monitoring to extract a vehicle region. Feature extraction is performed on the extracted vehicle region, and a driving direction of the vehicle is determined based on the extracted features. Vehicles in the first vehicle image are grouped based on different driving directions, and the vehicles in each group are sequentially numbered.

[0029] Specifically, a target detection algorithm is used to detect vehicle targets in the first vehicle image, and features are extracted for each detected vehicle area. For example, for each detected vehicle area, a CNN (Convolutional Neural Networks) model is used to extract feature vectors of the vehicle. These feature vectors contain key information such as the shape, size, and color of the vehicle.

[0030] Furthermore, based on the extracted features, classifiers such as random forests and neural networks are used to determine the direction of the vehicle. The vehicles are grouped according to their directions, and the vehicles in the same group have the same direction of travel. Within each group, the vehicles are sequentially numbered according to their locations, such as the distance from the tunnel entrance, the location in the image, etc., where the numbers can be consecutive integers starting from 1, or can be unique identifiers generated according to specific rules (such as license plate numbers).

[0031] Step 102: Based on a preset vehicle driving trajectory detection model, the trajectories of multiple target vehicles in the first vehicle image are judged respectively, and predicted position images of the multiple target vehicles driving to the second position are output, and the driving risk information of the first vehicle is output based on the first vehicle image and the predicted position image.

[0032] In one embodiment of the present application, the training process of the preset vehicle driving trajectory detection model is to take multiple vehicle image sample sets as input, take the predicted position image sample sets corresponding to the multiple vehicle image sets as output, and train the preset neural network model to obtain the preset vehicle driving trajectory detection model.

[0033] Furthermore, the captured first vehicle image is input into the preset vehicle driving trajectory detection model, so as to output predicted position images of multiple target vehicles driving to the second position through the model.

[0034] In one embodiment of the present application, vehicle types and vehicle sizes corresponding to multiple target vehicles are obtained. A first spacing corresponding to multiple target vehicles in a first vehicle image is determined, and a second spacing corresponding to multiple target vehicles in a predicted position image is determined, and the spacing difference between the first spacing and the second spacing is determined. A weight calculation is performed on the vehicle type, vehicle size, and spacing difference to determine the first vehicle driving risk level according to the weight calculation result. And, the vehicle type, vehicle size, and spacing difference are input into a first preset vehicle risk prediction model, and the first vehicle risk information is output. Based on the first vehicle driving risk level and the first vehicle risk information, the first vehicle driving risk information is obtained.

[0035] Specifically, in the target detection stage, in addition to obtaining the vehicle's bounding box and position information, it is also necessary to determine the vehicle type of each target vehicle, such as a car, truck, bus, etc. Secondly, the size of the vehicle can be determined by the size of the vehicle's bounding box, or the size of different types of vehicles can be obtained based on the size information in a predefined vehicle type database.

[0036] Furthermore, in the first vehicle image, the distance between two adjacent vehicle boundary boxes is measured to calculate the distance between adjacent target vehicles, i.e., the first distance. In the predicted position image, the distance between adjacent target vehicles at the predicted position is also calculated, i.e., the second distance. The difference between the first distance and the second distance is determined. If the difference is negative, it means that the distance between the vehicles is decreasing, indicating a potential collision risk; if the difference is positive, it means that the distance between the vehicles is increasing, indicating that the risk may be decreasing.

[0037] Furthermore, a weight is assigned to each factor according to the vehicle type, vehicle size, and spacing difference, and the weight of each factor is multiplied by its corresponding value and summed to obtain a comprehensive risk score. According to the risk score, the driving risk level of the first vehicle is determined, such as low risk, medium risk, and high risk.

[0038] The embodiment of the present application is provided with a first vehicle risk prediction model, and the training process of the vehicle risk prediction model is to take a vehicle state information sample as input, and a vehicle risk information sample corresponding to the vehicle state information sample as output, and train a preset neural network model to obtain the first vehicle risk prediction model. The vehicle state information sample includes the vehicle type, vehicle size, and the distance between the vehicle in the first vehicle image and the predicted position image, and the vehicle risk information sample includes the type of traffic accident that the vehicle has, the level of the traffic accident, and the risk probability of the traffic accident.

[0039] Furthermore, the vehicle type, vehicle size and spacing difference are taken as input and passed to a pre-trained vehicle risk prediction model, and the model outputs risk information of the first vehicle, including risk type, risk level, probability of risk occurrence, etc.

[0040] For example, in the first vehicle image, a car and a truck are detected driving next to each other, and the first distance between them is calculated to be 10 meters. Based on the preset vehicle driving trajectory detection model, it is obtained that in the predicted position image, the second distance between the two vehicles is 8 meters, and the distance difference is -2 meters, indicating that the distance is shrinking. The vehicle type of car and truck, vehicle size and distance difference of -2 meters are input into the first preset vehicle risk prediction model, and the model outputs the risk information of the first vehicle, including the collision risk type of "rear-end collision", the risk level of "medium", and the probability of risk occurrence of 30%. The complete driving risk information of the first vehicle is obtained through the first vehicle driving risk level and the first vehicle risk information.

[0041] Step 103: Acquire a second vehicle image captured by a monitoring device at a second position in the tunnel, wherein the target vehicle exists in the second vehicle image.

[0042] In one embodiment of the present application, the second position is determined based on factors such as the length of the tunnel, traffic flow, and safety requirements. Assuming that the tunnel length is 1 kilometer and the traffic flow is large, to ensure driving safety, the second position can be a device at 500 meters in the middle of the tunnel, so that the current tunnel can be photographed by the monitoring device at the second position.

[0043] Furthermore, the received second vehicle image is identified and processed, and an image processing technique or a target detection algorithm is used to identify a target vehicle in the image.

[0044] Step 104: compare the predicted position image with the second vehicle image to analyze the vehicle traffic conditions of the current section of the tunnel according to the vehicle numbers with position differences, and output the second vehicle travel risk information based on the second vehicle image.

[0045] In one embodiment of the present application, the reference image shooting time period is determined based on the preset vehicle speed corresponding to the current road section and the distance between the first position and the second position. The second vehicle image within the reference image shooting time period is compared with the predicted position image for similarity to determine the reference image. The predicted position image is compared with the reference image to determine the vehicle number with a position difference; wherein the position difference includes at least one of the missing vehicle number and the vehicle position distance not meeting the preset distance condition. The vehicle state is analyzed based on the position difference to determine the vehicle traffic condition of the current section of the tunnel based on the vehicle state.

[0046] Specifically, based on the speed limit, traffic flow, road conditions and other factors of the road section, the preset speed corresponding to the current road section is determined, as well as the distance between the first position and the second position. The time required to travel from the first position to the second position is calculated by the distance and the preset speed, and the reference image shooting time period is determined by the calculated time. For example, the preset speed of the current road section is 60km / h, the distance between the first position and the second position is 1km, and the calculated required time is about 1 minute. Therefore, the reference image shooting time period can be set to a period of time before and after 1 minute after the monitoring device at the first position starts shooting images.

[0047] Furthermore, during the reference image shooting time period, all second vehicle images shot by the second position monitoring device are obtained, and these second vehicle images are compared with the predicted position image using an image similarity comparison algorithm, and the second vehicle image with the highest similarity to the predicted position image is used as the reference image.

[0048] Furthermore, the vehicles in the predicted position image and the reference image are numbered and tracked, and the vehicle numbers in the two images are compared one by one to determine whether there are any missing vehicle numbers or the position distance does not meet the preset distance conditions. For example, in the predicted position image, 5 vehicles are numbered and tracked, and in the reference image, 5 vehicles are also found, but the vehicle numbers and positions are not completely consistent with the predicted position image. For example, 1 vehicle is missing in the reference image (i.e., there is no vehicle with the corresponding number), and the position distance of the other 2 vehicles exceeds the preset distance condition. According to the position difference in the comparison result, the vehicle status and the vehicle traffic conditions of the current section of the tunnel are analyzed.

[0049] In one embodiment of the present application, when the position difference is a missing vehicle number, the vehicle information corresponding to the vehicle with the missing number is obtained, and a vehicle query is performed in the monitoring system based on the vehicle information. The driving status corresponding to the vehicle with the missing number is determined. When the driving status is parked, the parking time and the parking position are detected. When it is detected that the parking time is greater than the preset parking time or the parking position is a non-parking area, it is determined that congestion occurs within the preset range corresponding to the parking position. When the driving status is driving, the driving speed is determined, and the driving speed is compared with the driving speed of the vehicles around the vehicle with the missing number. When the driving speed meets the similarity threshold, it is determined that congestion occurs in the current road section.

[0050] Specifically, identify the situation where the vehicle number is missing and obtain the vehicle information of the missing number. Use the acquired vehicle information (such as the license plate number) to query in the monitoring system, and judge the driving status of the vehicle based on the query results and the traffic conditions of the current road section. If the vehicle is in a parked state, start detecting its parking time and parking position, use the timestamp and historical data of the monitoring system to determine the parking time, compare the parking position with the preset legal parking area, and determine whether it is a non-parking area. If the parking time is greater than the preset parking time or the parking position is a non-parking area, detect the driving conditions of vehicles within the preset range of the parking position (such as within a certain distance before and after). If the vehicles in this range are moving slowly or stagnant, it is determined that congestion has occurred.

[0051] Furthermore, if the vehicle is in motion, its speed is determined and compared with the speeds of surrounding vehicles. If the speed of the vehicle is similar to that of other vehicles and is significantly lower than the normal speed, it is determined that congestion may occur on the current road section.

[0052] In one embodiment of the present application, when the position difference is that the vehicle position distance does not meet the preset distance condition, if the lane corresponding to the vehicle changes, the traffic accident information is detected based on the vehicle driving monitoring image of the current section of the tunnel. If the lane corresponding to the vehicle does not change, multiple actual vehicle distances are determined based on the vehicle position distances corresponding to multiple target vehicles in the image. Based on the image shooting time, the vehicle driving time is determined, and based on the multiple actual vehicle distances and the vehicle driving time, the congestion information of the current section of the tunnel is determined.

[0053] Specifically, first, identify the vehicle whose position distance does not meet the preset distance condition, then compare the position of the vehicle in the first vehicle image and the second vehicle image to determine whether its lane has changed. If the lane has changed, the vehicle has changed lanes, changed lanes, or driven abnormally. If it is detected that the vehicle's lane has changed, the vehicle driving monitoring image of the current section of the tunnel is detected to determine whether the brake lights are on and whether there are signs of vehicle collision, so as to detect traffic accident information.

[0054] Furthermore, if the vehicle's lane has not changed but the position distance does not meet the preset distance condition, multiple actual vehicle distances are determined based on the vehicle position distances corresponding to the multiple target vehicles in the image. The vehicle driving time is determined based on the time when the image was taken.

[0055] For example, suppose vehicle A was photographed at 10 a.m. in the first image and at 10:10 a.m. in the second image. Assuming the distance is 500 meters, the driving time of vehicle A is 10 minutes. Based on multiple actual vehicle distances and vehicle driving times, the average speed and speed distribution of the vehicle are calculated. If the average speed is much lower than the normal speed, or there are a large number of low-speed vehicles in the speed distribution, it is determined that the current section of the tunnel is congested. Average speed = actual driving distance / driving time = 500 meters / 10 minutes = 3 km / h, which is obviously much lower than the normal driving speed. Then, the average speed and speed distribution of all vehicles are calculated. If the average speed is much lower than the normal speed (for example, the normal driving speed in the tunnel should be 60-80 km / h), or there are a large number of low-speed vehicles in the speed distribution (for example, most vehicles have a speed lower than 40 km / h), it can be determined that the current section of the tunnel is congested.

[0056] In one embodiment of the present application, vehicle types and vehicle sizes corresponding to multiple target vehicles in the second vehicle image are obtained. A third distance corresponding to the multiple target vehicles in the second vehicle image is determined. A weight calculation is performed on the vehicle type, vehicle size, and third distance to determine the second vehicle driving risk level according to the weight calculation result. And, the vehicle type, vehicle size, and third distance are input into a second preset vehicle risk prediction model to output second vehicle risk information. Based on the second vehicle driving risk level and the second vehicle risk information, the second vehicle driving risk information is obtained.

[0057] Specifically, the target detection algorithm is used to process the second vehicle image, and multiple target vehicles in the image are identified. For each target vehicle, its vehicle type (such as a car, truck, bus, etc.) and vehicle size are determined. The relative positions between the target vehicles are calculated, and the actual distance between the target vehicles (i.e., the third distance) is determined based on the relative positions and the scale of the image. Assume that the scale of the image is that every 100 pixels represents 1 meter in reality. Through calculation, the pixel distance between the car and the truck is 500 pixels, so the actual distance between them is 5 meters.

[0058] Furthermore, based on historical data and expert experience, a weight value is set for each factor (vehicle type, vehicle size, third distance), and a comprehensive score is calculated based on the vehicle type, vehicle size and third distance of the target vehicle, as well as their respective weight values. The vehicle type, vehicle size and third distance of the target vehicle are used as inputs to the second preset vehicle risk prediction model, and the model outputs vehicle risk information such as risk level, risk type, etc. based on the input data. Combined with the result of the weight calculation and the output of the second preset vehicle risk prediction model, the driving risk of the second vehicle is comprehensively evaluated. According to actual needs, one or more risk thresholds can be set to divide the driving risk of the second vehicle into different levels (such as low risk, medium risk, high risk, etc.), and finally, a comprehensive report containing the driving risk level and specific risk information of the second vehicle is obtained.

[0059] Specifically, in the embodiment of the present application, the vehicle type weight is w1, the vehicle size weight is w2, and the third distance weight is w3.

[0060] Comprehensive score = w1 × vehicle type value + w2 × vehicle size value + w3 × third distance.

[0061] Furthermore, the embodiment of the present application is also provided with a second vehicle risk prediction model, and the training process of the second vehicle risk prediction model is: taking a vehicle state information sample as input, taking a vehicle risk information sample corresponding to the vehicle state information sample as output, and training a preset neural network model to obtain the second vehicle risk prediction model. The vehicle state information sample includes the vehicle type, vehicle size, and the actual vehicle distance corresponding to the vehicle in the second vehicle image, and the vehicle risk information sample includes the type of traffic accident that the vehicle has, the level of the traffic accident, and the risk probability of the traffic accident.

[0062] Further, assume that the vehicle type weight w1=0.3, the vehicle size weight w2=0.4, and the third distance weight w3=0.3. Vehicle type: sedan = 2 (assuming sedan is the base type), truck = 3 (assuming truck has a slightly higher risk), bus = 4 (assuming bus has a higher risk); Vehicle size: Use vehicle length as the score, using normalized values, such as sedan = 0.5, truck = 1.0, bus = 1.5; Third distance: Use the ratio of the actual distance to the minimum safe distance assumed to be 5 meters as the score, for example, if the actual distance is 10 meters, then the score = 10 / 5 = 2. Assume that the second vehicle risk prediction model outputs a risk score ranging from 0 to 10, where 0 indicates no risk and 10 indicates extremely high risk. The model outputs a risk score of 6, and the risk information includes the collision risk type of "rear-end collision", the risk level of "medium", and the probability of risk occurrence of 30%. Assume the vehicle is a truck, its length is 10 meters (normalized score is 1.0, and the actual distance to the vehicle in front is 8 meters (score is 8 / 5 = 1.6).

[0063] The comprehensive score = 0.3×3+0.4×1.0+0.3×1.6=0.9+0.4+0.48=1.78. By comparing the calculated comprehensive score with the preset score table, it can be obtained that the risk level corresponding to 1.78 is "medium risk". Based on the output results obtained by the second vehicle risk prediction model, it can be known that the collision risk type is "rear-end collision", the risk level is "medium", and the probability of risk occurrence is 30%.

[0064] Step 105: Based on the vehicle traffic condition analysis result of the current section of the tunnel, the first vehicle driving risk information and the second vehicle driving risk information, the traffic situation of the current section in the tunnel is monitored.

[0065] In one embodiment of the present application, based on the vehicle traffic condition analysis results, the vehicle collision information and road congestion information corresponding to the current section of the tunnel are determined. The first vehicle driving risk information, vehicle collision information, road congestion information and weather information are input into a preset dynamic risk assessment model to obtain a risk assessment value corresponding to the current section of the tunnel. The risk assessment value is compared with the preset traffic flow control table to determine the reference traffic flow information corresponding to the risk assessment value; wherein the preset traffic flow control table includes multiple risk assessment values, and also includes traffic flow information corresponding to multiple risk assessment values. Vehicles entering the current section of the tunnel are controlled based on the reference traffic flow information to complete the monitoring of the traffic situation in the current section of the tunnel.

[0066] Specifically, the embodiment of the present application is provided with a preset dynamic risk assessment model, and the training process of the preset dynamic risk assessment model is: taking the historical vehicle traffic condition analysis results, the historical first vehicle driving risk information and the historical second vehicle driving risk information as input samples, and taking the historical risk assessment values ​​corresponding to the input samples as output, training the preset neural network model, and obtaining the preset dynamic risk assessment model.

[0067] Specifically, the vehicle collision information and road congestion information corresponding to the current section of the tunnel are determined by analyzing the vehicle traffic conditions. The first vehicle driving risk information and the second vehicle driving risk information, such as the determined risk level and specific risk information, as well as the vehicle collision information, road congestion information and weather information, are input into a preset dynamic risk assessment model. The dynamic risk assessment model calculates based on the input information and outputs a risk assessment value. This value is usually a numerical value, which represents the comprehensive risk level of the current tunnel section. The risk assessment value closest to or equal to the risk assessment value is searched in the preset traffic flow control table, and the traffic flow information corresponding to the risk assessment value is obtained from the table, which usually includes the recommended maximum traffic flow, minimum traffic flow, etc. According to the reference traffic flow information, a specific vehicle control strategy is formulated, such as speed limit, limiting the number of vehicles entering the tunnel, etc. The control strategy is conveyed to the driver through traffic lights, road signs, broadcasts, etc., and the vehicles entering the current section of the tunnel are actually controlled to complete the monitoring of the traffic situation of the current section in the tunnel.

[0068] Figure 2 This is a schematic diagram of the structure of a real-time traffic situation monitoring device in a tunnel provided in an embodiment of the present application. Figure 2As shown, the real-time traffic situation monitoring device 200 in the tunnel includes: at least one processor 201; and a memory 202 in communication with the at least one processor 201; wherein the memory 202 stores instructions that can be executed by the at least one processor 201, and the instructions are executed by the at least one processor 201, so that the at least one processor 201 can: obtain a first vehicle image taken by a monitoring device at a first position in the tunnel, and give a first label to multiple target vehicles in the first vehicle image; based on a preset vehicle driving trajectory detection model, respectively judge the trajectories of the multiple target vehicles in the first vehicle image, and output multiple target vehicle driving trajectory detection models. Drive to the predicted position image of the second position, and output the driving risk information of the first vehicle based on the first vehicle image and the predicted position image; obtain the second vehicle image taken by the monitoring device at the second position in the tunnel, wherein the target vehicle exists in the second vehicle image; compare the predicted position image with the second vehicle image to analyze the vehicle traffic condition of the current section of the tunnel according to the vehicle numbers with position differences, and output the driving risk information of the second vehicle based on the second vehicle image; monitor the traffic situation of the current section of the tunnel based on the vehicle traffic condition analysis result of the current section of the tunnel, the first vehicle driving risk information and the second vehicle driving risk information.

[0069] The embodiment of the present application also provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to: obtain a first vehicle image taken by a monitoring device at a first position in a tunnel, and assign a first label to multiple target vehicles in the first vehicle image; based on a preset vehicle driving trajectory detection model, respectively determine the trajectories of multiple target vehicles in the first vehicle image, and output predicted position images of multiple target vehicles driving to a second position, and output first vehicle driving risk information based on the first vehicle image and the predicted position image; obtain a second vehicle image taken by a monitoring device at a second position in the tunnel, wherein the target vehicle exists in the second vehicle image; compare the predicted position image with the second vehicle image to analyze the vehicle traffic condition of the current section of the tunnel according to the vehicle labels with position differences, and output the second vehicle driving risk information based on the second vehicle image; monitor the traffic situation of the current section of the tunnel based on the vehicle traffic condition analysis result of the current section of the tunnel, the first vehicle driving risk information, and the second vehicle driving risk information.

[0070] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0071] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the embodiments of the present application may have various modifications and variations. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application.

Claims

1. A method for real-time traffic situation monitoring in a tunnel, characterized in that: The method comprises: Acquire a first vehicle image captured by a monitoring device at a first position in the tunnel, and assign first numbers to a plurality of target vehicles in the first vehicle image; Based on a preset vehicle driving trajectory detection model, the trajectories of multiple target vehicles in the first vehicle image are judged respectively, and predicted position images of the multiple target vehicles driving to a second position are output, and the first vehicle driving risk information is output based on the first vehicle image and the predicted position image; Acquire a second vehicle image captured by a monitoring device at a second position in the tunnel; wherein the target vehicle exists in the second vehicle image; Comparing the predicted position image with the second vehicle image, analyzing the vehicle traffic conditions of the current section of the tunnel according to the vehicle numbers with position differences, and outputting the second vehicle travel risk information based on the second vehicle image; Based on the vehicle traffic condition analysis result of the current section of the tunnel, the first vehicle driving risk information and the second vehicle driving risk information, the traffic situation of the current section in the tunnel is monitored.

2. A method for real-time traffic situation monitoring in a tunnel according to claim 1, characterized in that: The outputting the first vehicle travel risk information based on the first vehicle image and the predicted position image specifically includes: Obtaining vehicle types and vehicle sizes corresponding to a plurality of target vehicles respectively; Determine a first spacing corresponding to a plurality of the target vehicles in the first vehicle image, and determine a second spacing corresponding to a plurality of the target vehicles in the predicted position image, and determine a spacing difference between the first spacing and the second spacing; Performing weight calculation on the vehicle type, the vehicle size, and the distance difference, so as to determine a first vehicle driving risk level according to the weight calculation result; And, inputting the vehicle type, the vehicle size and the distance difference into a first preset vehicle risk prediction model, and outputting first vehicle risk information; The first vehicle driving risk information is obtained based on the first vehicle driving risk level and the first vehicle risk information.

3. A method for real-time traffic situation monitoring in a tunnel according to claim 1, characterized in that: The comparing the predicted position image with the second vehicle image to analyze the vehicle traffic conditions of the current section of the tunnel according to the vehicle numbers with position differences specifically includes: Determining a reference image shooting time period based on a preset vehicle speed corresponding to a current road section and a distance between the first position and the second position; Performing a similarity comparison between a second vehicle image within a shooting time period of the reference image and the predicted position image to determine a reference image; Comparing the predicted position image with the reference image to determine the vehicle number with position difference; wherein the position difference includes at least one of the missing vehicle number and the vehicle position distance not meeting the preset distance condition; The vehicle state is analyzed based on the position difference to determine the vehicle traffic condition of the current section of the tunnel based on the vehicle state.

4. A method for real-time traffic situation monitoring in a tunnel according to claim 3, characterized in that: The analyzing the vehicle state based on the position difference to determine the vehicle traffic condition of the current section of the tunnel based on the vehicle state specifically includes: In the case where the position difference is a missing vehicle number, obtaining vehicle information corresponding to the vehicle with the missing number, and performing a vehicle query in the monitoring system based on the vehicle information; Determining the driving status corresponding to the vehicle with the missing number; When the driving state is a stop, the stop duration and the stop position are detected, and when it is detected that the stop duration is greater than a preset stop duration or the stop position is a non-stop area, it is determined that congestion occurs within a preset range corresponding to the stop position; When the driving state is driving, the driving speed is determined and compared with the driving speeds of vehicles around the vehicle with the missing number. When the driving speed meets the similarity threshold, it is determined that congestion occurs on the current road section.

5. A method for real-time traffic situation monitoring in a tunnel according to claim 3, characterized in that: The analyzing the vehicle state based on the position difference to determine the vehicle traffic condition of the current section of the tunnel based on the vehicle state specifically includes: In the case where the position difference means that the vehicle position distance does not meet the preset distance condition, if the lane corresponding to the vehicle changes, traffic accident information is detected based on the vehicle driving monitoring image of the current section of the tunnel; If the lane corresponding to the vehicle has not changed, determining multiple actual vehicle distances based on the vehicle position distances respectively corresponding to multiple target vehicles in the image; The vehicle driving time is determined based on the image shooting time, and the congestion information of the current section of the tunnel is determined based on the multiple actual vehicle distances and the vehicle driving time.

6. A method for real-time traffic situation monitoring in a tunnel according to claim 1, characterized in that: The outputting the second vehicle driving risk information based on the second vehicle image specifically includes: Acquire vehicle types and vehicle sizes respectively corresponding to the plurality of target vehicles in the second vehicle image; Determining a third distance corresponding to a plurality of the target vehicles in the second vehicle image; performing weight calculation on the vehicle type, the vehicle size, and the third distance, so as to determine the second vehicle driving risk level according to the weight calculation result; and, inputting the vehicle type, the vehicle size, and the third distance into a second preset vehicle risk prediction model, and outputting second vehicle risk information; The second vehicle driving risk information is obtained based on the second vehicle driving risk level and the second vehicle risk information.

7. A method for real-time traffic situation monitoring in a tunnel according to claim 1, characterized in that: The monitoring of the traffic situation of the current section in the tunnel based on the vehicle traffic condition analysis result of the current section of the tunnel, the first vehicle driving risk information and the second vehicle driving risk information specifically includes: Based on the vehicle traffic condition analysis result, determining the vehicle collision information and road congestion information corresponding to the current section of the tunnel; Inputting the first vehicle driving risk information, the second vehicle driving risk information, the vehicle collision information, the road congestion information and the weather information into a preset dynamic risk assessment model to obtain a risk assessment value corresponding to the current section of the tunnel; Comparing the risk assessment value with a preset traffic flow control table to determine reference traffic flow information corresponding to the risk assessment value; wherein the preset traffic flow control table includes a plurality of risk assessment values ​​and also includes traffic flow information corresponding to the plurality of risk assessment values; The vehicles entering the current section of the tunnel are regulated based on the reference vehicle flow information to complete the monitoring of the traffic situation of the current section in the tunnel.

8. A method for real-time traffic situation monitoring in a tunnel according to claim 1, characterized in that: The obtaining of a first vehicle image captured by a monitoring device at a first position in the tunnel and first labeling of a plurality of target vehicles in the first vehicle image specifically includes: Performing target monitoring on the acquired first vehicle image to extract a vehicle area; Performing feature extraction on the extracted vehicle area, and determining the driving direction of the vehicle based on the extracted features; The vehicles in the first vehicle image are grouped based on different driving directions, and the vehicles in each group are numbered sequentially.

9. A real-time traffic situation monitoring device in a tunnel, characterized in that: The device comprises a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the device is triggered to execute the method according to any one of claims 1 to 8.

10. A non-volatile computer storage medium storing computer executable instructions, characterized in that: The computer executable instructions can execute the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Road tunnel traffic risk early warning system based on vehicle operation monitoring

    CN108376473A

  • Traffic safety early warning method and equipment based on tunnel

    CN114822044A

  • Tunnel safety management method and device based on radar and video, equipment and medium

    CN116168531A

  • KR20240081722A