Transportation mode detection method based on deep learning
Through deep learning technology and sensor data, pre-trained deep feature extraction and classification networks are used to solve the problems of high data acquisition cost and insufficient recognition accuracy of traditional transportation mode monitoring methods, achieving more efficient and real-time transportation mode detection.
Patent Information
- Application Number
- CN202410651643.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-08-30
AI Technical Summary
Traditional traffic mode monitoring methods have problems such as high data acquisition cost, poor real-time performance and insufficient recognition accuracy, especially poor adaptability to complex traffic scenarios.
A transportation mode detection method based on deep learning is used to collect data using sensors on smartphones or other mobile devices, and achieve accurate detection and classification of users' transportation modes through pre-trained deep feature extraction networks and classification networks.
It improves the recognition accuracy of traffic mode detection and the ability to adapt to complex traffic scenarios, reduces data acquisition costs, and improves real-time performance and classification efficiency.
Smart Images

Figure FT_1 
Figure FT_2 
Figure FT_3
Abstract
Description
Technical Field
[0001] The present invention is a method for detecting traffic modes based on deep learning. The method uses deep learning technology, combined with sensor data and machine learning algorithms, to accurately detect and classify user traffic modes. Background Art
[0002] Traditional traffic mode monitoring methods often rely on fixed equipment or manual surveys, which have problems such as high data acquisition costs, poor real-time performance, and insufficient data accuracy.
[0003] Existing traffic mode detection methods based on sensor data usually adopt simple rules or traditional machine learning algorithms, and often face problems such as low recognition accuracy and poor adaptability to complex traffic scenarios.
[0004] With the popularization of smart phones and the development of smart sensor technology, using mobile phone sensor data to detect traffic modes has become a new detection method. Summary of the invention
[0005] In view of this, the present application provides a traffic mode detection method.
[0006] Specifically, the technical solution of the present application is: a traffic mode detection method based on deep learning, comprising:
[0007] Step 1: Collect user movement data using sensors on smartphones or other mobile devices.
[0008] Step 2: Input the user's mobility data into the deep feature extraction network of the pre-trained traffic mode prediction model to obtain the deep features of the user's mobility data.
[0009] Step 3: Input the deep features of the user mobility data into the classification network of the pre-trained traffic mode prediction model to obtain the classification results of the user mobility data. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 It is a flowchart of a traffic mode detection method based on deep learning shown in an exemplary embodiment of the present application.
[0011] Figure 2 It is a flowchart of a training method for a traffic mode detection method based on deep learning shown as an exemplary embodiment of the present application.
[0012] Figure 3 It is a schematic diagram of a network model of a traffic mode detection method based on deep learning shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0013] The following examples illustrate the present invention, but the present invention is not limited to these examples. Modifications to the specific embodiments of the present invention or equivalent replacement of some technical features without departing from the spirit of the present invention should be included in the scope of the technical solution claimed by the present invention.
[0014] The terms used in one or more embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of the present application. The singular forms of "a", "said" and "the" used in one or more embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of the present application refers to and includes any possible combination of one or more associated listed items.
[0015] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of the present application, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of the present application, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0016] See also Figure 1 , Figure 1 A flow chart of a traffic mode detection method based on deep learning provided according to an embodiment of the present application is shown.
[0017] The user's mobility data is input into a feature conversion network of a pre-trained traffic mode detection method model to obtain deep features of the user's mobility data.
[0018] In the example of the present application, in order to simplify the operation of traffic mode classification and improve the efficiency of traffic mode classification, an end-to-end traffic mode classification can be achieved through a traffic mode classification network model that integrates feature extraction and classification.
[0019] The traffic mode classification network model may include a cascaded deep feature extraction network and a classification network combination; wherein: The deep feature extraction network takes the original user mobility data as input and outputs the deep features of the original user mobility data; The classification network takes the deep features of the original user mobility data as input and outputs the classification results of the original user mobility data.
[0020] Accordingly, in the example of the present application, when classifying traffic modes, the user mobility data to be classified can be input into a pre-trained traffic mode classification model, and the original data features can be extracted through the deep feature extraction network of the pre-trained traffic mode classification network model.
[0021] Input the deep features of the original user mobility data into the classification network of the pre-trained traffic mode classification network model to obtain the classification results of the original user mobility data
[0022] Among them, the classification results of the original user mobility data include pre-trained transportation modes such as (stationary, walking, running, bicycle, car, bus).
[0023] exist Figure 1 In the method flow shown, by constructing and training a traffic mode classification network model that integrates feature extraction and classification, the classification results of the original user mobility data are directly obtained through the traffic mode classification network, which simplifies the traffic mode classification operation and improves the efficiency of traffic mode classification.
[0024] See also Figure 2 In one embodiment of the present application, the cascaded deep feature extraction network and classification network are trained in the following manner.
[0025] For any training sample in the training set, it is input into the deep feature extraction network to obtain the deep features of the training sample.
[0026] In an embodiment of the present application, before performing traffic mode classification through the cascaded deep feature extraction network and classification network, it is necessary to train the deep feature extraction network and classification network using a training set including a certain number of training samples until the network converges, and then perform the traffic mode classification task.
[0027] The deep features of the training sample are input into the classification network to obtain the classification result of the training sample.
[0028] In this embodiment, after the deep features of the training sample are extracted, the deep features of the training sample can be input into a classification network to perform traffic mode classification to obtain a classification result of the training sample.
[0029] Furthermore, in this embodiment, in order to improve the classification accuracy of the cascaded deep feature extraction network and the classification network, after the above steps, the following steps may also be included: According to the accuracy of traffic mode classification, the network combination of the cascaded deep feature extraction network and the classification network is optimized in parameters until the classification accuracy of the traffic mode classification network model meets the preset conditions. In this embodiment, after the traffic mode classification network model is trained using the training samples in the training set until the network converges, the trained traffic mode classification network can be tested through the test set to determine whether the classification accuracy of the traffic mode classification network model meets the preset conditions. If so, the training of the traffic mode classification network model is terminated, and the trained traffic mode classification network model is used to perform the classification task; otherwise, the combination of the cascaded deep feature extraction network and the classification network is optimized and adjusted in parameters, and trained again until the classification accuracy of the traffic mode classification network model meets the preset conditions.
[0030] Among them, for any test sample in the test set, when the traffic mode classification result through the network combination of the cascaded deep feature extraction network and the classification network matches the annotation of the pre-annotated test sample, it is determined that the traffic mode classification of the test sample is correct; otherwise, it is determined that the traffic mode classification of the test sample is incorrect.
[0031] For example, the accuracy of the label of category 1 is r1 (that is, the ratio of the number of test samples labeled with category 1 and identified to the number of test samples labeled with category 1), the accuracy of the label of category 2 is r2, ..., and the accuracy of the label of category 10 is r10. Then the classification accuracy of the traffic mode classification network model is (r1+r2+...+r10) / 10.
[0032] Among them, in the process of training the traffic mode classification network model, the cross entropy loss function can be used to determine the loss of the traffic mode classification of the training set, and the traffic mode classification network model can be trained through the back propagation algorithm.
[0033] In this embodiment, when the classification accuracy of the trained traffic mode classification network model meets the requirements, the network combination of the above-mentioned deep feature extraction network and the classification network can be optimized in parameters.
[0034] Optimize model parameters of deep feature extraction networks and / or classification networks.
[0035] See also Figure 3 , a schematic diagram of a transportation mode classification network type is provided for an embodiment of the present application.
[0036] In an embodiment of the present application, the original user's mobile data is input into the deep feature extraction network of a pre-trained transportation mode classification network model to obtain the deep features of the original data, and then the deep features of the original user's mobile data are input into the classification network of the pre-trained transportation mode classification network model to obtain the classification results of the original user's mobile data, thereby realizing end-to-end transportation mode classification, simplifying the transportation mode classification operation, and improving the efficiency of transportation mode classification.
Claims
1. A traffic mode classification method based on deep learning, characterized in that: The method for classifying the modes of transportation includes the following steps: Step 1: Collect user movement data using sensors on smartphones or other mobile devices; Step 2: Input the user's mobility data into the deep feature extraction network of the pre-trained traffic mode prediction model to obtain the deep features of the user's mobility data. Step 3: Input the deep features of the user mobility data into the classification network of the pre-trained traffic mode prediction model to obtain the classification results of the user mobility data.
2. According to claim 1, a method for classifying traffic modes based on deep learning is characterized in that: The cascaded deep feature extraction network and the classification network are trained in the following manner: for any training sample in the training set, input it into the deep feature extraction network to obtain the deep features of the training sample; The deep features of the training sample are input into the classification network to obtain the classification result of the training sample.
3. According to claim 2, a pre-training method for a traffic mode classification method based on deep learning is characterized in that: After the deep features of the training sample are input into the classification network, the method further includes: According to the classification accuracy of the traffic mode classification network model, parameters of the network combination of the cascaded deep feature extraction network and the classification network are optimized until the classification accuracy of the traffic mode classification network model meets preset conditions.
4. According to claim 3, a pre-training parameter optimization method for a traffic mode classification method based on deep learning is characterized in that: The parameter optimization of the network combination of the cascaded deep feature extraction network and the classification network comprises: The model parameters of the deep feature extraction network and / or the classification network are optimized.
5. According to claim 3, a pre-training parameter optimization method for a traffic mode classification method based on deep learning is characterized in that: The classification accuracy of the traffic mode classification network model meets a preset condition, including: the classification accuracy of the traffic mode classification network model is greater than a preset accuracy threshold.
6. The method for classifying traffic modes based on deep learning according to claim 1, characterized in that: The step 2: inputting the original user's mobility data into the deep feature extraction network of the pre-trained traffic mode classification network model, comprising: The user mobility data is cut into fixed-size sequence blocks according to time, and these fixed-size sequence blocks are put into the LSTM and Residual network models to obtain the deep features of the original user mobility data.
7. The method for classifying traffic modes based on deep learning according to claim 1, characterized in that: Step three: inputting the deep features of the original user mobility data into the classification network of the pre-trained transportation mode classification network model, including: inputting the deep features of the original user mobility data into the corresponding fully connected layer in the classification network of the pre-trained transportation mode classification network model to obtain the classification result of the original user mobility data.
