Movatterモバイル変換


[0]ホーム

URL:


CN111047107A - Highway transit time prediction method, device, electronic device and storage medium - Google Patents

Highway transit time prediction method, device, electronic device and storage medium
Download PDF

Info

Publication number
CN111047107A
CN111047107ACN201911344130.6ACN201911344130ACN111047107ACN 111047107 ACN111047107 ACN 111047107ACN 201911344130 ACN201911344130 ACN 201911344130ACN 111047107 ACN111047107 ACN 111047107A
Authority
CN
China
Prior art keywords
highway
node
preset
connection relationship
data corresponding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911344130.6A
Other languages
Chinese (zh)
Other versions
CN111047107B (en
Inventor
陈超星
黄正杰
冯仕堃
路华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co LtdfiledCriticalBeijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201911344130.6ApriorityCriticalpatent/CN111047107B/en
Publication of CN111047107ApublicationCriticalpatent/CN111047107A/en
Application grantedgrantedCritical
Publication of CN111047107BpublicationCriticalpatent/CN111047107B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本申请公开了一种公路通行时间预测方法、装置、电子设备和存储介质,涉及智能交通技术领域,其中,方法包括:获取目标公路节点,并根据预设地图数据获取与目标公路节点对应的计算子图;通过预设映射机制从预设数据库中获取计算子图中各个公路节点对应的公路特征数据,以及各个公路节点连接关系对应的连接关系特征数据;将各个公路节点对应的公路特征数据和各个公路节点连接关系对应的连接关系特征数据输入到预设预测模型中进行计算,生成目标公路节点对应的预测通行时间。由此,通过预设映射机制读取数据,提高数据获取效率,在进行预测时考虑到各个公路之间连接关系特征数据,提高公路通行时间预测的准确性,从而提高预估到达时间的准确性。

Figure 201911344130

The present application discloses a highway transit time prediction method, device, electronic device and storage medium, and relates to the technical field of intelligent transportation, wherein the method includes: acquiring a target highway node, and acquiring a calculation corresponding to the target highway node according to preset map data subgraph; obtain the highway feature data corresponding to each highway node in the calculation subgraph from the preset database through the preset mapping mechanism, and the connection relationship feature data corresponding to the connection relationship of each highway node; the highway feature data corresponding to each highway node and The connection relationship characteristic data corresponding to the connection relationship of each highway node is input into the preset prediction model for calculation, and the predicted transit time corresponding to the target highway node is generated. As a result, the data is read through the preset mapping mechanism to improve the efficiency of data acquisition, and the characteristic data of the connection relationship between each road is taken into account when making predictions, so as to improve the accuracy of the road travel time prediction, thereby improving the accuracy of the estimated arrival time. .

Figure 201911344130

Description

Road traffic time prediction method, device, electronic equipment and storage medium
Technical Field
The present application relates to the field of intelligent transportation technologies in data processing technologies, and in particular, to a method and an apparatus for predicting road transit time, an electronic device, and a storage medium.
Background
At present, with the continuous development of geographic position related sensors such as a global positioning system and the like, most public transport is provided with an automatic vehicle positioning system, and with the continuous popularization of map navigation, the estimated arrival time is an important component of a map technology.
However, the estimated arrival time is due to a lot of uncertainty of environment and traffic, and each road transit time plays a very important role in predicting the estimated arrival time, so how to accurately predict the road transit time is a technical problem to be solved.
Disclosure of Invention
A first object of the present application is to propose a road transit time prediction method.
A second object of the present application is to provide a road transit time prediction apparatus.
A third object of the present application is to provide an electronic device.
A fourth object of the present application is to propose a non-transitory computer readable storage medium storing computer instructions.
In order to achieve the above object, a method for predicting road transit time is provided in an embodiment of the first aspect of the present application, including the following steps:
acquiring a target road node, and acquiring a computation subgraph corresponding to the target road node according to preset map data;
obtaining road characteristic data corresponding to each road node in the computation subgraph and connection relation characteristic data corresponding to each road node connection relation from a preset database through a preset mapping mechanism;
and inputting the road characteristic data corresponding to each road node and the connection relation characteristic data corresponding to each road node connection relation into a preset prediction model for calculation to generate predicted passing time corresponding to the target road node.
To achieve the above object, a second aspect of the present application provides a road transit time prediction apparatus, including:
the first acquisition module is used for acquiring a target road node and acquiring a computation subgraph corresponding to the target road node according to preset map data;
the second acquisition module is used for acquiring road characteristic data corresponding to each road node in the computational sub-graph and connection relation characteristic data corresponding to each road node connection relation from a preset database through a preset mapping mechanism;
and the calculation module is used for inputting the road characteristic data corresponding to each road node and the connection relation characteristic data corresponding to each road node connection relation into a preset prediction model for calculation to generate the predicted passing time corresponding to the target road node.
To achieve the above object, a third aspect of the present application provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the road transit time prediction method described in the above embodiments.
To achieve the above object, a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the road transit time prediction method described in the above embodiment is provided in a fourth aspect of the present application.
One embodiment in the above application has the following advantages or benefits:
acquiring a target road node, and acquiring a computation subgraph corresponding to the target road node according to preset map data; obtaining road characteristic data corresponding to each road node in the computational subgraph and connection relation characteristic data corresponding to each road node connection relation from a preset database through a preset mapping mechanism; and inputting the road characteristic data corresponding to each road node and the connection relation characteristic data corresponding to each road node connection relation into a preset prediction model for calculation to generate predicted passing time corresponding to the target road node. Therefore, data are read through a preset mapping mechanism, the data acquisition efficiency is improved, connection relation characteristic data among all roads are considered during prediction, the accuracy of road passing time prediction is further improved, and the accuracy of estimated arrival time is improved.
Other effects of the above-described alternative will be described below with reference to specific embodiments.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
fig. 1 is a flow chart of a road transit time prediction method according to a first embodiment of the present application;
FIG. 2 is an exemplary diagram of a computational subgraph according to a first embodiment of the application;
FIG. 3 is a flow chart of a road transit time prediction method according to a second embodiment of the present application;
FIG. 4 is an exemplary diagram of a storage according to a second embodiment of the present application;
fig. 5 is a schematic structural diagram of a road transit time prediction apparatus according to a third embodiment of the present application;
fig. 6 is a schematic structural diagram of a road transit time prediction apparatus according to a fourth embodiment of the present application;
fig. 7 is a schematic structural diagram of a road transit time prediction apparatus according to a fifth embodiment of the present application;
fig. 8 is a schematic structural view of a road transit time prediction apparatus according to a sixth embodiment of the present application;
fig. 9 is a block diagram of an electronic device for implementing a road transit time prediction method according to an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
A road transit time prediction method, apparatus, electronic device, and storage medium according to an embodiment of the present application are described below with reference to the accompanying drawings.
According to the scheme, the data are read through the preset mapping mechanism, the data acquisition efficiency is improved, the road characteristic data and the connection relation characteristic data among the roads are considered during prediction, the accuracy of road passing time prediction is further improved, and therefore the accuracy of estimated arrival time is improved.
Specifically, fig. 1 is a flowchart of a road transit time prediction method according to a first embodiment of the present application.
As shown in fig. 1, the method includes:
step 101, obtaining a target road node, and obtaining a computation subgraph corresponding to the target road node according to preset map data.
Specifically, when the road passing time is predicted, the road passing time of one road or a plurality of roads in the navigation route can be simultaneously predicted, so that the road needing the passing time prediction is used as a target road node, and a computation subgraph corresponding to the target road node can be obtained according to preset map data.
The preset map data is pre-established, as a possible implementation manner, a plurality of roads and connection relations among the roads are obtained, and the preset map data is established according to the plurality of roads and the connection relations among the roads, that is, each road can be used as a node, and intersections among the roads are used as edges, so that the preset map data is established.
Therefore, the target road node can be found from the preset map data, and all road nodes adjacent to the target road node and the connecting edge are used as a computation subgraph, for example, as shown in fig. 2, the target road node is a, and the computation subgraph is a dotted line surrounding each road node and the connecting edge connected with the target road node a.
And 102, acquiring road characteristic data corresponding to each road node in the computational sub-graph and connection relation characteristic data corresponding to each road node connection relation from a preset database through a preset mapping mechanism.
It can be understood that the preset database is preset, and as a possible implementation manner, the historical feature data of a plurality of roads corresponding to a plurality of roads and the historical feature data of a plurality of connection relationships corresponding to connection relationships between the roads are obtained, and the historical feature data of a plurality of roads corresponding to a plurality of roads and the historical feature data of a plurality of connection relationships corresponding to connection relationships between the roads are stored in the preset database according to a preset mapping mechanism.
Therefore, road characteristic data corresponding to each road node in the computational sub-graph, such as a traffic jam index, a transit time and a traffic accident probability at the moment corresponding to the road node, and connection relation characteristic data corresponding to each road node connection relation, such as a red-green light condition of the crossroad, a traffic jam index and the like, can be acquired from a preset database through a preset mapping mechanism.
The preset mapping mechanism refers to a storage obtaining and storage mode, and the file pointer is stored in the memory, so that the system obtains the external memory data in a memory operation mode, and the data reading efficiency is improved.
And 103, inputting the road characteristic data corresponding to each road node and the connection relation characteristic data corresponding to each road node connection relation into a preset prediction model for calculation to generate predicted passing time corresponding to the target road node.
Specifically, the preset prediction model is generated in advance, as a possible implementation manner, training road nodes are determined, training sub-graphs corresponding to the training road nodes are obtained according to preset map data, road characteristic sample data corresponding to each road node in the training sub-graphs and connection relation characteristic sample data corresponding to connection relations of each road node are obtained from a preset database through a preset mapping mechanism, the road characteristic sample data corresponding to each road node and the connection relation characteristic sample data corresponding to each road node are aggregated through a preset aggregation function to generate training road characteristic sample data, a plurality of training road characteristic sample data are input into a neural network model to obtain a plurality of training results, and loss function calculation and back propagation gradient processing are respectively carried out on the plurality of training results and a plurality of current passing times corresponding to the plurality of training road nodes, until a predictive model is generated.
Therefore, the road characteristic data corresponding to each road node and the connection relation characteristic data corresponding to each road node connection relation are input into a preset prediction model for calculation to generate the predicted passing time corresponding to the target road node, as a possible implementation manner, the road characteristic data corresponding to each road node and the connection relation characteristic data corresponding to each road node connection relation are aggregated through a preset aggregation function to generate the target road characteristic data, and the target road characteristic data are input into the preset prediction model for calculation to generate the predicted passing time corresponding to the target road node.
That is, a target road node is taken as a starting point, a computation subgraph is generated according to a connection relation, road characteristic data corresponding to each node in the computation subgraph is obtained through a mmap mechanism and is mounted in the subgraph, each node characteristic in a sampling subgraph is aggregated through an aggregation function through the connection relation to generate target road characteristic data, and then the target road characteristic data is utilized to carry out full-connection computation to generate a prediction result of the target road node, namely the transit time.
For example, assuming that the road nodes are B, C neighbors distributed as a, predicting the transit time of a target road node a, sampling the connection relationship of a to generate a computation sub-graph formed by A, B, C, obtaining road characteristic data of the computation sub-graph A, B, C through a mmap mechanism for mounting, constructing the target road characteristic data according to the computation sub-graph, inputting the target road characteristic data into a preset prediction model, and directly generating the prediction result of a, namely the transit time, through full-connection computation.
In summary, according to the road transit time prediction method provided by the embodiment of the application, a target road node is obtained, and a computation sub-graph corresponding to the target road node is obtained according to preset map data; obtaining road characteristic data corresponding to each road node in the computational subgraph and connection relation characteristic data corresponding to each road node connection relation from a preset database through a preset mapping mechanism; and inputting the road characteristic data corresponding to each road node and the connection relation characteristic data corresponding to each road node connection relation into a preset prediction model for calculation to generate predicted passing time corresponding to the target road node. Therefore, data are read through a preset mapping mechanism, the data acquisition efficiency is improved, connection relation characteristic data among all roads are considered during prediction, the accuracy of road passing time prediction is further improved, and the accuracy of estimated arrival time is improved.
In order to implement the above embodiments and to describe more clearly the specific processes of data preprocessing and generation of the preset prediction model, the following description is made in detail with reference to fig. 3, and fig. 3 is a flowchart of a road transit time prediction method according to a second embodiment of the present application.
Step 201, obtaining a plurality of roads and the connection relation among the roads, and constructing preset map data according to the plurality of roads and the connection relation among the roads.
Step 202, obtaining a plurality of historical road characteristic data corresponding to a plurality of roads and a plurality of historical connection relation characteristic data corresponding to connection relations among the roads.
Specifically, for modeling a road as a point in a graph, an intersection between roads is modeled as an edge in the graph, a plurality of historical road characteristic data corresponding to a plurality of roads and a plurality of historical connection relation characteristic data corresponding to connection relations between the roads are obtained, the historical road characteristic data and the historical connection relation characteristic data are sliced according to preset time, such as 5min granularity, and statistical values such as mean value calculation, summation calculation and the like in the slices are calculated to serve as final historical road characteristic data and historical connection relation characteristic data, wherein in order to prevent the problem of numerical explosion existing in a regression model, a prediction target can be converted into a classification problem.
That is, the neighborhood relationship between map points is fully utilized, roads in the map are modeled as points of the map, intersections in the map are modeled as edges of the map, the flow of the roads to be predicted is divided into a plurality of levels, and node classification prediction is performed by utilizing graph sage (a mode of aggregating node neighborhood characteristic information).
Step 203, storing a plurality of historical road characteristic data corresponding to a plurality of roads and a plurality of historical connection relation characteristic data corresponding to connection relations among the roads in a preset database according to a preset mapping mechanism.
Specifically, for example, if a beijing road is simply modeled, the number of road nodes in the graph is about 200w, and the historical data characteristic magnitude in one month is about 300G, if a distributed graph is directly used for storage, serious bandwidth bottlenecks may occur in the prepared data during training, so a preset mapping mechanism is used to store a plurality of road historical characteristic data corresponding to a plurality of roads and a plurality of connection relation historical characteristic data corresponding to connection relations between the roads in a preset database, for example, a mmap mechanism of linux, a large-scale point characteristic is stored in an external memory, and the reading efficiency of the data is optimized in the form of memory mapping and file pointers, the mmap mechanism is roughly as shown in fig. 4, and the file pointers are stored in the internal memory, so that the system obtains the external memory data in the mode of memory operation.
That is to say, the preprocessing data has low redundancy and can be completed by a single machine, and the huge road characteristics in the map are stored in an external memory by utilizing the mmap mechanism of linux, so that the network bandwidth bottleneck of the original distributed map storage is overcome.
And 204, determining a training road node, and acquiring a training subgraph corresponding to the training road node according to preset map data.
Step 205, obtaining road characteristic sample data corresponding to each road node in the training subgraph and connection relation characteristic sample data corresponding to each road node connection relation from a preset database through a preset mapping mechanism.
And step 206, carrying out aggregation processing on the road characteristic sample data corresponding to each road node and the connection relation characteristic sample data corresponding to the connection relation of each road node through a preset aggregation function to generate training road characteristic sample data.
And step 207, inputting the multiple training road characteristic sample data into the neural network model to obtain multiple training results, and respectively performing loss function calculation and back propagation gradient processing on the multiple training results and multiple current passing times corresponding to the multiple training road nodes until a prediction model is generated.
Specifically, one road node is taken as a training road node to acquire a neighbor subgraph, namely a training subgraph, random sampling is carried out according to adjacent points of the training subgraph, the number of sampled layers and the number of neighbor sampling points are taken as model hyper-parameters, road characteristic sample data corresponding to each road node in the training subgraph and connection relation characteristic sample data corresponding to each road node in the training subgraph are read from an external memory in a mmap mode after the training subgraph is generated, and the road characteristic sample data are hung in the training subgraph.
For the random sampling training subgraph, the representation of the neighbor nodes is aggregated into the current node representation through an aggregation function, then gradient return is carried out, for example, when a GATgraph sage algorithm is adopted, the aggregation function is an attention function, the neighbor representations of all the nodes are aggregated together in a weighted manner through attention, then the neighbor representations are connected with the self representation to carry out full-connection conversion representation, namely, road characteristic sample data corresponding to all the road nodes and connection relation characteristic sample data corresponding to all the road node connection relations are aggregated through a preset aggregation function to generate training road characteristic sample data.
And finally, inputting the multiple training road characteristic sample data into the neural network model to obtain multiple training results, and respectively performing loss function calculation and back propagation gradient processing on the multiple training results and multiple current passing times corresponding to the multiple training road nodes until a prediction model is generated.
That is to say, a starting point is randomly selected, a training subgraph corresponding to a walking neighbor with the starting point as a starting point is obtained, road characteristic data corresponding to each node in the training subgraph is obtained through a mmap mechanism and is mounted in the training subgraph, training road characteristic sample data is constructed according to the generated training subgraph, loss function calculation and back propagation gradient are carried out on the training road characteristic sample data through a neural network model, the training process is repeated until the model converges, and a prediction model is generated. The method has the advantages that independent modeling of each intersection node of the map is not needed, and a preset prediction model is realized by using dispersion/aggregation, so that the problem that massive processor operation is needed for each node due to independent modeling of each node is avoided, the processor can be fully utilized to accelerate training time by using multi-machine acceleration, the problem of repeated model calculation realized by a traditional method is solved, and model training and prediction can be finished by a single machine.
For example, assuming that a currently trained node is a, B, C and D are neighbors of a, a connection relation of a is sampled to generate a training subgraph formed by A, B and C, historical road characteristic data of the sampled subgraph A, B and C are obtained through a mmap mechanism to be mounted, training road characteristic sample data are constructed according to the training subgraph and input into a neural network, a loss function is calculated with current passing time of a point a, and direction gradient return training is performed until a prediction model is generated. And in addition, A, B and D training subgraphs can be constructed, and the steps are repeated to train.
It should be noted that, in the prediction process, since the in-degree of a node is very large, the prediction is also calculated based on the training subgraph of the previous sample, and the current node representation information is generated by representing the neighboring nodes through the aggregation function.
In summary, the method for predicting road transit time according to the embodiment of the present application includes obtaining a plurality of roads and connection relations among the roads, constructing preset map data according to the roads and the connection relations among the roads, obtaining a plurality of road historical feature data corresponding to the roads and a plurality of connection relation historical feature data corresponding to the connection relations among the roads, storing the plurality of road historical feature data corresponding to the roads and the plurality of connection relation historical feature data corresponding to the connection relations among the roads in a preset database according to a preset mapping mechanism, determining training road nodes, obtaining training sub-images corresponding to the training road nodes according to the preset map data, obtaining road feature sample data corresponding to the road nodes in the training sub-images from the preset database through the preset mapping mechanism, and obtaining connection relation features corresponding to the connection relations among the road nodes, and performing aggregation processing on road characteristic sample data corresponding to each road node and connection relation characteristic sample data corresponding to the connection relation of each road node through a preset aggregation function to generate training road characteristic sample data, inputting a plurality of training road characteristic sample data into a neural network model to obtain a plurality of training results, and performing loss function calculation and back propagation gradient processing on the plurality of training results and a plurality of current passing times corresponding to the plurality of training road nodes respectively until a prediction model is generated. Therefore, data are read through a preset mapping mechanism, the data acquisition efficiency is improved, connection relation characteristic data among all roads are considered during prediction, the accuracy of road passing time prediction is further improved, and the accuracy of estimated arrival time is improved.
In order to implement the above embodiments, the present application further proposes a road passing time prediction device, fig. 5 is a schematic structural diagram of a road passing time prediction device according to a fourth embodiment of the present application, and as shown in fig. 5, the road passing time prediction device includes: afirst acquisition module 501, asecond acquisition module 502, and acalculation module 503, wherein,
the first obtainingmodule 501 is configured to obtain a target road node, and obtain a computation sub-graph corresponding to the target road node according to preset map data.
A second obtainingmodule 502, configured to obtain, from a preset database through a preset mapping mechanism, road feature data corresponding to each road node in the computational sub-graph and connection relationship feature data corresponding to a connection relationship of each road node.
The calculatingmodule 503 is configured to input the road characteristic data corresponding to each road node and the connection relation characteristic data corresponding to each road node connection relation into a preset prediction model for calculation, so as to generate a predicted transit time corresponding to the target road node.
In an embodiment of the present application, the calculatingmodule 503 is specifically configured to:
aggregating the road characteristic data corresponding to each road node and the connection relation characteristic data corresponding to each road node connection relation through a preset aggregation function to generate target road characteristic data; and inputting the characteristic data of the target road into a preset prediction model for calculation to generate predicted passing time corresponding to the target road node.
In an embodiment of the present application, as shown in fig. 6, on the basis of fig. 5, the method further includes: athird acquisition module 504 and aconstruction module 505.
And a third obtainingmodule 504, configured to obtain multiple roads and connection relationships among the roads.
And abuilding module 505, configured to build the preset map data according to the multiple roads and the connection relationship between the multiple roads.
In an embodiment of the present application, as shown in fig. 7, on the basis of fig. 6, the method further includes: afourth acquisition module 506 and astorage module 507.
A fourth obtainingmodule 506, configured to obtain historical road characteristic data corresponding to the multiple roads and historical connection relation characteristic data corresponding to connection relations among the multiple roads. Thestorage module 507 is configured to store, in the preset database, a plurality of historical road characteristic data corresponding to the plurality of roads and a plurality of historical connection relationship characteristic data corresponding to connection relationships between the roads according to the preset mapping mechanism.
In an embodiment of the present application, as shown in fig. 8, on the basis of fig. 5, the method further includes: adetermination acquisition module 508, afifth acquisition module 509, anaggregation module 510, and ageneration module 511.
The determining and obtainingmodule 508 is configured to determine a training road node, and obtain a training subgraph corresponding to the training road node according to the preset map data.
A fifth obtainingmodule 509, configured to obtain, from a preset database through a preset mapping mechanism, road characteristic sample data corresponding to each road node in the training subgraph and connection relationship characteristic sample data corresponding to a connection relationship of each road node.
And anaggregation module 510, configured to aggregate, by using a preset aggregation function, the road characteristic sample data corresponding to each road node and the connection relationship characteristic sample data corresponding to each road node connection relationship to generate training road characteristic sample data.
Thegenerating module 511 is configured to input a plurality of training road characteristic sample data into a neural network model to obtain a plurality of training results, and perform loss function calculation and back propagation gradient processing on the plurality of training results and a plurality of current transit times corresponding to a plurality of training road nodes respectively until the prediction model is generated.
It should be noted that the explanation of the road passing time prediction method is also applicable to the road passing time prediction device according to the embodiment of the present invention, and the implementation principle is similar, and is not repeated herein.
In summary, the road transit time prediction apparatus of the embodiment of the present application obtains a target road node, and obtains a computation sub-graph corresponding to the target road node according to preset map data; obtaining road characteristic data corresponding to each road node in the computational subgraph and connection relation characteristic data corresponding to each road node connection relation from a preset database through a preset mapping mechanism; and inputting the road characteristic data corresponding to each road node and the connection relation characteristic data corresponding to each road node connection relation into a preset prediction model for calculation to generate predicted passing time corresponding to the target road node. Therefore, data are read through a preset mapping mechanism, the data acquisition efficiency is improved, connection relation characteristic data among all roads are considered during prediction, the accuracy of road passing time prediction is further improved, and the accuracy of estimated arrival time is improved.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 9 is a block diagram of an electronic device according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 9, the electronic apparatus includes: one ormore processors 901,memory 902, and interfaces for connecting the various components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). Fig. 9 illustrates an example of aprocessor 901.
Memory 902 is a non-transitory computer readable storage medium as provided herein. Wherein the memory stores instructions executable by at least one processor to cause the at least one processor to perform the methods provided herein. A non-transitory computer-readable storage medium of the present application stores computer instructions for causing a computer to perform a highway transit time prediction method provided by the present application.
Thememory 902, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the method for identifying the validity of parking bit data in the embodiment of the present application (for example, the first obtainingmodule 501, the second obtainingmodule 502, and the calculatingmodule 503 shown in fig. 5). Theprocessor 901 executes various functional applications of the server and data processing by running non-transitory software programs, instructions and modules stored in thememory 902, that is, implements the road transit time prediction method in the above method embodiment.
Thememory 902 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the electronic device, and the like. Further, thememory 902 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, thememory 902 may optionally include memory located remotely from theprocessor 901, which may be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device performing the method of recognizing validity of parking space data may further include: aninput device 903 and anoutput device 904. Theprocessor 901, thememory 902, theinput device 903 and theoutput device 904 may be connected by a bus or other means, and fig. 9 illustrates the connection by a bus as an example.
Theinput device 903 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device, such as an input device like a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, etc. Theoutput devices 904 may include a display device, auxiliary lighting devices (e.g., LEDs), tactile feedback devices (e.g., vibrating motors), and the like. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (12)

Translated fromChinese
1.一种公路通行时间预测方法,其特征在于,包括:1. a highway transit time prediction method, is characterized in that, comprises:获取目标公路节点,并根据预设地图数据获取与所述目标公路节点对应的计算子图;Obtaining a target highway node, and obtaining a calculation subgraph corresponding to the target highway node according to preset map data;通过预设映射机制从预设数据库中获取所述计算子图中各个公路节点对应的公路特征数据,以及各个公路节点连接关系对应的连接关系特征数据;Obtain the highway feature data corresponding to each highway node in the calculation subgraph, and the connection relationship feature data corresponding to the connection relationship of each highway node from the preset database through a preset mapping mechanism;将所述各个公路节点对应的公路特征数据和所述各个公路节点连接关系对应的连接关系特征数据输入到预设预测模型中进行计算,生成所述目标公路节点对应的预测通行时间。The highway feature data corresponding to each highway node and the connection relationship feature data corresponding to the connection relationship of each highway node are input into a preset prediction model for calculation, and the predicted travel time corresponding to the target highway node is generated.2.如权利要求1所述的方法,其特征在于,所述将所述各个公路节点对应的公路特征数据和所述各个公路节点连接关系对应的连接关系特征数据输入到预设预测模型中进行计算,生成所述目标公路节点对应的预测通行时间,包括:2 . The method according to claim 1 , wherein, the highway feature data corresponding to each highway node and the connection relationship feature data corresponding to the connection relationship of each highway node are input into a preset prediction model to carry out the process. 3 . Calculate and generate the predicted transit time corresponding to the target highway node, including:通过预设聚合函数将所述各个公路节点对应的公路特征数据和所述各个公路节点连接关系对应的连接关系特征数据进行聚合处理生成目标公路特征数据;The target highway feature data is generated by aggregating the highway feature data corresponding to each highway node and the connection relationship feature data corresponding to each highway node connection relationship through a preset aggregation function;将所述目标公路特征数据输入到预设预测模型中进行计算,生成所述目标公路节点对应的预测通行时间。The feature data of the target highway is input into a preset prediction model for calculation, and the predicted travel time corresponding to the target highway node is generated.3.如权利要求1所述的方法,其特征在于,在所述获取目标公路节点,并获取与所述目标节点对应的采样子图之前,还包括:3. The method according to claim 1, characterized in that, before said acquiring a target highway node and acquiring a sampling subgraph corresponding to said target node, further comprising:获取多条公路,以及各公路之间的连接关系;Get multiple roads and the connections between them;根据所述多条公路,以及所述各公路之间的连接关系构建所述预设地图数据。The preset map data is constructed according to the plurality of roads and the connection relationship between the various roads.4.如权利要求3所述的方法,其特征在于,在所述获取多条公路,以及各公路之间的连接关系之后,还包括:4. The method according to claim 3, wherein after the acquiring a plurality of roads and the connection relationship between the roads, the method further comprises:获取所述多条公路对应的多个公路历史特征数据,以及所述各公路之间的连接关系对应的多个连接关系历史特征数据;Acquiring a plurality of historical feature data of highways corresponding to the plurality of highways, and a plurality of historical feature data of connection relationships corresponding to the connection relationships between the highways;将所述多条公路对应的多个公路历史特征数据,以及所述各公路之间的连接关系对应的多个连接关系历史特征数据按照所述预设映射机制存储在所述预设数据库。The plurality of road historical feature data corresponding to the plurality of roads and the plurality of connection relationship historical feature data corresponding to the connection relationship between the various roads are stored in the preset database according to the preset mapping mechanism.5.如权利要求2所述的方法,其特征在于,在所述将所述目标公路特征数据输入到预设预测模型中进行计算,生成所述目标公路节点对应的预测通行时间之前,还包括:5 . The method according to claim 2 , wherein, before inputting the target highway feature data into a preset prediction model for calculation and generating the predicted transit time corresponding to the target highway node, the method further comprises: 6 . :确定训练公路节点,并根据所述预设地图数据获取与所述训练公路节点对应的训练子图;determining a training highway node, and obtaining a training subgraph corresponding to the training highway node according to the preset map data;通过预设映射机制从预设数据库中获取所述训练子图中各个公路节点对应的公路特征样本数据,以及各个公路节点连接关系对应的连接关系特征样本数据;Obtain from the preset database through the preset mapping mechanism the road feature sample data corresponding to each road node in the training subgraph, and the connection relationship feature sample data corresponding to the connection relationship of each road node;通过预设聚合函数将所述各个公路节点对应的公路特征样本数据和所述各个公路节点连接关系对应的连接关系特征样本数据进行聚合处理生成训练公路特征样本数据;Perform aggregation processing on the highway feature sample data corresponding to each highway node and the connection relationship feature sample data corresponding to each highway node connection relationship through a preset aggregation function to generate training highway feature sample data;将多个所述训练公路特征样本数据输入到神经网络模型中得到多个训练结果,分别将所述多个训练结果与多个训练公路节点对应的多个当前通行时间进行损失函数计算和反向传播梯度处理,直到生成所述预测模型。Inputting a plurality of the training highway feature sample data into the neural network model to obtain a plurality of training results, and performing the loss function calculation and reverse operation on the plurality of training results and the plurality of current transit times corresponding to the plurality of training highway nodes respectively. Gradient processing is propagated until the predictive model is generated.6.一种公路通行时间预测装置,其特征在于,包括:6. A highway transit time prediction device, characterized in that, comprising:第一获取模块,用于获取目标公路节点,并根据预设地图数据获取与所述目标公路节点对应的计算子图;a first obtaining module, configured to obtain a target highway node, and obtain a calculation subgraph corresponding to the target highway node according to preset map data;第二获取模块,用于通过预设映射机制从预设数据库中获取所述计算子图中各个公路节点对应的公路特征数据,以及各个公路节点连接关系对应的连接关系特征数据;The second obtaining module is configured to obtain, from the preset database, the highway feature data corresponding to each highway node in the calculation subgraph, and the connection relationship feature data corresponding to the connection relationship of each highway node from the preset database through a preset mapping mechanism;计算模块,用于将所述各个公路节点对应的公路特征数据和所述各个公路节点连接关系对应的连接关系特征数据输入到预设预测模型中进行计算,生成所述目标公路节点对应的预测通行时间。The calculation module is used to input the highway feature data corresponding to each highway node and the connection relationship feature data corresponding to the connection relationship of each highway node into a preset prediction model for calculation, and generate the predicted traffic corresponding to the target highway node time.7.如权利要求6所述的装置,其特征在于,所述计算模块,具体用于:7. The apparatus according to claim 6, wherein the computing module is specifically used for:通过预设聚合函数将所述各个公路节点对应的公路特征数据和所述各个公路节点连接关系对应的连接关系特征数据进行聚合处理生成目标公路特征数据;The target highway feature data is generated by aggregating the highway feature data corresponding to each highway node and the connection relationship feature data corresponding to each highway node connection relationship through a preset aggregation function;将所述目标公路特征数据输入到预设预测模型中进行计算,生成所述目标公路节点对应的预测通行时间。The feature data of the target highway is input into a preset prediction model for calculation, and the predicted travel time corresponding to the target highway node is generated.8.如权利要求6所述的装置,其特征在于,还包括:8. The apparatus of claim 6, further comprising:第三获取模块,用于获取多条公路,以及各公路之间的连接关系;The third acquisition module is used to acquire multiple roads and the connection relationship between the roads;构建模块,用于根据所述多条公路,以及所述各公路之间的连接关系构建所述预设地图数据。A building module is configured to build the preset map data according to the plurality of roads and the connection relationship between the roads.9.如权利要求8所述的装置,其特征在于,还包括:9. The apparatus of claim 8, further comprising:第四获取模块,用于获取所述多条公路对应的多个公路历史特征数据,以及所述各公路之间的连接关系对应的多个连接关系历史特征数据;a fourth acquisition module, configured to acquire a plurality of historical feature data of roads corresponding to the plurality of roads, and a plurality of historical feature data of connection relationships corresponding to the connection relationships between the various roads;存储模块,用于将所述多条公路对应的多个公路历史特征数据,以及所述各公路之间的连接关系对应的多个连接关系历史特征数据按照所述预设映射机制存储在所述预设数据库。The storage module is configured to store a plurality of road historical feature data corresponding to the plurality of roads and a plurality of connection relationship historical feature data corresponding to the connection relationship between the roads in the preset mapping mechanism according to the preset mapping mechanism. Default database.10.如权利要求7所述的装置,其特征在于,还包括:10. The apparatus of claim 7, further comprising:确定获取模块,用于确定训练公路节点,并根据所述预设地图数据获取与所述训练公路节点对应的训练子图;a determination acquisition module, configured to determine a training highway node, and acquire a training subgraph corresponding to the training highway node according to the preset map data;第五获取模块,用于通过预设映射机制从预设数据库中获取所述训练子图中各个公路节点对应的公路特征样本数据,以及各个公路节点连接关系对应的连接关系特征样本数据;a fifth acquisition module, configured to acquire, from a preset database, the highway feature sample data corresponding to each highway node in the training subgraph, and the connection relationship feature sample data corresponding to the connection relationship of each highway node from a preset database;聚合模块,用于通过预设聚合函数将所述各个公路节点对应的公路特征样本数据和所述各个公路节点连接关系对应的连接关系特征样本数据进行聚合处理生成训练公路特征样本数据;an aggregation module, configured to perform aggregation processing on the highway feature sample data corresponding to each highway node and the connection relationship feature sample data corresponding to each highway node connection relationship through a preset aggregation function to generate training highway feature sample data;生成模块,用于将多个所述训练公路特征样本数据输入到神经网络模型中得到多个训练结果,分别将所述多个训练结果与多个训练公路节点对应的多个当前通行时间进行损失函数计算和反向传播梯度处理,直到生成所述预测模型。The generating module is used for inputting a plurality of the training highway feature sample data into the neural network model to obtain a plurality of training results, and respectively losing the plurality of training results and the plurality of current travel times corresponding to the plurality of training highway nodes. Function computation and back-propagation gradient processing until the predictive model is generated.11.一种电子设备,其特征在于,包括:11. An electronic device, characterized in that, comprising:至少一个处理器;以及at least one processor; and与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-5中任一项所述的方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the execution of any of claims 1-5 Methods.12.一种存储有计算机指令的非瞬时计算机可读存储介质,其特征在于,所述计算机指令用于使所述计算机执行权利要求1-5中任一项所述的方法。12. A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to perform the method of any one of claims 1-5.
CN201911344130.6A2019-12-232019-12-23 Highway transit time prediction method, device, electronic device and storage mediumActiveCN111047107B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201911344130.6ACN111047107B (en)2019-12-232019-12-23 Highway transit time prediction method, device, electronic device and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201911344130.6ACN111047107B (en)2019-12-232019-12-23 Highway transit time prediction method, device, electronic device and storage medium

Publications (2)

Publication NumberPublication Date
CN111047107Atrue CN111047107A (en)2020-04-21
CN111047107B CN111047107B (en)2022-05-10

Family

ID=70238905

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201911344130.6AActiveCN111047107B (en)2019-12-232019-12-23 Highway transit time prediction method, device, electronic device and storage medium

Country Status (1)

CountryLink
CN (1)CN111047107B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111597700A (en)*2020-05-092020-08-28北京百度网讯科技有限公司Signal control algorithm evaluation method and device, electronic equipment and readable storage medium
CN111914180A (en)*2020-08-192020-11-10腾讯科技(深圳)有限公司User characteristic determination method, device, equipment and medium based on graph structure

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP1796058A1 (en)*2005-12-122007-06-13C.R.F. Societa Consortile per AzioniMethod and system for estimating the arrival time of a public transport means at predetermined points of its path
CN104269059A (en)*2014-10-152015-01-07河海大学City path travel time forecasting method based on multi-source data fusion
CN109035761A (en)*2018-06-252018-12-18复旦大学Travel time estimation method based on back-up surveillance study

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP1796058A1 (en)*2005-12-122007-06-13C.R.F. Societa Consortile per AzioniMethod and system for estimating the arrival time of a public transport means at predetermined points of its path
CN104269059A (en)*2014-10-152015-01-07河海大学City path travel time forecasting method based on multi-source data fusion
CN109035761A (en)*2018-06-252018-12-18复旦大学Travel time estimation method based on back-up surveillance study

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
徐冰冰 等: "图卷积神经网络综述", 《计算机学报》*
虎玉鑫: "基于图卷积神经网络的旅行时间预测方法研究", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》*

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111597700A (en)*2020-05-092020-08-28北京百度网讯科技有限公司Signal control algorithm evaluation method and device, electronic equipment and readable storage medium
CN111597700B (en)*2020-05-092023-08-15北京百度网讯科技有限公司 Signal control algorithm evaluation method, device, electronic equipment and readable storage medium
CN111914180A (en)*2020-08-192020-11-10腾讯科技(深圳)有限公司User characteristic determination method, device, equipment and medium based on graph structure
CN111914180B (en)*2020-08-192024-04-16腾讯科技(深圳)有限公司User characteristic determining method, device, equipment and medium based on graph structure

Also Published As

Publication numberPublication date
CN111047107B (en)2022-05-10

Similar Documents

PublicationPublication DateTitle
CN112101682B (en) Traffic pattern prediction method, device, server and readable medium
JP7334205B2 (en) Destination prediction method, device, electronic device, computer-readable storage medium and computer program
CN111859291B (en) Traffic accident identification method, device, equipment and computer storage medium
US11645356B2 (en)Deep learning for partial differential equation (PDE) based models
CN106652534B (en)A method of prediction bus arrival time
CN112581763A (en)Method, device, equipment and storage medium for detecting road event
CN110709908A (en)Computer system and method for state prediction of traffic system
CN111612249A (en) Method, apparatus, device and storage medium for predicting human flow
CN112101527A (en) Method and apparatus, electronic device and storage medium for recognizing lane change
WO2014194480A1 (en)Air quality inference using multiple data sources
CN111325382B (en)Method and device for predicting free parking space of parking lot, electronic equipment and storage medium
WO2022153125A2 (en)System and method for processing vehicle event data for analysis of road segments and turn ratios
CN112419728B (en) Method, device, device and storage medium for determining road condition information
CN111982138A (en) Predictive model acquisition and path planning method, device and storage medium
CN111553279A (en) Representation learning and identification method, device, equipment and storage medium of interest point
JP2023027233A (en)Road data integration map generation method, device, and electronic apparatus
CN111047107B (en) Highway transit time prediction method, device, electronic device and storage medium
Li et al.Graph neural networks in intelligent transportation systems: Advances, applications and trends
WO2021158264A2 (en)Spatio-temporal pose/object database
CN114419877B (en) Vehicle Trajectory Prediction Data Processing Method and Device Based on Road Features
CN118334912B (en) Aircraft taxiing time prediction method and device based on deep learning
MoskvinQuantum neural networks and their potential in traffic prediction
CN111753037A (en) Information representation method, device, electronic device and storage medium
McElwee et al.Real-time analysis of city scale transportation networks in New Orleans metropolitan area using an agent based model approach
CN116311971A (en)Path flow determination method, path flow determination device, electronic equipment and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp