Image processing method and system for traffic management

By collecting time-series images at traffic monitoring points and using the CNN-LSTM model to predict traffic status, it solves the problem of being unable to control the future time-series status of traffic roads in existing technology, achieves accurate prediction and early warning of traffic status, and supports advance planning of traffic management. and early warning.

CN114219970BActive Publication Date: 2024-10-29QINGHAI UNIV FOR NATITIES
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111488474.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-07
Publication Date
2024-10-29
Estimated Expiration
2041-12-07

AI Technical Summary

Technical Problem

The existing technology cannot fully control the traffic status of traffic roads in the future time sequence, and it is difficult to carry out advance planning or early warning of traffic roads.

Method used

By collecting time-series images of the entrance and exit of the road section at traffic monitoring points, the CNN-LSTM prediction model is used to train the outgoing traffic image prediction model to predict the traffic status of the future time series, and based on the image similarity and the monitoring threshold comparison, the traffic status is realized forecasts and warnings.

Benefits of technology

It achieves accurate prediction of traffic status, supports traffic warning and advance planning, and improves the efficiency and safety of traffic management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114219970B_ABST
    Figure CN114219970B_ABST
Patent Text Reader

Abstract

The present invention discloses an image processing method and system for traffic management, comprising the following steps: step S1, forming an incoming traffic time sequence image and an outgoing traffic time sequence image; step S2, intercepting a continuous time sequence of outgoing traffic real images from the outgoing traffic time sequence image as a training time sequence sample; step S3, using the training time sequence sample to train a CNN-LSTM prediction model to obtain an outgoing traffic image prediction model at the exit of a road section; and step S4, obtaining the traffic status of a target road section at a future time sequence. The present invention uses a CNN-LSTM prediction model to obtain an outgoing traffic image prediction model at the exit of a road section, compares the image similarity of the outgoing traffic prediction image with the incoming traffic real image at a corresponding future time sequence with a monitoring threshold, and obtains the traffic status of the target road section at a future time sequence, so as to realize the prediction of the traffic status of the target road section, which can facilitate the subsequent traffic warning for the target road section or advance planning for the target road section.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of traffic management, and in particular to an image processing method and system for traffic management. Background Art

[0002] Intelligent Traffic System (ITS), also known as Intelligent Transportation System, effectively and comprehensively applies advanced science and technology (information technology, computer technology, data communication technology, sensor technology, electronic control technology, automatic control theory, operations research, artificial intelligence, etc.) to transportation, service control and vehicle manufacturing, strengthens the connection between vehicles, roads and users, and thus forms a comprehensive transportation system that ensures safety, improves efficiency, improves the environment and saves energy.

[0003] The prior art CN202011314742.3 discloses a road traffic tracking management method and system based on big data image acquisition, including: obtaining massive traffic road images, and converting the traffic road images into grayscale images using a grayscale image conversion method; binarizing the grayscale images using a local maximum inter-class variance method to obtain a binary traffic road image; defogging the binary traffic road image using a morphology-based defogging algorithm to obtain a defogged traffic road image; performing edge filtering on the defogged traffic road image using an edge filter to obtain an edge image; and identifying the lane lines in the edge image using a lane line recognition algorithm based on the optimal gradient direction and interpolation algorithm to achieve traffic road recognition and tracking.

[0004] Although the above-mentioned existing technologies can realize the identification and tracking of traffic roads, there are still certain shortcomings, including the intelligent real-time local identification and tracking of traffic roads, and the inability to achieve comprehensive control of the traffic status of traffic roads in the future time sequence, making it difficult to carry out advance planning or early warning of traffic roads. Summary of the invention

[0005] The purpose of the present invention is to provide an image processing method and system for traffic management, so as to solve the technical problem that the prior art cannot achieve comprehensive control of the traffic status of traffic roads in the future time sequence, and it is difficult to carry out advance planning or early warning of traffic roads.

[0006] In order to solve the above technical problems, the present invention specifically provides the following technical solutions:

[0007] An image processing method for traffic management comprises the following steps:

[0008] Step S1, setting traffic monitoring points at the section entrance and the section exit of the target section, and using the traffic monitoring points to collect the real image of the incoming traffic and the real image of the outgoing traffic at the section entrance and the section exit in each time sequence, and then arranging them in time sequence to form the time sequence image of the incoming traffic and the time sequence image of the outgoing traffic respectively;

[0009] Step S2, marking an abnormal exit traffic real image representing that the target road section is in an abnormal traffic state in the exit traffic time-series image, and intercepting a continuous time-series of exit traffic real images in the exit traffic time-series image as a training time-series sample, wherein the training time-series sample includes a positive sample and a negative sample, wherein the positive sample represents a normal exit traffic real image with the target road section in a normal traffic state, and the negative sample represents an abnormal exit traffic real image with the target road section in an abnormal traffic state;

[0010] Step S3, using the training time series samples to train the CNN-LSTM prediction model to obtain an exit traffic image prediction model for the road section exit, wherein the exit traffic image prediction model is used to predict the exit traffic prediction image of the road section exit in the future time series;

[0011] Step S4, calculate the image similarity between the outgoing traffic time sequence image and the incoming traffic time sequence image at the corresponding time sequence to obtain the image relationship curve between the outgoing and incoming ends, and obtain the monitoring threshold for distinguishing whether the target road section is in a normal traffic state and an abnormal traffic state based on the image relationship curve, compare the image similarity between the outgoing traffic prediction image and the incoming traffic real image at the corresponding future time sequence with the monitoring threshold to obtain the traffic state of the target road section at the future time sequence, so as to realize the prediction of the traffic state of the target road section.

[0012] As a preferred solution of the present invention, in step S1, the timing of collecting the real traffic image at the exit end of the road section lags behind the timing of collecting the real traffic image at the entrance end of the road section by a timing interval Δt, and the timing interval Δt is the standard travel time required for traffic vehicles to pass from the entrance end of the road section to the exit end of the road section, wherein the real traffic image at the entrance end is characterized by the traffic scene formed by traffic vehicles at the entrance end of the road section, and the real traffic image at the exit end is characterized by the traffic scene formed by traffic vehicles at the exit end of the road section, so as to judge the travel result of traffic vehicles from the entrance end of the road section to the exit end of the road section in the standard travel time by comparing the image similarity of the real traffic image at the exit end and the real traffic image at the entrance end, and then judge the traffic state of the target road section according to the travel result, and the time-series image of the traffic at the entrance end is The time sequence of collecting real traffic images from the entrance to the entrance of the road section is {t i |i∈[1,n]}, the outbound traffic time sequence image is The time sequence of the real traffic image acquisition from the exit to the exit of the road section is {T i |i∈[1,n]}, T i =t i +Δt, n is the total number of time series, Represented as time series t i The real image of the incoming traffic, Characterized by the time series T i The real image of the outbound traffic on .

[0013] As a preferred solution of the present invention, in step S2, the method for marking the real image of abnormal exit traffic includes:

[0014] The outbound traffic time sequence image Each time series T i The real outbound traffic image on the target road is marked according to the traffic status of the target road section, where

[0015] If the target section is at time sequence T i If the traffic status is abnormal, the real traffic image of the outgoing end will be Real images of traffic at the exit marked as abnormal;

[0016] If the target section is at time sequence T i If the traffic status is normal, the real traffic image of the outgoing end will be Marked as normal outbound traffic real image.

[0017] As a preferred solution of the present invention, in step S2, the selection ratio of positive samples and negative samples contained in the training time series samples is consistent with the ratio of the number of all abnormal exit traffic real images to all normal exit traffic real images in the exit traffic time series image to ensure the balance of sample selection.

[0018] As a preferred solution of the present invention, in step S3, the method for constructing the outbound traffic image prediction model includes:

[0019] Step S301: The training time series samples are Input CNN convolutional neural network to extract image features and output image feature sequence, wherein the training parameter settings of the CNN convolutional neural network include: network filter is set to 64, activation function is set to Relu function, pooling process is set to max-poling mode, dropout probability is set to 0.25, is the timing T j The training samples on the time series T j The real outbound traffic image on the , N is the total training time series;

[0020] Step S302: input the image feature sequence into the LSTM long short-term memory network for time series prediction training, and output the outbound traffic prediction image on the training time series, wherein the training parameter settings of the LSTM long short-term memory network include: the network layer timestep is set to the number of feature categories of the image feature sequence, the training mode is set to the reverse transfer mode of seq2seq, and the error is set to N is the total training time sequence, is the timing T j The training samples on the time series T j The real image of the outbound traffic on Output time series T for LSTM long short-term memory network j The real image of the outbound traffic;

[0021] Step S303: According to the principle of minimum error loss, the network parameters of the CNN convolutional neural network and the LSTM long short-term memory network are determined to obtain an outbound traffic image prediction model.

[0022] As a preferred solution of the present invention, in step S3, the input of the outbound traffic image prediction model is the outbound traffic time series image The output is in the future time series {T τ |τ∈[n+1,n+M]} outbound traffic prediction image in, Characterized by the time series T τ The outbound traffic prediction image on , M is the total number of future time series.

[0023] As a preferred solution of the present invention, in step S4, the method for determining the monitoring threshold includes:

[0024] Step S401: The outbound traffic time sequence image and the inbound traffic time series image The image similarity analysis is performed on the real traffic image of the outbound end and the real traffic image of the inbound end corresponding to the time sequence to obtain the image relationship curve of the outbound end and the inbound end. The calculation formula of the image relationship curve is:

[0025]

[0026] Among them, L i Outbound traffic timing image and inbound traffic time series images At the corresponding timing T i and t i The real image of the outbound traffic and the real traffic image at the inbound end , and is the i-th data node in the image relationship curve, Y k , Z k They are the real traffic images at the outbound end. and the real traffic image at the inbound end The pixel value of the kth pixel, n is the total number of time series, and m is the real image of the outbound traffic Or the real traffic image at the inbound end The total number of pixels, p(Y k ,Z k ) is Y k and Z k The joint probability distribution function of k ) and p(Z k ) are Y k and Z k The marginal probability distribution function of

[0027] Step S402: In the image relationship curve, the outbound traffic time sequence image All data nodes with the same time sequence in the abnormal outbound traffic real image are connected as the monitoring threshold lower limit line, and the outbound traffic time sequence image is connected in the image relationship curve. All data nodes with the same time sequence in the real images of normal outbound traffic are connected as the upper limit line of the monitoring threshold;

[0028] Step S403: randomly select a straight line between the upper limit line of the monitoring threshold and the lower limit line of the monitoring threshold as the monitoring threshold line, and use the image similarity corresponding to the monitoring threshold line as the monitoring threshold.

[0029] As a preferred solution of the present invention, in step S4, the method for predicting the traffic state of the target road section includes:

[0030] The outgoing traffic forecast image and the real image of incoming traffic at the corresponding future time sequence The image similarity is compared with the monitoring threshold, where

[0031] like and If the image similarity is less than the monitoring threshold, the target road section will be in an abnormal traffic state in the future time sequence;

[0032] like and If the image similarity is greater than the monitoring threshold, the target road section will be in a normal traffic state in the future sequence.

[0033] As a preferred solution of the present invention, the present invention provides an image processing system according to the image processing method for traffic management, comprising:

[0034] Monitoring devices are respectively arranged at traffic monitoring points at the entrance and exit of the target road section, and are used to collect real images of incoming traffic and real images of outgoing traffic at the entrance and exit of the road section at each time sequence;

[0035] A model building unit determines a training time series sample, and uses the training time series sample to train a CNN-LSTM prediction model to obtain an exit traffic image prediction model at an exit end of a road section;

[0036] The traffic state determination unit determines a monitoring threshold, compares the image similarity between the outbound traffic prediction image and the inbound traffic real image at the corresponding future time sequence with the monitoring threshold, and obtains the traffic state of the target road section at the future time sequence, so as to realize the prediction of the traffic state of the target road section;

[0037] The traffic warning unit performs a traffic warning according to the prediction result of the traffic status of the target road section.

[0038] As a preferred solution of the present invention, the collection timing of the monitoring device set at the traffic monitoring point at the exit end of the target road section lags behind the collection timing of the monitoring device set at the traffic monitoring point at the entrance end of the target road section by a timing interval Δt, and the monitoring device set at the traffic monitoring point at the exit end of the target road section and the monitoring device set at the traffic monitoring point at the entrance end of the target road section have the same image shooting specifications.

[0039] Compared with the prior art, the present invention has the following beneficial effects:

[0040] The present invention uses a CNN-LSTM prediction model to obtain an exit traffic image prediction model of a road section exit, uses the exit traffic image prediction model to predict an exit traffic prediction image of the road section exit in the future time sequence, and obtains a monitoring threshold for distinguishing a target road section in a normal traffic state and an abnormal traffic state based on the image relationship curve, compares the image similarity of the exit traffic prediction image with an incoming traffic real image at a corresponding future time sequence with the monitoring threshold to obtain the traffic state of the target road section at the future time sequence, so as to realize the prediction of the traffic state of the target road section, which can facilitate subsequent traffic warning for the target road section or advance planning for the target road section. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.

[0042] Figure 1 A flow chart of an image processing method provided by an embodiment of the present invention;

[0043] Figure 2 A schematic diagram of a monitoring threshold line provided by an embodiment of the present invention;

[0044] Figure 3 This is a structural block diagram of an image processing system provided by an embodiment of the present invention.

[0045] The numbers in the figure represent the following:

[0046] 1- monitoring device; 2- model building unit; 3- traffic state determination unit; 4- traffic warning unit; 5- image relationship curve; 6- upper limit line of monitoring threshold; 7- lower limit line of monitoring threshold; 8- monitoring threshold line. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0048] like Figure 1-3As shown, the traffic state of the target road section can be divided into a normal traffic state and an abnormal traffic state. The normal traffic state usually refers to the target road section being able to maintain smooth traffic of vehicles, while the abnormal traffic state usually refers to the traffic condition in which there is a vehicle accident on the target road section causing traffic congestion on the target road section. The realization of the normal traffic state is based on the fact that the traffic vehicles entering the target road section from the road section entrance end can exit the target road section from the road section exit end of the target road section after a certain time interval. The certain time interval refers to the time required for the traffic vehicles to pass from the road section entrance end to the road section exit end without obstacles at a speed within the speed limit of the target road section. That is, if the target road section is in a normal traffic state, it means that the traffic vehicles at the road section entrance end are at the road section exit end after a certain time interval. The traffic scene formed by the traffic vehicles at the entrance of the road section, mapped to the image level, is extremely similar to the traffic scene formed by the traffic vehicles at the exit of the road section after a certain time interval. Therefore, to determine the traffic state of the target road section, the image similarity of the traffic scene formed by the traffic vehicles at the entrance of the road section and the traffic scene formed by the traffic vehicles at the exit of the road section after a certain time interval can be directly compared. Based on the above theoretical basis, the present invention provides an image processing method for traffic management, which can first predict the traffic scene formed by the traffic vehicles at the exit of the road section in the future time sequence, and then compare the image similarity with the traffic scene formed by the traffic vehicles at the exit of the road section in the future time sequence, so as to predict the traffic state of the target road section in the future time sequence.

[0049] The present invention provides an image processing method for traffic management, comprising the following steps:

[0050] Step S1, setting traffic monitoring points at the section entrance and section exit of the target section, and using the traffic monitoring points to collect the real image of the incoming traffic and the real image of the outgoing traffic at the section entrance and section exit in each time sequence, and then arranging them in time sequence to form the time sequence image of the incoming traffic and the time sequence image of the outgoing traffic respectively;

[0051] In step S1, the timing of collecting the real traffic image at the exit end of the road section lags behind the timing of collecting the real traffic image at the entrance end of the road section by a timing interval Δt, and the timing interval Δt is the standard travel time required for traffic vehicles to pass from the entrance end of the road section to the exit end of the road section, wherein the real traffic image at the entrance end is characterized by the traffic scene formed by traffic vehicles at the entrance end of the road section, and the real traffic image at the exit end is characterized by the traffic scene formed by traffic vehicles at the exit end of the road section, so as to judge the travel result of traffic vehicles from the entrance end of the road section to the exit end of the road section in the standard travel time by comparing the image similarity of the real traffic image at the exit end with the real traffic image at the entrance end, and then judge the traffic state of the target road section according to the travel result, and the time sequence image of the traffic at the entrance end is The time sequence of the real traffic image acquisition from the entrance to the entrance of the road section is {ti |i∈[1,n]}, the outbound traffic time sequence image is The time sequence of real traffic image acquisition from the exit end to the exit end of the road section is {T i |i∈[1,n]}, T i =t i +Δt, n is the total number of time series, Represented as time series t i The real image of the incoming traffic, Characterized by the time series T i The real image of the outbound traffic on .

[0052] The method for determining the timing interval Δt includes: using the section distance between the traffic monitoring point at the section entrance end and the traffic monitoring point at the section exit end of the target section, dividing it by the average speed of traffic vehicles in the target section to obtain the value of the timing interval Δt. The average speed of traffic vehicles in the target section can be obtained by averaging the speeds of all traffic vehicles traveling from the traffic monitoring point at the section entrance end to the traffic monitoring point at the section exit end in a period of traffic sequence when the target section is in normal traffic conditions. This embodiment does not limit the timing interval Δt to a specific value, and the user can make customized adjustments based on actual use.

[0053] This embodiment can predict the traffic scene formed by traffic vehicles at the exit end of the road section in the future time sequence based on the traffic scene formed by traffic vehicles at the exit end of the road section in the current time sequence. If the target road section is to be in a normal traffic state in the future time sequence, a normal traffic state determination method is used: the traffic scene formed by traffic vehicles at the entrance end of the road section has a very high similarity with the traffic scene formed by traffic vehicles at the exit end of the road section after a certain time interval. To convert from the current time sequence to the future time sequence, it is necessary to make the traffic scene formed by traffic vehicles at the exit end of the road section in the future time sequence have a very high similarity with the traffic scene formed by traffic vehicles at the entrance end of the road section in the corresponding future time sequence. The traffic scene formed by traffic vehicles at the entrance end of the road section in the corresponding future time sequence can be actually collected by the monitoring device. It is only necessary to compare the traffic scene formed by traffic vehicles at the entrance end of the road section in the corresponding future time sequence with the traffic scene formed by traffic vehicles at the exit end of the road section in the future time sequence obtained by prediction. By comparing the image similarity, the traffic state of the target road section in the future time sequence can be determined. Mapping to the target road section means that if the target road section is in a normal traffic state in the future time sequence, the traffic scene formed by the collected traffic vehicles at the entrance of the road section at the corresponding future time sequence should have a high similarity with the traffic scene formed by the traffic vehicles at the exit of the road section in the future time sequence. If the target road section is in an abnormal traffic state in the future time sequence, the traffic scene formed by the collected traffic vehicles at the entrance of the road section at the corresponding future time sequence should have a low similarity with the traffic scene formed by the traffic vehicles at the exit of the road section in the future time sequence. Therefore, before predicting the traffic state of the target road section in the future time sequence, it is necessary to first predict the traffic scene formed by the traffic vehicles at the exit of the road section in the future time sequence. This embodiment proposes an exit traffic image prediction model, which predicts an exit traffic prediction image that represents the traffic scene formed by traffic vehicles at the exit of the road section in the future time sequence.

[0054] The sample determination method of the outbound traffic image prediction model is as follows:

[0055] Step S2, marking an abnormal exit traffic real image representing that the target road section is in an abnormal traffic state in the exit traffic time series image, and intercepting a continuous time series of exit traffic real images in the exit traffic time series image as a training time series sample, wherein the training time series sample includes a positive sample and a negative sample, wherein the positive sample represents a normal exit traffic real image representing that the target road section is in a normal traffic state, and the negative sample represents an abnormal exit traffic real image representing that the target road section is in an abnormal traffic state;

[0056] In step S2, the method for marking the abnormal outbound traffic real image includes:

[0057] The outgoing traffic timing image Each time series Ti The real outbound traffic image on the target road is marked according to the traffic status of the target road section, where

[0058] If the target section is in time sequence T i If the traffic status is abnormal, the real traffic image of the outgoing end will be Real images of traffic at the exit marked as abnormal;

[0059] If the target section is in time sequence T i If the traffic status is normal, the real traffic image of the outgoing end will be Marked as normal outbound traffic real image.

[0060] In step S2, the selection ratio of positive samples and negative samples contained in the training time series samples is consistent with the ratio of the number of all abnormal exit traffic real images to all normal exit traffic real images in the exit traffic time series images to ensure the balance of sample selection, which can prevent the prediction results from being unreliable due to underfitting and overfitting of the model.

[0061] Step S3, using the training time series samples to train the CNN-LSTM prediction model to obtain an exit traffic image prediction model for the road section exit, the exit traffic image prediction model is used to predict the exit traffic prediction image of the road section exit in the future time series;

[0062] In step S3, the method for constructing the outbound traffic image prediction model includes:

[0063] Step S301: The training time series samples are Input CNN convolutional neural network to extract image features and output image feature sequence. The training parameter settings of CNN convolutional neural network include: network filter is set to 64, activation function is set to Relu function, pooling process is set to max-poling mode, dropout probability is set to 0.25, is the timing T j The training samples on the time series T j The real outbound traffic image on the , N is the total training time series;

[0064] Step S302: input the image feature sequence into the LSTM long short-term memory network for time series prediction training, and output the outbound traffic prediction image on the training time series, wherein the training parameter settings of the LSTM long short-term memory network include: the network layer timestep is set to the number of feature categories of the image feature sequence, the training mode is set to the reverse transfer mode of seq2seq, and the error is set to N is the total training time series, STj is the training sample on time series Tj, and is the real image of the outbound traffic on time series Tj. Output time series T for LSTM long short-term memory network j The real image of the outbound traffic;

[0065] Step S303: According to the principle of minimum error loss, the network parameters of the CNN convolutional neural network and the LSTM long short-term memory network are determined to obtain an outbound traffic image prediction model.

[0066] The input of the outbound traffic image prediction model is the outbound traffic time series image The output is in the timing {T j |j∈[1,N]} outbound traffic prediction image pass and The comparison can measure the prediction accuracy of the cost cycle prediction model, that is, and The smaller the data difference, the higher the model prediction accuracy. and The greater the data difference, the lower the model prediction accuracy. and The difference constructs the loss function, which can make the established exit traffic image prediction model have high-precision attributes. When it is transferred to the target section, the input is the real exit traffic image of the target section in the current time sequence, and the output is the predicted exit traffic image of the target section in the future time sequence. The closer the predicted exit traffic image of the target section in the future time sequence is to the real exit traffic image of the target section in the future time sequence, the more accurate the exit traffic image can be.

[0067] In step S3, the input of the outbound traffic image prediction model is the outbound traffic time series image The output is in the future time series {T τ |τ∈[n+1,n+M]} outbound traffic prediction image in, Characterized by the time series T τ The outbound traffic prediction image on , M is the total number of future time series.

[0068] Step S4, calculate the image similarity between the outgoing end traffic time sequence image and the incoming end traffic time sequence image at the corresponding time sequence to obtain the image relationship curve between the outgoing end and the incoming end, and obtain the monitoring threshold for distinguishing whether the target road section is in a normal traffic state and an abnormal traffic state based on the image relationship curve, compare the image similarity between the outgoing end traffic prediction image and the incoming end traffic real image at the corresponding future time sequence with the monitoring threshold to obtain the traffic state of the target road section at the future time sequence, so as to realize the prediction of the traffic state of the target road section.

[0069] In step S4, the method for determining the monitoring threshold includes:

[0070] Step S401: Transmit the outbound traffic time sequence image and inbound traffic time series images The image similarity analysis of the real traffic image at the outbound end and the real traffic image at the inbound end corresponding to the time sequence is performed to obtain the image relationship curve between the outbound end and the inbound end. The calculation formula of the image relationship curve is:

[0071]

[0072] Among them, L i Outbound traffic timing image and inbound traffic time series images At the corresponding timing T i and t i The real image of the outbound traffic and the real traffic image at the inbound end , and is the i-th data node in the image relationship curve, Y k , Z k They are the real traffic images at the outbound end. and the real traffic image at the inbound end The pixel value of the kth pixel, n is the total number of time series, and m is the real image of the outbound traffic Or the real traffic image at the inbound end The total number of pixels, p(Y k , Z k ) is Y k and Z k The joint probability distribution function of k ) and p(Z k ) are Y k and Z k The marginal probability distribution function of

[0073] Image similarity refers to the real image of the end traffic and the real traffic image at the inbound end The higher the image similarity, the higher the real traffic image. and the real traffic image at the inbound end The more similar the image is, the more normal the traffic state of the target road section is. If the image similarity is lower, the real traffic image at the output end is and the real traffic image at the inbound end The less similar they are, the more abnormal the traffic status of the target road section is.

[0074] like Figure 2 As shown, step S402, in the image relationship curve, the outbound traffic time sequence image All data nodes with the same time sequence in the abnormal outbound traffic real image are connected as the monitoring threshold lower limit line, and the outbound traffic time sequence image is connected in the image relationship curve. All data nodes with the same time sequence in the real images of normal outbound traffic are connected as the upper limit line of the monitoring threshold;

[0075] In the image relationship curve, the outbound traffic timing image The data nodes with the same time series in all abnormal outbound traffic real images refer to all time series in which the target road section is in abnormal traffic state, indicating that abnormal accidents occur in the target road section, congestion occurs in the target road section, and traffic vehicles cannot reach the road section exit end after a time interval Δt from the road section entrance end. The more abnormal the traffic state of the target road section is, the more dissimilar the outbound traffic real images and the inbound traffic real images on these time series are. Therefore, the image relationship curve will be divided into the outbound traffic time series images All data nodes with the same time sequence in all abnormal outbound traffic real images are connected as the monitoring threshold lower limit line, so that the outbound traffic real images closer to the monitoring threshold lower limit line are and the real traffic image at the inbound end The lower the image similarity, the more likely the target road segment is in the time series T i The more abnormal the traffic status is, the more abnormal the image relationship curve will be. All the data nodes with the same time sequence in the normal outbound traffic real images are connected as the upper limit of the monitoring threshold, so that the outbound traffic real images closer to the upper limit of the monitoring threshold are and the real traffic image at the inbound end The higher the image similarity is, the more likely the target road segment is in the time series T i The traffic conditions on the road are closer to normal.

[0076] Step S403: randomly select a straight line between the upper limit line of the monitoring threshold and the lower limit line of the monitoring threshold as the monitoring threshold line, and use the image similarity corresponding to the monitoring threshold line as the monitoring threshold. The monitoring threshold line is used to distinguish the traffic status of the target road section. If it is lower than the monitoring threshold line, it is considered to be close to the lower limit line of the monitoring threshold, and it is classified as an abnormal traffic status. If it is higher than the monitoring threshold line, it is considered to be close to the upper limit line of the monitoring threshold, and it is classified as a normal traffic status.

[0077] In step S4, the method for predicting the traffic status of the target road section includes:

[0078] Outgoing traffic forecast image and the real image of incoming traffic at the corresponding future time sequence The image similarity is compared with the monitoring threshold, T τ =t τ +Δt, where

[0079] like and If the image similarity is less than the monitoring threshold, the target road section will be in an abnormal traffic state in the future time sequence;

[0080] like and If the image similarity is greater than the monitoring threshold, the target road section will be in a normal traffic state in the future time sequence.

[0081] In this embodiment, the real traffic image of the incoming end can be collected. At the same time, at the timing t τ The traffic status of the target road section in the future time sequence is calculated and τ Warning, so that the traffic control department can τ ,T τ ] and take corresponding traffic control measures, such as controlling the flow at the entrance of the road section or opening the side exit of the road section to avoid congestion and other faults on the target road section. It can also predict the traffic status of the target road section in the future and make advance traffic control planning or regulation, or warn traffic vehicles that the road ahead may have abnormal traffic conditions in the future, so as to make advance travel planning and improve travel efficiency.

[0082] like Figure 3 As shown, based on the above-mentioned image processing method for traffic management, the present invention provides an image processing system, comprising:

[0083] Monitoring devices 1 are respectively arranged at traffic monitoring points at the entrance and exit of the target road section, and are used to collect the real images of the incoming traffic and the real images of the outgoing traffic at the entrance and exit of the road section at each time sequence;

[0084] Model building unit 2, determining training time series samples, and using the training time series samples to train the CNN-LSTM prediction model to obtain an exit traffic image prediction model at the exit end of the road section;

[0085] Traffic state determination unit 3 determines a monitoring threshold, compares the image similarity between the outbound traffic prediction image and the inbound traffic real image at the corresponding future time sequence with the monitoring threshold, and obtains the traffic state of the target road section at the future time sequence, so as to realize the prediction of the traffic state of the target road section;

[0086] The traffic warning unit 4 performs a traffic warning according to the prediction result of the traffic status of the target road section.

[0087] The collection timing of the monitoring device set at the traffic monitoring point at the exit end of the target road section lags behind the collection timing of the monitoring device set at the traffic monitoring point at the entrance end of the target road section by a timing interval Δt. The monitoring device set at the traffic monitoring point at the exit end of the target road section and the monitoring device set at the traffic monitoring point at the entrance end of the target road section have the same image shooting specifications.

[0088] The present invention uses a CNN-LSTM prediction model to obtain an exit traffic image prediction model of a road section exit, uses the exit traffic image prediction model to predict an exit traffic prediction image of the road section exit in the future time sequence, and obtains a monitoring threshold for distinguishing a target road section in a normal traffic state and an abnormal traffic state based on an image relationship curve, compares the image similarity of the exit traffic prediction image with an incoming traffic real image at a corresponding future time sequence with the monitoring threshold, and obtains the traffic state of the target road section at the future time sequence, so as to realize the prediction of the traffic state of the target road section, which can facilitate subsequent traffic warning for the target road section or advance planning for the target road section.

[0089] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.

Claims

1. An image processing method for traffic management, characterized in that: The following steps are involved: Step S1, setting traffic monitoring points at the section entrance and the section exit of the target section, and using the traffic monitoring points to collect the real image of the incoming traffic and the real image of the outgoing traffic at the section entrance and the section exit in each time sequence, and then arranging them in time sequence to form the time sequence image of the incoming traffic and the time sequence image of the outgoing traffic respectively; Step S2, marking an abnormal exit traffic real image representing that the target road section is in an abnormal traffic state in the exit traffic time-series image, and intercepting a continuous time-series of exit traffic real images in the exit traffic time-series image as a training time-series sample, wherein the training time-series sample includes a positive sample and a negative sample, wherein the positive sample represents a normal exit traffic real image with the target road section in a normal traffic state, and the negative sample represents an abnormal exit traffic real image with the target road section in an abnormal traffic state; Step S3, using the training time series samples to train the CNN-LSTM prediction model to obtain an exit traffic image prediction model for the road section exit, wherein the exit traffic image prediction model is used to predict the exit traffic prediction image of the road section exit in the future time series; Step S4, calculate the image similarity between the outgoing traffic time sequence image and the incoming traffic time sequence image at the corresponding time sequence to obtain the image relationship curve between the outgoing and incoming ends, and obtain the monitoring threshold for distinguishing whether the target road section is in a normal traffic state and an abnormal traffic state based on the image relationship curve, compare the image similarity between the outgoing traffic prediction image and the incoming traffic real image at the corresponding future time sequence with the monitoring threshold to obtain the traffic state of the target road section at the future time sequence, so as to realize the prediction of the traffic state of the target road section.

2. The image processing method for traffic management according to claim 1, characterized in that: In the step S1, the timing of collecting the real traffic image at the exit end of the road section lags behind the timing of collecting the real traffic image at the entrance end of the road section by a timing interval Δt, and the timing interval Δt is the standard travel time required for traffic vehicles to pass from the entrance end of the road section to the exit end of the road section, wherein the real traffic image at the entrance end is characterized by the traffic scene formed by traffic vehicles at the entrance end of the road section, and the real traffic image at the exit end is characterized by the traffic scene formed by traffic vehicles at the exit end of the road section, so as to judge the travel result of traffic vehicles from the entrance end of the road section to the exit end of the road section in the standard travel time by comparing the image similarity of the real traffic image at the exit end and the real traffic image at the entrance end, and then judge the traffic state of the target road section according to the travel result, and the time-series image of the traffic at the entrance end is The time sequence of collecting real traffic images from the entrance to the entrance of the road section is {t i |i∈[1,n]}, the outbound traffic time sequence image is The time sequence of the real traffic image acquisition from the exit to the exit of the road section is {T i |i∈[1,n]},T i =t i +Δt, n is the total number of time series, Represented as time series t i The real image of the incoming traffic, Characterized by the time series T i The real image of the outbound traffic on .

3. The image processing method for traffic management according to claim 2, characterized in that: In step S2, the method for marking the abnormal exit traffic real image includes: The outbound traffic time sequence image Each time series T i The real outbound traffic image on the target road is marked according to the traffic status of the target road section, where If the target section is at time sequence T i If the traffic status is abnormal, the real traffic image of the outgoing end will be Real images of traffic at the exit marked as abnormal; If the target section is at time sequence T i If the traffic status is normal, the real traffic image of the outgoing end will be Marked as normal outbound traffic real image.

4. The image processing method for traffic management according to claim 3, characterized in that: In step S2, the selection ratio of positive samples and negative samples contained in the training time series samples is consistent with the ratio of the number of all abnormal exit traffic real images to all normal exit traffic real images in the exit traffic time series images to ensure the balance of sample selection.

5. The image processing method for traffic management according to claim 4, characterized in that: In step S3, the method for constructing the outbound traffic image prediction model includes: Step S301: The training time series samples are Input CNN convolutional neural network to extract image features and output image feature sequence, wherein the training parameter settings of the CNN convolutional neural network include: network filter is set to 64, activation function is set to Relu function, pooling process is set to max-poling mode, dropout probability is set to 0.25, is the timing T j The training samples on the time series T j The real outbound traffic image on the , N is the total training time series; Step S302: input the image feature sequence into the LSTM long short-term memory network for time series prediction training, and output the outbound traffic prediction image on the training time series, wherein the training parameter settings of the LSTM long short-term memory network include: the network layer timestep is set to the number of feature categories of the image feature sequence, the training mode is set to the reverse transfer mode of seq2seq, and the error is set to N is the total training time sequence, is the timing T j The training samples on the time series T j The real image of the outbound traffic on Output time series T for LSTM long short-term memory network j The real image of the outbound traffic; Step S303: According to the principle of minimum error loss, the network parameters of the CNN convolutional neural network and the LSTM long short-term memory network are determined to obtain an outbound traffic image prediction model.

6. The image processing method for traffic management according to claim 5, characterized in that: In step S3, the input of the outbound traffic image prediction model is the outbound traffic time series image The output is in the future time series {T τ |τ∈[n+1,n+M]} outbound traffic prediction image in, Characterized by the time series T τ The outbound traffic prediction image on , M is the total number of future time series.

7. The image processing method for traffic management according to claim 6, characterized in that: In step S4, the method for determining the monitoring threshold includes: Step S401: The outbound traffic time sequence image and the inbound traffic time series image The image similarity analysis is performed on the real traffic image of the outbound end and the real traffic image of the inbound end corresponding to the time sequence to obtain the image relationship curve of the outbound end and the inbound end. The calculation formula of the image relationship curve is: Among them, L i Outbound traffic timing image and inbound traffic time series images At the corresponding timing T i and t i The real image of the outbound traffic and the real traffic image at the inbound end , and is the i-th data node in the image relationship curve, Y k , Z k They are the real traffic images at the outbound end. and the real traffic image at the inbound end The pixel value of the kth pixel, n is the total number of time series, and m is the real image of the outbound traffic Or the real traffic image at the inbound end The total number of pixels, p(Y k , Z k ) is Y k and Z k The joint probability distribution function of k ) and p(Z k ) are Y k and Z k The marginal probability distribution function of Step S402: In the image relationship curve, the outbound traffic time sequence image All data nodes with the same time sequence in the abnormal outbound traffic real image are connected as the monitoring threshold lower limit line, and the outbound traffic time sequence image is connected in the image relationship curve. All data nodes with the same time sequence in the real images of normal outbound traffic are connected as the upper limit line of the monitoring threshold; Step S403: randomly select a straight line between the upper limit line of the monitoring threshold and the lower limit line of the monitoring threshold as the monitoring threshold line, and use the image similarity corresponding to the monitoring threshold line as the monitoring threshold.

8. The image processing method for traffic management according to claim 7, characterized in that: In step S4, the method for predicting the traffic status of the target road section includes: Outgoing traffic forecast image and the real image of incoming traffic at the corresponding future time sequence The image similarity is compared with the monitoring threshold, where like and If the image similarity is less than the monitoring threshold, the target road section will be in an abnormal traffic state in the future time sequence; like and If the image similarity is greater than the monitoring threshold, the target road section will be in a normal traffic state in the future sequence.

9. An image processing system according to the image processing method for traffic management according to any one of claims 1 to 8, characterized in that: include: Monitoring devices (1) are respectively arranged at traffic monitoring points at the entrance and exit of the target road section, and are used to collect real images of incoming traffic and real images of outgoing traffic at the entrance and exit of the road section at each time sequence; The model building unit (2) determines a training time series sample, and uses the training time series sample to train a CNN-LSTM prediction model to obtain an exit traffic image prediction model at an exit of the road section; The traffic state determination unit (3) determines a monitoring threshold, compares the image similarity between the outbound traffic prediction image and the inbound traffic real image at the corresponding future time sequence with the monitoring threshold, and obtains the traffic state of the target road section at the future time sequence, so as to realize the prediction of the traffic state of the target road section; A traffic warning unit (4) performs a traffic warning based on the predicted result of the traffic status of the target road section.

10. An image processing system according to claim 9, characterized in that: The collection timing of the monitoring device set at the traffic monitoring point at the exit end of the target road section lags behind the collection timing of the monitoring device set at the traffic monitoring point at the entrance end of the target road section by a timing interval Δt. The monitoring device set at the traffic monitoring point at the exit end of the target road section and the monitoring device set at the traffic monitoring point at the entrance end of the target road section have the same image shooting specifications.

Citation Information

Patent Citations

  • Road traffic tracking management method and system based on big data image acquisition

    CN112308801A

  • Congestion early warning method for expressway bottle-neck road segment

    CN107993438A

  • Urban road congestion degree prediction method based on time sequence traffic events

    CN109697852A