Urban road travel time prediction method, system, equipment and medium

By obtaining online car-hailing GPS trajectory data and OD data, extracting weather and driver characteristics, and using the BP neural network model to build a travel time prediction model, it solves the problem of ignoring spatiotemporal characteristics and driver and environmental characteristics in the existing technology, and achieves More accurate predictions of urban road travel times improve traffic efficiency and safety.

CN118629210APending Publication Date: 2024-09-10CHUZHOU UNIV +1
View PDF 0 Cites 1 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing technology ignores the spatiotemporal characteristics of the urban transportation system and the impact of driver and environmental characteristics on travel time, resulting in inaccurate travel time prediction.

Method used

By obtaining online ride-hailing GPS trajectory data and OD data, weather characteristics and driver characteristics are extracted, a feature data set is constructed, and BP neural network model training is used to obtain travel time relationships and build a travel time prediction model.

Benefits of technology

It improves the efficiency and safety of urban road traffic, and achieves more accurate travel time predictions by comprehensively considering the spatiotemporal characteristics of the traffic system and driver and environmental characteristics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629210A
    Figure CN118629210A
Patent Text Reader

Abstract

The invention discloses an urban road travel time prediction method, system, device and medium, and relates to the technical field of traffic prediction, and the method comprises the steps: obtaining online car-hailing GPS track data and corresponding OD data, and obtaining the weather data of a city; quantified weather features are extracted, driver features are extracted according to driver historical GPS trajectory data, and a feature data set is constructed by using the weather features and the driver features; inputting the feature data set into a BP neural network model, training the BP neural network model, and obtaining a trained travel time prediction model; and inputting the features of the test sample into the trained travel time prediction model to output predicted travel time, and evaluating the accuracy and performance of the prediction model. The time-space characteristics of the traffic system are comprehensively considered, modeling of driver and environment characteristics is introduced to predict the travel time or the time for arriving at the destination, and the efficiency and safety of urban road traffic are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of traffic prediction, and in particular to a method, system, device and medium for predicting urban road travel time. Background Art

[0002] With the acceleration of population growth and urbanization, urban traffic congestion has become one of the major challenges facing cities around the world. Many countries are committed to developing intelligent transportation systems (ITS) to solve traffic management problems. In intelligent transportation systems, travel time prediction is crucial for traveler information systems (ATIS), which can describe and evaluate the traffic operation of urban roads, help travelers avoid congested sections, and improve travel efficiency.

[0003] However, accurately and reliably predicting urban road travel time is a complex task, as factors such as road network traffic conditions, travel start and end points, driving routes, weather, and driver's driving habits have a significant impact on travel time. With the development of traffic big data platforms, urban online ride-hailing vehicles equipped with GPS positioning devices have become a new source of traffic data. Compared with traditional fixed-point detector data, GPS trajectory data has the characteristics of large scale, high accuracy, and dense timestamp frequency, which brings new directions and opportunities to the research in the field of travel time prediction.

[0004] Current research mainly focuses on travel time prediction based on vehicle data collected by traffic detectors (such as speed, flow, time, etc.). However, these methods ignore the spatiotemporal characteristics of urban traffic systems and do not consider the impact of driver and environmental characteristics on travel time. Currently, due to the limitations of dynamic feature extraction, feature indicators have not been accurately quantified and their impact on travel time has not been fully revealed. Summary of the invention

[0005] The purpose of the present invention is to provide a method, system, device and medium for predicting urban road travel time in view of the deficiencies of the above-mentioned prior art, so as to solve the problem that the prior art ignores the spatiotemporal characteristics of the urban traffic system and does not take into account the influence of driver and environmental characteristics on travel time. At present, due to the limitation of dynamic feature extraction, the feature indicators cannot be accurately quantified and the influence mechanism on travel time cannot be fully revealed.

[0006] The present invention specifically provides the following technical solution: a method for predicting urban road travel time, comprising the following steps:

[0007] Obtain the GPS trajectory data and corresponding OD data of online ride-hailing vehicles, and obtain the weather data of the city; the OD data is various data of each order of online ride-hailing vehicles;

[0008] The weather characteristics corresponding to the travel rate in each time period are extracted based on the OD data and weather data, the driving behavior characteristics are extracted based on the driver's online car-hailing GPS trajectory data, and the driver characteristics are obtained by clustering the driving behavior characteristics, and the feature data set is constructed using the OD data, weather characteristics and driver characteristics;

[0009] Inputting the data in the feature data set into a BP neural network model for training, obtaining a travel time relationship between OD data, weather characteristics and driver characteristics, and constructing a travel time prediction model based on the travel time relationship;

[0010] The GPS trajectory data, OD data and weather data of the online car-hailing vehicle to be predicted are input into the travel time prediction model, and the predicted urban road travel time is output.

[0011] Preferably, the step of constructing a feature data set using OD data, weather characteristics and driver characteristics comprises the following steps:

[0012] Extract the features of the starting point coordinate o, the end point coordinate d, the departure time b, the travel distance l and the travel time t from the OD data;

[0013] The extracted weather features, driving behavior features, trip starting point coordinates o, trip end point coordinates d, departure time b, trip distance l and trip time t are combined to construct a feature dataset.

[0014] Preferably, the extracting driving behavior characteristics based on the driver's online car-hailing GPS trajectory data comprises the following steps:

[0015] Combine the sampling point time information and vehicle position sequence information in the GPS trajectory data to obtain the speed and acceleration of the vehicle during operation;

[0016] The speed and acceleration sequence of a single trip is obtained through the speed and acceleration, and the driving behavior characteristics reflecting the driver's driving style are extracted from the acceleration and speed sequence. The specific expression is:

[0017]

[0018]

[0019] Among them, v t is the vehicle speed at time t; l t,t-1 is the straight-line distance between the vehicle positions at time t and t-1; AT t,t-1 is the time interval between time t and time t-1; a t is the vehicle acceleration at time t; Av t,t+l is the speed difference between the vehicle at time t and t+1; ΔT t,t+1It is the time interval between time t and t+1; the GPS trajectory data of online car-hailing includes vehicle ID, order ID, timestamp and converted coordinate information.

[0020] Preferably, extracting the driving behavior characteristics reflecting the driver's driving style from the acceleration and speed sequence comprises the following steps:

[0021] The driving behavior characteristics are constructed into driving behavior feature vectors, and the K-Means unsupervised clustering algorithm is used to divide drivers into groups according to their driving styles.

[0022] According to the selected cluster center k value, the cluster centers of k groups are obtained as C = {C1, C2, ..., C i ,...,C k |C i ∈R n}, where Rn is the feature space of the sample;

[0023] For a specific order, the driver's feature vector is x j ∈R n , the distance from the feature vector to each cluster center The probability of belonging to each driver group The final extracted driver feature F D = {P 1j , P 2j , ..., P ij , ..., P kj}.

[0024] Preferably, extracting the weather characteristics corresponding to the travel rate in each time period according to the OD data and the weather data comprises the following steps:

[0025] The random forest model RF is used to learn the GPS trajectory data of online ride-hailing vehicles and the corresponding OD data to estimate the traffic operation status indicators for all hourly cycles, all days, and all weather conditions;

[0026] The influence factor of each type of weather condition on the travel time is obtained through the traffic operation status index as the quantitative weather feature F W .

[0027] Preferably, the influence factor of each type of weather condition on the travel time is obtained through the traffic operation status index as a quantitative weather feature F W , including the following steps:

[0028] The average ATT of all order travel rates in each hour is used as the first weather impact indicator per hour;

[0029] The second weather measurement impact index is obtained based on the standard deviation SDTT of the travel rate of all data in each hour; the specific expression is:

[0030]

[0031] Where s is the sample standard deviation, x i For each data point, is the sample mean, n is the sample size;

[0032] The quantified weather feature F W The specific expression is:

[0033] F W (TOD,DOW,s,W)={ATT,SDTT}

[0034] Among them, DOW is a certain day of the week, TOD is a certain time of the day, and W is the weather conditions during that period.

[0035] Preferably, inputting the data in the feature data set into a BP neural network model for training comprises the following steps:

[0036] The relevant functions and hyperparameters of BP neural network are determined by preliminary experiments;

[0037] The hyperparameters are optimized using a Bayesian hyperparameter optimization function to obtain the optimal hyperparameter combination HP and determine the network structure of the model; wherein the hyperparameters include the number of neurons N1 in the hidden layer 1, the number of neurons N2 in the hidden layer 2, the initial learning rate α0, the training batch size m, and the maximum number of iterations n in the neural network model;

[0038] The travel time relationship between OD data, weather characteristics and driver characteristics is obtained through the network structure.

[0039] The present invention also provides a system for predicting urban road travel time, comprising:

[0040] The data collection module is used to obtain the GPS trajectory data and corresponding OD data of online ride-hailing vehicles, and obtain the weather data of the city; the OD data is various data of each order of the online ride-hailing vehicle;

[0041] A data set construction module is used to extract weather characteristics corresponding to the travel rate in each time period based on OD data and weather data, extract driving behavior characteristics based on the driver's online car-hailing GPS trajectory data, obtain driver characteristics by clustering the driving behavior characteristics, and construct a feature data set using OD data, weather characteristics and driver characteristics;

[0042] A model building module, used for inputting the data in the feature data set into a BP neural network model for training, obtaining the travel time relationship between OD data, weather characteristics and driver characteristics, and building a travel time prediction model according to the travel time relationship;

[0043] The prediction module is used to input the GPS trajectory data, OD data and weather data of the online car-hailing vehicle to be predicted into the travel time prediction model, and output the predicted urban road travel time.

[0044] The present invention provides a computer device, comprising a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of a method for predicting urban road travel time.

[0045] The present invention provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of a method for predicting urban road travel time are implemented.

[0046] Compared with the prior art, the present invention has the following significant advantages:

[0047] The present invention obtains the GPS trajectory data and corresponding OD data of online ride-hailing vehicles, and extracts the travel rate and corresponding weather characteristics and driver characteristics in each time period, thereby constructing a feature data set, and inputs the feature data set into a BP neural network model to obtain the travel time relationship between the OD data, weather characteristics and driver characteristics for subsequent travel time prediction. That is, the present invention comprehensively considers the spatiotemporal characteristics of the transportation system, introduces the modeling of driver and environmental characteristics, so as to predict the travel time or the time to arrive at the destination, and improves the efficiency and safety of urban road traffic. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 Schematic diagram of a travel time prediction method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0049] The following is a clear and complete description of the technical solutions of the embodiments of the present invention in conjunction with the drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0050] The data input by the present invention is the online car-hailing data of Xi'an for 61 days from October 1 to November 30, 2016. The data stores information such as the vehicle's departure time, starting and ending points, driving distance, whether it is a weekday, and weather conditions.

[0051] The embodiment of the present application provides a method for predicting travel time on urban roads, the core of which is to extract features from each travel sample through feature construction, train a BP neural network model through training samples to obtain a prediction model, and predict the travel time of the prediction sample through the prediction model, including the following steps:

[0052] Step S1: Obtain the GPS trajectory data and corresponding OD data of the online car-hailing service, and obtain the weather data of the city; the OD data is various data of each order of the online car-hailing service, including the order date, order time, starting and ending point location coordinates, driving route distance and weather conditions.

[0053] Specifically:

[0054] GPS track data contains information such as vehicle ID, order ID, timestamp, converted coordinates, etc. When sampling data, the order data in the following situations are considered abnormal trips: 1) the displacement from the starting point to the destination is less than 500m; 2) the travel time is less than 1min or greater than 2h; 3) the average vehicle speed is less than 5km / h or more than 80km / h.

[0055] Combined with the GPS trajectory sampling point time information and vehicle position sequence information, the speed and acceleration of the vehicle during operation are calculated to obtain the speed and acceleration sequence of a single trip, as shown in the following formula:

[0056]

[0057]

[0058] Among them, v t is the vehicle speed at time t; l t,t-1 is the straight-line distance between the vehicle positions at time t and t-1; ΔT t,t-1 is the time interval between time t and time t-1; a t is the vehicle acceleration at time t; Δu t,t+1 is the speed difference between the vehicle at time t and t+1; AT t,t+1 It is the time interval between time t and t+1; the GPS trajectory data of online car-hailing includes vehicle ID, order ID, timestamp and converted coordinate information.

[0059] Step S2: Extract the weather characteristics corresponding to the travel rate in each time period based on the OD data and weather data, extract the driving behavior characteristics based on the driver's historical online car-hailing GPS trajectory data, and obtain the driver characteristics by clustering the driving behavior characteristics, and construct a feature data set using the OD data, weather characteristics and driver characteristics.

[0060] The steps include:

[0061] Step S21: Select "travel rate" (time per kilometer) As an indicator reflecting the change in the duration of a trip.

[0062] The travel rate and corresponding weather conditions in each time period are obtained based on the OD data and weather data. The average travel rate of all orders in that hour (Average Travel Time, ATT) is used as the weather impact index for each hour.

[0063] At the same time, the standard deviation of the travel rate of all data within that hour (Standard Deviation Travel Time, SDTT) is introduced as the second measurement indicator. The standard deviation calculation formula is as follows.

[0064]

[0065] Where, s: sample standard deviation; x i : Each data point; sample mean; n: sample size (number of data points).

[0066] The random forest model (RF) is used to learn historical data, estimate the traffic operation status indicators for all hourly cycles, all days and all weather conditions, and finally obtain the impact factor of each type of weather condition on the travel time, which is used as the quantitative weather feature F. W Taking DOW of a certain day of the week and TOD of a certain time of the day as input, and considering the weather conditions W during that period, we construct the weather feature F W , there is F W (TOD,DOW,s,W)={ATT,SDTT}.

[0067] Step S22: According to the GPS trajectory data of each driver's order, 10 driving behavior features are extracted from the acceleration and speed sequence, including maximum speed, 25th percentile speed, 75th percentile speed, speed mean, speed standard deviation, maximum acceleration, minimum acceleration, 25th percentile acceleration, 75th percentile acceleration, and acceleration standard deviation, and the driving behavior features are constructed as a driving behavior feature vector.

[0068] Based on the driving behavior feature vector, the K-Means unsupervised clustering algorithm is used to divide the drivers into groups according to their driving styles. Finally, the driver groups are divided into three categories according to the internal evaluation indicators. The cluster center of each driver group is C i ∈R n ,i=1,2,3, where R n is the feature space of the sample. For a driver of a specific order, the feature vector is xj ∈R n The distance from the feature vector to each cluster center The probability of belonging to each driver group The final extracted driver feature F D = {P 1j ,P 2j ,P 3j}.

[0069] Step S23: extract five features of the trip starting point coordinate o, the trip end point coordinate d, the departure time b, the trip distance l and the trip time t from the order OD data.

[0070] Step S24: The seven features extracted in steps S21 to S24 are combined to construct a feature data set.

[0071] Step S3: Input the data in the feature data set into the BP neural network model for training, obtain the travel time relationship between OD data, weather characteristics and driver characteristics, and build a travel time prediction model based on the travel time relationship.

[0072] In this step, the data in the feature data set is input into the BP neural network model for training, the travel time relationship between the OD data, weather characteristics and driver characteristics is obtained, and a travel time prediction model is constructed based on the travel time relationship, including the following steps:

[0073] Step S31: The structure of the BP neural network is determined by a preliminary experiment, and the structure is as follows: input layer, hidden layer 1, forgetting layer, hidden layer 2, output layer. The ReLU function is used as the activation function of hidden layer 1 and hidden layer 2, and the Adam algorithm is used as the optimizer of the model, and the root mean square error (RMSE) is used as the loss function of the model.

[0074] Step S32: For the feature data set constructed in step S2, 20% of the data is extracted by stratified sampling based on travel time as the data set for hyperparameter optimization. The remaining 80% of the data is divided into a training set and a test set in a ratio of 4:1 for subsequent model training and performance evaluation.

[0075] Step S33: Select the number of neurons in hidden layer 1 N1, the number of neurons in hidden layer 2 N2, the initial learning rate α0, the training batch size m, and the maximum number of iterations n as the hyperparameters of the neural network model, and use the Bayesian hyperparameter optimization function in the Hyperopt library in Python to optimize the hyperparameters of the BP neural network model. The maximum number of iterations is set to 50 times, based on the RMSE average of the last ten trainings on the validation set. As the evaluation index, the optimal hyperparameter configuration HP = {N1, N2, α0, m, n} is obtained.

[0076] Step S34: Use the constructed training module and the optimal hyperparameter combination HP to learn the input training set data and determine the network structure of the model. By continuously optimizing the neuron parameters in the neural network, the best fitting effect can be achieved; the travel time relationship between OD data, weather characteristics and driver characteristics is obtained through the network structure. After the training is completed, the model is saved for subsequent prediction.

[0077] Step S4: Input the GPS trajectory data, OD data and weather data of the online car-hailing vehicle to be predicted into the travel time prediction model, and output the predicted urban road travel time.

[0078] The features of the test samples are input into the trained travel time prediction model, and the predicted travel time is output. The accuracy and performance of the prediction model are evaluated based on the evaluation indicators of the output results.

[0079] Specifically:

[0080] The prediction accuracy and other results are obtained based on the output evaluation indicators. In order to verify the degree to which the weather and driver factors considered improve the accuracy of the model, a benchmark model and four control experiments were constructed: (1) The benchmark model only considers the spatiotemporal location factors of the order (origin and destination location coordinates, driving distance, order departure time and order date) to construct the data set. (2) Experiment 1: Based on the benchmark model feature data set, the quantitative weather features (F W (TOD, DOW, s, W) = {ATT, SDTT}). (3) Experiment 2: Based on the benchmark model feature data set, the original weather field is introduced as the weather feature (including weather conditions and temperature). (4) Experiment 3: Based on the benchmark model feature set, the driver feature (F D = {P 1j , P 2j , P 3j}). (5) Experiment 4: Based on the baseline model feature set, the driver features constructed in this study (F D = {P 1j , P 2j , P 3j}) and quantitative weather characteristics (F W (TOD, DOW, s, W) = {ATT, SDTT}). The performance of all models is measured by the following four indicators: root mean square error (RMSE), mean absolute error (MAE), coefficient of determination (R 2 ) and mean absolute percentage error (MAPE), the formula is as follows:

[0081]

[0082]

[0083] Where n is the number of test set samples; y i Represents the true value of the i-th sample; represents the test value of the i-th sample; It represents the average value of all samples in the test set.

[0084] The essence of obtaining the final travel time through neuron training is to adjust the weights and biases in the network through a large amount of data training, so that the network can learn the complex patterns and features in the data, so as to make accurate predictions when given new data. The neural network can be understood as a function fitting from input to output.

[0085] In the neural network training process, after determining the basic structure of the network, through forward propagation, loss calculation, back propagation, and iterative training, the neural network gradually captures and learns the relationship between feature data in the process of adjusting network parameters. The neurons in the hidden layer gradually learn the complex relationships and patterns between input features by adjusting weights and biases.

[0086] Based on the above methods and statements, the present invention provides a system for predicting urban road travel time, including: a data collection module, a data set construction module and a prediction module.

[0087] Among them, the data acquisition module is used to obtain the GPS trajectory data and corresponding OD data of the online car-hailing vehicle, and obtain the weather data of the city; the OD data includes the order date, order time, starting and ending point location coordinates, driving path distance and weather conditions; the data set construction module is used to extract the travel rate and corresponding weather characteristics in each time period based on the OD data and weather data, extract the driver characteristics based on the driver's historical GPS trajectory data, and construct a feature data set using the OD data, weather characteristics and driver characteristics; the prediction module is used to input the feature data set into the BP neural network model, obtain the travel time relationship between the OD data, weather characteristics and driver characteristics by training each neuron parameter, and output the predicted travel time based on the travel time relationship.

[0088] The present invention also provides a computer device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of a method for predicting urban road travel time.

[0089] In accordance with the disclosed embodiments, a computing device may communicate with one or more external devices (e.g., keyboards, pointing devices, Bluetooth communications, etc.), or with any device (e.g., routers, modems, etc.) that enables a computing device to communicate with one or more other computing devices.

[0090] The present invention also provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of a method for predicting urban road travel time are implemented.

[0091] According to the disclosed embodiments, the storage medium may be a non-volatile computer-readable storage medium, such as but not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, the storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0092] The above content is a further detailed description of the present invention in combination with a specific preferred embodiment. For technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as belonging to the protection scope of the present invention.

Claims

1. A method for predicting urban road travel time, characterized in that: The steps include: Obtain the GPS trajectory data and corresponding OD data of online ride-hailing vehicles, and obtain the weather data of the city; the OD data is various data of each order of online ride-hailing vehicles; The weather characteristics corresponding to the travel rate in each time period are extracted based on the OD data and weather data, the driving behavior characteristics are extracted based on the driver's online car-hailing GPS trajectory data, and the driver characteristics are obtained by clustering the driving behavior characteristics, and the feature data set is constructed using the OD data, weather characteristics and driver characteristics; Inputting the data in the feature data set into a BP neural network model for training, obtaining a travel time relationship between OD data, weather characteristics and driver characteristics, and constructing a travel time prediction model based on the travel time relationship; The GPS trajectory data, OD data and weather data of the online car-hailing vehicle to be predicted are input into the travel time prediction model, and the predicted urban road travel time is output.

2. A method for predicting urban road travel time according to claim 1, characterized in that: The method of constructing a feature data set using OD data, weather characteristics and driver characteristics includes the following steps: Extract the features of the starting point coordinate o, the end point coordinate d, the departure time b, the travel distance l and the travel time t from the OD data; The extracted weather features, driving behavior features, trip starting point coordinates o, trip end point coordinates d, departure time b, trip distance l and trip time t are combined to construct a feature dataset.

3. A method for predicting urban road travel time according to claim 1, characterized in that: The method of extracting driving behavior characteristics based on the driver's online car-hailing GPS trajectory data includes the following steps: Combine the sampling point time information and vehicle position sequence information in the GPS trajectory data to obtain the speed and acceleration of the vehicle during operation; The speed and acceleration sequence of a single trip is obtained through the speed and acceleration, and the driving behavior characteristics reflecting the driver's driving style are extracted from the acceleration and speed sequence. The specific expression is: Among them, v t is the vehicle speed at time t; l t,t-1 is the straight-line distance between the vehicle positions at time t and t-1; ΔT t,t-1 is the time interval between time t and time t-1; a t is the vehicle acceleration at time t; Δv t,t+1 is the speed difference between the vehicle at time t and t+1; ΔT t,t+1 It is the time interval between time t and t+1; the GPS trajectory data of online car-hailing includes vehicle ID, order ID, timestamp and converted coordinate information.

4. A method for predicting urban road travel time as claimed in claim 3, characterized in that: The step of extracting the driving behavior characteristics reflecting the driver's driving style from the acceleration and speed sequence comprises the following steps: The driving behavior characteristics are constructed as driving behavior feature vectors and K-Mean is used to s Unsupervised clustering algorithms divide drivers into groups based on their driving styles; According to the selected cluster center k value, the cluster centers of k groups are obtained as C = {C1, C2, ..., C i ,...,C k |C i ∈R n }, where Rn is the feature space of the sample; For a specific order, the driver's feature vector is x j ∈R n , the distance from the feature vector to each cluster center The probability of belonging to each driver group The final extracted driver feature F D = {P 1j , P 2j , ..., P ij , ..., P kj }.

5. The urban road travel time prediction method according to claim 1, characterized in that: The step of extracting the weather characteristics corresponding to the travel rate in each time period according to the OD data and the weather data comprises the following steps: The random forest model RF is used to learn the GPS trajectory data of online ride-hailing vehicles and the corresponding OD data to estimate the traffic operation status indicators for all hourly cycles, all days, and all weather conditions; The influence factor of each type of weather condition on the travel time is obtained through the traffic operation status index as the quantitative weather feature F W .

6. A method for predicting urban road travel time as claimed in claim 5, characterized in that: The influence factor of each type of weather condition on the travel time is obtained through the traffic operation status index as the quantitative weather feature F W , including the following steps: The average ATT of all order travel rates in each hour is used as the first weather impact indicator per hour; The second weather measurement impact index is obtained based on the standard deviation SDTT of the travel rate of all data in each hour; the specific expression is: Where s is the sample standard deviation, x i For each data point, is the sample mean, n is the sample size; The quantified weather feature F W The specific expression is: F W (TOD, DOW, s, W)={ATT, SDTT} Among them, DOW is a certain day of the week, TOD is a certain time of the day, and W is the weather conditions during that period.

7. A method for predicting urban road travel time as claimed in claim 1, characterized in that: Inputting the data in the feature data set into the BP neural network model for training includes the following steps: The relevant functions and hyperparameters of BP neural network are determined by preliminary experiments; The hyperparameters are optimized using a Bayesian hyperparameter optimization function to obtain the optimal hyperparameter combination HP and determine the network structure of the model; wherein the hyperparameters include the number of neurons N1 in the hidden layer 1, the number of neurons N2 in the hidden layer 2, the initial learning rate α0, the training batch size m, and the maximum number of iterations n in the neural network model; The travel time relationship between OD data, weather characteristics and driver characteristics is obtained through the network structure.

8. A system for predicting urban road travel time, characterized in that: include: The data collection module is used to obtain the GPS trajectory data and corresponding OD data of online ride-hailing vehicles, and obtain the weather data of the city; the OD data is various data of each order of the online ride-hailing vehicle; A data set construction module is used to extract weather characteristics corresponding to the travel rate in each time period based on OD data and weather data, extract driving behavior characteristics based on the driver's online car-hailing GPS trajectory data, obtain driver characteristics by clustering the driving behavior characteristics, and construct a feature data set using OD data, weather characteristics and driver characteristics; A model building module, used for inputting the data in the feature data set into a BP neural network model for training, obtaining the travel time relationship between OD data, weather characteristics and driver characteristics, and building a travel time prediction model according to the travel time relationship; The prediction module is used to input the GPS trajectory data, OD data and weather data of the online car-hailing vehicle to be predicted into the travel time prediction model, and output the predicted urban road travel time.

9. A computer device, characterized in that: It comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of a method for predicting urban road travel time as claimed in any one of claims 1 to 7.

10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of a method for predicting urban road travel time according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Time length prediction method of target time period, equipment and medium

    CN119378756A