High-speed passenger car travel characteristic group identification method based on K-means BP neural network

The K-means&BP neural network method is used to preprocess and feature the highway ETC data, and combined with the clustering algorithm and neural network model, it solves the problem of being unable to identify travel groups in ETC data management and achieves accurate identification and identification of travel characteristic groups. Efficient utilization of ETC data.

CN118779681APending Publication Date: 2024-10-15CHONGQING TONGYU TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410753119.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Traditional highway ETC data management cannot accurately identify different travel groups, resulting in lack of pertinence of service methods and low data utilization, failing to give full play to the advantages of the ETC system.

Method used

The K-means&BP neural network method is used to preprocess highway ETC data and extract feature indicators. Through hybrid clustering combining Canopy-K-means clustering and ant colony algorithm, a BP neural network model is constructed to realize travel characteristics Accurate identification of groups.

Benefits of technology

It achieves accurate identification of travel characteristic groups on highways, improves the utilization rate and management efficiency of ETC data, and enhances the service capabilities of the ETC system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779681A_ABST
    Figure CN118779681A_ABST
Patent Text Reader

Abstract

The invention discloses a preparation method of a K-mean amp (K-mean amp; the invention discloses a high-speed passenger car travel characteristic group identification method based on a BP neural network. The method comprises the following steps: S1, preprocessing collected ETC data; s2, extracting travel characteristic indexes of the passenger cars; s3, classifying the user feature groups through a hybrid clustering algorithm combining a Canopy pre-clustering algorithm, a K-means clustering algorithm and an ant colony algorithm; s4, setting a neural network layer number, a hidden layer neuron number, an expected error, a learning rate, a momentum factor and a node activation function parameter; s5, taking the passenger car travel characteristic index data as model input, and constructing a BP neural network model which comprises a training model and a test model; s6, calculating the accuracy rate, recall rate and accuracy rate indexes of the model through the test model, and evaluating the recognition effect of the model; and S7, obtaining a model for identifying the travel feature group, and identifying the travel feature group. According to the method, the travel feature group recognition model is constructed, so that the travel behaviors of vehicles on the expressway can be researched conveniently.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of big data and artificial intelligence technology, and in particular to a method for identifying a group of high-speed passenger car travel characteristics using a K-means&BP neural network. Background Art

[0002] In recent years, with the rapid development of my country's expressways, big data technology and artificial intelligence have gradually been applied to expressway-related facilities and traffic control, such as electronic toll collection systems, traffic event recognition, trajectory analysis, license plate recognition, etc. Among them, the expressway electronic toll collection system (ETC), as a commonly used toll collection method on expressways, can not only shorten the toll collection time on expressways, but also save labor costs. It can also combine big data to obtain specific information about vehicles passing through expressway toll stations. It is a high-tech technology that is beneficial to travelers and traffic managers.

[0003] However, it is the improvement of service quality on highways that makes travel behaviors on highways more diverse, but traditional management and service methods cannot identify different travel groups and can only treat them as the same individual, thus providing specific service methods based on specific travel characteristics, and lacking accurate identification of similar groups. In addition, the utilization rate of ETC data on highways is generally low, and it is more used in traffic management, such as traffic congestion warning, violation monitoring, and rapid accident handling. There is a lack of exploration and application of ETC data for vehicle travel information, resulting in a lack of methods for ETC data analysis and feature mining in this aspect. The value contained in ETC data has not been fully utilized, and the advantages of the ETC system have not been fully reflected. Summary of the invention

[0004] In view of the above-mentioned deficiencies in the prior art, the technical problem to be solved by this patent application is how to provide a K-means&BP neural network method for identifying high-speed passenger car travel characteristic groups, utilizing a large amount of ETC data on the highway, through data preprocessing, Python extraction of indicators, Canopy-K-means clustering, ant colony algorithm and BP neural network learning and other processes, to construct a travel characteristic group classification and recognition model, and evaluate the effect of the model on the recognition of travel characteristic groups, thereby achieving accurate identification of travel characteristic groups on the highway.

[0005] In order to solve the above technical problems, the present invention adopts the following technical solutions:

[0006] A K-means & BP neural network method for identifying characteristic groups of high-speed passenger cars is proposed. The method collects ETC vehicle data on the highway and performs data processing and modeling analysis to identify characteristic groups of passenger cars on the highway. The method specifically includes the following steps:

[0007] S1: Preprocess the collected ETC data; S2: Extract the travel characteristic indicators of passenger cars; S3: Classify the user characteristic groups through a hybrid clustering algorithm that combines the Canopy pre-clustering algorithm, the K-means clustering algorithm and the ant colony algorithm; S4: Set the number of neural network layers, the number of hidden layer neurons, the expected error, the learning rate, the momentum factor, and the node activation function parameters; S5: Use the travel characteristic indicator data of passenger cars as the model input to construct a BP neural network model, including a training model and a test model; S6: Calculate the precision, recall rate, and accuracy indicators of the model through the test model, and evaluate the recognition effect of the model; S7: Obtain a model for identifying travel characteristic groups and identify travel characteristic groups.

[0008] Specifically, in step S1, Python is used to pre-process the collected ETC data, including missing value processing, duplicate value processing, outlier processing, and data association;

[0009] The missing value processing refers to deleting or filling the missing data, depending on whether the missing data is critical;

[0010] The duplicate value processing means that the same data may be recorded multiple times by ETC. After identifying duplicate or similar duplicate data, only one piece of data is retained and the rest is deleted;

[0011] The outlier processing refers to deleting data that is too high or too low relative to normal data;

[0012] The data association refers to associating and integrating data with common transaction ID field information and license plate information after missing value processing, duplicate value processing and outlier processing.

[0013] Specifically, in step S2, the passenger car travel characteristic indicators include the number of monthly travel days of users during the study period, the average single travel distance, the travel preference during peak hours, and the travel preference on weekends and holidays;

[0014] The monthly travel days refer to the average number of travel days of the same vehicle in a month during the study period, and the index extraction is realized through Python code;

[0015] The single average trip distance refers to the average distance of each trip of the same vehicle during the study period. The vehicle path is obtained by means of web crawlers, and the driving distance of each trip is obtained through Python code;

[0016] The peak travel preference refers to the frequency of vehicles choosing to travel during peak hours during the study period. The peak travel preference coefficient is calculated by counting the total number of trips and peak trips of vehicles during the study period through Python;

[0017] The weekend and holiday travel preference refers to the frequency with which vehicles choose to travel on weekends and holidays during the study period. The total number of travel days and the number of days on which vehicles choose to travel on weekends and holidays during the study period are counted by Python to calculate the weekend and holiday travel preference coefficient.

[0018] Specifically, in step S3, the user feature groups are classified by a hybrid clustering algorithm, the number of clusters k and the initial cluster center are determined by the Canopy pre-clustering algorithm, and then the K-means clustering algorithm is continuously iterated until the cluster center no longer changes to obtain the clustering result. Finally, the result is optimized by the ant colony algorithm to improve the accuracy of the algorithm clustering.

[0019] Specifically, in step S5, the extracted passenger car travel characteristic index is used as the input of the model to construct a BP neural network training model. When the error between the output result and the actual value is less than the expected error, the training is stopped, and the parameter combination with the fastest training time is the optimal parameter combination; otherwise, the above parameters are reset and training is continued until the best is achieved.

[0020] Specifically, in step S6, the test sample is input into the test model for testing and compared with the actual feature group to obtain the precision, sensitivity and accuracy of the travel feature group recognition model under the best parameter combination, so as to evaluate the recognition effect of the model.

[0021] In summary, highways are important channels connecting cities. The existing ETC toll collection system cannot accurately distinguish different travel characteristic groups, lacks service means for different travel characteristic groups, and the purpose of ETC data is relatively single. In view of the entry and exit of different types of vehicles on the highway, on the basis of a deep understanding of the various data of the ETC system, in order to deeply explore the usefulness of ETC data, this application proposes a travel characteristic group identification method based on K-means&BP neural network, performs preprocessing and characteristic group classification on ETC data, thereby constructing a travel characteristic group identification model, and obtaining a method for identifying characteristic groups, which is convenient for studying the travel behavior of vehicles on highways. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a flow chart of the method for identifying high-speed passenger car travel characteristic groups using K-means&BP neural network disclosed in the present invention;

[0023] Figure 2It is a flow chart of a hybrid clustering algorithm in the method for identifying high-speed passenger car travel characteristic groups using a K-means&BP neural network disclosed in the present invention;

[0024] Figure 3 The present invention is a flowchart of a BP neural network training model for a user travel characteristic group recognition model based on high-speed ETC data. DETAILED DESCRIPTION

[0025] The present invention is further described in detail below in conjunction with the accompanying drawings. In the description of the present invention, it should be understood that the directions or positional relationships indicated by directional words such as "upper, lower" and "top, bottom" are usually based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description. Unless otherwise stated, these directional words do not indicate or imply that the devices or components referred to must have a specific direction or be constructed and operated in a specific direction, and therefore cannot be understood as limiting the scope of protection of the present invention; the directional words "inside and outside" refer to the inside and outside relative to the contours of each component itself.

[0026] In an era where intelligent transportation is constantly integrating information and digital development, how to effectively use ETC to facilitate transportation has always been an important research direction in the transportation field. ETC data can well reflect the travel status of vehicles on highways, making it easier for traffic management departments to respond to various traffic problems on highways in a timely manner and provide data support. Therefore, reasonable in-depth mining and analysis of ETC data is an important way to improve travel efficiency on highways and relieve travel pressure.

[0027] The present application discloses a K-means&BP neural network method for identifying high-speed passenger car travel characteristic groups. It utilizes a large amount of ETC data on the highway to construct a travel characteristic group classification and recognition model through data preprocessing, Python index extraction, Canopy-K-means clustering, ant colony algorithm and BP neural network learning processes, and evaluates the effect of the model on the recognition of travel characteristic groups, thereby achieving accurate recognition of travel characteristic groups on the highway.

[0028] like Figure 1 As shown in the figure, a K-means&BP neural network method for identifying characteristic groups of high-speed passenger cars is used to collect ETC vehicle data on the highway and perform data processing and modeling analysis to identify characteristic groups of passenger cars on the highway. Specifically, the following steps are included:

[0029] S1: Preprocess the collected ETC data; S2: Extract the travel characteristic indicators of passenger cars; S3: Classify the user characteristic groups through a hybrid clustering algorithm that combines the Canopy pre-clustering algorithm, the K-means clustering algorithm and the ant colony algorithm; S4: Set the number of neural network layers, the number of hidden layer neurons, the expected error, the learning rate, the momentum factor, and the node activation function parameters; S5: Use the travel characteristic indicator data of passenger cars as the model input to construct a BP neural network model, including a training model and a test model; S6: Calculate the precision, recall rate, and accuracy indicators of the model through the test model, and evaluate the recognition effect of the model; S7: Obtain a model for identifying travel characteristic groups and identify travel characteristic groups.

[0030] In the specific implementation, in step S1, due to the large amount and variety of collected ETC data, the original data may have certain incompleteness or duplication. Therefore, Python is used to pre-process the collected ETC data, including missing value processing, duplicate value processing, outlier processing and data association;

[0031] The missing value processing refers to deleting or filling the missing data, depending on whether the missing data is critical;

[0032] The duplicate value processing means that the same data may be recorded multiple times by ETC. After identifying duplicate or similar duplicate data, only one piece of data is retained and the rest is deleted;

[0033] The outlier processing refers to deleting data that is too high or too low relative to normal data;

[0034] The data association refers to associating and integrating data with common transaction ID field information and license plate information after missing value processing, duplicate value processing and outlier processing.

[0035] By preprocessing ETC data, data support is provided for subsequent work.

[0036] In the specific implementation, in step S2, the passenger car travel characteristic indicators include the number of monthly travel days of users during the study period, the average single travel distance, the travel preference during peak hours, and the travel preference on weekends and holidays; which facilitates the subsequent construction of a travel characteristic group identification model;

[0037] The monthly travel days refer to the average number of travel days of the same vehicle in a month during the study period, and the index extraction is realized through Python code;

[0038] The single average trip distance refers to the average distance of each trip of the same vehicle during the study period. The vehicle path is obtained by means of web crawlers, and the driving distance of each trip is obtained through Python code;

[0039] The peak travel preference refers to the frequency of vehicles choosing to travel during peak hours during the study period. The total number of trips and peak travel times of vehicles during the study period are counted by Python to calculate the peak travel preference coefficient;

[0040] The weekend and holiday travel preference refers to the frequency with which vehicles choose to travel on weekends and holidays during the study period. The total number of travel days and the number of days on which vehicles choose to travel on weekends and holidays during the study period are counted by Python to calculate the weekend and holiday travel preference coefficient.

[0041] When implementing it, Figure 2 As shown, in step S3, for the above-mentioned preprocessed ETC data, the user feature groups are classified by a hybrid clustering algorithm, the number of clusters k and the initial cluster center are determined by the Canopy pre-clustering algorithm, and then the K-means clustering algorithm is continuously iterated until the cluster center no longer changes to obtain the clustering result, and finally the result is optimized by the ant colony algorithm to improve the accuracy of the algorithm clustering.

[0042] During the specific implementation, in step S4, after completing the classification of the characteristic groups of travel users by the clustering model, it is necessary to set six parameters including the number of neural network layers, the number of hidden layer neurons, the expected error learning rate, the momentum factor, and the node activation function before building the recognition model. Different parameter settings will output different results, so it is necessary to set the model parameters multiple times to find the optimal parameter combination.

[0043] When implementing it, Figure 3 As shown, in step S5, the extracted passenger car travel characteristic index is used as the input of the model to build a BP neural network training model. When the error between the output result and the actual value is less than the expected error, the training is stopped, and the parameter combination with the fastest training time is the best parameter combination; otherwise, the above parameters are reset and training is continued until the best is achieved.

[0044] When implementing it, Figure 3 As shown, in step S6, the test sample is input into the test model for testing and compared with the actual feature group to obtain the precision value, sensitivity and accuracy of the travel feature group recognition model under the best parameter combination, so as to evaluate the recognition effect of the model.

[0045] Through the above steps, the travel characteristic group identification model with the best parameter combination and better identification effect is obtained to identify the travel characteristic group.

[0046] Finally, it should be noted that those skilled in the art may 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 and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A K-means & BP neural network method for identifying high-speed passenger car travel characteristic groups, characterized in that: Collect ETC vehicle data on highways, process data and conduct modeling analysis to identify the characteristic groups of passenger cars on highways. The specific steps include: S1: preprocessing the collected ETC data; S2: Extract the travel characteristic indicators of passenger cars; S3: Classify user feature groups through a hybrid clustering algorithm that combines the Canopy pre-clustering algorithm, the K-means clustering algorithm, and the ant colony algorithm; S4: Set the number of neural network layers, number of hidden layer neurons, expected error, learning rate, momentum factor, and node activation function parameters; S5: Using passenger car travel characteristic index data as model input, construct a BP neural network model, including a training model and a test model; S6: Calculate the precision, recall and accuracy of the model through the test model, and evaluate the recognition effect of the model; S7: Obtain a model for identifying travel characteristic groups, and identify the travel characteristic groups.

2. According to claim 1, a K-means & BP neural network high-speed passenger car travel characteristic group identification method is characterized in that: In step S1, Python is used to preprocess the collected ETC data, including missing value processing, duplicate value processing, outlier processing, and data association; The missing value processing refers to deleting or filling the missing data, depending on whether the missing data is critical; The duplicate value processing means that the same data may be recorded multiple times by ETC. After identifying duplicate or similar duplicate data, only one piece of data is retained and the rest is deleted; The outlier processing refers to deleting data that is too high or too low relative to normal data; The data association refers to associating and integrating data with common transaction ID field information and license plate information after missing value processing, duplicate value processing and outlier processing.

3. The method for identifying high-speed passenger car travel characteristic groups using a K-means & BP neural network according to claim 2 is characterized in that: In step S2, the passenger car travel characteristic indicators include the number of monthly travel days of users during the study period, the average single travel distance, the travel preference during peak hours, and the travel preference on weekends and holidays; The monthly travel days refer to the average number of travel days of the same vehicle in a month during the study period, and the index extraction is realized through Python code; The single average trip distance refers to the average distance of each trip of the same vehicle during the study period. The vehicle path is obtained by means of web crawlers, and the driving distance of each trip is obtained through Python code; The peak travel preference refers to the frequency of vehicles choosing to travel during peak hours during the study period. The total number of trips and peak travel times of vehicles during the study period are counted by Python to calculate the peak travel preference coefficient; The weekend and holiday travel preference refers to the frequency with which vehicles choose to travel on weekends and holidays during the study period. The total number of travel days and the number of days on which vehicles choose to travel on weekends and holidays during the study period are counted by Python to calculate the weekend and holiday travel preference coefficient.

4. The method for identifying high-speed passenger car travel characteristic groups using a K-means & BP neural network according to claim 1 is characterized in that: In step S3, the user feature groups are classified by a hybrid clustering algorithm, the number of clusters k and the initial cluster center are determined by the Canopy pre-clustering algorithm, and then the K-means clustering algorithm is continuously iterated until the cluster center no longer changes to obtain the clustering result. Finally, the result is optimized by the ant colony algorithm to improve the accuracy of the algorithm clustering.

5. The method for identifying high-speed passenger car travel characteristic groups using a K-means & BP neural network according to claim 1 is characterized in that: In step S5, the extracted passenger car travel characteristic index is used as the input of the model to build a BP neural network training model. When the error between the output result and the actual value is less than the expected error, the training is stopped. The parameter combination with the fastest training time is the best parameter combination; otherwise, the above parameters are reset and training is continued until the best is achieved.

6. The method for identifying high-speed passenger car travel characteristic groups using a K-means & BP neural network according to claim 1 is characterized in that: In step S6, the test sample is input into the test model for testing and compared with the actual feature group to obtain the precision, sensitivity and accuracy of the travel feature group recognition model under the best parameter combination, so as to evaluate the recognition effect of the model.

Citation Information

Patent Citations

  • Illegal operating vehicle identification method based on passing behaviors of small and medium passenger cars

    CN114202929A