A traffic flow prediction system based on video AI analysis

CN118334866BActive Publication Date: 2024-09-03GUANGDONG UNIV OF TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410753437.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-09-03
Estimated Expiration
2044-06-12

AI Technical Summary

Technical Problem

[0005]本发明的目的在于提供一种基于视频ai分析的交通流量预测系统,解决了现有技术无法实时反映交通状况的变化,预测精度有限,且不能准确反馈相应道路中所有监控摄像头的运行状况和检查紧急性状况,以及难以针对道路中不同路段采取所适配的管理方案,道路交通管理难度大,智能化程度低的问题

Benefits of technology

[0029] 1. In the present invention, traffic monitoring video data is obtained in real time through the video data collection and transmission module. The video data preprocessing module preprocesses the collected video data. The target detection and tracking module processes the preprocessed video data based on the deep learning algorithm. Carry out target detection and tracking. The traffic target feature extraction module extracts the movement characteristics of the traffic target based on the target detection and tracking results. The traffic flow prediction module predicts traffic flow based on the extracted movement characteristics of the traffic target and combined with historical traffic data, and the results are output. The module outputs the prediction results to the traffic management terminal in a visual form, so that traffic management personnel can timely understand the traffic conditions of the roads under management, formulate corresponding management measures, ensure the smoothness and safety of the corresponding roads, and have a high degree of intelligence, significantly reducing road traffic. Difficulty of supervision;

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118334866B
    Figure CN118334866B
Patent Text Reader

Abstract

The present invention belongs to the technical field of traffic control, and specifically is a traffic flow prediction system based on video AI analysis, including a video data acquisition and transmission module, a video data preprocessing module, a target detection and tracking module, a traffic target feature extraction module, a traffic flow prediction module and a result output module; the present invention obtains traffic monitoring video data in real time and preprocesses it, and performs target detection and tracking and motion feature extraction on the preprocessed video data based on a deep learning algorithm, and predicts traffic flow based on the extracted traffic target motion features and combined with historical traffic data, and can accurately feedback the operating status and inspection urgency of all monitoring cameras in the corresponding roads, and adopts adapted management plans for different sections of the road, which is conducive to ensuring the smooth flow and traffic safety of the corresponding roads.
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 control, and in particular to a traffic flow prediction system based on video AI analysis. Background Art

[0002] With the acceleration of urbanization, traffic flow is increasing and traffic congestion is becoming more serious. Existing traffic flow prediction methods generally rely on historical traffic data and cannot reflect changes in traffic conditions in real time, so the prediction accuracy is limited.

[0003] It is also unable to accurately feedback the operating status and inspection urgency of all surveillance cameras on the corresponding roads, and it is difficult to adopt management solutions adapted to different sections of the road, which increases the difficulty of road traffic management, is not conducive to ensuring the smooth flow and traffic safety of the supervised roads, and has a low level of intelligence;

[0004] In view of the above technical defects, a solution is now proposed. Summary of the invention

[0005] The purpose of the present invention is to provide a traffic flow prediction system based on video AI analysis, which solves the problems that the prior art cannot reflect changes in traffic conditions in real time, has limited prediction accuracy, cannot accurately feedback the operating conditions and inspection urgency of all surveillance cameras on the corresponding roads, is difficult to adopt appropriate management solutions for different sections of the road, and has great difficulty in road traffic management and low intelligence.

[0006] To achieve the above object, the present invention provides the following technical solutions:

[0007] A traffic flow prediction system based on video AI analysis includes a video data acquisition and transmission module, a video data preprocessing module, a target detection and tracking module, a traffic target feature extraction module, a traffic flow prediction module and a result output module; the video data acquisition and transmission module acquires traffic monitoring video data in real time and sends the traffic monitoring video data to the video data preprocessing module; the video data preprocessing module preprocesses the acquired video data, including denoising, enhancement and format conversion, and sends the preprocessed video data to the target detection and tracking module;

[0008] The target detection and tracking module performs target detection and tracking on the preprocessed video data based on the deep learning algorithm, extracts the motion trajectories of all traffic targets, and sends the target detection and tracking results to the traffic target feature extraction module; the traffic target feature extraction module extracts the motion features of the traffic targets based on the target detection and tracking results, and sends all the extracted motion feature information to the traffic flow prediction module; the traffic flow prediction module predicts traffic flow based on the extracted traffic target motion features and historical traffic data using a machine learning algorithm, and sends the traffic prediction information to the result output module, which outputs the prediction results in a visual form to the traffic management terminal.

[0009] Furthermore, the motion features extracted by the traffic target feature extraction module include speed, direction and density. By analyzing the position changes of traffic targets in continuous video frames, the instantaneous speed or average speed of the traffic targets is calculated, and the traffic conditions of the road are preliminarily judged based on the speed characteristics, and congested or fast-flowing traffic flows are identified; by analyzing the moving trajectory of the traffic targets in the video frames, the direction of movement is determined, the slope or direction vector of the target trajectory is calculated, and the direction of the traffic flow is identified based on the direction characteristics, and it is determined whether there are complex traffic conditions such as intersections or turns; by counting the number of traffic targets in a certain area or calculating the average spacing of traffic targets, the density of traffic targets is evaluated, and the degree of road congestion is determined based on the density characteristics, and future traffic flow changes are predicted.

[0010] Furthermore, the specific analysis process of the traffic flow prediction module is as follows:

[0011] Data fusion: The traffic target motion characteristics output by the traffic target feature extraction module are integrated with the historical traffic data. By integrating the two types of data, the advantages of real-time video information and historical data are fully utilized to improve the accuracy of prediction;

[0012] Feature selection and processing: Based on data fusion, further feature selection and processing are performed, including selecting features that have an important impact on traffic flow prediction, and normalizing and standardizing these features to eliminate dimensional differences and noise effects between different features;

[0013] Application of machine learning algorithms: Machine learning algorithms are used to predict traffic flow. The machine learning algorithms used include support vector machines, random forests, and neural networks. Machine learning algorithms are used to learn and model historical data and real-time features to predict changes in traffic flow in the future.

[0014] Furthermore, the traffic management terminal is communicatively connected with the monitoring stability management module, and the video data acquisition and transmission module collects traffic monitoring video data through several groups of monitoring cameras on the road. The monitoring stability management module obtains all monitoring cameras, monitors the operation of all monitoring cameras, and marks the corresponding monitoring camera as i, where i is a natural number greater than 1; the operating performance of monitoring camera i is judged through analysis, and it is judged whether to generate a monitoring warning signal, and the monitoring warning signal of monitoring camera i is sent to the traffic management terminal.

[0015] Furthermore, the specific operation process of the monitoring stability management module includes:

[0016] The operation measurement symbol YP-1 or YP-2 and the video measurement symbol SP-1 or SP-2 of the surveillance camera i are obtained through analysis. If YP-1∩SP-1 is obtained, a surveillance warning signal of the surveillance camera i is generated. In other cases, a surveillance warning signal of the surveillance camera i is not generated.

[0017] Furthermore, the analysis and acquisition method of the running measurement symbol is as follows:

[0018] The current and voltage of the surveillance camera i during operation are collected, and the deviation value of the current compared with the preset standard current is marked as the camera flow detection value, and the deviation value of the voltage compared with the preset standard voltage is marked as the camera pressure detection value. The camera flow detection value and the camera pressure detection value are numerically compared with the preset camera flow detection threshold and the preset camera pressure detection threshold, respectively. If the camera flow detection value or the camera pressure detection value exceeds the corresponding preset threshold, it is determined that the surveillance camera i is in an operation inspection hidden danger state;

[0019] The total duration that the surveillance camera i is in the operation and inspection hidden danger state within the unit time is obtained and marked as the operation and inspection hidden danger detection value, and the average of all camera flow inspection values ​​within the unit time is calculated to obtain the camera flow condition value, and the average of all camera pressure inspection values ​​within the unit time is calculated to obtain the camera pressure condition value, and the operation measurement value of the surveillance camera i is obtained by numerically calculating the operation and inspection hidden danger detection value, the camera flow condition value and the camera pressure condition value, and the operation measurement value is numerically compared with the preset operation measurement threshold value. If the operation measurement value does not exceed the preset operation measurement threshold value, the operation measurement symbol YP-1 is assigned to it; if the operation measurement value exceeds the preset operation measurement threshold value, the operation measurement symbol YP-2 is assigned to it.

[0020] Furthermore, the method for analyzing and obtaining the video measurement symbol is as follows:

[0021] The traffic monitoring video collected by the monitoring camera i in a unit time is obtained, the clarity of the corresponding traffic monitoring video is marked as a video clarity value, and the freeze duration of the corresponding traffic monitoring video is marked as a video freeze value, and the delay data of the video transmission performed by the monitoring camera i in a unit time is collected and marked as a video delay value, and a video measurement value is obtained by numerically calculating the video clarity value, the video freeze value and the video delay value, and the video measurement value is numerically compared with a preset video measurement threshold value, and if the video measurement value does not exceed the preset video measurement threshold value, a video measurement symbol SP-1 is assigned to it; if the video measurement value exceeds the preset video measurement threshold value, a video measurement symbol SP-2 is assigned to it.

[0022] Furthermore, the traffic management terminal is connected in communication with the inspection reminder module, which is used to set a detection cycle, collect the number of times that the monitoring camera i generates a monitoring warning signal within the detection cycle and mark it as a monitoring warning value, as well as collect the generation time of the corresponding monitoring warning signal, mark the interval between two adjacent groups of generation time as the generation interval time, mark the number of generation interval time that does not exceed the preset generation interval time threshold within the detection cycle as the generation interval low analysis value, and calculate the time difference between the current time and the adjacent last inspection time for the monitoring camera i to obtain the inspection interval value;

[0023] The patrol reminder coefficient is obtained by numerically calculating the monitoring warning value, the low analysis value and the patrol interval value, and the patrol reminder coefficient is numerically compared with the preset patrol reminder coefficient threshold. If the patrol reminder coefficient exceeds the preset patrol reminder coefficient threshold, the patrol reminder signal of the monitoring camera i is generated, and the patrol reminder signal of the monitoring camera i is sent to the traffic management terminal.

[0024] Furthermore, the traffic management terminal is communicatively connected with the road segmentation assessment module, which divides the road to be monitored into several sections, marks the corresponding sections as monitoring objects q, and q is a natural number greater than 1; through segmented precise assessment and analysis, the monitoring object q is marked as a complex section or an easy section, and the marking information of the monitoring object q is sent to the traffic management terminal.

[0025] Furthermore, the specific analysis process of segmented precise evaluation analysis is as follows:

[0026] Twelve detection periods are set every day, and the duration of each detection period is two hours; the duration of each congestion of the monitored object q in the corresponding detection period on the corresponding date is collected and marked as a single congestion duration, all single congestion durations of the corresponding detection period are summed up to obtain a congestion condition value, the number of single congestion durations exceeding a preset single congestion duration threshold is marked as a congestion condition value, the congestion condition value is obtained by numerically calculating the congestion condition value and the congestion condition value, the congestion condition value is numerically compared with the preset congestion condition threshold, and if the congestion condition value exceeds the preset congestion condition threshold, the corresponding detection period is marked as a congestion detection period;

[0027] The number of congestion inspection periods of the monitoring object q on the corresponding date is marked as the congestion inspection value, and the mean of all congestion inspection values ​​of the monitoring object q on the corresponding date is calculated to obtain the congestion day value, the congestion day value and the congestion inspection value are numerically calculated to obtain the congestion evaluation value, the congestion evaluation value is numerically compared with the preset congestion evaluation threshold, if the congestion evaluation value exceeds the preset congestion evaluation threshold, the corresponding date is marked as the congestion meter day of the monitoring object q; an evaluation period is set, the number percentage value of the congestion meter days of the monitoring object q within the evaluation period is collected and marked as the congestion measurement value, the congestion measurement value is numerically compared with the preset congestion measurement threshold, if the congestion measurement value exceeds the preset congestion measurement threshold, the complex section of the monitoring object q is monitored; if the congestion measurement value does not exceed the preset congestion measurement threshold, the easy section of the monitoring object q is monitored.

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

[0029] 1. In the present invention, the video data acquisition and transmission module is used to acquire traffic monitoring video data in real time, the video data preprocessing module is used to preprocess the collected video data, the target detection and tracking module is used to detect and track the preprocessed video data based on the deep learning algorithm, the traffic target feature extraction module is used to extract the motion features of the traffic target according to the target detection and tracking results, the traffic flow prediction module is used to predict the traffic flow based on the extracted traffic target motion features and combined with the historical traffic data, and the result output module is used to output the prediction results to the traffic management terminal in a visual form, so that the traffic management personnel can timely understand the traffic conditions of the managed roads and formulate corresponding management measures to ensure the smoothness and traffic safety of the corresponding roads. The system has a high degree of intelligence and significantly reduces the difficulty of road traffic supervision;

[0030] 2. In the present invention, the operation of all surveillance cameras is monitored through the monitoring stability management module, and the operating performance of the corresponding surveillance cameras is evaluated. When the monitoring warning signal is generated, the cause investigation is carried out and the corresponding surveillance camera is remotely controlled. The inspection reminder module is used for analysis to determine whether to generate an inspection reminder signal for the corresponding surveillance camera. When the inspection reminder signal is generated, the corresponding surveillance camera is inspected and maintained on site, thereby ensuring the safe and stable operation of all surveillance cameras, which is beneficial to reducing road traffic risks. The road segmentation evaluation module is used to perform segmented precise evaluation and analysis to determine complex sections and easy sections, so as to facilitate the adoption of appropriate management plans for different sections, further reduce the difficulty of road supervision, and have a high degree of intelligence. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to facilitate understanding by those skilled in the art, the present invention is further described below in conjunction with the accompanying drawings;

[0032] Figure 1 This is a system block diagram of Embodiment 1 of the present invention;

[0033] Figure 2 It is a system block diagram of Embodiment 2 and Embodiment 3 of the present invention;

[0034] Figure 3 This is a system block diagram of Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0035] 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.

[0036] Embodiment 1: Figure 1 As shown, a traffic flow prediction system based on video AI analysis proposed by the present invention includes a video data acquisition and transmission module, a video data preprocessing module, a target detection and tracking module, a traffic target feature extraction module, a traffic flow prediction module and a result output module; the video data acquisition and transmission module acquires traffic monitoring video data in real time, and sends the traffic monitoring video data to the video data preprocessing module; the video data preprocessing module preprocesses the collected video data, including denoising, enhancement and format conversion, etc., to improve the accuracy of subsequent analysis, and sends the preprocessed video data to the target detection and tracking module;

[0037] The target detection and tracking module performs target detection and tracking on the pre-processed video data based on the deep learning algorithm, extracts the motion trajectories of all traffic targets (vehicles, pedestrians, etc.), and sends the target detection and tracking results to the traffic target feature extraction module; the traffic target feature extraction module extracts the motion features of the traffic targets based on the target detection and tracking results, and sends all the extracted motion feature information to the traffic flow prediction module; the motion features extracted by the traffic target feature extraction module include speed, direction, density, etc.

[0038] Specifically, by analyzing the position changes of traffic targets in continuous video frames, the instantaneous speed or average speed of traffic targets is calculated, which involves fitting the target trajectory and calculating the speed vector. The traffic condition of the road is preliminarily judged based on the speed characteristics, such as identifying congested or fast-flowing traffic flow; by analyzing the moving trajectory of traffic targets in video frames, its direction of movement is determined, which can be achieved by calculating the slope or direction vector of the target trajectory, and the direction of traffic flow is identified based on the direction characteristics, and it is judged whether there are complex traffic situations such as intersections or turns; the density characteristics describe the distribution of traffic targets. The density of traffic targets is evaluated by counting the number of traffic targets in a certain area or calculating the average spacing of traffic targets. The degree of road congestion is judged based on the density characteristics, and future traffic flow changes are predicted.

[0039] In addition, the traffic target feature extraction module can also extract other motion features according to actual needs, such as acceleration, turning radius, etc., to provide more comprehensive traffic target motion information. These feature extraction methods are based on computer vision and image processing technologies, such as background modeling, morphological operations, optical flow methods, etc.

[0040] The traffic flow prediction module uses machine learning algorithms to predict traffic flow based on the extracted traffic target motion characteristics and historical traffic data, and sends the traffic prediction information to the result output module. The result output module outputs the prediction results to the traffic management terminal in a visual form, so that traffic management personnel can timely understand the traffic conditions of the managed roads and formulate corresponding measures to ensure the smooth flow and traffic safety of the corresponding roads. It has a high degree of intelligence and significantly reduces the difficulty of road traffic supervision. The specific analysis process of the traffic flow prediction module is as follows:

[0041] Data fusion: The traffic target motion features output by the traffic target feature extraction module are integrated with the historical traffic data. By integrating the two types of data, the advantages of real-time video information and historical data are fully utilized to improve the accuracy of prediction. Feature selection and processing: Based on data fusion, further feature selection and processing are performed, including selecting features that have an important impact on traffic flow prediction, such as speed, direction, density, etc., and normalizing and standardizing these features to eliminate the dimensional differences and noise effects between different features.

[0042] Application of machine learning algorithms: Machine learning algorithms are used to predict traffic flow. The machine learning algorithms used include support vector machines, random forests, and neural networks. Historical data and real-time features are learned and modeled through machine learning algorithms to predict changes in traffic flow in the future. Furthermore, in order to improve the accuracy and stability of predictions, the traffic flow prediction module can also perform model training and optimization, including selecting appropriate model parameters, adjusting algorithm hyperparameters, and performing cross-validation. By continuously optimizing the model structure and parameter settings, the accuracy and reliability of traffic flow predictions can be gradually improved.

[0043] Embodiment 2: Figure 2 As shown, the difference between this embodiment and embodiment 1 is that the traffic management terminal is connected to the monitoring stability management module in communication, the video data acquisition and transmission module collects traffic monitoring video data through a plurality of monitoring cameras on the road, the monitoring stability management module obtains all monitoring cameras, performs operation monitoring on all monitoring cameras, and marks the corresponding monitoring camera as i, where i is a natural number greater than 1;

[0044] The operation performance of the surveillance camera i is judged by analysis, and whether a surveillance warning signal is generated. The surveillance warning signal of the surveillance camera i is sent to the traffic management terminal. When the traffic management terminal receives the surveillance warning signal, it issues a corresponding warning so that the traffic management personnel can investigate the cause and make corresponding remote control operations, thereby ensuring the safe and stable operation of all surveillance cameras, which is conducive to reducing road traffic risks. The specific operation process of the monitoring stability management module is as follows:

[0045] By analyzing the operation measurement symbol YP-1 or YP-2 and the video measurement symbol SP-1 or SP-2 of the surveillance camera i, if YP-1∩SP-1 is obtained, the surveillance warning signal of the surveillance camera i is generated, and in other cases (YP-2∩SP-1, YP-1∩SP-2 and YP-2∩SP-2), the surveillance warning signal of the surveillance camera i is not generated.

[0046] In addition, the analysis and acquisition method of the operation measurement symbol is as follows: the current and voltage of the monitoring camera i during operation are collected, the deviation value of the current compared with the preset standard current is marked as the camera flow detection value, the deviation value of the voltage compared with the preset standard voltage is marked as the camera pressure detection value, the camera flow detection value and the camera pressure detection value are numerically compared with the preset camera flow detection threshold and the preset camera pressure detection threshold, respectively; if the camera flow detection value or the camera pressure detection value exceeds the corresponding preset threshold, it is determined that the monitoring camera i is in an operation inspection hidden danger state;

[0047] The total time that the surveillance camera i is in the operation and inspection hidden danger state within a unit time is obtained and marked as the operation and inspection hidden danger detection value, and the camera flow condition value is obtained by averaging all the camera flow inspection values ​​within a unit time, and the camera pressure condition value is obtained by averaging all the camera pressure inspection values ​​within a unit time. The operation and inspection hidden danger detection value WFi, the camera flow condition value WSi and the camera pressure condition value WKi are numerically calculated by the formula WXi=ew1*WFi+(ew2*WSi+ew3*WKi) / 2 to obtain the operation measurement value WXi of the surveillance camera i; wherein ew1, ew2, and ew3 are preset proportional coefficients, and the values ​​of ew1, ew2, and ew3 are all positive numbers; and the larger the value of the operation measurement value WXi, the worse the operation condition of the surveillance camera i is;

[0048] The operation measurement value WXi is numerically compared with the preset operation measurement threshold. If the operation measurement value WXi does not exceed the preset operation measurement threshold, it indicates that the operation condition of the surveillance camera i is good, and the operation measurement symbol YP-1 is assigned to it; if the operation measurement value WXi exceeds the preset operation measurement threshold, it indicates that the operation condition of the surveillance camera i is poor, and the operation measurement symbol YP-2 is assigned to it.

[0049] Further, the analysis and acquisition method of the video measurement symbol is: obtain the traffic monitoring video collected by the monitoring camera i in a unit time, mark the clarity of the corresponding traffic monitoring video as a video clarity value, and mark the freeze duration of the corresponding traffic monitoring video as a video freeze value, and collect the delay data of the video transmission of the monitoring camera i in a unit time and mark it as a video delay value;

[0050] The video clarity value HYi, the video resolution value HXi and the video delay value HMi are numerically calculated by the formula HPi=(ep2*HXi+ep3*HMi) / (ep1*HYi+1.265)to obtain the video measurement value HPi, where ep1, ep2 and ep3 are preset proportional coefficients, and the values ​​of ep1, ep2 and ep3 are all positive numbers; and the larger the value of the video measurement value HPi, the worse the monitoring condition of the surveillance camera;

[0051] The video measurement value HPi is numerically compared with the preset video measurement threshold. If the video measurement value HPi does not exceed the preset video measurement threshold, it indicates that the monitoring condition of the surveillance camera is good, and the video measurement symbol SP-1 is assigned to it; if the video measurement value HPi exceeds the preset video measurement threshold, it indicates that the monitoring condition of the surveillance camera is poor, and the video measurement symbol SP-2 is assigned to it.

[0052] Embodiment 3: Figure 2As shown, the difference between this embodiment and embodiment 1 and embodiment 2 is that the traffic management terminal is connected to the inspection reminder module in communication, and the inspection reminder module is used to set a detection period, preferably, the detection period is seven days; the number of times the monitoring camera i generates a monitoring warning signal within the detection period is collected and marked as the monitoring warning value, and the generation time of the corresponding monitoring warning signal is collected, the interval between two adjacent groups of generation times is marked as the generation interval time, the generation interval time is compared with the preset generation interval time threshold, and the number of generation interval times that do not exceed the preset generation interval time threshold within the detection period is marked as the generation interval low analysis value, and the adjacent last inspection and maintenance time for the monitoring camera i is collected and marked as the inspection time, and the time difference between the current time and the adjacent last inspection time for the monitoring camera i is calculated to obtain the inspection interval value;

[0053] By formula The monitoring warning value TYi, the low-interval analysis value TSi and the patrol interval value TPi are numerically calculated to obtain the patrol reminder coefficient TXi, where fy1, fy2 and fy3 are preset proportional coefficients, fy2>fy1>fy3>0; and the larger the value of the patrol reminder coefficient TXi, the more timely it is necessary to conduct on-site inspection of the monitoring camera i;

[0054] The inspection reminder coefficient TXi is numerically compared with the preset inspection reminder coefficient threshold. If the inspection reminder coefficient TXi exceeds the preset inspection reminder coefficient threshold, it indicates that it is necessary to conduct an on-site inspection of the surveillance camera i in a timely manner. Then, a patrol reminder signal for the surveillance camera i is generated, and the patrol reminder signal of the surveillance camera i is sent to the traffic management terminal. When the traffic management terminal receives the patrol reminder signal, it issues a corresponding warning to remind the traffic management personnel to conduct on-site inspection and maintenance of the corresponding surveillance camera i in a timely manner to ensure its subsequent operation effect, which is conducive to achieving road safety.

[0055] Embodiment 4: Figure 3 As shown, the difference between this embodiment and embodiment 1, embodiment 2, and embodiment 3 is that the traffic management terminal is connected to the road segmentation evaluation module in communication, and the road segmentation evaluation module divides the road to be monitored into several sections, marks the corresponding sections as monitoring objects q, and q is a natural number greater than 1; through segmented precise evaluation and analysis, the monitoring object q is marked as a complex section or an easy section, and the marking information of the monitoring object q is sent to the traffic management terminal. The traffic management personnel strengthen the traffic supervision of complex sections, facilitate the adoption of appropriate management plans for different sections, reduce the difficulty of road supervision, and have a high degree of intelligence; the specific analysis process of segmented precise evaluation and analysis is as follows:

[0056] Twelve detection periods are set every day, and the duration of each detection period is two hours; the duration of each congestion of the monitoring object q in the corresponding detection period on the corresponding date is collected and marked as a single congestion duration, and all single congestion durations in the corresponding detection period are summed up to obtain a congestion condition value, and the single congestion duration is numerically compared with a preset single congestion duration threshold, and the number of single congestion durations exceeding the preset single congestion duration threshold is marked as a congestion condition value;

[0057] The congestion condition value YLq and the congestion condition value YKq are numerically calculated by the formula YSq=a1*YLq / a2+a2*YKq to obtain the congestion condition value YSq, wherein a1 and a2 are preset proportional coefficients, and a2>a1>0; and the larger the value of the congestion condition value YSq is, the more serious the congestion condition of the monitoring object q on the corresponding date in the corresponding detection period is; the congestion condition value YSq is numerically compared with the preset congestion condition threshold value, if the congestion condition value YSq exceeds the preset congestion condition threshold value, it indicates that the congestion condition of the monitoring object q on the corresponding date in the corresponding detection period is more serious, then the corresponding detection period is marked as a congestion detection period; the number of congestion detection periods of the monitoring object q on the corresponding date is marked as a congestion detection value, and all congestion condition values ​​of the monitoring object q on the corresponding date are averaged to obtain the congestion daily condition value;

[0058] By formula The congestion daily value YRq and the congestion detection value YMq are numerically calculated to obtain the congestion evaluation value YWq, wherein ry1 and ry2 are preset proportional coefficients, and the values ​​of ry1 and ry2 are both positive numbers; and the larger the value of the congestion evaluation value YWq is, the more serious the congestion condition of the monitoring object q on the corresponding date is; the congestion evaluation value YWq is numerically compared with the preset congestion evaluation threshold value, and if the congestion evaluation value YWq exceeds the preset congestion evaluation threshold value, it indicates that the congestion condition of the monitoring object q on the corresponding date is more serious, and the corresponding date is marked as the congestion meter day of the monitoring object q;

[0059] An evaluation period is set, preferably, the evaluation period is fifteen days; the ratio of the number of congestion days of the monitored object q within the evaluation period (i.e., the ratio of the number of congestion days to the number of days in the evaluation period) is collected and marked as a congestion measurement value, and the congestion measurement value is numerically compared with a preset congestion measurement threshold. If the congestion measurement value exceeds the preset congestion measurement threshold, it indicates that the congestion of the monitored object q is serious and the traffic conditions are complicated, and supervision needs to be strengthened, then the complex section of the monitored object q will be monitored; if the congestion measurement value does not exceed the preset congestion measurement threshold, it indicates that the congestion of the monitored object q is not serious and the traffic conditions are not complicated, then the easy section of the monitored object q will be monitored.

[0060] The working principle of the present invention is as follows: when in use, traffic monitoring video data is acquired in real time through the video data acquisition and transmission module, the video data preprocessing module preprocesses the acquired video data, the target detection and tracking module performs target detection and tracking on the preprocessed video data based on the deep learning algorithm, and extracts the motion trajectories of all traffic targets, the traffic target feature extraction module extracts the motion features of the traffic targets according to the target detection and tracking results, the traffic flow prediction module uses the machine learning algorithm to predict the traffic flow based on the extracted traffic target motion features and combined with historical traffic data, and the result output module outputs the prediction results in a visual form to the traffic management terminal, so that the traffic management personnel can timely understand the traffic conditions of the managed roads and formulate corresponding management measures to ensure the smooth flow and traffic safety of the corresponding roads. It has a high degree of intelligence and significantly reduces the difficulty of road traffic supervision.

[0061] The above formulas are all dimensionless and numerical calculations. The formula is a formula obtained by collecting a large amount of data and performing software simulation to obtain the most recent real situation. The preset parameters in the formula are set by technicians in this field according to actual conditions. The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to only specific implementation methods. Obviously, many modifications and changes can be made according to the contents of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that technicians in the relevant technical field can understand and use the present invention well. The present invention is only limited by the claims and their full scope and equivalents.

Claims

1. A traffic flow prediction system based on video AI analysis, It is characterized in that It includes a video data acquisition and transmission module, a video data preprocessing module, a target detection and tracking module, a traffic target feature extraction module, a traffic flow prediction module and a result output module; the video data acquisition and transmission module acquires traffic monitoring video data in real time and sends the traffic monitoring video data to the video data preprocessing module; The video data preprocessing module preprocesses the collected video data, including denoising, enhancement and format conversion, and sends the preprocessed video data to the target detection and tracking module; The target detection and tracking module performs target detection and tracking on the preprocessed video data based on the deep learning algorithm, extracts the motion trajectories of all traffic targets, and sends the target detection and tracking results to the traffic target feature extraction module; The traffic target feature extraction module extracts the motion features of the traffic target based on the target detection and tracking results, and sends all the extracted motion feature information to the traffic flow prediction module; the traffic flow prediction module uses the machine learning algorithm to predict the traffic flow based on the extracted traffic target motion features and historical traffic data, and sends the traffic flow prediction information to the result output module, which outputs the prediction results to the traffic management terminal in a visual form; The traffic management terminal is connected to the monitoring stability management module in communication. The video data acquisition and transmission module collects traffic monitoring video data through several groups of monitoring cameras on the road. The monitoring stability management module obtains all monitoring cameras, monitors the operation of all monitoring cameras, and marks the corresponding monitoring camera as i, where i is a natural number greater than 1. By analyzing the operating performance of the surveillance camera i, it is determined whether to generate a surveillance warning signal, and the surveillance warning signal of the surveillance camera i is sent to the traffic management terminal; The specific operation process of the monitoring stability management module includes: The operation measurement symbol YP-1 or YP-2 and the video measurement symbol SP-1 or SP-2 of the surveillance camera i are obtained by analysis. If YP-1∩SP-1 is obtained, a surveillance warning signal of the surveillance camera i is generated. In other cases, no surveillance warning signal of the surveillance camera i is generated. The analysis method of running the measurement symbol is as follows: The current and voltage of the surveillance camera i during operation are collected, and the deviation value of the current compared with the preset standard current is marked as the camera flow detection value, and the deviation value of the voltage compared with the preset standard voltage is marked as the camera pressure detection value. The camera flow detection value and the camera pressure detection value are numerically compared with the preset camera flow detection threshold and the preset camera pressure detection threshold, respectively. If the camera flow detection value or the camera pressure detection value exceeds the corresponding preset threshold, it is determined that the surveillance camera i is in an operation inspection hidden danger state; The total time duration of the surveillance camera i in the operation inspection hidden danger state within the unit time is obtained and marked as the operation inspection hidden danger detection value, and the camera flow condition value is obtained by averaging all the camera flow inspection values ​​within the unit time, and the camera pressure condition value is obtained by averaging all the camera pressure inspection values ​​within the unit time. The operation measurement value of the surveillance camera i is obtained by numerically calculating the operation inspection hidden danger detection value, the camera flow condition value and the camera pressure condition value. If the operation measurement value does not exceed the preset operation measurement threshold, the operation measurement symbol YP-1 is assigned to it; if the operation measurement value exceeds the preset operation measurement threshold, the operation measurement symbol YP-2 is assigned to it; The analysis and acquisition method of the video measurement symbol is as follows: The traffic monitoring video collected by the monitoring camera i in a unit time is obtained, the clarity of the corresponding traffic monitoring video is marked as a video clarity value, and the freeze duration of the corresponding traffic monitoring video is marked as a video freeze value, and the delay data of the video transmission performed by the monitoring camera i in a unit time is collected and marked as a video delay value, and a video measurement value is obtained by numerically calculating the video clarity value, the video freeze value and the video delay value. If the video measurement value does not exceed a preset video measurement threshold, a video measurement symbol SP-1 is assigned to it; if the video measurement value exceeds the preset video measurement threshold, a video measurement symbol SP-2 is assigned to it; The traffic management terminal is connected to the patrol reminder module, which is used to set the detection cycle, obtain the patrol reminder coefficient by numerically calculating the monitoring warning value, the low-interval analysis value and the patrol interval value, and compare the patrol reminder coefficient with the preset patrol reminder coefficient threshold. If the patrol reminder coefficient exceeds the preset patrol reminder coefficient threshold, a patrol reminder signal of the monitoring camera i is generated, and the patrol reminder signal of the monitoring camera i is sent to the traffic management terminal; The traffic management terminal is connected to the road segmentation assessment module, which divides the road to be monitored into several sections, marks the corresponding sections as monitoring objects q, and q is a natural number greater than 1; through segmentation precise assessment analysis, the monitoring object q is marked as a complex section or an easy section, and the marking information of the monitoring object q is sent to the traffic management terminal; The specific analysis process of segmented precise evaluation analysis is as follows: Twelve detection periods are set every day, and the duration of each detection period is two hours; the duration of each congestion of the monitoring object q in the corresponding detection period on the corresponding date is collected and marked as a single congestion duration, and all single congestion durations of the corresponding detection period are summed up to obtain a congestion condition value, and the number of single congestion durations exceeding a preset single congestion duration threshold is marked as a congestion condition value, and a congestion condition value is obtained by numerically calculating the congestion condition value and the congestion condition value. If the congestion condition value exceeds the preset congestion condition threshold, the corresponding detection period is marked as a congestion detection period; The number of congestion inspection periods of the monitoring object q on the corresponding date is marked as the congestion inspection value, and the average of all congestion inspection values ​​of the monitoring object q on the corresponding date is calculated to obtain the congestion day value, and the congestion day value and the congestion inspection value are numerically calculated to obtain the congestion evaluation value. If the congestion evaluation value exceeds the preset congestion evaluation threshold, the corresponding date is marked as the congestion meter day of the monitoring object q; an evaluation period is set, and the number percentage of congestion meter days of the monitoring object q within the evaluation period is collected and marked as the congestion measurement value. If the congestion measurement value exceeds the preset congestion measurement threshold, the monitoring object q is marked as a complex section; if the congestion measurement value does not exceed the preset congestion measurement threshold, the monitoring object q is marked as an easy section.

2. A traffic flow prediction system based on video AI analysis according to claim 1, It is characterized in that The motion features extracted by the traffic target feature extraction module include speed, direction and density. By analyzing the position changes of traffic targets in continuous video frames, the instantaneous speed or average speed of traffic targets is calculated, and the traffic conditions of the road are preliminarily judged based on the speed characteristics, and congested or fast-flowing traffic flows are identified; by analyzing the moving trajectory of traffic targets in video frames, the direction of movement is determined, the slope or direction vector of the target trajectory is calculated, and the direction of traffic flow is identified based on the direction characteristics, and it is determined whether there are complex traffic conditions such as intersections or turns; by counting the number of traffic targets in a certain area or calculating the average spacing of traffic targets, the density of traffic targets is evaluated, and the degree of road congestion is determined based on density characteristics, and future traffic flow changes are predicted.

3. A traffic flow prediction system based on video AI analysis according to claim 1, It is characterized in that The specific analysis process of the traffic flow prediction module is as follows: Data fusion: Fusion of traffic target motion features output by the traffic target feature extraction module with historical traffic data; Feature selection and processing: Based on data fusion, further feature selection and processing are performed, including selecting features that have an important impact on traffic flow prediction, and normalizing and standardizing these features to eliminate dimensional differences and noise effects between different features; Application of machine learning algorithms: Machine learning algorithms are used to predict traffic flow. The machine learning algorithms used include support vector machines, random forests, and neural networks. Machine learning algorithms are used to learn and model historical data and real-time features to predict changes in traffic flow in the future.