Travel time prediction method and device

The convolutional neural network processes historical traffic data to generate weighted travel time predictions, which solves the accuracy problem of navigation route travel time predictions and improves the accuracy and reliability of predictions.

CN111860920BActive Publication Date: 2024-10-01ALIBABA GROUP HOLDING LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910356006.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-04-29
Publication Date
2024-10-01
Estimated Expiration
2039-04-29

Smart Images

  • Figure CN111860920B_ABST
    Figure CN111860920B_ABST
Patent Text Reader

Abstract

The present invention discloses a travel time prediction method and device. The method comprises: obtaining N batches of historical traffic data groups of a target road section, each batch of historical traffic data groups includes historical traffic data of a preset time period, and the historical traffic data at least includes: average historical travel time; using the N batches of historical traffic data groups as inputs of a convolutional neural network, obtaining at least one probability value group through the convolutional neural network, and the number of probability values ​​in the probability value group is N; for a probability value group, multiplying each probability value in the probability value group with its corresponding N average historical travel times in the historical traffic data and determining the sum of the products as the predicted travel time. The technical solution provided by the present invention can accurately predict the travel time of a road section, thereby ensuring the accuracy of the navigation route ETA.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data mining, and in particular to a travel time prediction method and device. Background Art

[0002] Navigation is the core function of map navigation applications. Generally, map navigation applications will provide multiple navigation routes from the same starting point to the same end point for users to choose from, and the estimated time of arrival (ETA) is one of the parameters that users will focus on when selecting a navigation route. The key to accurately predicting the ETA of a navigation route is to accurately predict the travel time of the navigation route. However, since the ETA for users to choose a navigation route must be determined before the user travels, and the traffic conditions of the roads that affect the accuracy of the travel time prediction are changing in real time, how to accurately predict the travel time of a navigation route before the user travels has become a problem that technical personnel in this field always need to solve and optimize. Summary of the invention

[0003] The purpose of the present invention is to provide a technical solution capable of accurately predicting travel time.

[0004] In order to achieve the above object, an embodiment of the present invention provides a travel time prediction method, comprising the following steps:

[0005] Obtaining N batches of historical traffic data groups of the target road section, each batch of historical traffic data groups includes recorded historical traffic data of a preset time period, and the historical traffic data at least includes: an average historical travel time;

[0006] Using N batches of historical traffic data groups as inputs of a convolutional neural network, and obtaining at least one probability value group through the convolutional neural network, wherein the number of probability values ​​in the probability value group is N;

[0007] For a probability value group, each probability value in the probability value group is multiplied by its corresponding N average historical travel times in the historical traffic data, and the sum of the products is determined as the predicted travel time.

[0008] The embodiment of the present invention further provides a travel time prediction device, comprising the following modules:

[0009] The sample determination module is used to obtain N batches of historical traffic data groups of the target road section, each batch of historical traffic data groups includes the recorded historical traffic data of a preset time period, and the historical traffic data at least includes: average historical travel time;

[0010] A sample learning module, used to use N batches of historical traffic data groups as input of a convolutional neural network, and obtain at least one probability value group through the convolutional neural network, wherein the number of probability values ​​in the probability value group is N;

[0011] The prediction module is used for multiplying each probability value in a probability value group with its corresponding N average historical travel times in historical traffic data and determining the sum of the products as the predicted travel time.

[0012] An embodiment of the present invention further provides an electronic device, the device comprising:

[0013] Storage device;

[0014] one or more processors;

[0015] The storage device is used to store one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the travel time prediction method as described above.

[0016] The embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed, the travel time prediction method as described above is executed.

[0017] Compared with the prior art, the technical solution of the present invention can use historical traffic data recorded in the past to predict travel time. During the prediction process, a convolutional neural network is used to obtain a probability value group, and the probability values ​​in the probability value group are used as weights to obtain the prediction results, thereby reducing the impact of abnormal data on the prediction results, thereby making the predicted travel time more accurate. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0019] Figure 1 A flow chart of a travel time prediction method provided in an embodiment of the present invention.

[0020] Figure 2 are the three input channels used in the convolutional neural network (CNN) model.

[0021] Figure 3 A schematic diagram comparing the effects of the method provided in an embodiment of the present invention and the existing historical average method. DETAILED DESCRIPTION

[0022] In order to facilitate those skilled in the art to understand and implement the present invention, the technical solution of the present invention is clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0023] Embodiment 1

[0024] See also Figure 1 , Embodiment 1 of the present invention provides a method for predicting travel time, comprising the following steps:

[0025] Step S10, obtaining N batches of historical traffic data groups of the target road section, each batch of historical traffic data groups includes recorded historical traffic data of a preset time period, and the historical traffic data at least includes: average historical travel time.

[0026] In an embodiment of the present invention, N is a positive integer, and the preset time period can be a preset M days in one embodiment, and the value range of M can be an integer less than or equal to 7 and greater than or equal to 1. Those skilled in the art can set the specific values ​​of N and M according to actual needs. For example, 12 batches of historical traffic data groups of the target section are obtained, each group includes 7 days of recorded historical traffic data (that is, N is 12 and M is 7). The example here is only to more clearly illustrate the technical solution provided by the present invention and should not be regarded as any limitation of the present invention. It should be noted that in daily life, each day is named from Monday to Sunday. Therefore, when N=12 and M is 7, the above example can also be described as obtaining a 12-week historical traffic data group of the target section. In order to make the prediction result more accurate, in the specific implementation, the historical traffic data group of the target section in the last 12 weeks can be obtained. To give another example, 10 batches of historical traffic data groups of the target road section are obtained, and each batch of historical traffic data groups includes 5 days of recorded historical traffic data. These 5 days can be Monday to Friday, or any 5 days selected, as long as the selection criteria for each batch are consistent.

[0027] In another preferred embodiment of the present invention, the historical traffic data may further include the standard deviation of historical vehicle flow and / or average historical travel time.

[0028] Furthermore, based on different prediction requirements, for example, predicting the travel time of the target section on a daily basis, or predicting the travel time of the target section at different times of the day, it is necessary to consider the prediction requirements when recording the historical traffic data. When it is necessary to predict the travel time of the target section at different times of the day, such as predicting every X minutes (such as 60 minutes, 30 minutes, 10 minutes, etc.), when recording the historical traffic data of the target section every day, it is also necessary to record the historical traffic data and the corresponding recording time every X minutes. That is, each batch of historical traffic data is the historical traffic data and the corresponding recording time recorded at preset time intervals for each day for the preset M days. Among them, the preset time interval can be set arbitrarily according to actual needs.

[0029] Step S20, using N batches of historical traffic data groups as input to a convolutional neural network, and obtaining at least one probability value group through the convolutional neural network, wherein the number of probability values ​​in the probability value group is N.

[0030] The embodiment of the present invention adopts a convolutional neural network (CNN). CNN is a classic pattern recognition algorithm. The difference from the traditional artificial neural network is that CNN uses convolution to replace the matrix multiplication in the traditional neural network, supplemented by the principle of local field of view in human vision, making CNN the first learning algorithm that truly successfully trains a multi-layer network structure, generally used for image recognition. The present invention draws on the application of CNN in image recognition, and regards the N batches of historical traffic data of the target road section obtained as image data for processing, and regards the historical average travel time, historical traffic volume and variance of the historical average travel time included in the historical traffic data as data of three channels of a pixel point of the image. Specifically, the historical traffic data is used as the input of the convolutional neural network, and feature extraction is performed through the convolution layer, nonlinear activation layer and pooling operation of the convolutional neural network, and at least one probability value group is output through the fully connected layer.

[0031] Continuing the previous example, N is 12, M is 7, and historical traffic data is recorded every 30 minutes every day. Then, N batches of historical traffic data are input into the convolutional neural network as follows:

[0032] The historical traffic data of 8 am on Mondays for 12 years are input into the convolutional neural network to obtain 12 weights at 8 am on Mondays; the historical traffic data of 8:30 am on Mondays for 12 years are input into the convolutional neural network to obtain 12 weights at 8:30 am on Mondays, and so on, until the last historical traffic data recorded on Sunday is processed. That is, the present invention uses the N average historical travel times, the standard deviations of the N average historical travel times, and the N historical vehicle flows corresponding to the same recording time on the same day in the N batches of historical traffic data groups as a set of inputs to the convolutional neural network to obtain a set of corresponding probability value groups.

[0033] Step S30: for a probability value group, multiply each probability value in the probability value group by its corresponding N average historical travel times in the historical traffic data and determine the sum of the products as the predicted travel time.

[0034] Continuing with the previous example, the 12 probability values ​​for Monday at 8 a.m. and the 12 average historical travel times for Monday at 8 a.m. are multiplied and summed to obtain the predicted travel time for Monday at 8 a.m.

[0035] In essence, both the historical average method and the exponential smoothing method are special cases of weighted average. Therefore, the coupled model has a more complete expressive ability and can fully cover these traditional forecasting methods, thereby increasing the impact from 10% to 100%.

[0036] Figure 3 The results of the comparison between the method of the present invention and the method of historical averages are shown. Figure 3 (a) It can be seen that the average travel time has an outlier in the fifth week. The prediction model of the present invention gives the fifth week a weight of approximately 0, which accurately filters out the outlier. Figure 3 (b) It can be seen that when the average travel time in the 12-week feature interval is relatively average, the prediction model of the present invention tends to assign higher weights to the most recent weeks, which is consistent with our intuitive experience; Figure 3 (c) It can be seen that since the average travel time in the characteristic interval in the first few weeks was short, there was continuous congestion in the last few weeks. The historical average SP was obviously small, and the weights assigned by the prediction model of the present invention to the first few weeks were close to 0, and the calculated SP was more in line with expectations; Figure 3 (d) with Figure 3 (c) is similar, except that the historical average SP is larger.

[0037] In addition, vehicle travel time is only one application scenario of the present invention, and the present invention can also analyze the passenger flow of a business district. Therefore, qualitatively speaking, the present invention can be used to process any statistical data with strong or weak correlation between data from a time series perspective. If the correlation between data from a time series perspective is weak, the present invention is the preferred solution.

[0038] Embodiment 2

[0039] Embodiment 2 of the present invention provides a travel time prediction device, characterized in that it includes the following modules:

[0040] The sample determination module is used to obtain N batches of historical traffic data groups of the target road section, each batch of historical traffic data groups includes the recorded historical traffic data of a preset time period, and the historical traffic data at least includes: average historical travel time;

[0041] A sample learning module, used to use N batches of historical traffic data groups as input of a convolutional neural network, and obtain at least one probability value group through the convolutional neural network, wherein the number of probability values ​​in the probability value group is N;

[0042] The prediction module is used for multiplying each probability value in a probability value group with its corresponding N average historical travel times in historical traffic data and determining the sum of the products as the predicted travel time.

[0043] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices, modules and units can refer to the corresponding processes of the aforementioned method embodiments and will not be repeated here.

[0044] An embodiment of the present invention further discloses an electronic device, which includes a storage device and one or more processors, wherein the storage device is used to store one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in Embodiment 1.

[0045] The embodiment of the present invention further discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed, the method of the first embodiment is implemented.

[0046] The above-mentioned technical solution disclosed in the present invention draws on the idea of ​​attention mechanism and adopts a method combining pattern recognition and weighted averaging. By predicting the weighted probability of 12 historical mean points in the input information, the future value is directly predicted, so that the prediction model of the present invention has strong expressive ability and interpretability, and can overcome the problems of insufficient influence surface and inability to automatically identify abnormal points when using only pattern recognition models.

[0047] The flowcharts and block diagrams in the accompanying drawings show the possible implementation architectures, functions and operations of the methods, devices and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart and block diagram can represent a module, a program segment or a portion of a code, containing one or more computer executable instructions for implementing logical functions. It should also be noted that in some alternative implementations, the functions marked in the boxes can also occur in an order different from that marked in the accompanying drawings. It should also be noted that each box or combination of boxes in the block diagram and flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

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

[0049] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. The above embodiments are merely examples for illustration and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications may be made based on the above description, and these changes or modifications will be obvious and fall within the scope of protection of the present invention.

Claims

1. A travel time prediction method, It is characterized in that The steps include: Obtaining N batches of historical traffic data groups of the target road section, each batch of historical traffic data groups includes recorded historical traffic data of a preset time period, and the historical traffic data at least includes: an average historical travel time; Using N batches of historical traffic data groups as inputs of a convolutional neural network, and obtaining at least one probability value group through the convolutional neural network, wherein the number of probability values ​​in the probability value group is N; For a probability value group, each probability value in the probability value group is multiplied by its corresponding N average historical travel times in the historical traffic data, and the sum of the products is determined as the predicted travel time.

2. The method according to claim 1, It is characterized in that The method of using N batches of historical traffic data groups as input of a convolutional neural network and obtaining at least one probability value group through the convolutional neural network specifically includes: N batches of historical traffic data groups are used as the input of the convolutional neural network, feature extraction is performed through the convolutional layer, nonlinear activation layer and pooling operation of the convolutional neural network, and at least one probability value group is output through the fully connected layer of the convolutional neural network.

3. The method according to claim 1, It is characterized in that The historical traffic data also includes the standard deviation of the average historical travel time and / or the historical traffic volume.

4. The method according to claim 3, It is characterized in that The N average historical travel times corresponding to the same recording time on the same day, the standard deviations of the N average historical travel times, and the N historical traffic flows in the N batches of historical traffic data groups are used as a group of inputs of the convolutional neural network to obtain a group of corresponding probability value groups, and each probability value in the probability value group is multiplied by the N average historical travel times, and the sum of the products is determined as the predicted travel time of the target section at the same recording time on the same day.

5. The method according to any one of claims 1 to 4, It is characterized in that The preset time period is a preset M days, where M is a variable parameter, and its value range is an integer less than or equal to 7 and greater than or equal to 1; Each batch of historical traffic data groups includes the recorded historical traffic data of a preset time period, specifically: each batch of historical traffic data groups includes the recorded historical traffic data of M days.

6. The method according to claim 5, It is characterized in that The method comprises: Record the historical traffic data of the target road section and the corresponding recording time at preset time intervals every day; Each batch of historical traffic data groups includes the recorded historical traffic data for a preset time period for road conditions, specifically including: Each batch of historical traffic data is based on the preset M days, and the historical traffic data and corresponding recording time are recorded at preset time intervals every day.

7. A travel time prediction device, It is characterized in that Includes the following modules: The sample determination module is used to obtain N batches of historical traffic data groups of the target road section, each batch of historical traffic data groups includes the recorded historical traffic data of a preset time period, and the historical traffic data at least includes: average historical travel time; A sample learning module, used to use N batches of historical traffic data groups as input of a convolutional neural network, and obtain at least one probability value group through the convolutional neural network, wherein the number of probability values ​​in the probability value group is N; The prediction module is used for multiplying each probability value in a probability value group with its corresponding N average historical travel times in historical traffic data and determining the sum of the products as the predicted travel time.

8. The device according to claim 7, It is characterized in that The sample learning module is specifically used for: N batches of historical traffic data groups are used as the input of the convolutional neural network, feature extraction is performed through the convolutional layer, nonlinear activation layer and pooling operation of the convolutional neural network, and at least one probability value group is output through the fully connected layer of the convolutional neural network.

9. The device according to claim 7, It is characterized in that The historical traffic data also includes the standard deviation of the average historical travel time and / or the historical traffic volume; The sample learning module is specifically used to: use the N average historical travel times corresponding to the same recording time on the same day in the N batches of historical traffic data groups, the standard deviations of the N average historical travel times, and the N historical traffic flows as a group of inputs to the convolutional neural network, to obtain a group of corresponding probability value groups, multiply each probability value in the probability value group by the N average historical travel times and determine the sum of the products as the predicted travel time of the target section at the same recording time on the same day.

10. The device according to any one of claims 7 to 9, It is characterized in that The preset time period is a preset M days, where M is a variable parameter, and its value range is an integer less than or equal to 7 and greater than or equal to 1; Each batch of historical traffic data groups includes the recorded historical traffic data of a preset time period, specifically: each batch of historical traffic data groups includes the recorded historical traffic data of M days.

11. The device according to claim 10, It is characterized in that Also includes: A recording module, used to record the historical traffic data of the target road section and the corresponding recording time at preset time intervals every day; Each batch of historical traffic data groups includes the recorded historical traffic data for a preset time period for road conditions, specifically including: Each batch of historical traffic data is based on the preset M days, and the historical traffic data and corresponding recording time are recorded at preset time intervals every day.

12. An electronic device, It is characterized in that The device comprises: Storage device; one or more processors; The storage device is used to store one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the travel time prediction method as described in any one of claims 1-6.

13. A computer-readable storage medium having a computer program stored thereon, which, when executed, executes the travel time prediction method according to any one of claims 1 to 6.