Intelligent traffic information anomaly detection method and system based on big data

By constructing the functional relationship between the theoretical average speed and the road load index, and using the difference ratio and loss function optimization, the problem of the inability to accurately detect road anomalies in the existing technology is solved, and more accurate road flow prediction and anomaly detection are achieved.

CN118629211APending Publication Date: 2024-09-10GUANGZHOU YUNYANG INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410871549.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing smart transportation systems cannot accurately reflect road flow changes when detecting road information anomalies, resulting in the inability to effectively predict the relationship between theoretical average speed and road load index.

Method used

By constructing a functional relationship between the theoretical average speed and the road load index, the difference ratio between the actual average speed and the theoretical average speed is used to determine whether there are abnormal factors on the road, and the coefficients and biases of the functional relationship are iteratively optimized through backpropagation of the loss function. , to improve prediction accuracy.

Benefits of technology

It achieves more accurate road flow prediction and anomaly detection, provides more accurate theoretical average speed prediction, and can identify road anomalies in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629211A
    Figure CN118629211A
Patent Text Reader

Abstract

The invention relates to the field of intelligent traffic anomaly detection, in particular to an intelligent traffic information anomaly detection method and system based on big data, and the method comprises the steps: constructing a function relation between a theoretical average speed and a road load index through calculating the road load index; obtaining the number of vehicles passing in a preset time period and the vehicle speed, calculating the actual average speed, comparing the difference ratio between the actual average speed and the theoretical average speed, and establishing a prediction indication function; and establishing a mean square error loss function of the theoretical average speed, and carrying out iterative optimization on a function relationship between the theoretical average speed and the road load index through back propagation. According to the method, the theoretical average speed can be predicted according to the real-time traffic congestion condition of the road, whether abnormal factors exist in the road or not is reflected by comparing the difference between the actual average speed and the theoretical average speed, and meanwhile, the theoretical average speed prediction model is subjected to back propagation iteration optimization according to the actual average speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart traffic anomaly detection, and specifically to a smart traffic information anomaly detection method and system based on big data. Background Art

[0002] With the development and popularization of technologies such as the Internet of Things, big data, and artificial intelligence, smart transportation has been developing rapidly to make urban life and traffic management more intelligent, convenient, and efficient. However, in existing smart transportation systems, the detection of road information anomalies often relies on simply comparing current data with historical data. These methods cannot accurately reflect abnormal conditions based on changes in road traffic. Therefore, an innovative functional relationship between the theoretical average speed and the road load index is constructed to achieve the ability to predict the theoretical average speed based on the real-time traffic congestion of the road, and to reflect whether there are abnormal factors on the road by comparing the difference between the actual average speed and the theoretical average speed. When the output of the prediction indicator function matches the actual situation, monitoring continues according to the prediction indicator function; when the actual road abnormality does not match the output of the measurement indicator function, the coefficients and bias of the functional relationship between the theoretical average speed and the road load index are iteratively optimized through the back propagation of the loss function, so as to provide a more accurate prediction for the next theoretical average speed prediction cycle. Summary of the invention

[0003] (1) Technical issues to be solved

[0004] The purpose of the present invention is to provide a method and system for detecting anomalies in smart traffic information based on big data, so as to solve the problem of detecting anomalies in average lane speed in current smart traffic.

[0005] (2) Technical solution

[0006] To achieve the above object, the present invention provides a method for detecting anomalies in intelligent traffic information based on big data, the method comprising:

[0007] S1. Calculate the average lane theoretical flow rate by obtaining the total flow rate and the number of lanes on the road; calculate the maximum theoretical flow rate of the average lane by using the maximum speed specified by the road and the safety distance corresponding to the maximum speed; divide the average lane theoretical flow rate by the maximum theoretical flow rate of the average lane, and combine the synergy effect coefficient between lanes to obtain the road load index; construct a functional relationship between the theoretical average speed and the road load index;

[0008] S2, obtaining the number of vehicles and vehicle speeds passing through the road within a preset time period, and obtaining the actual average speed of the passing vehicles; calculating the difference ratio between the actual average speed and the theoretical average speed, comparing the difference ratio with the preset threshold ratio, and constructing a prediction indicator function according to conditional judgment and output; when the difference ratio is greater than the preset threshold ratio, outputting that an abnormal factor exists; when the difference ratio is less than or equal to the preset threshold ratio, outputting that no abnormal factor exists;

[0009] S3. Establish a mean square error loss function of the theoretical average speed to calculate the mean square error between the actual average speed and the theoretical average speed. When the output of the prediction indicator function does not match the actual situation, the functional relationship between the theoretical average speed and the road load index is iteratively optimized through back propagation.

[0010] Furthermore, the method for constructing the functional relationship between the theoretical average speed and the road load index includes:

[0011] According to the vehicle flow characteristics, the average lane theoretical flow is divided by the maximum theoretical flow of the average lane and combined with the synergy coefficient between lanes to obtain the road load index. A negative exponential function with e as the base is constructed and the road load index is used as the function index. When the road load index is within the threshold range, the theoretical average speed is equal to the maximum speed limit. When the road load index is greater than the preset threshold, the theoretical average speed decreases with the increase of the road load index and the slope gradually decreases. The theoretical average speed The calculation formula is:

[0012]

[0013] in is the theoretical average speed, P is the road load index and its value is between 0 and 1, is the attenuation index of the theoretical average speed according to the road load index, bias ω1 is the coefficient controlling the attenuation index of the road load index, and P0 is the threshold of the road load index that affects the theoretical average speed.

[0014] Furthermore, the method of obtaining the road load index by dividing the average lane theoretical flow by the average lane theoretical flow maximum according to the vehicle flow characteristics and combining the synergy effect coefficient between lanes includes:

[0015] Obtain the total flow and number of lanes in a preset time period to calculate the average lane theoretical flow and the theoretical lane average flow The calculation formula is:

[0016]

[0017] in is the average lane theoretical flow, S0 is the total flow, and N is the number of lanes;

[0018] Get the maximum speed limit and the safety distance corresponding to the maximum speed of the road, divide the maximum speed limit by the safety distance corresponding to the maximum speed to get the maximum theoretical flow rate of the average lane, and the maximum theoretical flow rate of the average lane The calculation formula is:

[0019]

[0020] in is the maximum theoretical flow rate of the average lane, V0 is the maximum speed limit, D0 is the safety distance corresponding to the maximum speed, and ω3 is the adjustment coefficient of the maximum theoretical flow rate of the average lane;

[0021] The road load index is obtained by dividing the average lane theoretical flow by the average lane theoretical flow maximum and by the synergy coefficient between lanes. The synergy coefficient is set as a logarithmic function of the number of lanes according to the characteristics that the synergy increases with the increase of the number of lanes and the slope decreases. The calculation formula of the road load index P is:

[0022]

[0023] Where P is the road load index, lnN is the main function of the cooperative effect between lanes, ω2 is the adjustment coefficient of the cooperative effect between lanes, and b1 is the bias of the cooperative effect between lanes.

[0024] Furthermore, the method of constructing a prediction indicator function according to conditional judgment and output includes:

[0025] Obtain the number of vehicles and vehicle speeds in different areas of roads during a preset time period to calculate the actual average speed. The calculation formula is:

[0026]

[0027] Among them V1 ′ 、V2 ′ ,…,V n ′ is the speed of passing vehicles, n is the number of passing vehicles; the difference ratio between the actual average speed and the theoretical average speed is calculated and compared with the preset threshold ratio, and a road abnormality prediction indicator function is constructed. The calculation formula is:

[0028]

[0029] in is the actual average speed, d is the preset threshold ratio between the actual average speed and the theoretical average speed, 0 means there are no other abnormal factors on the road, and 1 means there are other abnormal factors on the road; when the output of the prediction indicator function matches the actual situation, monitoring continues according to the prediction indicator function; when the output of the prediction indicator function does not match the actual situation, the coefficient and bias of the functional relationship between the theoretical average speed and the road load index are iteratively optimized through back propagation of the loss function.

[0030] Furthermore, the method of iteratively optimizing the coefficients and bias of the functional relationship between the theoretical average speed and the road load index by back propagation of the loss function includes:

[0031] The theoretical average speed, the actual average speed and the actual average flow rate corresponding to the preset time interval t are obtained, and a mean square error loss function is established. The calculation formula of the mean square error loss function loss(v) is:

[0032]

[0033] in is the theoretical average speed corresponding to the i-th preset time interval t, is the actual average speed corresponding to the i-th preset time interval t, m is the number of preset values; the above theoretical average speed Calculation formula, actual average speed Substitute the calculation formula into the mean square error loss function to obtain the complete mean square error loss function:

[0034]

[0035] According to the monotonicity of the function, the mean square error loss function is derived with respect to ω1, ω2, b1, and ω3 respectively, and ω1, ω2, b1, and ω3 are corrected according to the preset adaptive learning parameters. The correction formula is:

[0036]

[0037] Where δ is any one of the parameters ω or b in the loss function loss(v), δ ′ is the updated parameter ω or b; j is the subscript of the parameter ω or b in the function loss(v); η is the preset adaptive learning parameter.

[0038] Based on the same inventive concept, on the other hand, the present invention also provides a smart traffic information anomaly detection system based on big data, the system comprising: a theoretical average speed calculation module, a prediction indicator function calculation module, and a loss function optimization module; the data acquisition module is connected to the theoretical average speed calculation module, the theoretical average speed calculation module is connected to the prediction indicator function calculation module, and the prediction indicator function calculation module is connected to the loss function optimization module;

[0039] Theoretical average speed calculation module is used to calculate the average lane theoretical flow rate by obtaining the total flow rate and the number of lanes of the road; calculate the maximum theoretical flow rate of the average lane by using the maximum speed limited by the road and the safety distance corresponding to the maximum speed; divide the average lane theoretical flow rate by the maximum theoretical flow rate of the average lane and combine it with the synergy effect coefficient between lanes to obtain the road load index; construct a functional relationship between the theoretical average speed and the road load index;

[0040] The prediction indicator function calculation module is used to obtain the number of vehicles and vehicle speeds passing through the road within a preset time period, and obtain the actual average speed of the passing vehicles; calculate the difference ratio between the actual average speed and the theoretical average speed, compare the difference ratio with the preset threshold ratio, and construct the prediction indicator function according to the condition judgment and output; when the difference ratio is greater than the preset threshold ratio, the output is that an abnormal factor exists; when the difference ratio is less than or equal to the preset threshold ratio, the output is that there is no abnormal factor;

[0041] The loss function optimization module is used to establish the mean square error loss function of the theoretical average speed to calculate the mean square error between the actual average speed and the theoretical average speed. When the output of the prediction indicator function does not match the actual situation, the functional relationship between the theoretical average speed and the road load index is iteratively optimized through back propagation.

[0042] Furthermore, the working steps of the theoretical average speed calculation module include:

[0043] According to the vehicle flow characteristics, the average lane theoretical flow is divided by the maximum theoretical flow of the average lane and combined with the synergy coefficient between lanes to obtain the road load index. A negative exponential function with e as the base is constructed and the road load index is used as the function index. When the road load index is within the threshold range, the theoretical average speed is equal to the maximum speed limit. When the road load index is greater than the preset threshold, the theoretical average speed decreases with the increase of the road load index and the slope gradually decreases. The theoretical average speed The calculation formula is:

[0044]

[0045] in is the theoretical average speed, P is the road load index and its value is between 0 and 1, is the attenuation index of the theoretical average speed according to the road load index, bias ω1 is the coefficient controlling the attenuation index of the road load index, and P0 is the threshold of the road load index that affects the theoretical average speed.

[0046] Furthermore, the working steps of the theoretical average speed calculation module also include:

[0047] Obtain the total flow and number of lanes in a preset time period to calculate the average lane theoretical flow and the theoretical lane average flow The calculation formula is:

[0048]

[0049] in is the average lane theoretical flow, S0 is the total flow, and N is the number of lanes;

[0050] Get the maximum speed limit and the safety distance corresponding to the maximum speed of the road, divide the maximum speed limit by the safety distance corresponding to the maximum speed to get the maximum theoretical flow rate of the average lane, and the maximum theoretical flow rate of the average lane The calculation formula is:

[0051]

[0052] in is the maximum theoretical flow rate of the average lane, V0 is the maximum speed limit, D0 is the safety distance corresponding to the maximum speed, and ω3 is the adjustment coefficient of the maximum theoretical flow rate of the average lane;

[0053] The road load index is obtained by dividing the average lane theoretical flow by the average lane theoretical flow maximum and by the synergy coefficient between lanes. The synergy coefficient is set as a logarithmic function of the number of lanes according to the characteristics that the synergy increases with the increase of the number of lanes and the slope decreases. The calculation formula of the road load index P is:

[0054]

[0055] Where P is the road load index, lnN is the main function of the cooperative effect between lanes, ω2 is the adjustment coefficient of the cooperative effect between lanes, and b1 is the bias of the cooperative effect between lanes.

[0056] Furthermore, the working steps of the prediction indicator function calculation module include:

[0057] Obtain the number of vehicles and vehicle speeds in different areas of roads during a preset time period to calculate the actual average speed. The calculation formula is:

[0058]

[0059] Among them V1 ′ 、V2 ′ ,…,V n ′ is the speed of passing vehicles, n is the number of passing vehicles; the difference ratio between the actual average speed and the theoretical average speed is calculated and compared with the preset threshold ratio, and a road abnormality prediction indicator function is constructed. The calculation formula is:

[0060]

[0061] in is the actual average speed, d is the preset threshold ratio between the actual average speed and the theoretical average speed, 0 means there are no other abnormal factors on the road, and 1 means there are other abnormal factors on the road; when the output of the prediction indicator function matches the actual situation, monitoring continues according to the prediction indicator function; when the output of the prediction indicator function does not match the actual situation, the coefficient and bias of the functional relationship between the theoretical average speed and the road load index are iteratively optimized through back propagation of the loss function.

[0062] Furthermore, the working steps of the loss function optimization module include:

[0063] The theoretical average speed, the actual average speed and the actual average flow rate corresponding to the preset time interval t are obtained, and a mean square error loss function is established. The calculation formula of the mean square error loss function loss(v) is:

[0064]

[0065] in is the theoretical average speed corresponding to the i-th preset time interval t, is the actual average speed corresponding to the i-th preset time interval t, m is the number of preset values; the above theoretical average speed Calculation formula, actual average speed Substitute the calculation formula into the mean square error loss function to obtain the complete mean square error loss function:

[0066]

[0067] According to the monotonicity of the function, the mean square error loss function is derived with respect to ω1, ω2, b1, and ω3 respectively, and ω1, ω2, b1, and ω3 are corrected according to the preset adaptive learning parameters. The correction formula is:

[0068]

[0069] Where δ is any one of the parameters ω or b in the loss function loss(v), δ ′ is the updated parameter ω or b; j is the subscript of the parameter ω or b in the function loss(v); η is the preset adaptive learning parameter.

[0070] (3) Beneficial effects

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

[0072] 1. By innovatively constructing the functional relationship between the theoretical average speed and the road load index, the theoretical average speed can be more accurately predicted based on the total flow variable;

[0073] 2. By comparing the difference between the actual average speed and the theoretical average speed, it indicates whether there are abnormal factors on the road;

[0074] 3. Through the back propagation of the loss function, the coefficients and bias of the functional relationship between the theoretical average speed and the road load index are iteratively optimized to provide a more accurate prediction for the next theoretical average speed prediction cycle. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] Figure 1 This is a flow chart of a method for detecting anomalies in intelligent traffic information based on big data according to Embodiment 1 of the present invention;

[0076] Figure 2 This is a schematic diagram of the composition of a smart traffic information anomaly detection system based on big data according to Example 2 of the present invention. DETAILED DESCRIPTION

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

[0078] Before giving examples, it is necessary to explain the application scenarios of the present invention. The present invention is based on the fact that in existing intelligent transportation systems, the detection of road information anomalies often relies on simply comparing current data with historical data. These methods cannot accurately reflect abnormal situations based on changes in road traffic. Therefore, an innovative functional relationship between the theoretical average speed and the road load index is constructed, the difference ratio between the actual average speed and the theoretical average speed is compared, and a prediction indicator function is established; when the output of the prediction indicator function matches the actual situation, monitoring continues according to the prediction indicator function; when the output of the prediction indicator function does not match the actual situation, the coefficients and bias of the functional relationship between the theoretical average speed and the road load index are iteratively optimized through back propagation of the loss function.

[0079] like Figure 1 As shown, this embodiment 1 provides a method for detecting anomalies in intelligent traffic information based on big data, characterized in that the method comprises the following steps:

[0080] S1. Calculate the average lane theoretical flow rate by obtaining the total flow rate and the number of lanes on the road; calculate the maximum theoretical flow rate of the average lane by using the maximum speed specified by the road and the safety distance corresponding to the maximum speed; divide the average lane theoretical flow rate by the maximum theoretical flow rate of the average lane, and combine the synergy effect coefficient between lanes to obtain the road load index; construct a functional relationship between the theoretical average speed and the road load index;

[0081] S2, obtaining the number of vehicles and vehicle speeds passing through the road within a preset time period, and obtaining the actual average speed of the passing vehicles; calculating the difference ratio between the actual average speed and the theoretical average speed, comparing the difference ratio with the preset threshold ratio, and constructing a prediction indicator function according to conditional judgment and output; when the difference ratio is greater than the preset threshold ratio, outputting that an abnormal factor exists; when the difference ratio is less than or equal to the preset threshold ratio, outputting that no abnormal factor exists;

[0082] S3. Establish a mean square error loss function of the theoretical average speed to calculate the mean square error between the actual average speed and the theoretical average speed. When the output of the prediction indicator function does not match the actual situation, the functional relationship between the theoretical average speed and the road load index is iteratively optimized through back propagation.

[0083] For example: Assume that the total number of vehicles passing through a certain road in a certain period of time is 3,000 vehicles per hour, and the number of lanes is 4. The total flow is divided by the number of lanes, that is, 3,000 vehicles per hour ÷ 4 lanes = 750 vehicles per lane per hour; the maximum speed limit of the road is 80 kilometers per hour, and the corresponding safe vehicle distance is 80 meters. The theoretical maximum number of vehicles that can pass through each lane per hour, that is, the maximum theoretical flow of the average lane, is 80 kilometers per hour ÷ 0.08 kilometers = 1,000 vehicles per hour; the average lane theoretical flow is divided by the maximum theoretical flow of the average lane, that is, 750 vehicles ÷ 1,000 vehicles = 0.75; assuming that the synergy coefficient between lanes is 1.1, the road load index is 0. 75÷1.1≈0.682, which is greater than the threshold of the road load index that affects the theoretical average speed. According to the mapping relationship between the theoretical average speed and the road load index, the theoretical average speed is 70 km / h. The actual average speed of the vehicle monitored is 50 km / h, and the difference ratio with the theoretical average speed is (70 km / h-50 km / h) / 70 km / h=0.286, which is greater than the preset threshold ratio of 0.2. This indicates that there are abnormal factors on the road, such as a vehicle may have an accident and occupy the lane, or a vehicle may have been driving at a snail's pace for a long time, resulting in a decrease in the traffic efficiency of a lane, or there may be foreign objects falling on the road and occupying the lane.

[0084] Furthermore, the method for constructing the functional relationship between the theoretical average speed and the road load index includes:

[0085] According to the vehicle flow characteristics, the average lane theoretical flow is divided by the maximum theoretical flow of the average lane and combined with the synergy coefficient between lanes to obtain the road load index. A negative exponential function with e as the base is constructed and the road load index is used as the function index. When the road load index is within the threshold range, the theoretical average speed is equal to the maximum speed limit. When the road load index is greater than the preset threshold, the theoretical average speed decreases with the increase of the road load index and the slope gradually decreases. The theoretical average speed The calculation formula is:

[0086]

[0087] in is the theoretical average speed, P is the road load index and its value is between 0 and 1, is the attenuation index of the theoretical average speed according to the road load index, bias ω1 is the coefficient controlling the attenuation index of the road load index, and P0 is the threshold of the road load index that affects the theoretical average speed.

[0088] For example, assuming that the maximum speed of the road section is V0 = 120 km / h, when the road load index P is less than the threshold value P0, that is, when the number of vehicles on the road is small, the theoretical average speed It should be equal to the maximum vehicle speed, that is, V = V0 = 120 km / h. When the road load index is greater than the threshold, the theoretical average speed will decrease as the road load index increases; assuming the threshold P0 = 0.5, that is, when the number of vehicles on the road exceeds 50% of the total road capacity, it begins to affect the theoretical average speed; at this time, the attenuation index ω1 is set to 0.5, that is, when the road load index exceeds the threshold, the theoretical average speed will decrease at e -(0.5×P) The attenuation mode decreases with the increase of the road load index; for example, when the road load index is P = 0.6, the theoretical average speed is calculated as V = 120 km / h × e -(0.5×0.6) =120 km / h×0.7408≈88.89 km / h.

[0089] Furthermore, the method of obtaining the road load index by dividing the average lane theoretical flow by the average lane theoretical flow maximum according to the vehicle flow characteristics and combining the synergy effect coefficient between lanes includes:

[0090] Obtain the total flow and number of lanes in a preset time period to calculate the average lane theoretical flow and the theoretical lane average flow The calculation formula is:

[0091]

[0092] in is the average lane theoretical flow, S0 is the total flow, and N is the number of lanes;

[0093] Get the maximum speed limit and the safety distance corresponding to the maximum speed of the road, divide the maximum speed limit by the safety distance corresponding to the maximum speed to get the maximum theoretical flow rate of the average lane, and the maximum theoretical flow rate of the average lane The calculation formula is:

[0094]

[0095] in is the maximum theoretical flow rate of the average lane, V0 is the maximum speed limit, D0 is the safety distance corresponding to the maximum speed, and ω3 is the adjustment coefficient of the maximum theoretical flow rate of the average lane;

[0096] The road load index is obtained by dividing the average lane theoretical flow by the average lane theoretical flow maximum and by the synergy coefficient between lanes. The synergy coefficient is set as a logarithmic function of the number of lanes according to the characteristics that the synergy increases with the increase of the number of lanes and the slope decreases. The calculation formula of the road load index P is:

[0097]

[0098] Where P is the road load index, lnN is the main function of the cooperative effect between lanes, ω2 is the adjustment coefficient of the cooperative effect between lanes, and b1 is the bias of the cooperative effect between lanes.

[0099] For example, assuming that the total flow of the road section S0 = 3000 vehicles / hour, the number of lanes N = 4 lanes, the maximum speed V0 = 120 kilometers / hour, the safety distance corresponding to the maximum speed D0 = 0.1 kilometers, the average lane theoretical flow maximum adjustment coefficient ω3 = 0.8, the coordination effect adjustment coefficient between lanes ω2 = 0.6, and the coordination effect bias b1 between lanes = 0.2; calculate the average lane theoretical flow Calculate the maximum theoretical flow rate of the average lane Calculating the Road Load Index

[0100] Furthermore, the method of constructing a prediction indicator function according to conditional judgment and output includes:

[0101] Obtain the number of vehicles and vehicle speeds in different areas of roads during a preset time period to calculate the actual average speed. The calculation formula is:

[0102]

[0103] Among them V1 ′ 、V2 ′ ,…,V n ′ is the speed of passing vehicles, n is the number of passing vehicles; the difference ratio between the actual average speed and the theoretical average speed is calculated and compared with the preset threshold ratio, and a road abnormality prediction indicator function is constructed. The calculation formula is:

[0104]

[0105] in is the actual average speed, d is the preset threshold ratio between the actual average speed and the theoretical average speed, 0 means there are no other abnormal factors on the road, and 1 means there are other abnormal factors on the road; when the output of the prediction indicator function matches the actual situation, monitoring continues according to the prediction indicator function; when the output of the prediction indicator function does not match the actual situation, the coefficient and bias of the functional relationship between the theoretical average speed and the road load index are iteratively optimized through back propagation of the loss function.

[0106] For example, according to the mapping relationship between the theoretical average speed and the road load index, the theoretical average speed is 70 km / h, and the actual average speed of the vehicle monitored is 50 km / h. The difference ratio with the theoretical average speed is (70 km / h-50 km / h) ÷ 70 km / h ≈ 0.286, which is greater than the preset threshold ratio of 20%. It indicates that there may be abnormal lane occupation situations such as vehicle accidents, vehicles driving at a snail's pace for a long time, and foreign objects falling on the road.

[0107] Furthermore, the method of iteratively optimizing the coefficients and bias of the functional relationship between the theoretical average speed and the road load index by back propagation of the loss function includes:

[0108] The theoretical average speed, the actual average speed and the actual average flow rate corresponding to the preset time interval t are obtained, and a mean square error loss function is established. The calculation formula of the mean square error loss function loss(v) is:

[0109]

[0110] in is the theoretical average speed corresponding to the i-th preset time interval t, is the actual average speed corresponding to the i-th preset time interval t, m is the number of preset values; the above theoretical average speed Calculation formula, actual average speed Substitute the calculation formula into the mean square error loss function to obtain the complete mean square error loss function:

[0111]

[0112] According to the monotonicity of the function, the mean square error loss function is derived with respect to ω1, ω2, b1, and ω3 respectively, and ω1, ω2, b1, and ω3 are corrected according to the preset adaptive learning parameters. The correction formula is:

[0113]

[0114] Where δ is any one of the parameters ω or b in the loss function loss(v), δ ′ is the updated parameter ω or b; j is the subscript of the parameter ω or b in the function loss(v); η is the preset adaptive learning parameter.

[0115] For example, according to the mapping relationship between the theoretical average speed and the road load index, the theoretical average speed is 70 kilometers per hour. The actual average speed of the vehicle is actually monitored to be 50 kilometers per hour. After investigation, no abnormal factors are found. Therefore, the coefficients and bias of the functional relationship between the theoretical average speed and the road load index are iteratively optimized through back propagation of the loss function. When the loss function is less than the preset threshold, it is judged that the theoretical average speed function has converged and the iterative calculation is no longer continued.

[0116] Based on the same inventive concept, Figure 2 As shown, this embodiment 2 also provides a smart traffic information anomaly detection system based on big data, the system includes: a theoretical average speed calculation module, a prediction indicator function calculation module, and a loss function optimization module; the data acquisition module is connected to the theoretical average speed calculation module, the theoretical average speed calculation module is connected to the prediction indicator function calculation module, and the prediction indicator function calculation module is connected to the loss function optimization module;

[0117] Theoretical average speed calculation module, used to obtain the total road flow and the number of lanes to calculate the average lane theoretical flow, obtain the road's maximum speed and the safety distance corresponding to the maximum speed to calculate the average lane theoretical flow maximum value, divide the average lane theoretical flow by the average lane theoretical flow maximum value and combine the synergy effect coefficient between lanes to obtain the road load index, and construct a functional relationship between the theoretical average speed and the road load index;

[0118] The prediction indicator function calculation module is used to obtain the number of vehicles and vehicle speeds passing through the road within a preset time period, and obtain the actual average speed of the passing vehicles; calculate the difference ratio between the actual average speed and the theoretical average speed, compare the difference ratio with the preset threshold ratio, and construct the prediction indicator function according to the condition judgment and output; when the difference ratio is greater than the preset threshold ratio, the output is that an abnormal factor exists; when the difference ratio is less than or equal to the preset threshold ratio, the output is that there is no abnormal factor;

[0119] The loss function optimization module is used to continue monitoring according to the prediction indication function when the output of the prediction indication function matches the actual situation; when the output of the prediction indication function does not match the actual situation, the coefficients and bias of the functional relationship between the theoretical average speed and the road load index are iteratively optimized through back propagation of the loss function.

[0120] Furthermore, the working steps of the theoretical average speed calculation module include:

[0121] According to the vehicle flow characteristics, the average lane theoretical flow is divided by the maximum theoretical flow of the average lane and combined with the synergy coefficient between lanes to obtain the road load index. A negative exponential function with e as the base is constructed and the road load index is used as the function index. When the road load index is within the threshold range, the theoretical average speed is equal to the maximum speed limit. When the road load index is greater than the preset threshold, the theoretical average speed decreases with the increase of the road load index and the slope gradually decreases. The theoretical average speed The calculation formula is:

[0122]

[0123] in is the theoretical average speed, P is the road load index and its value is between 0 and 1, is the attenuation index of the theoretical average speed according to the road load index, bias ω1 is the coefficient controlling the attenuation index of the road load index, and P0 is the threshold of the road load index that affects the theoretical average speed.

[0124] Furthermore, the working steps of the theoretical average speed calculation module also include:

[0125] Obtain the total flow and number of lanes in a preset time period to calculate the average lane theoretical flow and the theoretical lane average flow The calculation formula is:

[0126]

[0127] in is the average lane theoretical flow, S0 is the total flow, and N is the number of lanes;

[0128] Get the maximum speed limit and the safety distance corresponding to the maximum speed of the road, divide the maximum speed limit by the safety distance corresponding to the maximum speed to get the maximum theoretical flow rate of the average lane, and the maximum theoretical flow rate of the average lane The calculation formula is:

[0129]

[0130] in is the maximum theoretical flow rate of the average lane, V0 is the maximum speed limit, D0 is the safety distance corresponding to the maximum speed, and ω3 is the adjustment coefficient of the maximum theoretical flow rate of the average lane;

[0131] The road load index is obtained by dividing the average lane theoretical flow by the average lane theoretical flow maximum and by the synergy coefficient between lanes. The synergy coefficient is set as a logarithmic function of the number of lanes according to the characteristics that the synergy increases with the increase of the number of lanes and the slope decreases. The calculation formula of the road load index P is:

[0132]

[0133] Where P is the road load index, lnN is the main function of the cooperative effect between lanes, ω2 is the adjustment coefficient of the cooperative effect between lanes, and b1 is the bias of the cooperative effect between lanes.

[0134] Furthermore, the working steps of the prediction indicator function calculation module include:

[0135] Obtain the number of vehicles and vehicle speeds in different areas of roads during a preset time period to calculate the actual average speed. The calculation formula is:

[0136]

[0137] Among them V1 ′ 、V2 ′ ,…,V n ′ is the speed of passing vehicles, n is the number of passing vehicles; the difference ratio between the actual average speed and the theoretical average speed is calculated and compared with the preset threshold ratio, and a road abnormality prediction indicator function is constructed. The calculation formula is:

[0138]

[0139] in is the actual average speed, d is the preset threshold ratio between the actual average speed and the theoretical average speed, 0 means there are no other abnormal factors on the road, and 1 means there are other abnormal factors on the road; when the output of the prediction indicator function matches the actual situation, monitoring continues according to the prediction indicator function; when the output of the prediction indicator function does not match the actual situation, the coefficient and bias of the functional relationship between the theoretical average speed and the road load index are iteratively optimized through back propagation of the loss function.

[0140] Furthermore, the working steps of the loss function optimization module include:

[0141] The theoretical average speed, the actual average speed and the actual average flow rate corresponding to the preset time interval t are obtained, and a mean square error loss function is established. The calculation formula of the mean square error loss function loss(v) is:

[0142]

[0143] in is the theoretical average speed corresponding to the i-th preset time interval t, is the actual average speed corresponding to the i-th preset time interval t, m is the number of preset values; the above theoretical average speed Calculation formula, actual average speed Substitute the calculation formula into the mean square error loss function to obtain the complete mean square error loss function:

[0144]

[0145] According to the monotonicity of the function, the mean square error loss function is derived with respect to ω1, ω2, b1, and ω3 respectively, and ω1, ω2, b1, and ω3 are corrected according to the preset adaptive learning parameters. The correction formula is:

[0146]

[0147] Where δ is any one of the parameters ω or b in the loss function loss(v), δ ′ is the updated parameter ω or b; j is the subscript of the parameter ω or b in the function loss(v); η is the preset adaptive learning parameter.

[0148] It should be noted that, regarding the system in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0149] Finally, it should be noted that: Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments, or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for detecting anomalies in intelligent traffic information based on big data, characterized in that: The method comprises the following steps: S1. Calculate the average lane theoretical flow rate by obtaining the total flow rate and the number of lanes on the road; calculate the maximum theoretical flow rate of the average lane by using the maximum speed specified by the road and the safety distance corresponding to the maximum speed; divide the average lane theoretical flow rate by the maximum theoretical flow rate of the average lane, and combine the synergy effect coefficient between lanes to obtain the road load index; construct a functional relationship between the theoretical average speed and the road load index; S2, obtaining the number of vehicles and vehicle speeds passing through the road within a preset time period, and obtaining the actual average speed of the passing vehicles; calculating the difference ratio between the actual average speed and the theoretical average speed, comparing the difference ratio with the preset threshold ratio, and constructing a prediction indicator function according to conditional judgment and output; when the difference ratio is greater than the preset threshold ratio, outputting that an abnormal factor exists; when the difference ratio is less than or equal to the preset threshold ratio, outputting that no abnormal factor exists; S3. Establish a mean square error loss function of the theoretical average speed to calculate the mean square error between the actual average speed and the theoretical average speed. When the output of the prediction indicator function does not match the actual situation, the functional relationship between the theoretical average speed and the road load index is iteratively optimized through back propagation.

2. According to the big data-based intelligent traffic information anomaly detection method according to claim 1, it is characterized in that: The method for constructing the functional relationship between the theoretical average speed and the road load index comprises: According to the vehicle flow characteristics, the average lane theoretical flow is divided by the maximum theoretical flow of the average lane and combined with the synergy coefficient between lanes to obtain the road load index. A negative exponential function with e as the base is constructed and the road load index is used as the function index. When the road load index is within the threshold range, the theoretical average speed is equal to the maximum speed limit. When the road load index is greater than the preset threshold, the theoretical average speed decreases with the increase of the road load index and the slope gradually decreases. The theoretical average speed The calculation formula is: in is the theoretical average speed, P is the road load index and its value is between 0 and 1, is the attenuation index of the theoretical average speed according to the road load index, bias ω1 is the coefficient controlling the attenuation index of the road load index, and P0 is the threshold of the road load index that affects the theoretical average speed.

3. The method for detecting anomalies in intelligent traffic information based on big data according to claim 2 is characterized in that: The method of obtaining the road load index by dividing the average lane theoretical flow by the average lane theoretical flow maximum according to the vehicle flow characteristics and combining the synergy effect coefficient between lanes includes: Obtain the total flow and number of lanes in a preset time period to calculate the average lane theoretical flow and the theoretical lane average flow The calculation formula is: in is the average lane theoretical flow, S0 is the total flow, and N is the number of lanes; Get the maximum speed limit and the safety distance corresponding to the maximum speed of the road, divide the maximum speed limit by the safety distance corresponding to the maximum speed to get the maximum theoretical flow rate of the average lane, and the maximum theoretical flow rate of the average lane The calculation formula is: in is the maximum theoretical flow rate of the average lane, V0 is the maximum speed limit, D0 is the safety distance corresponding to the maximum speed, and ω3 is the adjustment coefficient of the maximum theoretical flow rate of the average lane; The road load index is obtained by dividing the average lane theoretical flow by the average lane theoretical flow maximum and by the synergy coefficient between lanes. The synergy coefficient is set as a logarithmic function of the number of lanes according to the characteristics that the synergy increases with the increase of the number of lanes and the slope decreases. The calculation formula of the road load index P is: Where P is the road load index, lnN is the main function of the cooperative effect between lanes, ω2 is the adjustment coefficient of the cooperative effect between lanes, and b1 is the bias of the cooperative effect between lanes.

4. The method for detecting anomalies in intelligent traffic information based on big data according to claim 1 is characterized in that: The method for constructing a prediction indicator function according to conditional judgment and output includes: Obtain the number of vehicles and vehicle speeds in different areas of roads during a preset time period to calculate the actual average speed. The calculation formula is: V1 ′ 、V2 ′ ,…,V n ′ is the speed of passing vehicles, n is the number of passing vehicles; the difference ratio between the actual average speed and the theoretical average speed is calculated and compared with the preset threshold ratio, and a road abnormality prediction indicator function is constructed. The calculation formula is: in is the actual average speed, d is the preset threshold ratio between the actual average speed and the theoretical average speed, 0 means there are no other abnormal factors on the road, and 1 means there are other abnormal factors on the road; when the output of the prediction indicator function matches the actual situation, monitoring continues according to the prediction indicator function; when the output of the prediction indicator function does not match the actual situation, the coefficient and bias of the functional relationship between the theoretical average speed and the road load index are iteratively optimized through back propagation of the loss function.

5. The method for detecting anomalies in intelligent traffic information based on big data according to claim 4 is characterized in that: The method of iteratively optimizing the coefficients and bias of the functional relationship between the theoretical average speed and the road load index through back propagation of the loss function includes: The theoretical average speed, the actual average speed and the actual average flow rate corresponding to the preset time interval t are obtained, and a mean square error loss function is established. The calculation formula of the mean square error loss function loss(v) is: in is the theoretical average speed corresponding to the i-th preset time interval t, is the actual average speed corresponding to the i-th preset time interval t, m is the number of preset values; the above theoretical average speed Calculation formula, actual average speed Substitute the calculation formula into the mean square error loss function to obtain the complete mean square error loss function: According to the monotonicity of the function, the mean square error loss function is derived with respect to ω1, ω2, b1, and ω3 respectively, and ω1, ω2, b1, and ω3 are corrected according to the preset adaptive learning parameters. The correction formula is: Where δ is any one of the parameters ω or b in the loss function loss(v), δ ′ is the updated parameter ω or b; j is the subscript of the parameter ω or b in the function loss(v); η is the preset adaptive learning parameter.

6. A smart traffic information anomaly detection system based on big data, characterized in that: The system comprises: a theoretical average speed calculation module, a prediction indicator function calculation module, and a loss function optimization module; the theoretical average speed calculation module is connected to the prediction indicator function calculation module, and the prediction indicator function calculation module is connected to the loss function optimization module; Theoretical average speed calculation module is used to obtain the total flow rate and the number of lanes on the road, and calculate the average lane theoretical flow rate; use the maximum speed limited by the road and the safety distance corresponding to the maximum speed to calculate the maximum theoretical flow rate of the average lane; divide the average lane theoretical flow rate by the maximum theoretical flow rate of the average lane, and combine the synergy effect coefficient between lanes to obtain the road load index; construct a functional relationship between the theoretical average speed and the road load index; The prediction indicator function calculation module is used to obtain the number of vehicles and vehicle speeds passing through the road within a preset time period, and obtain the actual average speed of the passing vehicles; calculate the difference ratio between the actual average speed and the theoretical average speed, compare the difference ratio with the preset threshold ratio, and construct the prediction indicator function according to the condition judgment and output; when the difference ratio is greater than the preset threshold ratio, the output is that an abnormal factor exists; when the difference ratio is less than or equal to the preset threshold ratio, the output is that there is no abnormal factor; The loss function optimization module is used to establish the mean square error loss function of the theoretical average speed to calculate the mean square error between the actual average speed and the theoretical average speed. When the output of the prediction indicator function does not match the actual situation, the functional relationship between the theoretical average speed and the road load index is iteratively optimized through back propagation.

7. The big data-based intelligent traffic information anomaly detection system according to claim 6 is characterized in that: The working steps of the theoretical average speed calculation module include: According to the vehicle flow characteristics, the average lane theoretical flow is divided by the maximum theoretical flow of the average lane and combined with the synergy coefficient between lanes to obtain the road load index. A negative exponential function with e as the base is constructed and the road load index is used as the function index. When the road load index is within the threshold range, the theoretical average speed is equal to the maximum speed limit. When the road load index is greater than the preset threshold, the theoretical average speed decreases with the increase of the road load index and the slope gradually decreases. The theoretical average speed The calculation formula is: in is the theoretical average speed, P is the road load index and its value is between 0 and 1, is the attenuation index of the theoretical average speed according to the road load index, bias ω1 is the coefficient controlling the attenuation index of the road load index, and P0 is the threshold of the road load index that affects the theoretical average speed.

8. The big data-based intelligent traffic information anomaly detection system according to claim 7 is characterized in that: The working steps of the theoretical average speed calculation module also include: Obtain the total flow and number of lanes in a preset time period to calculate the average lane theoretical flow and the theoretical lane average flow The calculation formula is: in is the average lane theoretical flow, S0 is the total flow, and N is the number of lanes; Get the maximum speed limit and the safety distance corresponding to the maximum speed of the road, divide the maximum speed limit by the safety distance corresponding to the maximum speed to get the maximum theoretical flow rate of the average lane, and the maximum theoretical flow rate of the average lane The calculation formula is: in is the maximum theoretical flow rate of the average lane, V0 is the maximum speed limit, D0 is the safety distance corresponding to the maximum speed, and ω3 is the adjustment coefficient of the maximum theoretical flow rate of the average lane; The road load index is obtained by dividing the average lane theoretical flow by the average lane theoretical flow maximum and by the synergy coefficient between lanes. The synergy coefficient is set as a logarithmic function of the number of lanes according to the characteristics that the synergy increases with the increase of the number of lanes and the slope decreases. The calculation formula of the road load index P is: Where P is the road load index, lnN is the main function of the cooperative effect between lanes, ω2 is the adjustment coefficient of the cooperative effect between lanes, and b1 is the bias of the cooperative effect between lanes.

9. The big data-based intelligent traffic information anomaly detection system according to claim 6, characterized in that: The working steps of the prediction indicator function calculation module include: Obtain the number of vehicles and vehicle speeds in different areas of roads during a preset time period to calculate the actual average speed. The calculation formula is: V1 ′ 、V2 ′ ,…,V n ′ is the speed of passing vehicles, n is the number of passing vehicles; the difference ratio between the actual average speed and the theoretical average speed is calculated and compared with the preset threshold ratio, and a road abnormality prediction indicator function is constructed. The calculation formula is: in is the actual average speed, d is the preset threshold ratio between the actual average speed and the theoretical average speed, 0 means there are no other abnormal factors on the road, and 1 means there are other abnormal factors on the road; when the output of the prediction indicator function matches the actual situation, monitoring continues according to the prediction indicator function; when the output of the prediction indicator function does not match the actual situation, the coefficient and bias of the functional relationship between the theoretical average speed and the road load index are iteratively optimized through back propagation of the loss function.

10. The big data-based intelligent traffic information anomaly detection system according to claim 9, characterized in that: The working steps of the loss function optimization module include: The theoretical average speed, the actual average speed and the actual average flow rate corresponding to the preset time interval t are obtained, and a mean square error loss function is established. The calculation formula of the mean square error loss function loss(v) is: in is the theoretical average speed corresponding to the i-th preset time interval t, is the actual average speed corresponding to the i-th preset time interval t, m is the number of preset values; the above theoretical average speed Calculation formula, actual average speed Substitute the calculation formula into the mean square error loss function to obtain the complete mean square error loss function: According to the monotonicity of the function, the mean square error loss function is derived with respect to ω1, ω2, b1, and ω3 respectively, and ω1, ω2, b1, and ω3 are corrected according to the preset adaptive learning parameters. The correction formula is: Where δ is any one of the parameters ω or b in the loss function loss(v), δ ′ is the updated parameter ω or b; j is the subscript of the parameter ω or b in the function loss(v); η is the preset adaptive learning parameter.