Traffic control scene determination method, device, electronic device and storage medium

Through the discretization of traffic violation data sets and the mining of frequent item sets, traffic control scenarios are determined, which solves the problems of insufficient sample size and insufficient analysis refinement in the existing technology, and improves the management and control of traffic safety hazards and road traffic safety.

CN116013084BActive Publication Date: 2024-09-10ROAD TRAFFIC SAFETY RES CENT THE MINIST OF PUBLIC SECURITY OF THE PEOPLES REPUBLIC OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310066821.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-16
Publication Date
2024-09-10
Estimated Expiration
2043-01-16

AI Technical Summary

Technical Problem

Existing technologies in the field of traffic control scenarios have problems such as insufficient sample size, insufficient refinement of data analysis, and difficulty in meeting rapidly changing business needs, especially in the aspects of traffic violation data processing and safety hazard management.

Method used

By obtaining the traffic violation data set, perform data discretization processing to generate cluster clusters, replace location information with cluster identifiers, conduct frequent item set mining to generate association rules, and filter out target association rules based on the correlation index to determine traffic control scenarios. .

Benefits of technology

It improves the identification of the regularity of traffic violations and the management and control of traffic safety hazards, provides more reasonable cause analysis and decision support, and greatly improves road traffic safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116013084B
    Figure CN116013084B
Patent Text Reader

Abstract

An embodiment of the present invention relates to a method, device, electronic device and storage medium for determining a traffic control scenario, the method comprising: obtaining a first traffic violation data set; performing data discretization processing on the traffic violation data in the first traffic violation data set according to each position information in the first traffic violation data set, generating multiple clusters, and identification information corresponding to each cluster cluster; replacing the field value of the first target field of the traffic violation data belonging to each cluster cluster with the identification information corresponding to the cluster cluster, generating a second traffic violation data set; based on at least one target field of each traffic violation data in the second traffic violation data set, performing frequent item set mining on the second traffic violation data set, generating at least one association rule and a correlation index value corresponding to each association rule; determining a target traffic control scenario according to each correlation index value and a corresponding preset threshold of the correlation index.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of intelligent transportation technology, and in particular, to a method, device, electronic device and storage medium for determining a traffic control scene. Background Art

[0002] With the steady advancement of my country's urbanization process, the road mileage and the number of motor vehicles have increased rapidly, and the road traffic environment has become increasingly complex. In the daily operation of road traffic, various types of traffic violations will occur. Some traffic violations show randomness in time and space distribution, and some traffic violations occur with certain regularity. There are often some safety hazards behind regular traffic violations, which urgently need to be controlled and resolved by the traffic management department. Such problems in road traffic that need to be controlled are generally called traffic management scenarios. Due to the large number of roads and limited manpower of the traffic management department, only some common scenarios can be covered in daily work, and it is difficult to cover all scenarios.

[0003] At present, domestic and foreign research in the field of traffic control scenarios still has certain limitations in the following aspects: 1) Most of the research is still based on traffic accident data to explore safety hazards, but the absolute number of traffic accidents is very small from the time scale covered by the data, and the insufficient sample size makes it easy for the law to be covered by randomness; at the same time, the classification of the causes of existing accident data is relatively rough, and the analysis is not refined enough. 2) Traffic violation data is one of the important types of big data in the field of traffic management, but traffic violation data has the characteristics of huge quantity and rapid update, and requires high-efficiency algorithms to process and analyze in real time. Due to the difficulty of taking into account the efficiency and accuracy of the algorithm at the same time, there is currently little research on traffic violation control scenarios. 3) The scenarios handled by traditional traffic control centers are usually preset fixed scenarios, which are difficult to meet the rapidly changing business needs in actual work. Summary of the invention

[0004] The present application provides a traffic control scene determination method, device, electronic device and storage medium to solve all or part of the problems in the prior art.

[0005] In a first aspect, the present application provides a method for determining a traffic control scenario, the method comprising:

[0006] Acquire a first traffic violation data set, wherein each piece of traffic violation data in the first traffic violation data set includes at least one target field corresponding to a traffic violation event, wherein the at least one target field includes a first target field for indicating a location where the traffic violation event occurred, and a field value of the first target field includes location information of the location where the traffic violation event occurred;

[0007] According to the location information of each traffic violation event, the traffic violation data in the first traffic violation data set is discretized to generate a plurality of clusters and identification information corresponding to each cluster;

[0008] Replacing the field value of the first target field of the traffic violation data belonging to each cluster with the identification information corresponding to the cluster to generate a second traffic violation data set;

[0009] Based on at least one target field of each piece of traffic violation data in the second traffic violation data set, frequent item set mining is performed on the second traffic violation data set to generate at least one association rule and an association index value corresponding to each association rule;

[0010] Filtering a target association rule from at least one association rule according to each association index value and a corresponding preset association index threshold;

[0011] Determine the target traffic control scenario based on the target association rules.

[0012] In this way, the first traffic violation data set is obtained, and data discretization operation is performed according to the location information in the first traffic violation data set to generate multiple clusters and identification information corresponding to each cluster, which can more accurately identify the control scope of the specific traffic control scene, and at the same time, the internal connection of the adjacent violation points is included in the subsequent analysis, so as to provide more reasonable cause analysis and decision support. The field value of the first target field of the traffic violation data belonging to each cluster is replaced with the identification information corresponding to the cluster, and the second traffic violation data set is generated. Based on at least one target field of each traffic violation data in the second traffic violation data set, frequent item set mining is performed on the second traffic violation data set to generate at least one association rule and the association index value corresponding to each association rule; according to each association index value and the preset threshold of the corresponding association index, the target association rule is screened out from the at least one association rule; and the target traffic control scene is determined according to the target association rule. Data discretization can divide data with similar location information into a cluster. Replacing the location information with the cluster identifier can provide data for subsequent frequent item set mining based on the first target field. The frequent item set mining operation based on at least one target field can mine regular traffic violations, and then determine the scenarios that urgently need to be controlled and resolved based on the frequency of traffic violations and the scenarios where traffic violations occur (association rules), thereby eliminating traffic safety hazards and greatly improving the safety of road traffic.

[0013] In combination with the first aspect, in a first embodiment of the first aspect of the present invention, obtaining a first traffic violation data set includes:

[0014] Acquire a third traffic violation data set and a scene information data set corresponding to the third traffic violation data set, wherein the third traffic violation data set is a data set acquired through a preset traffic violation database, and the fields in the third traffic violation data set are the same as those in the first traffic violation data set;

[0015] According to the correspondence between the first group of preset associated fields in the third traffic violation dataset and the second group of preset associated fields in the scene information dataset, the scene information dataset is used to update the field value of the target field to be updated in the third traffic violation dataset to obtain the first traffic violation dataset.

[0016] In this way, the target field to be updated in the third traffic violation data set can be updated according to the scene information data set, and the field value of the required target field can be obtained, providing a data basis for subsequent data processing.

[0017] In combination with the first embodiment of the first aspect, in a second embodiment of the first aspect of the present invention, the multiple target fields include one or more of the following target fields in addition to the first target field:

[0018] A second target field is used to indicate the subject of the traffic violation event, a third target field is used to indicate the time when the traffic violation event occurred, a fourth target field is used to indicate the weather when the traffic violation event occurred, and a fifth target field is used to indicate the behavior of the traffic violation event.

[0019] In this way, the subject, time, weather and behavior of traffic violations are strongly correlated elements of traffic violations. Frequent item set mining through the above elements can objectively and accurately determine the scene of traffic violations, providing a strong basis for traffic management.

[0020] In combination with the second embodiment of the first aspect, in a third embodiment of the first aspect of the present invention, according to the location information of each traffic violation event location, the traffic violation data in the first traffic violation data set is discretized to generate multiple clusters and identification information corresponding to each cluster, specifically including:

[0021] The density clustering method OPTICS is adopted, and the location information of each traffic violation event is taken as the calculation target object. The first traffic violation data is discretized to generate multiple clusters and identification information corresponding to each cluster.

[0022] In this way, the density clustering method OPTICS has the advantages of low parameter sensitivity, noise resistance, and the ability to handle clusters of arbitrary shapes. Since better results can be obtained without determining parameters, it is very suitable for business scenarios that require high efficiency and real-time performance, which matches the huge amount of traffic violation data and the rapid update characteristics.

[0023] In combination with any one of the first aspect to the third embodiment of the first aspect, in a fourth embodiment of the first aspect of the present invention, based on at least one target field of each piece of traffic violation data in the second traffic violation data set, frequent item set mining is performed on the second traffic violation data set to generate at least one association rule and an association index value corresponding to each association rule, including:

[0024] The frequent item set mining algorithm FP-growth is adopted, and the field values ​​of all target fields in the second traffic violation data set are taken as frequent item set mining objects. Frequent item set mining is performed on the second traffic violation data set to generate multiple association rules and the association index value corresponding to each association rule.

[0025] In this way, regular association rules can be mined from a large amount of traffic violation data, thereby discovering the patterns of traffic accidents and providing data basis for determining subsequent traffic control scenarios.

[0026] In combination with the fourth embodiment of the first aspect, in a fifth embodiment of the first aspect of the present invention, the association index value includes a support index value and / or a confidence index value and / or a lift index value, and according to each association index value and the corresponding preset association index threshold, a target association rule is screened out from at least one association rule, including:

[0027] Filter out association rules whose support index is greater than or equal to a preset support threshold, and / or whose confidence index is greater than or equal to a preset confidence threshold, and / or whose lift index is greater than or equal to a preset lift threshold from the association rules as target association rules.

[0028] In this way, the association rules that need the most attention can be screened out from more association rules.

[0029] In combination with the fifth embodiment of the first aspect, in a sixth embodiment of the first aspect of the present invention, each target association rule includes a leading item, the leading item is used to indicate a scene where a traffic violation occurs, and determining a target traffic control scene according to the target association rule includes:

[0030] Sort the target association rules in descending order according to each association index value;

[0031] The leading item corresponding to the association rule with the top A in the correlation index value ranking, and / or the top B in the confidence index value ranking, and / or the top C in the lift index value ranking is taken as the target traffic control scenario, where A, B, and C are all positive integers.

[0032] In a second aspect, the present application provides a traffic control scene determination device, the device comprising:

[0033] an acquisition module, configured to acquire a first traffic violation data set, wherein each piece of traffic violation data in the first traffic violation data set includes at least one target field corresponding to a traffic violation event, the at least one target field includes a first target field for indicating a location where the traffic violation event occurred, and a field value of the first target field includes location information of the location where the traffic violation event occurred;

[0034] A data discretization module, used to perform data discretization processing on the traffic violation data in the first traffic violation data set according to the location information of each traffic violation event, and generate multiple clusters and identification information corresponding to each cluster;

[0035] A replacement module, used to replace the field value of the first target field of the traffic violation data belonging to each cluster with the identification information corresponding to the cluster, so as to generate a second traffic violation data set;

[0036] A frequent item set mining module, configured to perform frequent item set mining on the second traffic violation data set based on at least one target field of each traffic violation data in the second traffic violation data set, and generate at least one association rule and an association index value corresponding to each association rule;

[0037] A screening module, used for screening out a target association rule from at least one association rule according to each association index value and a corresponding preset threshold value of the association index;

[0038] The determination module is used to determine the target traffic control scenario according to the target association rules.

[0039] Optionally, the device further includes: an updating module;

[0040] an acquisition module, specifically used to acquire a third traffic violation data set and a scene information data set corresponding to the third traffic violation data set, wherein the third traffic violation data set is a data set acquired through a preset traffic violation database, and the fields in the third traffic violation data set are the same as those in the first traffic violation data set;

[0041] An update module is used to update the field value of the target field to be updated in the third traffic violation dataset using the scene information dataset according to the correspondence between the first group of preset associated fields in the third traffic violation dataset and the second group of preset associated fields in the scene information dataset, so as to obtain the first traffic violation dataset.

[0042] Optionally, the multiple target fields in the acquisition module include, in addition to the first target field, one or more of the following target fields:

[0043] A second target field is used to indicate the subject of the traffic violation event, a third target field is used to indicate the time when the traffic violation event occurred, a fourth target field is used to indicate the weather when the traffic violation event occurred, and a fifth target field is used to indicate the behavior of the traffic violation event.

[0044] Optionally, the data discretization module is specifically used to adopt the density clustering method OPTICS, take the location information of each traffic violation event as the calculation target object, perform data discretization processing on the first traffic violation data, generate multiple clusters, and identification information corresponding to each cluster.

[0045] Optionally, a frequent item set mining module is specifically used to adopt a frequent item set mining algorithm FP-growth, take the field values ​​of all target fields in the second traffic violation data set as frequent item set mining objects, perform frequent item set mining on the second traffic violation data set, and generate multiple association rules and association index values ​​corresponding to each association rule.

[0046] Optionally, a screening module is specifically used to screen out association rules whose support index is greater than or equal to a preset support threshold, and / or whose confidence index is greater than or equal to a preset confidence threshold, and / or whose lift index is greater than or equal to a preset lift threshold from the association rules as target association rules.

[0047] Optionally, the device further includes: a sorting module and a processing module;

[0048] A sorting module is used to sort the target association rules in descending order according to each association index value;

[0049] A processing module is used to take the leading item corresponding to the association rule with the top A in the correlation index value ranking, and / or the top B in the confidence index value ranking, and / or the top C in the lift index value ranking as the target traffic control scenario, wherein A, B, and C are all positive integers.

[0050] In a third aspect, an electronic device is provided, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0051] Memory, used to store computer programs;

[0052] The processor is used to implement the steps of the traffic control scene determination method of any embodiment of the first aspect when executing the program stored in the memory.

[0053] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the traffic control scene determination method as in any embodiment of the first aspect are implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 A schematic diagram of a flow chart of a method for determining a traffic control scenario provided by an embodiment of the present invention;

[0055] Figure 2 A schematic diagram comparing the memory usage of two frequent item set mining methods provided in an embodiment of the present invention;

[0056] Figure 3 A schematic diagram showing a comparison of support between two frequent item set mining methods provided in an embodiment of the present invention;

[0057] Figure 4 A schematic diagram of the structure of a traffic control scene determination device provided by an embodiment of the present invention;

[0058] Figure 5 A schematic diagram of the structure of an electronic device is provided for an embodiment of the present invention. DETAILED DESCRIPTION

[0059] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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.

[0060] To facilitate understanding of the embodiments of the present invention, specific embodiments will be further explained below in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present invention.

[0061] In view of the technical problems mentioned in the background technology, the present application embodiment provides a method for determining a traffic control scene. Figure 1 As shown, Figure 1 A flow chart of a method for determining a traffic control scenario provided by an embodiment of the present invention, the method comprising the following steps:

[0062] Step 110, obtaining a first traffic violation data set.

[0063] Specifically, each piece of traffic violation data in the first traffic violation data set includes at least one target field corresponding to the traffic violation event, and the at least one target field includes a first target field for indicating the location where the traffic violation event occurred, and the field value of the first target field includes the location information of the location where the traffic violation event occurred. The first traffic violation data set can be embodied in the form of a database table, which includes multiple target fields, and the multiple target fields include information about the traffic violation event, including at least the location information of the location where the traffic violation event occurred. The location information in a piece of traffic violation data can be the latitude and longitude information of the traffic violation event.

[0064] In an optional example, if the location information in the traffic violation data is address text information, you can also use geocoding service functions, such as the geocoding service function provided by the Amap application, to realize automatic conversion of address text information data to geospatial coordinates. Of course, you can also customize the mapping relationship between address text information data and geospatial coordinates for conversion. For example, the address text information may be (60 degrees east longitude, 40 degrees north latitude), and the converted location information is (60°E, 40°N), or, for example, convert the text information "No. 3 Chongwenmenwai Street" into the format of "116.42, 39.90". The data format is only used as an example. As long as the text data has a fixed format, it can be converted. The format after conversion can be determined according to the actual situation, and no excessive restrictions are made here.

[0065] In another optional example, if there is missing information in the original traffic violation data obtained, other data may be obtained for association to supplement the missing information in the original traffic violation data. Therefore, obtaining the first traffic violation data set includes:

[0066] Acquire a third traffic violation data set and a scene information data set corresponding to the third traffic violation data set;

[0067] According to the correspondence between the first group of preset associated fields in the third traffic violation dataset and the second group of preset associated fields in the scene information dataset, the scene information dataset is used to update the field value of the target field to be updated in the third traffic violation dataset to obtain the first traffic violation dataset.

[0068] Specifically, the third traffic violation data set is an original data set obtained, which is a data set obtained through a preset traffic violation database. The fields in the third traffic violation data set are the same as those in the first traffic violation data set. The scene information data set is a data set corresponding to the third traffic violation data set, for example, scene information of the time period of all traffic violation events in the third traffic violation data set, such as weather information, vehicle information when all traffic violation events in the third traffic violation data set occurred, etc. The first group of preset associated fields and the second group of associated fields are used for data association, for example, the first license plate number field in the third traffic violation data set is matched with the second license plate number field in the scene information data set. When there are two data with the same license plate number, it means that they are the same vehicle. The other vehicle information in the license plate number data in the scene information data set can be supplemented to the traffic violation data of the same license plate number in the third traffic violation data. The first group of preset associated fields and the second group of preset associated fields can also include fields for indicating time, etc.

[0069] In an optional example, the scene information data set includes motor vehicle registration data and electronic monitoring equipment location data. The license plate number field in the traffic violation data and the license plate number field in the motor vehicle registration data are used as associated fields, and the traffic violation data is matched with the motor vehicle registration data. When the matches are consistent, the vehicle registration information such as the vehicle type and usage nature of the illegal vehicle in the traffic violation data is obtained, which constitutes the subject information of the traffic violation event; the monitoring equipment number field in the traffic violation data and the monitoring equipment number field in the electronic monitoring equipment data are used as associated fields, and the traffic violation data is matched with the monitoring equipment location information to obtain the monitoring equipment location information in the traffic violation data, which is expressed in the form of longitude and latitude; weather information at a specific time (the same time period as the third traffic violation data set) is automatically obtained through an Internet information service, and the violation time field in the traffic violation data and the time field in the weather information are used as associated fields, and the traffic violation data is matched with the weather information to obtain the weather information at the violation time in the traffic violation data, and finally the first traffic violation data set is obtained. The acquisition of weather data can select Internet information services such as Gaode Map Application, Baidu Map Application, and Tencent Map Application.

[0070] Step 120 , discretizing the traffic violation data in the first traffic violation data set according to the location information of each traffic violation event, generating a plurality of clusters and identification information corresponding to each cluster.

[0071] Specifically, the location information of each traffic violation event is the point where the traffic violation event occurred. Using data discretization processing means, all the points in the traffic violation data set are clustered and divided into several classes. Each class contains several points with similar spatial positions. That is, the traffic violation data in the traffic violation data set is divided into several classes from the perspective of location information, and multiple clusters and identification information corresponding to each cluster cluster are obtained, such as unique identification information such as the cluster cluster number or cluster cluster ID.

[0072] In an optional embodiment, according to the location information of each traffic violation event, the traffic violation data in the first traffic violation data set is discretized to generate multiple clusters and identification information corresponding to each cluster, specifically including:

[0073] The density clustering method OPTICS is adopted, and the location information of each traffic violation event is taken as the calculation target object. The first traffic violation data is discretized to generate multiple clusters and identification information corresponding to each cluster.

[0074] Specifically, there are two ways to discretize spatial data: gridding and clustering. The gridding method will break the correlation at the level of geographic spatial information, so clustering is used to process spatial data. After obtaining the first traffic violation data set, the OPTICS method is called to take the location information of each traffic violation event as the calculation target object for clustering.

[0075] In an optional example, the location information can be taken as latitude and longitude. Since the OPTICS method is an unsupervised clustering method, that is, the latitude and longitude have no fixed labels before clustering, it is difficult to directly verify the accuracy of clustering after clustering is completed. Based on this, the silhouette coefficient, an intrinsic evaluation index of the clustering method, can be used to evaluate the quality of the clustering result. The silhouette coefficient is determined by the cohesion and separation between each cluster. For example, there are n traffic violation data in the traffic violation data set, and the traffic violation data set is X. Assume that after clustering, X is divided into k clusters, C1, C2,..., C k , for any node object x in a cluster (the longitude and latitude in any traffic violation data in the cluster), calculate the average distance a(x) between x and other node objects in the cluster. Similarly, b(x) is the minimum average distance from x to all clusters that do not belong to x. Assume x∈C i (1≤i≤k), the silhouette coefficient s(x) of object x is defined as follows:

[0076]

[0077] The average distance a(x) between x and other node objects in the cluster is determined by the following formula:

[0078]

[0079] Among them, x′ is the cluster C i Other node objects in the .

[0080] The minimum average distance b(x) from x to all clusters that do not belong to x is determined by the following formula:

[0081]

[0082] Among them, C j For multiple clusters, except C i Other clusters outside.

[0083] a(x) reflects the compactness of the cluster to which x belongs, and b(x) reflects the degree of separation of x from other clusters. The mean of the silhouette coefficients of all objects is called the silhouette coefficient of the clustering result. The value of the silhouette coefficient is between -1 and 1. Within this range, the larger the value, the better the clustering effect.

[0084] In a specific embodiment, 1420028 traffic violation data from January to October in a certain city were tested, and the silhouette coefficient obtained when calling the default parameters of OPTICS was 0.816. Table 1 shows the silhouette coefficient values ​​of the clustering algorithm DBSCAN under different parameters. It can be found from the table that the clustering result of the OPTICS algorithm, 0.816, is better than the DBSCAN algorithm with various commonly used thresholds. Although the OPTICS algorithm has similar effects when the parameters are similar to those of the DBSCAN algorithm, the DBSCAN algorithm is extremely sensitive to parameter selection, and grid search and parameter adjustment consumes a lot of computing resources when applying massive data. Therefore, applying the OPTICS algorithm is a more reasonable choice.

[0085]

[0086] (Table 1 Silhouette coefficient table)

[0087] Among them, MinPts is the minimum number threshold parameter in the DBSCAN algorithm, and Eps is the core distance radius parameter in the DBSCAN algorithm. Taking the first value 0.725 in the upper left corner as an example, it represents the silhouette coefficient of the clustering result when the core point identification standard is that there are 20 data points within a core distance radius of 40 meters.

[0088] Step 130 : Replace the field value of the first target field of the traffic violation data belonging to each cluster with the identification information corresponding to the cluster, so as to generate a second traffic violation data set.

[0089] Specifically, the first target field in each piece of traffic violation data is replaced with the cluster identification information of the corresponding cluster, and other fields remain unchanged, thereby generating a second traffic violation data set.

[0090] The purpose of doing this is to prepare data for subsequent frequent item set mining, because the location information of each traffic violation data is basically different, that is, the location information appearing in a traffic violation data set, especially if the location information is longitude and latitude information, is likely to be non-repeated, and frequent item set mining is based on the frequency of object occurrence. If each object only appears once, it cannot be effectively mined, and the mined data has no reference significance. After clustering by location information, it is equivalent to classification according to location information. After traffic violation data with similar location information is divided into a cluster, they have the same cluster cluster identifier. After replacing the location information with the cluster cluster identifier, the same cluster cluster identifier may contain many data, so that the traffic violation data has frequency at the location information level. For example, there are 10 traffic violation data belonging to cluster A, and the location information of these 10 traffic violation data after clustering is A. There are 100 traffic violation data belonging to cluster B, and the location information of these 100 traffic violation data after clustering is B. In this way, there is a data basis for subsequent frequent item set mining through location information fields.

[0091] Step 140 , based on at least one target field of each piece of traffic violation data in the second traffic violation data set, perform frequent item set mining on the second traffic violation data set to generate at least one association rule and an association index value corresponding to each association rule.

[0092] Specifically, for a large number of traffic safety data, in order to obtain the association between traffic scenes and traffic violations, the frequency of various scene combinations is traversed and collected to find valuable association rules, and then it is clear in which traffic environment different types of traffic violations are more likely to occur. Therefore, a frequent item set mining algorithm can be used to mine frequent item sets for the target field of each traffic violation data in the second traffic violation data set, and the output result is at least one association rule and the association index value corresponding to each association rule. For example, 10 association rules are generated, and the association index value of association index a of association rule 1 is 0.1, the association index value of association index b is 0.12, the association index value of association index a of association rule 2 is 0.3, the association index value of association index b is 0.5, and so on. When the amount of traffic violation data is large, such as hundreds of thousands or even millions, the amount of association rule data output will also be large. In order to facilitate subsequent data processing, a preset association index threshold can be set in advance. When outputting association rules, association rules that are greater than or equal to the preset association index threshold will be directly output, which is equivalent to the initial screening of association rules. The required target association rules can be screened again based on the association rules after the initial screening.

[0093] Optionally, based on at least one target field of each piece of traffic violation data in the second traffic violation data set, frequent item set mining is performed on the second traffic violation data set to generate at least one association rule and an association index value corresponding to each association rule, including:

[0094] The frequent item set mining algorithm FP-growth is adopted, and the field values ​​of all target fields in the second traffic violation data set are taken as frequent item set mining objects. Frequent item set mining is performed on the second traffic violation data set to generate multiple association rules and the association index value corresponding to each association rule.

[0095] Association rules are related to the target fields to be mined. In order to mine the direct association between traffic scenes and traffic violations, traffic scene-related fields and traffic violation fields can be used as target fields for frequent item set mining.

[0096] Optionally, the multiple target fields include one or more of the following target fields in addition to the first target field:

[0097] A second target field is used to indicate the subject of the traffic violation event, a third target field is used to indicate the time when the traffic violation event occurred, a fourth target field is used to indicate the weather when the traffic violation event occurred, and a fifth target field is used to indicate the behavior of the traffic violation event.

[0098] The FP-growth algorithm uses a frequent pattern tree (FP-tree) to compress frequent item sets, divides the compressed database into a set of conditional data sets, and then mines association rules from each conditional data set. The algorithm can directly traverse all frequent item sets on the FP-tree without building a candidate item set, which can greatly compress the storage space of the database.

[0099] In a preferred embodiment, if the data in the second traffic violation data set is updated quickly and has a huge amount of data, using the FP-growth algorithm for calculation and processing will consume a lot of time and resources. In order to address the problems of low efficiency and low memory space utilization when the FP-growth algorithm mines large databases, the FP-growth algorithm is improved by using a method based on hash table splitting the database and node exchange to improve data mining efficiency. In order to verify the effectiveness of the improvement to the FP-growth algorithm, the improved FP-growth algorithm and the traditional FP-growth algorithm are run on the same experimental data set, and the mining efficiency of the two is compared from the perspectives of running time and memory usage. The comparison chart of memory usage is shown in the figure below. Figure 2 As shown in the figure, the running time comparison is as follows Figure 3 shown.

[0100] The improved FP-growth algorithm uses a hash table to store the header, making the access efficiency of the item header table higher. It uses the node exchange strategy to compress the structure of the FP-tree and make it more compact, so it has certain advantages in memory usage and time consumption. Under the same support, the improved FP-growth algorithm is significantly better than the traditional FP-growth algorithm in memory usage, and the algorithm running time is also less than the traditional FP-growth algorithm. However, when the support gradually increases, the difference in running time is gradually narrowing. The reason is that as the support increases, the number of items extracted from the original data set decreases, and the difference in running time between the two is no longer obvious. It can be seen that the use of the traditional FP-growth algorithm for such problems will cause a great burden on computing power. Therefore, for data with rapid updates and huge data volumes, the use of the FP-growth algorithm improved by the hash table has great advantages.

[0101] Therefore, in a preferred embodiment, the FP-growth algorithm improved by the hash table can be used to perform frequent item set mining on the first target field, the second target field, the third target field, the fourth target field and the fifth target field in the second traffic violation data set to generate at least one association rule and the association index value corresponding to each association rule.

[0102] Step 150 : Filter out a target association rule from at least one association rule according to each association index value and the corresponding preset association index threshold.

[0103] Step 160, determining the target traffic control scenario according to the target association rule.

[0104] Specifically, after the frequent item set mining operation is performed on the second traffic violation data set, at least one association rule is generated. Each association rule has a correlation index value calculated and output by the frequent item set mining algorithm. By setting a preset correlation index preset threshold, the association rules that are greater than the preset correlation index preset threshold can be screened out, namely the target association rules.

[0105] Optionally, the association index value includes a support index value and / or a confidence index value and / or a lift index value, and according to each association index value and a corresponding preset association index threshold value, a target association rule is screened out from at least one association rule, including:

[0106] Filter out association rules whose support index is greater than or equal to a preset support threshold, and / or whose confidence index is greater than or equal to a preset confidence threshold, and / or whose lift index is greater than or equal to a preset lift threshold from the association rules as target association rules.

[0107] Specifically, the association index value may include one or more of a support index value, a confidence index value, and a lift index value. Multiple screening rules may be set. Screening rule 1 is that the support index value is greater than 0.01, then all association rules with a support index value greater than 0.01 are screened out. Screening rule 2 is that the support index value is greater than 0.01 and the confidence index value is greater than 0.02, then the association rules with a support index value greater than 0.01 and a confidence index value greater than 0.02 are screened out. And so on. The screening rules may also be set according to the preset lift threshold. The specific setting of the screening rules may be determined according to the actual situation. The target association rules may be screened out according to the screening rules.

[0108] Because the association rules are mined based on the target field, they include the scenarios in which traffic violations occur and the behaviors in which traffic violations occur. The scenarios in which traffic violations occur corresponding to the target association rules are the target traffic control scenarios that need to be focused on.

[0109] Optionally, each target association rule includes a leading item, which is used to indicate a scene where a traffic violation occurs. The target traffic control scene is determined according to the target association rule, including:

[0110] Sort the target association rules in descending order according to each association index value;

[0111] The leading item corresponding to the association rule with the top A in the correlation index value ranking, and / or the top B in the confidence index value ranking, and / or the top C in the lift index value ranking is taken as the target traffic control scenario, where A, B, and C are all positive integers.

[0112] Specifically, the fields in the illegal traffic data related to the scenes where traffic violations occurred can be used as the predecessors of the association rules, such as the first target field, the second target field, the third target field and the fourth target field, and the traffic violations that occurred can be used as the successors of the association rules, such as the fifth target field. In this way, the scenes where traffic violations occurred can be extracted according to the predecessors of each association rule. The extraction process can be: sorting the target association rules in descending order according to each correlation index value, setting multiple screening rules, such as screening out the association rules with the top A in the correlation index value, the top B in the confidence index value, or the top C in the lift index value. If repeated association rules appear, they need to be removed, or the correlation index value, confidence index value and lift index value can be combined for screening to screen out the target association rules, and then determine the target control scenario.

[0113] In a specific embodiment, for example, the support index threshold, the confidence index threshold and the lift index threshold are set at the same time, and the target association rule is screened out from all the association rules. The association rule with high support indicates that the frequency of occurrence of such frequent item sets is high; the association rule with high confidence indicates that the conditional probability of occurrence of such frequent item sets is relatively high. Once the condition of its predecessor item occurs, special attention should be paid to prevent accidents of the successor item.

[0114] In the traffic control scenario, if the support of a scenario is high but the confidence is low, the high support of the scenario may be just because of the large traffic flow and the large base of traffic behavior subjects, resulting in a large number of violations; if the support of a scenario is low but the confidence is high, the scenario may have some unreasonable management related to the specific violation, which leads to the constant occurrence of such specific violations in this time and space environment. The selected association rules are sorted in descending order of support as shown in Table 2:

[0115]

[0116] (Table 2 High Support Association Rules)

[0117] Among them, Sup is the support value, Conf is the confidence value, Lift is the lift value, the leading item is the scene where the traffic violation occurs, the successor item is the behavior of the traffic violation, and the location information has been replaced by the cluster identifier.

[0118] Taking the first association rule in Table 2 as an example, the support (Sup) is the highest among all association rules, 0.008, indicating that the number of scenarios in which the scene subject vehicle, scene time, scene location, scene weather and the subsequent item of violating the restricted traffic regulations occur in parallel accounts for a high proportion of all scene sets. The confidence (Conf) is 0.367, indicating that when the scene subject, scene time, scene location, scene weather and other attributes meet the leading item of the first association rule, among all possible violations, the probability of the violation of the motor vehicle violating the restricted traffic regulations and driving on the road occurs. The low confidence of association rule 1 suggests that the high support of the violation may be just because the traffic volume within the scene is large, and there are other violations that need to be paid attention to within the scene. The lift (Lift) is 2.874, indicating that the correlation between the above leading item and the subsequent item is strongly correlated.

[0119] The selected association rules are sorted in descending order of confidence as shown in Table 3:

[0120]

[0121] (Table 3 High confidence association rules)

[0122] Taking the first association rule in Table 3 as an example, the support (Sup) of 0.002 indicates that the number of scenarios in which the scene subject vehicle, scene time, scene location, scene weather and the subsequent item of violating the road traffic light pass occur in parallel accounts for a low proportion of all scene sets, and the confidence (Conf) of 0.967 indicates that when the scene subject, scene time, scene location, scene weather and other attributes meet the leading item of the first association rule, among all possible violations, the probability of driving a motor vehicle in violation of the road traffic light pass is higher. Therefore, once the leading item of this scene occurs, the traffic control department needs to focus on supervising and managing this violation at this location. The lift (Lift) of 4.571 indicates that the correlation between the above leading item and the subsequent item is strongly correlated.

[0123] In another specific embodiment, the scenarios can be sorted from high to low based on support and confidence, and the scenarios can be scored according to the following standards. Finally, the two scores of each scenario are added together, and the scenario with a high total score is an important control scenario, as shown in Table 4:

[0124] Score ranking of support or confidence Points Top 5% 10 points 5%—25% 5 points 25%—50% 3 points 50%—100% 1 point

[0125] (Table 4)

[0126] Association rules with high confidence often indicate that there are some essential defects in the infrastructure of the scene. For example, unreasonable signal timing at night when the traffic volume is small can easily lead to more red light running behaviors, and more line-crossing behaviors on ramps may imply unreasonable traffic marking settings or lack of lighting and reflective facilities, etc. This can help traffic management departments more effectively discover problems that need to be optimized and renovated. The lift degree is used as a screening judgment parameter. When designing the algorithm calibration parameters, the minimum threshold has been set to 1, that is, there is no association rule with a lift degree less than 1 in the output results. Only the support and confidence need to be paid attention to.

[0127] Compared with the existing research on road traffic violation management, the purpose of this study is not to explore the influencing factors of violations, but to explore high-incidence scenes of violations for traffic management departments, so as to help traffic management departments manage traffic more efficiently. The antecedent of the association rule here does not mean that it is the cause of the association result, but it means that this violation is more frequent at this time on this road. At the same time, the mining of "accident black spots" and "violation black spots" in the traditional sense is often determined based on the number of accidents and violations at a single point, and only a single point is managed as a high-risk point. However, in reality, traffic flow is continuous, and there is often an intrinsic connection between adjacent risk points. This intrinsic connection is a hint of the irrationality of factors such as infrastructure, planning layout, and surrounding environment.

[0128] The method for determining a traffic control scenario provided by an embodiment of the present invention obtains a first traffic violation data set, wherein each traffic violation data in the first traffic violation data set includes at least one target field corresponding to a traffic violation event, and at least one target field includes a first target field for indicating a location where the traffic violation event occurred, and the field value of the first target field includes location information of the location where the traffic violation event occurred; according to the location information of the location where each traffic violation event occurred, the traffic violation data in the first traffic violation data set is discretized to generate a plurality of clusters, and identification information corresponding to each cluster; the field value of the first target field of the traffic violation data belonging to each cluster is replaced with the identification information corresponding to the cluster, to generate a second traffic violation data set; based on at least one target field of each traffic violation data in the second traffic violation data set, frequent item set mining is performed on the second traffic violation data set to generate at least one association rule and a correlation index value corresponding to each association rule; according to each correlation index value and a preset threshold value of the corresponding correlation index, a target association rule is screened out from at least one association rule; and a target traffic control scenario is determined according to the target association rule. In this way, the first traffic violation data set is obtained, and data discretization operation is performed according to the location information in the first traffic violation data set to generate multiple clusters and identification information corresponding to each cluster, which can more accurately identify the control scope of the specific traffic control scene, and at the same time, the internal connection of the adjacent violation points is included in the subsequent analysis, so as to provide more reasonable cause analysis and decision support. The field value of the first target field of the traffic violation data belonging to each cluster is replaced with the identification information corresponding to the cluster, and the second traffic violation data set is generated. Based on at least one target field of each traffic violation data in the second traffic violation data set, frequent item set mining is performed on the second traffic violation data set to generate at least one association rule and the association index value corresponding to each association rule; according to each association index value and the preset threshold of the corresponding association index, the target association rule is screened out from the at least one association rule; and the target traffic control scene is determined according to the target association rule. Data discretization can divide data with similar location information into a cluster. Replacing the location information with the cluster identifier can provide data for subsequent frequent item set mining based on the first target field. The frequent item set mining operation based on at least one target field can mine regular traffic violations, and then determine the scenarios that urgently need to be controlled and resolved based on the frequency of traffic violations and the scenarios where traffic violations occur (association rules), thereby eliminating traffic safety hazards and greatly improving the safety of road traffic.

[0129] The above is an embodiment of the method for determining the traffic control scenario provided in the present application. The following describes other embodiments of the method for determining the traffic control scenario provided in the present application. Please refer to the following for details.

[0130] Figure 4 A traffic control scene determination device provided in an embodiment of the present invention includes:

[0131] The acquisition module 401 is used to acquire a first traffic violation data set, wherein each piece of traffic violation data in the first traffic violation data set includes at least one target field corresponding to a traffic violation event, the at least one target field includes a first target field indicating a location where the traffic violation event occurred, and the field value of the first target field includes location information of the location where the traffic violation event occurred;

[0132] The data discretization module 402 is used to perform data discretization processing on the traffic violation data in the first traffic violation data set according to the location information of each traffic violation event, and generate multiple clusters and identification information corresponding to each cluster;

[0133] A replacement module 403, used to replace the field value of the first target field of the traffic violation data belonging to each cluster with the identification information corresponding to the cluster, so as to generate a second traffic violation data set;

[0134] A frequent item set mining module 404 is used to perform frequent item set mining on the second traffic violation data set based on at least one target field of each traffic violation data in the second traffic violation data set, and generate at least one association rule and an association index value corresponding to each association rule;

[0135] A screening module 405 is used to screen out a target association rule from at least one association rule according to each association index value and the corresponding preset association index threshold;

[0136] The determination module 406 is used to determine the target traffic control scenario according to the target association rule.

[0137] Optionally, the device further includes: an updating module 407;

[0138] The acquisition module 401 is specifically used to acquire a third traffic violation data set and a scene information data set corresponding to the third traffic violation data set, wherein the third traffic violation data set is a data set acquired through a preset traffic violation database, and the fields in the third traffic violation data set are the same as those in the first traffic violation data set;

[0139] The updating module 407 is used to update the field value of the target field to be updated in the third traffic violation dataset using the scene information dataset according to the correspondence between the first group of preset associated fields in the third traffic violation dataset and the second group of preset associated fields in the scene information dataset, so as to obtain the first traffic violation dataset.

[0140] Optionally, the multiple target fields in the acquisition module 401 include, in addition to the first target field, one or more of the following target fields:

[0141] A second target field is used to indicate the subject of the traffic violation event, a third target field is used to indicate the time when the traffic violation event occurred, a fourth target field is used to indicate the weather when the traffic violation event occurred, and a fifth target field is used to indicate the behavior of the traffic violation event.

[0142] Optionally, the data discretization module 402 is specifically used to adopt the density clustering method OPTICS, take the location information of each traffic violation event as the calculation target object, perform data discretization processing on the first traffic violation data, generate multiple clusters, and identification information corresponding to each cluster.

[0143] Optionally, the frequent item set mining module 404 is specifically used to adopt the frequent item set mining algorithm FP-growth, take the field values ​​of all target fields in the second traffic violation data set as frequent item set mining objects, perform frequent item set mining on the second traffic violation data set, and generate multiple association rules and the association index value corresponding to each association rule.

[0144] Optionally, the screening module 405 is specifically used to screen out from the association rules the association rules whose support index is greater than or equal to a preset support threshold, and / or, whose confidence index is greater than or equal to a preset confidence threshold, and / or, whose lift index is greater than or equal to a preset lift threshold, as target association rules.

[0145] Optionally, the device further includes: a sorting module 408 and a processing module 409;

[0146] A sorting module 408 is used to sort the target association rules in descending order according to each association index value;

[0147] Processing module 409 is used to take the leading item corresponding to the association rule with the top correlation index value A, and / or the top confidence index value B, and / or the top lift index value C as the target traffic control scenario, where A, B, and C are all positive integers.

[0148] The functions performed by each component in the traffic control scene determination device provided in the embodiment of the present invention have been described in detail in any of the above method embodiments, and will not be repeated here.

[0149] A traffic control scenario determination device provided by an embodiment of the present invention obtains a first traffic violation data set, wherein each traffic violation data in the first traffic violation data set includes at least one target field corresponding to the traffic violation event, and at least one target field includes a first target field for indicating the location where the traffic violation event occurred, and the field value of the first target field includes the location information of the location where the traffic violation event occurred; according to the location information of the location where each traffic violation event occurred, the traffic violation data in the first traffic violation data set is discretized to generate multiple clusters and identification information corresponding to each cluster; the field value of the first target field of the traffic violation data belonging to each cluster is replaced with the identification information corresponding to the cluster to generate a second traffic violation data set; based on at least one target field of each traffic violation data in the second traffic violation data set, frequent item set mining is performed on the second traffic violation data set to generate at least one association rule and a correlation index value corresponding to each association rule; according to each correlation index value and the corresponding preset threshold of the correlation index, a target association rule is screened out from at least one association rule; and a target traffic control scenario is determined according to the target association rule. In this way, the first traffic violation data set is obtained, and data discretization operation is performed according to the location information in the first traffic violation data set to generate multiple clusters and identification information corresponding to each cluster, which can more accurately identify the control scope of the specific traffic control scene, and at the same time, the internal connection of the adjacent violation points is included in the subsequent analysis, so as to provide more reasonable cause analysis and decision support. The field value of the first target field of the traffic violation data belonging to each cluster is replaced with the identification information corresponding to the cluster, and the second traffic violation data set is generated. Based on at least one target field of each traffic violation data in the second traffic violation data set, frequent item set mining is performed on the second traffic violation data set to generate at least one association rule and the association index value corresponding to each association rule; according to each association index value and the preset threshold of the corresponding association index, the target association rule is screened out from the at least one association rule; and the target traffic control scene is determined according to the target association rule. Data discretization can divide data with similar location information into a cluster. Replacing the location information with the cluster identifier can provide data for subsequent frequent item set mining based on the first target field. The frequent item set mining operation based on at least one target field can mine regular traffic violations, and then determine the scenarios that urgently need to be controlled and resolved based on the frequency of traffic violations and the scenarios where traffic violations occur (association rules), thereby eliminating traffic safety hazards and greatly improving the safety of road traffic.

[0150] like Figure 5As shown, an embodiment of the present application provides an electronic device, including a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.

[0151] Memory 113, used for storing computer programs;

[0152] In one embodiment of the present application, the processor 111 is used to execute the program stored in the memory 113 to implement the traffic control scene determination method provided by any of the aforementioned method embodiments, including:

[0153] Acquire a first traffic violation data set, wherein each piece of traffic violation data in the first traffic violation data set includes at least one target field corresponding to a traffic violation event, the at least one target field includes a first target field for indicating a location where the traffic violation event occurred, and a field value of the first target field includes location information of the location where the traffic violation event occurred;

[0154] According to the location information of each traffic violation event, the traffic violation data in the first traffic violation data set is discretized to generate a plurality of clusters and identification information corresponding to each cluster;

[0155] Replacing the field value of the first target field of the traffic violation data belonging to each cluster with the identification information corresponding to the cluster to generate a second traffic violation data set;

[0156] Based on at least one target field of each piece of traffic violation data in the second traffic violation data set, frequent item set mining is performed on the second traffic violation data set to generate at least one association rule and an association index value corresponding to each association rule;

[0157] Filtering a target association rule from at least one association rule according to each association index value and a corresponding preset association index threshold;

[0158] Determine the target traffic control scenario based on the target association rules.

[0159] Optionally, obtaining a first traffic violation data set includes:

[0160] Acquire a third traffic violation data set and a scene information data set corresponding to the third traffic violation data set, wherein the third traffic violation data set is a data set acquired through a preset traffic violation database, and the fields in the third traffic violation data set are the same as those in the first traffic violation data set;

[0161] According to the correspondence between the first group of preset associated fields in the third traffic violation dataset and the second group of preset associated fields in the scene information dataset, the scene information dataset is used to update the field value of the target field to be updated in the third traffic violation dataset to obtain the first traffic violation dataset.

[0162] Optionally, the multiple target fields include one or more of the following target fields in addition to the first target field:

[0163] A second target field is used to indicate the subject of the traffic violation event, a third target field is used to indicate the time when the traffic violation event occurred, a fourth target field is used to indicate the weather when the traffic violation event occurred, and a fifth target field is used to indicate the behavior of the traffic violation event.

[0164] Optionally, according to the location information of each traffic violation event, the traffic violation data in the first traffic violation data set is discretized to generate multiple clusters and identification information corresponding to each cluster, specifically including:

[0165] The density clustering method OPTICS is adopted, and the location information of each traffic violation event is taken as the calculation target object. The first traffic violation data is discretized to generate multiple clusters and identification information corresponding to each cluster.

[0166] Optionally, based on at least one target field of each piece of traffic violation data in the second traffic violation data set, frequent item set mining is performed on the second traffic violation data set to generate at least one association rule and an association index value corresponding to each association rule, including:

[0167] The frequent item set mining algorithm FP-growth is adopted, and the field values ​​of all target fields in the second traffic violation data set are taken as frequent item set mining objects. Frequent item set mining is performed on the second traffic violation data set to generate multiple association rules and the association index value corresponding to each association rule.

[0168] Optionally, the association index value includes a support index value and / or a confidence index value and / or a lift index value, and according to each association index value and a corresponding preset association index threshold value, a target association rule is screened out from at least one association rule, including:

[0169] Filter out association rules whose support index is greater than or equal to a preset support threshold, and / or whose confidence index is greater than or equal to a preset confidence threshold, and / or whose lift index is greater than or equal to a preset lift threshold from the association rules as target association rules.

[0170] Optionally, each target association rule includes a leading item, which is used to indicate a scene where a traffic violation occurs. The target traffic control scene is determined according to the target association rule, including:

[0171] Sort the target association rules in descending order according to each association index value;

[0172] The leading item corresponding to the association rule with the top A in the correlation index value ranking, and / or the top B in the confidence index value ranking, and / or the top C in the lift index value ranking is taken as the target traffic control scenario, where A, B, and C are all positive integers.

[0173] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the traffic control scene determination method provided in any of the aforementioned method embodiments are implemented.

[0174] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0175] The above is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features applied herein.

Claims

1. A method for determining a traffic control scene, characterized in that: The method comprises: Acquire a first traffic violation data set, wherein each piece of traffic violation data in the first traffic violation data set includes at least one target field corresponding to a traffic violation event, at least one of the target fields includes a first target field indicating a location where the traffic violation event occurred, and a field value of the first target field includes location information of the location where the event occurred; According to the location information of each of the traffic violation incidents, the traffic violation data in the first traffic violation data set is discretized to generate a plurality of clusters and identification information corresponding to each cluster; Replacing the field value of the first target field of the traffic violation data belonging to each cluster with the identification information corresponding to the cluster to generate a second traffic violation data set; Based on at least one of the target fields of each piece of traffic violation data in the second traffic violation data set, performing frequent item set mining on the second traffic violation data set to generate at least one association rule and an association index value corresponding to each association rule; Filtering a target association rule from at least one of the association rules according to each of the association index values ​​and the corresponding preset association index thresholds; A target traffic control scenario is determined according to the target association rule.

2. The method according to claim 1, characterized in that The obtaining of the first traffic violation data set includes: Acquire a third traffic violation data set and a scene information data set corresponding to the third traffic violation data set, wherein the third traffic violation data set is a data set acquired through a preset traffic violation database, and the fields in the third traffic violation data set are the same as those in the first traffic violation data set; According to the correspondence between the first group of preset associated fields in the third traffic violation data set and the second group of preset associated fields in the scene information data set, the scene information data set is used to update the field value of the target field to be updated in the third traffic violation data set to obtain the first traffic violation data set.

3. The method according to claim 2, characterized in that In addition to the first target field, the plurality of target fields further include one or more of the following target fields: A second target field is used to indicate the subject of the traffic violation event, a third target field is used to indicate the time when the traffic violation event occurred, a fourth target field is used to indicate the weather when the traffic violation event occurred, and a fifth target field is used to indicate the behavior of the traffic violation event.

4. The method according to any one of claim 3, characterized in that: The method of performing data discretization processing on the traffic violation data in the first traffic violation data set according to the location information of each traffic violation event occurrence place, generating multiple clusters, and identification information corresponding to each cluster, specifically includes: The density clustering method OPTICS is adopted, and the location information of each traffic violation event is taken as the calculation target object. The first traffic violation data is discretized to generate multiple clusters and identification information corresponding to each cluster.

5. The method according to any one of claims 1 to 4, characterized in that: The method of performing frequent item set mining on the second traffic violation data set based on element information included in each piece of traffic violation data in the second traffic violation data set to generate at least one association rule and an association index value corresponding to each association rule includes: A frequent item set mining algorithm FP-growth is adopted, and the field values ​​of all target fields in the second traffic violation data set are taken as frequent item set mining objects. Frequent item set mining is performed on the second traffic violation data set to generate multiple association rules and the association index value corresponding to each association rule.

6. The method according to claim 5, characterized in that The association index value includes a support index value and / or a confidence index value and / or a lift index value, and the step of selecting a target association rule from at least one of the association rules according to each of the association index values ​​and the corresponding preset association index thresholds includes: Filter out from the association rules the association rules whose support index is greater than or equal to a preset support threshold, and / or whose confidence index is greater than or equal to a preset confidence threshold, and / or whose lift index is greater than or equal to a preset lift threshold as target association rules.

7. The method according to claim 6, characterized in that Each of the target association rules includes a leading item, and the leading item is used to indicate the scene where the traffic violation event occurs. The determining of the target traffic control scene according to the target association rule includes: Sort the target association rules in descending order according to each association index value; The leading item corresponding to the association rule with the top A in the correlation index value ranking, and / or the top B in the confidence index value ranking, and / or the top C in the lift index value ranking is taken as the target traffic control scenario, wherein A, B, and C are all positive integers.

8. A traffic control scene determination device, characterized in that: The device comprises: an acquisition module, configured to acquire a first traffic violation data set, wherein each piece of traffic violation data in the first traffic violation data set includes at least one target field corresponding to a traffic violation event, at least one of the target fields includes a first target field indicating a location where the traffic violation event occurred, and a field value of the first target field includes location information of the location where the event occurred; A data discretization module, configured to discretize the traffic violation data in the first traffic violation data set according to the location information of each of the traffic violation events, and generate a plurality of clusters and identification information corresponding to each of the clusters; A replacement module, used to replace the field value of the first target field of the traffic violation data belonging to each cluster with the identification information corresponding to the cluster, so as to generate a second traffic violation data set; a frequent item set mining module, configured to perform frequent item set mining on the second traffic violation data set based on at least one target field of each traffic violation data in the second traffic violation data set, and generate at least one association rule and an association index value corresponding to each association rule; A screening module, configured to screen out a target association rule from at least one of the association rules according to each of the association index values ​​and the corresponding preset association index thresholds; A determination module is used to determine a target traffic control scenario according to the target association rule.

9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the steps of the traffic control scene determination method described in any one of claims 1-7 when executing the program stored in the memory.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the traffic control scene determination method as described in any one of claims 1 to 7 are implemented.