Intelligent analysis method of traffic data based on big data
By analyzing the historical and real-time data of traffic accidents through big data, calculating the probability of accidents and issuing early warnings, it solves the problem of poor early warning effects in existing technologies and achieves more accurate and effective early warnings of traffic accidents.
Patent Information
- Application Number
- CN202410869168.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-01
AI Technical Summary
The existing traffic accident early warning system is only based on historical data and cannot analyze the probability of accidents in real time, resulting in poor early warning effects and inability to effectively improve driver attention and safety.
Using the intelligent analysis method of traffic data based on big data, by obtaining historical information and real-time monitoring data of the location to be evaluated, the probability of accident occurrence is calculated, and early warning instructions are issued based on the probability, including analyzing the relationship between traffic flow and the number of accidents and weather conditions. It is related to the number of accidents, quantifies traffic flow and weather conditions, and calculates the probability of accidents to issue early warnings.
It improves the objectivity and accuracy of the probability of accidents, enhances the early warning effect, and effectively avoids traffic accidents.
Smart Images

Figure CN118397847B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to an intelligent analysis method of traffic data based on big data. Background Art
[0002] "There are thousands of roads, but safety comes first." Traffic accidents have occurred frequently in recent years, and accidents always come unexpectedly. Minor accidents may cause time delays and money losses; major accidents may cause the loss of life of oneself or a loved one. In fact, many traffic accidents can be avoided. When an environment with a high probability of accidents is predicted, early warnings to vehicle drivers can avoid the occurrence of most accidents, effectively reduce economic losses, and improve traffic efficiency and public safety. Therefore, it is very necessary to predict and avoid traffic accidents.
[0003] At present, the prediction of traffic accidents is often based on the number of historical traffic accidents, dividing accident-prone areas, and making voice announcements when drivers pass by. However, there is no distinction between risk levels, nor is there any analysis of the probability of an accident based on the current real-time situation. A single voice announcement sometimes fails to attract the attention of drivers, and thus does not increase their attention, resulting in poor warning effects. Summary of the invention
[0004] In order to solve the technical problem of poor warning effect, the purpose of the present invention is to provide an intelligent analysis method of traffic data based on big data. The technical solution adopted is as follows:
[0005] A traffic data intelligent analysis method based on big data, comprising:
[0006] Acquire location information of the location to be evaluated, wherein the location information includes the name and location of the location to be evaluated;
[0007] Acquire historical information of the location to be evaluated according to the location information, wherein the historical information includes the number of accidents at the location to be evaluated and the traffic flow and weather conditions at the time of the accident;
[0008] Acquire real-time monitoring of the location to be evaluated, and obtain current road condition information based on the real-time monitoring, wherein the current road condition information includes the current traffic volume and weather conditions;
[0009] Calculating the probability of an accident based on the historical information and the current road condition information;
[0010] An assessment result is obtained based on the probability of the accident occurring, and a warning instruction is issued according to the assessment result.
[0011] Preferably, the step of calculating the probability of an accident based on the historical information and the current road condition information includes:
[0012] Based on the historical information, the relationship between the traffic volume and the number of accidents and the relationship between the weather conditions and the number of accidents are analyzed; the relationship between the traffic volume and the number of accidents is the corresponding relationship between the traffic volume and the number of accidents under different weather conditions, and the relationship between the weather conditions and the number of accidents is the corresponding relationship between the weather conditions and the number of accidents under different traffic volumes;
[0013] The probability of an accident occurring is calculated based on the current road condition information, the relationship between the traffic volume and the number of accident occurrences, and the relationship between the weather condition and the number of accident occurrences.
[0014] Preferably, it includes: quantifying the vehicle flow to obtain the size of the vehicle flow; quantifying the weather conditions to obtain the severity of the weather.
[0015] Preferably, the step of analyzing the relationship between the traffic volume and the number of accidents and the relationship between the weather conditions and the number of accidents based on the historical information includes:
[0016] Based on the historical information, the accident sequence number, the traffic volume and the severity of the weather are obtained to form a historical accident ternary set;
[0017] Traversing the elements in the historical accident ternary set, arranging them according to the value of the weather severity, collecting the ternary items corresponding to each weather severity value to obtain a traffic flow ternary set, and obtaining multiple traffic flow-accident number histograms based on the traffic flow ternary set;
[0018] The elements in the historical accident ternary set are traversed, arranged according to the value of the traffic flow size, and the ternary items corresponding to each traffic flow size value are collected to obtain a weather condition ternary set, and multiple weather condition-accident number histograms are obtained based on the weather condition ternary set.
[0019] Preferably, the step of calculating the probability of an accident based on the current road condition information, the relationship between the traffic volume and the number of accidents, and the relationship between the weather condition and the number of accidents includes:
[0020] Finding a corresponding current traffic flow-accident number histogram from the plurality of traffic flow-accident number histograms according to the severity of the weather quantified by the current weather conditions;
[0021] Finding a corresponding current weather condition-accident number histogram from a plurality of weather condition-accident number histograms according to the traffic volume quantified by the current traffic volume;
[0022] The probability of an accident occurring is calculated based on the current weather condition-accident number histogram and the current traffic flow-accident number histogram.
[0023] Preferably, the step of calculating the probability of an accident based on the current weather condition-accident number histogram and the current traffic flow-accident number histogram comprises:
[0024] Obtaining a basic accident rate according to the number of accidents in the current weather condition-accident number histogram and the current traffic flow-accident number histogram;
[0025] According to the changes in the current traffic flow-accident number histogram and the current traffic flow, the influence of the current traffic flow on the accident rate is obtained;
[0026] According to the changes in the current weather condition-accident number histogram and the current weather severity, the impact of the current weather severity on the accident rate is obtained;
[0027] The accident probability is calculated based on the basic accident rate, the impact of the current weather severity on the accident rate, and the impact of the current traffic volume on the accident rate.
[0028] Preferably, the basic accident rate The calculation formula is:
[0029]
[0030] In the formula, is the number of accidents that occurred under the current traffic volume and weather conditions in the historical information. It is the maximum value of the number of accidents in the current weather conditions-accident number histogram and the current traffic flow-accident number histogram.
[0031] Preferably, the step of obtaining the influence of the current traffic flow on the accident rate according to the change of the current traffic flow-accident number histogram and the current traffic flow size includes: obtaining the traffic flow size corresponding to the valley value of the current traffic flow-accident number histogram is the first target value of the traffic flow; obtain the traffic flow corresponding to the peak value of the current traffic flow-accident number histogram is the second target value of the traffic volume; based on the first target value of the traffic volume , the second target value of traffic volume And the current traffic volume is calculated to obtain the influence of the current traffic volume on the accident rate;
[0032] The step of obtaining the influence of the current weather severity on the accident rate according to the change of the current weather condition-accident number histogram and the current weather severity includes: obtaining the weather severity corresponding to the valley value of the current weather condition-accident number histogram is the first target value of the severity of the weather; obtain the severity of the weather corresponding to the peak value of the current weather condition-accident number histogram is the second target value for the severity of the weather; based on the first target value for the severity of the weather , the second target value of weather severity And the current weather severity is calculated to obtain the impact of the current weather severity on the accident rate.
[0033] Preferably, the degree of influence of the current traffic volume on the accident rate The calculation formula is:
[0034]
[0035] In the formula, is the current traffic volume, is the first target value of the traffic volume, is the second target value of the traffic volume, is a constant greater than 0, exp represents an exponential function;
[0036] The degree of influence of the current severe weather on the accident rate The calculation formula is:
[0037]
[0038] In the formula, Due to the current severe weather conditions, is the first target value of weather severity, is the second target value for the severity of the weather, is a constant greater than 0, and exp represents an exponential function.
[0039] Preferably, the calculation formula of the accident occurrence probability Q is:
[0040]
[0041] In the formula, is the basic accident rate, represents the normalization function, is the impact of the current traffic volume on the accident rate, It is the impact of the current weather severity on the accident rate.
[0042] The present invention has the following beneficial effects: the intelligent traffic data analysis method based on big data proposed in the present invention obtains historical information of the location to be evaluated, comprehensively considers the number of accidents and the traffic volume and weather conditions at the time of the accident, and then calculates the probability of accident occurrence based on the current road condition information. The calculated probability of accident occurrence is more objective and accurate, and after obtaining the evaluation result based on the probability of accident occurrence, an early warning instruction is issued, which can have a good early warning effect, thereby effectively avoiding the occurrence of traffic accidents. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 A schematic diagram of a flow chart of an intelligent traffic data analysis method based on big data provided by an embodiment of the present invention;
[0045] Figure 2 A schematic diagram of a sub-process of step S4 in a method for intelligent analysis of traffic data based on big data provided by an embodiment of the present invention;
[0046] Figure 3 A schematic diagram of a sub-flow of step S41 in a method for intelligent analysis of traffic data based on big data provided by an embodiment of the present invention;
[0047] Figure 4 A schematic diagram of a sub-flow of step S42 in a method for intelligent analysis of traffic data based on big data provided by an embodiment of the present invention;
[0048] Figure 5 A schematic diagram of a sub-process of step S423 in a method for intelligent analysis of traffic data based on big data provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0049] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of a traffic data intelligent analysis method based on big data proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0050] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0051] The specific scheme of the intelligent analysis method of traffic data based on big data provided by the present invention is described in detail below with reference to the accompanying drawings.
[0052] See also Figure 1 , which shows a method flow chart of a method for intelligent analysis of traffic data based on big data provided by an embodiment of the present invention, including:
[0053] Step S1, obtaining location information of a location to be evaluated, wherein the location information includes the name and location of the location to be evaluated;
[0054] Step S2, acquiring historical information of the location to be evaluated according to the location information, wherein the historical information includes the number of accidents at the location to be evaluated and the traffic volume and weather conditions at the time of the accident;
[0055] Step S3, obtaining real-time monitoring of the location to be evaluated, and obtaining current road condition information based on the real-time monitoring, wherein the current road condition information includes the current traffic flow and weather conditions;
[0056] Step S4, calculating the probability of an accident based on the historical information and the current road condition information;
[0057] Step S5, obtaining an evaluation result based on the accident occurrence probability, and issuing a warning instruction according to the evaluation result.
[0058] The intelligent analysis method of traffic data based on big data proposed in the present invention obtains historical information of the location to be evaluated, comprehensively considers the number of accidents and the traffic volume and weather conditions at the time of the accident, and then calculates the probability of accident occurrence based on current road condition information. The calculated probability of accident occurrence is more objective and accurate, and after obtaining the evaluation result based on the probability of accident occurrence, an early warning instruction is issued, which can have a good early warning effect, thereby effectively avoiding the occurrence of traffic accidents.
[0059] The main purpose of the present invention is to determine the impact of different environments on the risk of accidents based on the weather conditions and traffic volume at a certain location when an accident occurred, and to warn drivers in advance to avoid traffic accidents. The following is a detailed description of each step:
[0060] In step S1, the location information of the location to be evaluated may be obtained by obtaining the location through a GPS positioning device on the vehicle. The GPS positioning device on the vehicle may be arranged in a mobile phone or a vehicle system.
[0061] In step S2, it can be understood that based on the location information obtained in step S1, the historical information of the location can be retrieved, specifically, the specific information of traffic accidents at the location in the past year. Preferably, this step also includes a pre-warning, for example, if the historical information of the location shows that a large number of accidents have occurred, a reminder can be made, specifically, a threshold can be preset, and a pre-warning is automatically issued if the threshold is exceeded.
[0062] In step S3, because traffic accidents may be caused by heavy traffic or bad weather conditions, real-time monitoring of the location to be evaluated is obtained, so the possibility of traffic accidents can be judged by observing whether there is heavy traffic and bad weather conditions at the moment.
[0063] It is understood that the order of step S3 is not limited to after step S2. In some embodiments, the real-time monitoring of the location to be evaluated is obtained by a camera on the vehicle. In this case, step S3 only needs to be performed before step S4, and there is no order restriction with step S1 and step S2; in other embodiments, the real-time monitoring of the location to be evaluated is obtained by a camera set up on the driving road. In this case, step S3 needs to be performed after step S1 and before step S4, and there is no order restriction with step S2.
[0064] In step S4, it is well known that the worse the weather conditions, the higher the probability of an accident, and the greater the traffic volume, the higher the probability of an accident. However, the traffic volume and weather conditions belong to two different dimensional systems, and there is not much connection between the two, but both are related to the probability of an accident. Therefore, by analyzing past accidents, the accident rate can be linked to the traffic volume, and the accident rate can be linked to the degree of bad weather, so as to obtain the relationship between the other and the accident rate when one of the two is fixed.
[0065] like Figure 2 As shown, preferably, step S4 includes:
[0066] Step S41: Based on the historical information, analyzing the relationship between the traffic volume and the number of accidents, and the relationship between the weather conditions and the number of accidents; the relationship between the traffic volume and the number of accidents is the corresponding relationship between the traffic volume and the number of accidents under different weather conditions, and the relationship between the weather conditions and the number of accidents is the corresponding relationship between the weather conditions and the number of accidents under different traffic volumes;
[0067] Step S42: Calculate the probability of an accident based on the current road condition information, the relationship between the traffic volume and the number of accidents, and the relationship between the weather condition and the number of accidents.
[0068] For better calculation, it is preferred to quantify the traffic volume to obtain the traffic volume size; and quantify the weather conditions to obtain the severity of the weather. That is, after obtaining the traffic volume and weather conditions in the historical information, and after obtaining the traffic volume and weather conditions in the current road condition information, they need to be quantified and converted into specific values.
[0069] Among them, the traffic volume is relatively easy to obtain. By calculating the number of vehicles that passed within one minute before the current moment and normalizing it, the current traffic volume can be obtained with an output range limited to [0,1]. Weather conditions have various influencing factors, such as temperature and pressure, precipitation and snowfall, visibility, wind speed, sunshine time, humidity, haze and dust, etc. The existing model can be used to calculate the weather severity index, and the output value range is limited to [0,1], the current weather severity.
[0070] In some preferred embodiments, Figure 3 As shown, the step S41 includes:
[0071] Step S411: Obtain the accident sequence number, traffic volume and weather severity based on the historical information to form a historical accident ternary set;
[0072] Step S412: traverse the elements in the historical accident ternary set, arrange them according to the value of the weather severity, collect the ternary items corresponding to each weather severity value to obtain a traffic flow ternary set, and obtain multiple traffic flow-accident number histograms based on the traffic flow ternary set;
[0073] Step S413: traverse the elements in the historical accident ternary set, arrange them according to the value of the vehicle flow size, collect the ternary items corresponding to each vehicle flow size value to obtain a weather condition ternary set, and obtain multiple weather condition-accident number histograms based on the weather condition ternary set.
[0074] Therein, step S412 and step S413 are not limited in sequence and can be performed simultaneously.
[0075] Step S411 specifically includes: Historical traffic accidents (assuming a total of times), using the aforementioned quantization operation to calculate the traffic volume at the time of the accident The severity of the weather , obtain a (accident sequence number , traffic volume , severe weather conditions ) , the triple set This is the historical accident ternary set.
[0076] If we want to quantify the relationship between the historical risk of the location and the volume of traffic and the severity of the weather, since there is no obvious correlation between the volume of traffic and the severity of the weather, we can use the idea of the control variable method to simplify the multi-factor problem into multiple single-factor problems, calculate and analyze the degree of influence of the single factor, and then combine the multiple single-factor results obtained from the analysis to get the final result. For example: when the volume of traffic is a certain value, analyze the relationship between the severity of the weather and the number of accidents under the premise of the volume of traffic, and thus calculate the quantitative value of the impact of the severity of the weather on the risk.
[0077] For step S412 and step S413, the specific implementation methods are basically the same. Taking step S413 as an example, specifically, traversing the historical accident triple set The elements in the The values are arranged from low to high. For each value of traffic flow size (such as the value of a certain traffic flow size ), extract the historical accident triple set All traffic flow values in the ) and the set they form is called a triple set , the triple set This is the weather condition ternary set. From this ternary set, we can obtain the weather severity-accident number histogram (the histogram data is taken from the historical accident ternary set , specifically in terms of traffic volume Value is Under the premise of The vertical axis is the number of accidents. Under the premise that the severity of the weather is the value corresponding to the horizontal coordinate of the point, the number of accidents is the value corresponding to the vertical coordinate of the point).
[0078] In some preferred embodiments, Figure 4 As shown, the step S42 includes:
[0079] Step S421: Finding a corresponding current traffic flow-accident number histogram from a plurality of traffic flow-accident number histograms according to the severity of the weather quantified by the current weather conditions;
[0080] Step S422: Finding a corresponding current weather condition-accident number histogram from a plurality of weather condition-accident number histograms according to the traffic flow volume quantified by the current traffic flow;
[0081] Step S423: Calculate the probability of an accident based on the current weather condition-accident number histogram and the current traffic flow-accident number histogram.
[0082] Among them, step S421 and step S422 are not limited to the order, and can also be performed simultaneously. It can be understood that the corresponding histogram can be found according to the current traffic volume and the severity of the weather. Specifically, according to the current traffic volume The severity of the weather is a fixed value , from the above several histograms, we can find that the traffic volume is a constant value The histogram of the severity of weather and the number of accidents under the condition of severe weather is a constant value. The traffic volume-accident number histogram under the traffic volume is preferably stored in order according to the fixed value of the traffic volume or the weather severity for easy search. Considering the timeliness, it is faster to use the binary search method.
[0083] Furthermore, if Figure 5 As shown, the step S423 includes:
[0084] Step S4231: Obtaining a basic accident rate according to the number of accidents in the current weather condition-accident number histogram and the current traffic flow-accident number histogram;
[0085] Step S4232: Obtaining the influence of the current traffic flow on the accident rate according to the change of the current traffic flow-accident number histogram and the current traffic flow;
[0086] Step S4233: according to the change of the current weather condition-accident number histogram and the current weather severity, the influence of the current weather severity on the accident rate is obtained;
[0087] Step S4234: Calculate the accident probability based on the basic accident rate, the impact of the current weather severity on the accident rate, and the impact of the current traffic flow on the accident rate.
[0088] Among them, step S4231, step S4232, and step S4233 are not limited in order and can be performed simultaneously.
[0089] Preferably, in step S4231, the basic accident rate The calculation formula is:
[0090]
[0091] In the formula, is the number of accidents that occurred under the current traffic volume and weather conditions in the historical information. It is the maximum value of the number of accidents in the current weather conditions-accident number histogram and the current traffic flow-accident number histogram.
[0092] Preferably, the step S4232 includes: obtaining the traffic volume size corresponding to the valley value of the current traffic volume-accident number histogram is the first target value of the traffic flow; obtain the traffic flow corresponding to the peak value of the current traffic flow-accident number histogram is the second target value of the traffic volume; based on the first target value of the traffic volume , the second target value of weather severity The current traffic volume is used to calculate the influence of the current traffic volume on the accident rate. The calculation formula is:
[0093]
[0094] In the formula, is the current traffic volume, is the first target value of the traffic volume, is the second target value of the traffic volume, is a constant greater than 0, and exp represents an exponential function. In some preferred embodiments, Take 1, exp represents the exponential function with natural constant as base.
[0095] Preferably, the step S4233 includes: obtaining the weather severity corresponding to the valley value of the current weather condition-accident number histogram is the first target value of the severity of the weather; obtain the severity of the weather corresponding to the peak value of the current weather condition-accident number histogram is the second target value for the severity of the weather; based on the first target value for the severity of the weather , the second target value of weather severity The current weather severity is calculated to obtain the degree of influence of the current weather severity on the accident rate. The calculation formula is:
[0096]
[0097] In the formula, Due to the current severe weather conditions, is the first target value of weather severity, is the second target value for the severity of the weather, is a constant greater than 0, and exp represents an exponential function. In some preferred embodiments, Take 1, the exponential function is an exponential function with a natural constant as the base.
[0098] Preferably, in step S4234, the calculation formula of the accident occurrence probability Q is:
[0099]
[0100] In the formula, is the basic accident rate, represents the normalization function, is the impact of the current traffic volume on the accident rate, is the influence of the current weather severity on the accident rate. In some preferred embodiments, the normalization function adopts linear normalization, standardized normalization or maximum value normalization.
[0101] The step S423 is further described below.
[0102] If we only look at the functional relationship between the severity of weather and the number of accidents in historical accidents, ideally, the number of accidents should gradually increase with the increase of the severity of weather, and the above-mentioned histogram should show an overall upward trend. However, in real life, on the one hand, people's attention (or vigilance when driving) is not constant. As the severity of weather gradually increases, people's vigilance against bad weather will also increase to a certain extent. The impact on the histogram is that after a certain threshold of severe weather, or when people's vigilance reaches a certain threshold, the number of accidents will decrease (most people can feel the danger of the severe weather, and will take the initiative to increase their vigilance and slow down to drive safely); on the other hand, the occurrence of individual traffic accidents may not be affected by the external environment, but only due to human error (such as fatigue driving, illegal lane changes, and other operations that do not comply with traffic regulations). From the first reason mentioned above, it can be seen that when the weather is not very severe, people tend to be careless, but this situation is relatively rare. The impact on the histogram may be that when the weather is less severe, the number of accidents is greater than that of some severe weather. From this analysis, we can see that the histogram will form a general trend of first dropping to a valley value and then rising to a peak value. Therefore, the severity of the weather corresponding to the valley value and the peak value in the histogram can be recorded as and As the first target value and the second target value of the weather severity. Similarly, the first target value of the traffic volume under each weather severity value can be obtained With the second target value .
[0103] To use the current real-time traffic volume and weather severity to predict the local real-time accident risk, as mentioned above, use the control variable method to separate the two factors, analyze them one by one, and then combine the results of the two to predict the final result of the accident risk. The specific operation is as follows:
[0104] Get the current real-time traffic volume and how severe the weather is , from the above several histograms, we can find that the traffic volume is a constant value The histogram of the severity of weather and the number of accidents under the condition of severe weather is a constant value. The histogram of traffic volume and number of accidents under the traffic volume.
[0105] According to the above two histograms, the traffic volume is The first target value of the weather severity , the second target value ; Get the severity of the weather as The first target value of traffic volume , the second target value . Then observe the historical data histogram and get the traffic volume as The weather is severe Number of historical accidents , the highest number of historical accidents in the two histograms . Set a quantitative value for the real-time accident probability at the current location ,right The calculation formula is as follows:
[0106]
[0107] Formula Description:
[0108] is the number of accidents that occurred under the current traffic volume and weather conditions in the historical information. The ratio of the maximum value of the current weather conditions-accident number histogram and the current traffic flow-accident number histogram The basic accident rate , the larger the value, the higher the real-time accident rate.
[0109] is the current traffic volume, is the first target value of the traffic volume, is the second target value of the traffic volume, is a constant greater than 0, and exp represents an exponential function. In some preferred embodiments, Take 1, the exponential function is an exponential function with a natural constant as the base. It indicates the size of the current traffic flow relative to its first target value. The larger the value is, the higher the real-time traffic flow is than its first target value, and the more likely a traffic accident is to occur. Indicates the degree to which the current traffic flow approaches its second target value (the number of accidents approaches its peak value). The closer it is, The smaller the value, the larger the overall value (add In order to prevent the denominator from The situation occurs, is a minimum value, which can be defined by the user). The two together represent the impact of the current real-time traffic volume on the accident rate. . Similarly Comprehensively indicate the impact of the current severe weather on the accident rate .
[0110] Represents a normalized function that measures the impact of current traffic volume on the accident rate The impact of the current weather severity on the accident rate The product of the normalized value is the basic accident rate In some preferred embodiments, the normalization function adopts linear normalization, standardized normalization or maximum value normalization.
[0111] In step S5, an evaluation result is obtained based on the probability of the accident, that is, the warning level is determined according to the probability of the accident Q calculated in step S4. Specifically, it can be a preset threshold. If the probability of the accident Q is less than the threshold, it is determined that the local area is currently in a low-risk stage in real time. Otherwise, it is determined that the local area is currently in a high-risk stage in real time. In some specific embodiments, the preset threshold is 0.4. Then, according to the evaluation result, the warning level is broadcasted to remind the driver to concentrate and drive safely to reduce the probability of accidents.
[0112] According to the calculated accident probability Q, different levels of warnings are issued to vehicles currently at the location and vehicles about to arrive at the location to attract the attention of drivers and increase their vigilance to prevent some traffic accidents that could have been avoided. When the risk is low, the driver is reminded to pay more attention and drive carefully; when the risk is high, the driver is warned in advance that there is a risk of an accident, and the driver is reminded to reduce the speed, drive slowly, keep a distance from the vehicle in front, and turn on the fog lights and other lighting operations when necessary.
[0113] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0114] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. An intelligent analysis method of traffic data based on big data, It is characterized in that include: Acquire location information of the location to be evaluated, wherein the location information includes the name and location of the location to be evaluated; Acquire historical information of the location to be evaluated according to the location information, wherein the historical information includes the number of accidents at the location to be evaluated and the traffic flow and weather conditions at the time of the accident; Acquire real-time monitoring of the location to be evaluated, and obtain current road condition information based on the real-time monitoring, wherein the current road condition information includes the current traffic volume and weather conditions; Calculating the probability of an accident based on the historical information and the current road condition information; Obtaining an assessment result based on the probability of the accident, and issuing a warning instruction according to the assessment result; The step of calculating the probability of an accident based on the historical information and the current road condition information comprises: Based on the historical information, the relationship between the traffic volume and the number of accidents and the relationship between the weather conditions and the number of accidents are analyzed; the relationship between the traffic volume and the number of accidents is the corresponding relationship between the traffic volume and the number of accidents under different weather conditions, and the relationship between the weather conditions and the number of accidents is the corresponding relationship between the weather conditions and the number of accidents under different traffic volumes; Calculating the probability of an accident based on the current road condition information, the relationship between the traffic volume and the number of accidents, and the relationship between the weather conditions and the number of accidents; The vehicle flow is quantified to obtain the size of the vehicle flow; the weather condition is quantified to obtain the severity of the weather; The step of analyzing the relationship between traffic volume and the number of accidents and the relationship between weather conditions and the number of accidents based on the historical information includes: Based on the historical information, the accident sequence number, the traffic volume and the severity of the weather are obtained to form a historical accident ternary set; Traversing the elements in the historical accident ternary set, arranging them according to the value of the weather severity, collecting the ternary items corresponding to each weather severity value to obtain a traffic flow ternary set, and obtaining multiple traffic flow-accident number histograms based on the traffic flow ternary set; Traversing the elements in the historical accident ternary set, arranging them according to the values of the traffic volume, collecting the ternary items corresponding to each traffic volume value to obtain a weather condition ternary set, and obtaining a plurality of weather condition-accident number histograms according to the weather condition ternary set; The step of calculating the probability of an accident based on the current road condition information, the relationship between the traffic volume and the number of accidents, and the relationship between the weather condition and the number of accidents includes: Finding a corresponding current traffic flow-accident number histogram from the plurality of traffic flow-accident number histograms according to the severity of the weather quantified by the current weather conditions; Finding a corresponding current weather condition-accident number histogram from a plurality of weather condition-accident number histograms according to the traffic volume quantified by the current traffic volume; Calculating the probability of an accident based on the current weather condition-accident number histogram and the current traffic flow-accident number histogram; The step of calculating the probability of an accident based on the current weather condition-accident number histogram and the current traffic flow-accident number histogram comprises: Obtaining a basic accident rate according to the number of accidents in the current weather condition-accident number histogram and the current traffic flow-accident number histogram; According to the changes in the current traffic flow-accident number histogram and the current traffic flow, the influence of the current traffic flow on the accident rate is obtained; According to the changes in the current weather condition-accident number histogram and the current weather severity, the impact of the current weather severity on the accident rate is obtained; The accident probability is calculated based on the basic accident rate, the influence of the current bad weather on the accident rate, and the influence of the current traffic volume on the accident rate; The base accident rate The calculation formula is: In the formula, is the number of accidents that occurred under the current traffic volume and weather conditions in the historical information. The maximum value of the number of accidents in the histogram of current weather conditions-number of accidents and the histogram of current traffic flow-number of accidents; The step of obtaining the influence of the current traffic flow on the accident rate according to the change of the current traffic flow-accident number histogram and the current traffic flow size includes: The step of obtaining the influence of the current traffic flow on the accident rate according to the change of the current traffic flow-accident number histogram and the current traffic flow size includes: obtaining the traffic flow size corresponding to the valley value of the current traffic flow-accident number histogram is the first target value of the traffic flow; obtain the traffic flow corresponding to the peak value of the current traffic flow-accident number histogram is the second target value of the traffic volume; based on the first target value of the traffic volume , the second target value of traffic volume And the current traffic volume is calculated to obtain the influence of the current traffic volume on the accident rate; The step of obtaining the influence of the current weather severity on the accident rate according to the change of the current weather condition-accident number histogram and the current weather severity includes: obtaining the weather severity corresponding to the valley value of the current weather condition-accident number histogram is the first target value of the severity of the weather; obtain the severity of the weather corresponding to the peak value of the current weather condition-accident number histogram is the second target value for the severity of the weather; based on the first target value for the severity of the weather , the second target value of weather severity And the current weather severity is calculated to obtain the impact of the current weather severity on the accident rate; The degree of influence of the current traffic volume on the accident rate The calculation formula is: In the formula, is the current traffic volume, is the first target value of the traffic volume, is the second target value of the traffic volume, is a constant greater than 0, exp represents an exponential function; The degree of influence of the current severe weather on the accident rate The calculation formula is: In the formula, Due to the current severe weather conditions, is the first target value of weather severity, is the second target value for the severity of the weather, is a constant greater than 0, and exp represents an exponential function.
2. The intelligent traffic data analysis method based on big data as claimed in claim 1, It is characterized in that The calculation formula of the accident probability Q is: In the formula, is the basic accident rate, represents the normalization function, is the impact of the current traffic volume on the accident rate, It is the impact of the current weather severity on the accident rate.
