A method and system for identifying suspected source companies
By integrating and analyzing vehicle over-limit transportation data and using clustering and association rule technology to identify suspected source companies, the identification problem in over-limit vehicle transportation management is solved, effective management of over-limit transportation behavior is achieved, and traffic safety and Road usage efficiency.
Patent Information
- Application Number
- CN202410759172.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-06-13
AI Technical Summary
Existing technology is difficult to effectively identify and manage suspected source companies of over-limit vehicle transportation, resulting in reduced road traffic efficiency, threats to traffic safety, increased highway damage, and serious environmental pollution.
By collecting and integrating enterprise registration information, vehicle GPS trajectory data, waybill history and illegal records, we use clustering algorithms and association rule mining technology to identify suspected source enterprise groups of over-limit transportation behaviors, and analyze vehicle trajectory data to determine abnormal behaviors. .
Effectively identify and manage over-limit transportation behaviors, improve traffic safety, extend highway life, reduce environmental pollution, and improve road traffic efficiency.
Smart Images

Figure CN118333503B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data mining technology, and more specifically, to a method and system for identifying suspected source enterprises. Background Art
[0002] Overloaded vehicles reduce road traffic efficiency, seriously affect traffic safety, easily induce serious accidents, and cause great damage to people's lives and property. Overloaded vehicles also accelerate the destruction of roads and bridges, seriously affect the life of the road surface, reduce the efficiency of road use, and form a source of environmental pollution.
[0003] The identification of suspected source companies is one of the important links in the management of overloaded vehicle transportation. By identifying the source companies, we can determine which companies may have overloaded transportation and take corresponding measures to supervise and punish them. Therefore, it is of great practical significance to study an effective method for identifying suspected source companies of overloaded vehicle transportation. Summary of the invention
[0004] In order to overcome the above-mentioned defects of the prior art, an embodiment of the present invention provides a method and system for identifying suspected source enterprises to solve the problems raised in the above-mentioned background technology.
[0005] To achieve the above purpose, the present invention provides the following technical solution, a method for identifying suspected source enterprises, which specifically includes the following steps:
[0006] Step S1, collecting vehicle overload transportation data, including enterprise registration information, vehicle GPS track data, waybill history records, violation records, and integrating and cleaning the collected vehicle overload transportation data and storing it in a database;
[0007] Step S2: extracting features from the enterprise registration information and waybill history data after data cleaning, clustering analysis of the enterprises using a clustering algorithm, classifying similar enterprises into the same category, and identifying the suspected source enterprise group of overload transportation behavior based on the clustering results;
[0008] Step S3: Based on the mined suspected source enterprise group, extract their waybill history records and behavior data, mine the association rules between enterprises, and identify the overload transportation behavior characteristics according to the support and confidence of the association rules;
[0009] Step S4: Density cluster the vehicle GPS trajectory data to identify vehicle groups with similar driving trajectories. According to the clustering results, the regularity and abnormality of their driving trajectories are analyzed to determine the suspected source of overload transportation.
[0010] In a preferred embodiment, the collection of vehicle overload transportation data includes enterprise registration information, vehicle GPS track data, waybill history records, and violation records. The specific steps are as follows:
[0011] Step A1, enterprise registration information collection: obtain the registration information of vehicle transportation related enterprises, and store the obtained registration information in a data table;
[0012] Step A2, vehicle GPS trajectory data collection: obtain the vehicle's trajectory data from the GPS positioning device installed on the vehicle, and store the trajectory data in a database with timestamp as index;
[0013] Step A3, waybill history record collection: obtain the vehicle waybill history record from the vehicle transportation company, store the waybill history record in the database, and associate it with the GPS track data;
[0014] Step A4, Violation record collection: Obtain the vehicle's violation record from the traffic management department, store the violation record in the database, and associate it with relevant vehicle and enterprise information.
[0015] In a preferred embodiment, the collected vehicle overload transportation data is integrated and cleaned, and stored in a database, and the specific steps are as follows:
[0016] Step B1, data integration: Integrate the collected enterprise registration information, vehicle GPS trajectory data, waybill history records and violation record data into a unified data set, and establish connections between data tables based on the association relationship between the data;
[0017] Step B2, data cleaning: data cleaning is performed on the vehicle overload transportation data, including missing value and outlier processing operations. The missing value processing is to supplement the missing enterprise registration information, and the outlier processing is to correct the GPS coordinates that are out of range, and unify the formats of different data;
[0018] Step B3, data storage: Create a database table structure, including an enterprise information table, a vehicle GPS track table, a waybill record table, and a violation record table, and store the integrated and cleaned data in the corresponding database table.
[0019] In a preferred embodiment, the enterprise registration information and waybill history record data after data cleaning are subjected to feature extraction, and cluster analysis of the enterprises is performed using a clustering algorithm. The specific steps are as follows:
[0020] Step C1, feature extraction: Use word embedding method to extract features from the text data of enterprise registration information and waybill history records, and convert the text data into enterprise feature vectors;
[0021] Step C2, cluster analysis: Input the enterprise feature vector into the clustering algorithm for cluster analysis, and divide similar enterprises into the same cluster. Suppose there are N enterprises, each with M features, which are represented as an NxM matrix A. K-means algorithm is used for cluster analysis to divide matrix A into K clusters, each of which corresponds to a group of enterprises suspected to be the source of overload transportation behavior. The objective function of K-means is:
[0022]
[0023] Among them, J represents the objective function value of K-means, K represents the number of clusters, represents a data point, represents the center point of the jth cluster.
[0024] In a preferred embodiment, in the feature extraction of step C1, the text data of enterprise registration information and enterprise waybill history records are subjected to feature extraction using a word embedding method, and the text data is converted into an enterprise feature vector, further comprising the following steps:
[0025] Step C101, constructing a vocabulary: constructing a vocabulary from the words appearing in the text data of the enterprise, where each word corresponds to a unique index;
[0026] Step C102, word embedding model training: use the word embedding model to train on the text corpus to map words into a high-dimensional continuous vector space;
[0027] Step C103, feature vector: For each piece of text data, use the trained word embedding model to convert the words in it into corresponding word vectors, and then convert these word vectors into the enterprise feature vector of the text data. Suppose the text data contains n words , and the corresponding word vectors are , feature extraction is performed using average pooling, which averages the word vectors of all words to obtain the enterprise feature vector of the entire text data. The specific calculation formula is as follows:
[0028]
[0029] in, represents the enterprise feature vector, Represents the i-th word The corresponding word vector, n represents the number of words.
[0030] Preferably, similar enterprises are classified into the same category, and the suspected source enterprise group of overload transportation behavior is identified according to the clustering results. The specific steps are as follows:
[0031] Step D1, identifying suspected source enterprise groups: setting a threshold to determine whether an enterprise has over-limit transportation behavior, using the frequency of over-limit transportation events as the judgment standard, and for each cluster, counting the over-limit transportation behavior of its internal enterprises. When it exceeds the set threshold, the cluster is identified as a suspected source enterprise group of over-limit transportation behavior;
[0032] Step D2, visualization: Display the clustering results in a visual way, reduce the N-dimensional feature vector to 2 dimensions, draw a scatter plot, each point represents an enterprise, and the color represents the cluster to which the enterprise belongs.
[0033] In a preferred embodiment, the mining-based suspected source enterprise group extracts its waybill history records and behavior data, mines the association rules between enterprises, and identifies the overload transportation behavior characteristics according to the support and confidence of the association rules. The specific steps are as follows:
[0034] Step E1, constructing item sets: converting the extracted waybill history record data set into item sets, where each item represents a transport behavior;
[0035] Step E2, calculate support: For each item set, calculate its support in the data set. The support represents the frequency of occurrence of the item set. The specific calculation formula is as follows:
[0036]
[0037] in, represents the support of item set X in the data set, is the number of times item set X appears in the data set, is the total number of records in the dataset;
[0038] Step E3: Generate association rules: Set the minimum support threshold and the minimum confidence threshold , and use the Apriori algorithm to generate frequent item sets and association rules;
[0039] Step E4, calculate confidence: For each association rule, calculate its confidence, which represents the probability that when one item set appears, another item set also appears. The specific calculation formula is as follows:
[0040]
[0041] in, It indicates the probability that item set Y will appear when item set X appears. is the support of item sets X and Y appearing simultaneously, Represents the support of item set X in the data set;
[0042] Step E5: Select association rules: select the rule with support greater than the preset threshold The rules are retained, and the retained association rules are analyzed to evaluate their confidence and support;
[0043] Step E6: Identify suspected source companies: Set the support and confidence levels to be greater than the preset thresholds. and The enterprises involved in the association rules are regarded as suspected source enterprises, and the transportation behavior and related information of the suspected source enterprises are further analyzed for research, judgment and investigation.
[0044] In a preferred embodiment, in the step E3 of generating association rules, a minimum support threshold is set. and the minimum confidence threshold , using the Apriori algorithm to generate frequent item sets and association rules, further including the following steps:
[0045] Step E301, generating candidate item sets: scanning the data set, counting the support count of each item, the support count represents the number of occurrences of each item set, and filtering out single items whose support is not less than the threshold according to the minimum support threshold, forming a frequent 1-item set;
[0046] Step E302, iteratively generate higher-order frequent itemsets: based on the frequent k-1 itemsets, generate candidate k-itemsets through a connection operation, scan the data set for the candidate k-itemsets, count their support counts, and select itemsets with support not less than a threshold as frequent k-itemsets. When the generated frequent k-itemsets are empty, stop the iteration, otherwise continue to generate higher-order frequent itemsets;
[0047] Step E303, filter association rules: for each frequent item set, generate all its non-empty subsets as the antecedents of the rule, and the remaining items as the consequents of the rule. For each rule, calculate its support and confidence, and filter out the association rules that meet the conditions according to the set minimum support and minimum confidence thresholds.
[0048] In a preferred embodiment, the vehicle GPS trajectory data is density clustered to identify vehicle groups with similar driving trajectories. According to the clustering results, the regularity and abnormality of the driving trajectories are analyzed to determine the suspected source enterprises. The specific steps are as follows:
[0049] Step F1, setting parameters: loading vehicle GPS trajectory data from the database, extracting features based on the trajectory data, using the DBSCAN algorithm to perform density clustering on the vehicle trajectory data, and setting the parameters of the DBSCAN algorithm, including the neighborhood radius and the minimum number of points. The neighborhood radius is the neighborhood radius of a data point, which is used to determine the density of the data point. The minimum number of points is the minimum number of points in the neighborhood of a data point, which is used to determine whether the data point is a core point.
[0050] Step F2, density clustering: Use the set neighborhood radius and minimum number of points to run the DBSCAN algorithm to cluster the GPS data. According to the results of the DBSCAN algorithm, the data points are divided into core points, boundary points and noise points to form different clusters;
[0051] Step F3, analyzing clustering results: for each cluster, analyzing the vehicle trajectory characteristics therein, including the starting point, the end point, and the driving route, comparing the trajectory characteristics between different clusters, and finding similar driving trajectory groups;
[0052] Step F4, abnormal trajectory detection: for each cluster, detect whether there is an abnormal trajectory, judging by the trajectory length, speed, and dwell time indicators;
[0053] Step F5: Identification of suspected source companies: Based on the clustering results and analysis of abnormal trajectories, identify suspected source companies.
[0054] In a preferred embodiment, in the step F4 of detecting abnormal trajectories, for each cluster, detecting whether there is an abnormal trajectory is determined based on the length, speed, and dwell time of the trajectory, and further comprising the following steps:
[0055] F401, calculate the trajectory length: express the trajectory data set as ,in Represents the hth trajectory, including the coordinates and time information of the trajectory points. The trajectory is obtained by calculating the sum of the distances between adjacent trajectory points on the trajectory. The specific calculation formula is as follows:
[0056]
[0057] in, Representation trajectory Length, and They represent two adjacent trajectory points on the trajectory, h represents the number of trajectory points, Represents the distance function between two points;
[0058] Step F402, calculate the average speed: calculate the trajectory by dividing the total length of the trajectory by the total time The average speed is calculated as follows:
[0059]
[0060] in, Representation trajectory The average speed, Representation trajectory The total time, Representation trajectory Length;
[0061] Step F403, detecting the stay point and stay time: defining a threshold , when the time the trajectory stays at a certain point exceeds the threshold , the point is considered to be a stop point, indicating that the stop time is abnormally long.
[0062] The present application also provides a system for judging suspected source enterprises, which specifically includes a data collection module, an enterprise feature mining module, an enterprise behavior mining module, and a vehicle trajectory mining module;
[0063] Data collection module: collects vehicle overload transport data, including enterprise registration information, vehicle GPS track data, waybill history records, and violation records, and integrates and cleans the collected vehicle overload transport data and stores it in the database;
[0064] Enterprise feature mining module: extracts features from enterprise registration information and waybill history data after data cleaning, uses clustering algorithms to perform cluster analysis on enterprises, classifies similar enterprises into the same category, and identifies the suspected source enterprise group of overload transportation behavior based on the clustering results;
[0065] Enterprise behavior mining module: Based on the suspected source enterprise groups mined, extract their waybill history records and behavior data, mine the association rules between enterprises, and identify the over-limit transportation behavior characteristics based on the support and confidence of the association rules;
[0066] Vehicle trajectory mining module: Density clustering of vehicle GPS trajectory data is performed to identify groups of vehicles with similar driving trajectories. Based on the clustering results, the regularity and abnormality of their driving trajectories are analyzed to identify companies suspected of being the source of overloaded transportation.
[0067] The beneficial effects of the present invention are as follows: collecting vehicle overload transportation data, including enterprise registration information, vehicle GPS trajectory data, waybill history records, and violation records, integrating and cleaning the collected vehicle overload transportation data, storing them in a database, extracting features from the enterprise registration information and waybill history record data after data cleaning, clustering analysis of enterprises using a clustering algorithm, identifying suspected source enterprise groups of overload transportation behavior based on the clustering results, mining association rules between enterprises based on the mined suspected source enterprise groups, identifying overload transportation behavior characteristics based on the support and confidence of the association rules, density clustering of vehicle GPS trajectory data, identifying vehicle groups with similar driving trajectories, analyzing the regularity and abnormality of their driving trajectories based on the clustering results, studying and judging suspected source enterprises, and effectively identifying and managing overload transportation behavior. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 is a flow chart of the method of the present invention;
[0069] Figure 2 It is a system structure block diagram of the present invention. DETAILED DESCRIPTION
[0070] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0071] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, "plurality" means two or more, unless otherwise clearly and specifically defined.
[0072] In the description of the present application, the term "for example" is used to mean "used as an example, illustration or description". Any embodiment described as "for example" in the present application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is given to enable any technician in the field to implement and use the present invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present invention can be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated in detail to avoid unnecessary details to obscure the description of the present invention. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.
[0073] Example 1
[0074] This embodiment provides Figure 1 A method for identifying suspected source enterprises is shown, which specifically includes the following steps:
[0075] Step S1, collecting vehicle overload transportation data, including enterprise registration information, vehicle GPS track data, waybill history records, violation records, and integrating and cleaning the collected vehicle overload transportation data and storing it in a database;
[0076] Step S2: extracting features from the enterprise registration information and waybill history data after data cleaning, clustering analysis of the enterprises using a clustering algorithm, classifying similar enterprises into the same category, and identifying the suspected source enterprise group of overload transportation behavior based on the clustering results;
[0077] Step S3: Based on the mined suspected source enterprise group, extract their waybill history records and behavior data, mine the association rules between enterprises, and identify the overload transportation behavior characteristics according to the support and confidence of the association rules;
[0078] Step S4: Density cluster the vehicle GPS trajectory data to identify vehicle groups with similar driving trajectories. According to the clustering results, the regularity and abnormality of their driving trajectories are analyzed to determine the suspected source of overload transportation.
[0079] Preferably, the collection of vehicle overload transportation data includes enterprise registration information, vehicle GPS track data, waybill history records, and violation records. The specific steps are as follows:
[0080] Step A1, enterprise registration information collection: obtain the registration information of vehicle transportation related enterprises, including enterprise name, registered address, legal representative, registered capital, business scope, and store the obtained registration information in a unified data table to ensure data integrity and consistency;
[0081] Step A2, vehicle GPS trajectory data collection: obtain the vehicle's trajectory data from the GPS positioning device installed on the vehicle, and store the trajectory data in a database with timestamp as index. The trajectory data includes the vehicle's driving path, speed, stop location, and stop time information;
[0082] Step A3, collecting waybill history records: obtaining the waybill history records of the vehicle from the vehicle transport enterprise, storing the waybill history records in the database, and associating them with the GPS track data. The waybill history records of the vehicle include the starting point, destination point, cargo type, transport time, transport distance, and transport vehicle information of the cargo transport;
[0083] Step A4, illegal record collection: Obtain the vehicle's illegal record from the traffic management department, store the illegal record in the database, and associate it with relevant vehicle and enterprise information. The illegal record includes the illegal behavior records of overloading, speeding, and illegal parking.
[0084] Preferably, the collected vehicle overload transportation data is integrated and cleaned, and stored in a database, and the specific steps are as follows:
[0085] Step B1, data integration: Integrate the collected enterprise registration information, vehicle GPS trajectory data, waybill history records and violation record data into a unified data set, and establish connections between data tables based on the association relationship between the data;
[0086] Step B2, data cleaning: Data cleaning is performed on the vehicle overload transportation data, including missing value and outlier processing operations. The missing value processing is to supplement the missing enterprise registration information, and the outlier processing is to correct the GPS coordinates that are out of range, and unify the formats of different data to ensure that the data has a consistent format throughout the cleaning process;
[0087] Step B3, data storage: Create a database table structure, including enterprise information table, vehicle GPS track table, waybill record table and violation record table, and store the integrated and cleaned data in the corresponding database table to ensure data integrity and consistency.
[0088] Preferably, the enterprise registration information and waybill history record data after data cleaning are subjected to feature extraction, and cluster analysis of the enterprises is performed using a clustering algorithm. The specific steps are as follows:
[0089] Step C1, feature extraction: Use the word embedding method to extract features from the text data of the enterprise registration information and the waybill history records, and convert the text data into an enterprise feature vector, wherein the extracted enterprise registration information features include: registered capital, registration date, and industry category; the extracted waybill history record features include: transportation distance, type of goods transported, and transportation frequency;
[0090] Step C2, cluster analysis: Input the enterprise feature vector into the clustering algorithm for cluster analysis, and divide similar enterprises into the same cluster. Suppose there are N enterprises, each with M features, which are represented as an NxM matrix A. K-means algorithm is used for cluster analysis to divide matrix A into K clusters, each of which corresponds to a group of enterprises suspected to be the source of overload transportation behavior. The objective function of K-means is:
[0091]
[0092] Among them, J represents the objective function value of K-means, K represents the number of clusters, represents a data point, Represents the center point of the jth cluster, and updates the center point of the cluster through continuous iteration Until the objective function reaches the maximum number of iterations, the optimal cluster division is obtained.
[0093] Preferably, in the feature extraction of step C1, a word embedding method is used to extract features from the text data of the enterprise registration information and the enterprise waybill history records, and the text data is converted into an enterprise feature vector, further comprising the following steps:
[0094] Step C101, constructing a vocabulary: constructing a vocabulary from the words appearing in the text data of the enterprise, where each word corresponds to a unique index;
[0095] Step C102, word embedding model training: use the word embedding model to train on the text corpus to map words into a high-dimensional continuous vector space;
[0096] Step C103, feature vector: For each piece of text data, use the trained word embedding model to convert the words in it into corresponding word vectors, and then convert these word vectors into the enterprise feature vector of the text data. Suppose the text data contains n words , and the corresponding word vectors are , feature extraction is performed using average pooling, which averages the word vectors of all words to obtain the enterprise feature vector of the entire text data. The specific calculation formula is as follows:
[0097]
[0098] in, represents the enterprise feature vector, Represents the i-th word The corresponding word vector, n represents the number of words.
[0099] Preferably, similar enterprises are classified into the same category, and the suspected source enterprise group of overload transportation behavior is identified according to the clustering results. The specific steps are as follows:
[0100] Step D1, identifying suspected source enterprise groups: setting a threshold to determine whether an enterprise has over-limit transportation behavior, using the frequency of over-limit transportation events as the judgment standard, and for each cluster, counting the over-limit transportation behavior of its internal enterprises. When it exceeds the set threshold, the cluster is identified as a suspected source enterprise group of over-limit transportation behavior;
[0101] Step D2, visualization: The clustering results are displayed in a visual way. The N-dimensional feature vector is reduced to 2 dimensions, and a scatter plot is drawn. Each point represents an enterprise, and the color represents the cluster to which the enterprise belongs. The differences between different clusters can be observed intuitively.
[0102] Preferably, the mining-based suspected source enterprise group extracts its waybill history records and behavior data, mines the association rules between enterprises, and identifies the overload transportation behavior characteristics according to the support and confidence of the association rules. The specific steps are as follows:
[0103] Step E1, constructing item sets: converting the extracted waybill history record dataset into an item set, where each item represents a transportation behavior, including waybill ID, transportation company, transported goods, and transportation time;
[0104] Step E2, calculate support: For each item set, calculate its support in the data set. The support represents the frequency of occurrence of the item set. The specific calculation formula is as follows:
[0105]
[0106] in, represents the support of item set X in the data set, is the number of times item set X appears in the data set, is the total number of records in the dataset;
[0107] Step E3: Generate association rules: Set the minimum support threshold and the minimum confidence threshold , and use the Apriori algorithm to generate frequent item sets and association rules;
[0108] Step E4, calculate confidence: For each association rule, calculate its confidence, which represents the probability that when one item set appears, another item set also appears. The specific calculation formula is as follows:
[0109]
[0110] in, It indicates the probability that item set Y will appear when item set X appears. is the support of item sets X and Y appearing simultaneously, Represents the support of item set X in the data set;
[0111] Step E5: Select association rules: select the rule with support greater than the preset threshold The rules are retained, and the retained association rules are analyzed to evaluate their confidence and support;
[0112] Step E6: Identify suspected source companies: Set the support and confidence levels to be greater than the preset thresholds. and The enterprises involved in the association rules are regarded as suspected source enterprises, and the transportation behavior and related information of the suspected source enterprises are further analyzed for research, judgment and investigation.
[0113] Preferably, in the step E3 of generating association rules, a minimum support threshold is set. and the minimum confidence threshold , using the Apriori algorithm to generate frequent item sets and association rules, further including the following steps:
[0114] Step E301, generating candidate item sets: scanning the data set, counting the support count of each item, the support count represents the number of occurrences of each item set, and filtering out single items whose support is not less than the threshold according to the minimum support threshold, forming a frequent 1-item set;
[0115] Step E302, iteratively generate higher-order frequent itemsets: based on the frequent k-1 itemsets, generate candidate k-itemsets through a connection operation, scan the data set for the candidate k-itemsets, count their support counts, and select itemsets with support not less than a threshold as frequent k-itemsets. When the generated frequent k-itemsets are empty, stop the iteration, otherwise continue to generate higher-order frequent itemsets;
[0116] Step E303, filter association rules: for each frequent item set, generate all its non-empty subsets as the antecedents of the rule, and the remaining items as the consequents of the rule. For each rule, calculate its support and confidence, and filter out the association rules that meet the conditions according to the set minimum support and minimum confidence thresholds.
[0117] Preferably, the vehicle GPS trajectory data is density clustered to identify vehicle groups with similar driving trajectories, and according to the clustering results, the regularity and abnormality of the driving trajectories are analyzed to judge the suspected source enterprises. The specific steps are as follows:
[0118] Step F1, setting parameters: loading vehicle GPS trajectory data from the database, extracting features based on the trajectory data, using the DBSCAN algorithm to perform density clustering on the vehicle trajectory data, and setting the parameters of the DBSCAN algorithm, including the neighborhood radius and the minimum number of points. The neighborhood radius is the neighborhood radius of a data point, which is used to determine the density of the data point. The minimum number of points is the minimum number of points in the neighborhood of a data point, which is used to determine whether the data point is a core point.
[0119] Step F2, density clustering: Use the set neighborhood radius and minimum number of points to run the DBSCAN algorithm to cluster the GPS data. According to the results of the DBSCAN algorithm, the data points are divided into core points, boundary points and noise points to form different clusters;
[0120] Step F3, analyzing clustering results: for each cluster, analyzing the vehicle trajectory characteristics therein, including the starting point, the end point, and the driving route, comparing the trajectory characteristics between different clusters, and finding similar driving trajectory groups;
[0121] Step F4, abnormal trajectory detection: for each cluster, detect whether there is an abnormal trajectory, judging by the trajectory length, speed, and dwell time indicators;
[0122] Step F5: Identification of suspected source companies: Based on the clustering results and analysis of abnormal trajectories, identify suspected source companies.
[0123] Preferably, in the step F4, in detecting abnormal trajectories, for each cluster, detecting whether there is an abnormal trajectory, judging according to the length, speed, and dwell time indicators of the trajectory, further comprises the following steps:
[0124] F401, calculate the trajectory length: express the trajectory data set as ,in Represents the hth trajectory, including the coordinates and time information of the trajectory points. The trajectory is obtained by calculating the sum of the distances between adjacent trajectory points on the trajectory. The specific calculation formula is as follows:
[0125]
[0126] in, Representation trajectory Length, and They represent two adjacent trajectory points on the trajectory, h represents the number of trajectory points, Represents the distance function between two points;
[0127] Step F402, calculate the average speed: calculate the trajectory by dividing the total length of the trajectory by the total time The average speed is calculated as follows:
[0128]
[0129] in, Representation trajectory The average speed, Representation trajectory The total time, Representation trajectory Length;
[0130] Step F403, detecting the stay point and stay time: defining a threshold , when the time the trajectory stays at a certain point exceeds the threshold , the point is considered to be a stop point, indicating that the stop time is abnormally long.
[0131] Example 2
[0132] This embodiment provides Figure 2 A system for judging suspected source enterprises is shown, which specifically includes a data collection module, an enterprise feature mining module, an enterprise behavior mining module, and a vehicle trajectory mining module;
[0133] Data collection module: collects vehicle overload transport data, including enterprise registration information, vehicle GPS track data, waybill history records, and violation records, and integrates and cleans the collected vehicle overload transport data and stores it in the database;
[0134] Enterprise feature mining module: extracts features from enterprise registration information and waybill history data after data cleaning, uses clustering algorithms to perform cluster analysis on enterprises, classifies similar enterprises into the same category, and identifies the suspected source enterprise group of overload transportation behavior based on the clustering results;
[0135] Enterprise behavior mining module: Based on the suspected source enterprise groups mined, extract their waybill history records and behavior data, mine the association rules between enterprises, and identify the over-limit transportation behavior characteristics based on the support and confidence of the association rules;
[0136] Vehicle trajectory mining module: Density clustering of vehicle GPS trajectory data is performed to identify groups of vehicles with similar driving trajectories. Based on the clustering results, the regularity and abnormality of their driving trajectories are analyzed to identify companies suspected of being the source of overloaded transportation.
[0137] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0138] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0139] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0140] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0141] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0142] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0143] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for identifying suspected source enterprises, characterized in that: The specific steps include: Step S1: Collect vehicle overload transportation data, including enterprise registration information, vehicle GPS track data, waybill history records, and violation records. The specific steps are as follows: Step A1, enterprise registration information collection: obtain the registration information of vehicle transportation related enterprises, and store the obtained registration information in a data table; Step A2, vehicle GPS trajectory data collection: obtain the vehicle's trajectory data from the GPS positioning device installed on the vehicle, and store the trajectory data in a database with timestamp as index; Step A3, waybill history record collection: obtain the vehicle waybill history record from the vehicle transportation company, store the waybill history record in the database, and associate it with the GPS track data; Step A4, illegal record collection: obtain the illegal record of the vehicle from the traffic management department, store the illegal record in the database, and associate it with relevant vehicle and enterprise information; The collected vehicle overload transportation data will be integrated and cleaned and stored in the database. The specific steps are as follows: Step B1, data integration: Integrate the collected enterprise registration information, vehicle GPS trajectory data, waybill history records and violation record data into a unified data set, and establish connections between data tables based on the association relationship between the data; Step B2, data cleaning: data cleaning is performed on the vehicle overload transportation data, including missing value and outlier processing operations. The missing value processing is to supplement the missing enterprise registration information, and the outlier processing is to correct the GPS coordinates that are out of range, and unify the formats of different data; Step B3, data storage: create a database table structure, including an enterprise information table, a vehicle GPS track table, a waybill record table, and a violation record table, and store the integrated and cleaned data in the corresponding database table; Step S2: extract features from the enterprise registration information and waybill history data after data cleaning, and use clustering algorithm to perform cluster analysis on the enterprises. The specific steps are as follows: Step C1, feature extraction: Use the word embedding method to extract features from the text data of the enterprise registration information and the waybill history records, and convert the text data into an enterprise feature vector, further including the following steps: Step C101, constructing a vocabulary: constructing a vocabulary from the words appearing in the text data of the enterprise, where each word corresponds to a unique index; Step C102, word embedding model training: use the word embedding model to train on the text corpus to map words into a high-dimensional continuous vector space; Step C103, feature vector: For each piece of text data, use the trained word embedding model to convert the words in it into corresponding word vectors, and then convert these word vectors into the enterprise feature vector of the text data. Suppose the text data contains n words , and the corresponding word vectors are , feature extraction is performed using average pooling, which averages the word vectors of all words to obtain the enterprise feature vector of the entire text data. The specific calculation formula is as follows: in, represents the enterprise feature vector, Represents the i-th word The corresponding word vector, n represents the number of words; Step C2, cluster analysis: Input the enterprise feature vector into the clustering algorithm for cluster analysis, and divide similar enterprises into the same cluster. Suppose there are N enterprises, each with M features, which are represented as an NxM matrix A. K-means algorithm is used for cluster analysis to divide matrix A into K clusters, each of which corresponds to a group of enterprises suspected to be the source of overload transportation behavior. The objective function of K-means is: Among them, J represents the objective function value of K-means, K represents the number of clusters, represents a data point, represents the center point of the jth cluster; Similar enterprises are grouped into the same category. Based on the clustering results, the suspected source enterprise group of overload transportation behavior is identified. The specific steps are as follows: Step D1, identifying suspected source enterprise groups: setting a threshold to determine whether an enterprise has over-limit transportation behavior, using the frequency of over-limit transportation events as the judgment standard, and for each cluster, counting the over-limit transportation behavior of its internal enterprises. When it exceeds the set threshold, the cluster is identified as a suspected source enterprise group of over-limit transportation behavior; Step D2, visualization: Display the clustering results in a visual way, reduce the N-dimensional feature vector to 2 dimensions, draw a scatter plot, each point represents an enterprise, and the color represents the cluster to which the enterprise belongs; Step S3: Based on the mined suspected source enterprise group, extract their waybill history records and behavior data, mine the association rules between enterprises, and identify the overload transportation behavior characteristics according to the support and confidence of the association rules. The specific steps are as follows: Step E1, constructing item sets: converting the extracted waybill history record data set into item sets, where each item represents a transport behavior; Step E2, calculate support: For each item set, calculate its support in the data set. The support represents the frequency of occurrence of the item set. The specific calculation formula is as follows: in, represents the support of item set X in the data set, is the number of times item set X appears in the data set, is the total number of records in the dataset; Step E3: Generate association rules: Set the minimum support threshold and the minimum confidence threshold , and use the Apriori algorithm to generate frequent item sets and association rules; Step E4, calculate confidence: For each association rule, calculate its confidence, which represents the probability that when one item set appears, another item set also appears. The specific calculation formula is as follows: in, It indicates the probability that item set Y will appear when item set X appears. is the support of item sets X and Y appearing simultaneously, Represents the support of item set X in the data set; Step E5: Select association rules: select the rule with support greater than the preset threshold The rules are retained, and the retained association rules are analyzed to evaluate their confidence and support; Step E6: Identify suspected source companies: Set the support and confidence levels to be greater than the preset thresholds. and The enterprises involved in the association rules are regarded as suspected source enterprises; Step S4: Density cluster the vehicle GPS trajectory data to identify vehicle groups with similar driving trajectories. According to the clustering results, the regularity and abnormality of their driving trajectories are analyzed to determine the suspected source of overload transportation.
2. The method for identifying a suspected source enterprise according to claim 1, characterized in that: The density clustering of vehicle GPS trajectory data is performed to identify vehicle groups with similar driving trajectories. Based on the clustering results, the regularity and abnormality of the driving trajectories are analyzed to determine the suspected source companies. The specific steps are as follows: Step F1, setting parameters: loading vehicle GPS trajectory data from the database, extracting features based on the trajectory data, using the DBSCAN algorithm to perform density clustering on the vehicle trajectory data, and setting the parameters of the DBSCAN algorithm, including the neighborhood radius and the minimum number of points; Step F2, density clustering: Use the set neighborhood radius and minimum number of points to run the DBSCAN algorithm to cluster the GPS data. According to the results of the DBSCAN algorithm, the data points are divided into core points, boundary points and noise points to form different clusters; Step F3, analyzing clustering results: for each cluster, analyzing the vehicle trajectory characteristics therein, comparing the trajectory characteristics between different clusters, and finding similar driving trajectory groups; Step F4, abnormal trajectory detection: for each cluster, detect whether there is an abnormal trajectory, judging by the trajectory length, speed, and dwell time indicators; Step F5: Identification of suspected source companies: Based on the clustering results and analysis of abnormal trajectories, identify the suspected source companies.
3. The method for identifying a suspected source enterprise according to claim 2 is characterized by: In the step F4, for each cluster, detecting whether there is an abnormal trajectory is performed, and judging based on the length, speed, and dwell time of the trajectory, further comprising the following steps: F401, calculate the trajectory length: express the trajectory data set as ,in Represents the hth trajectory, including the coordinates and time information of the trajectory points. The trajectory is obtained by calculating the sum of the distances between adjacent trajectory points on the trajectory. The specific calculation formula is as follows: in, Representation trajectory Length, and They represent two adjacent trajectory points on the trajectory, h represents the number of trajectory points, Represents the distance function between two points; Step F402, calculate the average speed: calculate the trajectory by dividing the total length of the trajectory by the total time The average speed is calculated as follows: in, Representation trajectory The average speed, Representation trajectory The total time, Representation trajectory Length; Step F403, detecting the stay point and stay time: defining a threshold , when the time the trajectory stays at a certain point exceeds the threshold , the point is considered to be a stop point, indicating that the stop time is abnormally long.
4. A system for identifying suspected source enterprises is applied to a method for identifying suspected source enterprises as described in any one of claims 1 to 3, characterized in that: It includes data collection module, enterprise feature mining module, enterprise behavior mining module, and vehicle trajectory mining module; Data collection module: collects vehicle overload transport data, including enterprise registration information, vehicle GPS track data, waybill history records, and violation records, and integrates and cleans the collected vehicle overload transport data and stores it in the database; Enterprise feature mining module: extracts features from enterprise registration information and waybill history data after data cleaning, uses clustering algorithms to perform cluster analysis on enterprises, classifies similar enterprises into the same category, and identifies the suspected source enterprise group of overload transportation behavior based on the clustering results; Enterprise behavior mining module: Based on the suspected source enterprise groups mined, extract their waybill history records and behavior data, mine the association rules between enterprises, and identify the over-limit transportation behavior characteristics based on the support and confidence of the association rules; Vehicle trajectory mining module: Density clustering of vehicle GPS trajectory data is performed to identify groups of vehicles with similar driving trajectories. Based on the clustering results, the regularity and abnormality of their driving trajectories are analyzed to identify companies suspected of being the source of overloaded transportation.
