Trajectory prediction method, trajectory prediction model training method and device

Combining vehicle trajectories and road data through the recurrent neural network model solves the problem of inaccurate trajectory prediction in complex road scenarios, achieves more accurate trajectory compensation and correction, and improves the accuracy of trajectory prediction.

CN114547223BActive Publication Date: 2024-09-10BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210172833.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-24
Publication Date
2024-09-10
Estimated Expiration
2042-02-24

AI Technical Summary

Technical Problem

The existing technology is not accurate enough in vehicle trajectory prediction in complex road scenarios, especially when satellite positioning signals are blocked or inaccurate, resulting in missing trajectory points or inaccurate positions, making it difficult to achieve effective trajectory compensation and correction.

Method used

By obtaining vehicle trajectory data and road data, the recurrent neural network model is used to predict the trajectory, comprehensively considering position, speed and direction information, predicting the true position of the trajectory point, and then performing trajectory compensation and correction.

Benefits of technology

It improves the accuracy and generalization of trajectory prediction, can effectively predict trajectories in complex road scenarios, reduces trajectory point errors, and improves the quality of driving trajectory data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114547223B
    Figure CN114547223B
Patent Text Reader

Abstract

The present disclosure provides a trajectory prediction method, a trajectory prediction model training method and a device, which relate to the field of computer technology, and in particular to the fields of intelligent transportation, artificial intelligence, and deep learning technology. The implementation scheme is: obtaining the driving trajectory data of a vehicle, the driving trajectory data including the position information of each of a plurality of trajectory points; determining the road data corresponding to the driving trajectory data based on the position information of each of the plurality of trajectory points; and determining the predicted trajectory data of the vehicle based on the driving trajectory data and the road data, the predicted trajectory data including the position information of each of at least one predicted trajectory point.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, in particular to the fields of intelligent transportation, artificial intelligence, and deep learning technology, and specifically to a trajectory prediction method and device, a trajectory prediction model training method and device, an electronic device, a computer-readable storage medium, and a computer program product. Background Art

[0002] Vehicles are usually equipped with a satellite positioning module. The satellite positioning module can receive satellite positioning signals (such as Beidou, GPS, GLONASS, GALILEO, etc.) and generate position information (coordinates) based on these signals. Therefore, during the driving process of the vehicle, the satellite positioning module can be used to obtain the vehicle's position information at different times, and the position information at different times can be stored locally in the vehicle or sent to a server. The vehicle's position information at different times forms the vehicle's driving trajectory.

[0003] The vehicle's driving trajectory can characterize the vehicle's movement and is widely used in map production, urban planning, autonomous driving, information recommendation and other fields.

[0004] The methods described in this section are not necessarily methods that have been previously conceived or employed. Unless otherwise indicated, it should not be assumed that any method described in this section is considered to be prior art simply because it is included in this section. Similarly, unless otherwise indicated, the issues mentioned in this section should not be considered to have been recognized in any prior art. Summary of the invention

[0005] The present disclosure provides a trajectory prediction method and device, a trajectory prediction model training method and device, an electronic device, a computer-readable storage medium, and a computer program product.

[0006] According to one aspect of the present disclosure, a trajectory prediction method is provided, comprising: acquiring driving trajectory data of a vehicle, the driving trajectory data comprising respective position information of a plurality of trajectory points; determining road data corresponding to the driving trajectory data based on respective position information of the plurality of trajectory points; and determining predicted trajectory data of the vehicle based on the driving trajectory data and the road data, the predicted trajectory data comprising respective position information of at least one predicted trajectory point.

[0007] According to one aspect of the present disclosure, a method for training a trajectory prediction model is provided, comprising: obtaining sample driving trajectory data, the sample driving trajectory data comprising a first data segment and a second data segment, the first data segment comprising respective position information of a plurality of first trajectory points, the second data segment comprising respective position information of at least one second trajectory point; determining sample road data corresponding to the first data segment based on respective position information of the plurality of first trajectory points; inputting the first data segment and the sample road data into the trajectory prediction model to obtain predicted trajectory data output by the trajectory prediction model, the predicted trajectory data comprising respective position information of at least one predicted trajectory point; determining a loss value of the trajectory prediction model based on the predicted trajectory data and the second data segment; and adjusting parameters of the trajectory prediction model based on the loss value.

[0008] According to one aspect of the present disclosure, a trajectory prediction device is provided, comprising: an acquisition module, configured to acquire driving trajectory data of a vehicle, the driving trajectory data comprising respective position information of a plurality of trajectory points; a determination module, configured to determine road data corresponding to the driving trajectory data based on respective position information of the plurality of trajectory points; and a prediction module, configured to determine predicted trajectory data of the vehicle based on the driving trajectory data and the road data, the predicted trajectory data comprising respective position information of at least one predicted trajectory point.

[0009] According to one aspect of the present disclosure, a training device for a trajectory prediction model is provided, comprising: an acquisition module, configured to acquire sample driving trajectory data, the sample driving trajectory data comprising a first data segment and a second data segment, the first data segment comprising respective position information of a plurality of first trajectory points, the second data segment comprising respective position information of at least one second trajectory point; a first determination module, configured to determine sample road data corresponding to the first data segment based on respective position information of the plurality of first trajectory points; a prediction module, configured to input the first data segment and the sample road data into the trajectory prediction model to obtain predicted trajectory data output by the trajectory prediction model, the predicted trajectory data comprising respective position information of at least one predicted trajectory point; a second determination module, configured to determine a loss value of the trajectory prediction model based on the predicted trajectory data and the second data segment; and an adjustment module, configured to adjust parameters of the trajectory prediction model based on the loss value.

[0010] According to one aspect of the present disclosure, there is provided an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor, the memory storing instructions executable by the at least one processor, the instructions being executed by the at least one processor so that the at least one processor can execute any of the methods of the above aspects.

[0011] According to one aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute any of the above methods.

[0012] According to one aspect of the present disclosure, a computer program product is provided, including a computer program, which implements any of the above methods when executed by a processor.

[0013] According to one or more embodiments of the present disclosure, the accuracy of trajectory prediction can be improved.

[0014] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.

[0016] Figure 1 A schematic diagram showing an exemplary system in which the various methods described herein may be implemented according to an embodiment of the present disclosure;

[0017] Figure 2 A flow chart of a trajectory prediction method according to an embodiment of the present disclosure is shown;

[0018] Figure 3 A schematic diagram showing driving trajectory data and road data according to an embodiment of the present disclosure is shown;

[0019] Figure 4 A flowchart of a method for training a trajectory prediction model according to an embodiment of the present disclosure is shown;

[0020] Figure 5 A schematic diagram showing sample driving trajectory data according to an embodiment of the present disclosure is shown;

[0021] Figure 6A schematic diagram showing a training process of a trajectory prediction model according to an embodiment of the present disclosure is shown;

[0022] Figure 7 A schematic diagram showing the training and application process of a trajectory prediction model according to an embodiment of the present disclosure is shown;

[0023] Figure 8 A structural block diagram of a trajectory prediction device according to an embodiment of the present disclosure is shown;

[0024] Fig. 9 A structural block diagram of a training device for a trajectory prediction model according to an embodiment of the present disclosure is shown; and

[0025] Fig.10 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0026] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0027] In the present disclosure, unless otherwise specified, the use of the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, timing relationship, or importance relationship of these elements, and such terms are only used to distinguish one element from another element. In some examples, the first element and the second element may refer to the same instance of the element, and in some cases, based on the description of the context, they may also refer to different instances.

[0028] The terms used in the description of various examples in this disclosure are only for the purpose of describing specific examples and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element can be one or more. In addition, the term "and / or" used in this disclosure covers any one of the listed items and all possible combinations.

[0029] In this disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information are in compliance with relevant laws and regulations and do not violate public order and good morals.

[0030] During the driving process of the vehicle, the vehicle's location information at different times can be obtained through a satellite positioning module (which can be a vehicle-mounted satellite positioning module or a satellite positioning module in a terminal device used by a user in the vehicle), and the location information at different times can be stored in the vehicle or sent to a server. The location information of the vehicle at different times forms the driving trajectory of the vehicle, and the location information of the vehicle at a single time corresponds to a trajectory point in the driving trajectory. The driving trajectory of the vehicle can characterize the movement of the vehicle.

[0031] In some cases, other sensor modules can be used to obtain information such as the speed and direction of the vehicle at different times, and the information can be stored or sent to the server together with the vehicle's location information. Accordingly, each track point in the vehicle's driving track includes speed, direction and other information in addition to location information.

[0032] During vehicle driving, there are often situations where the satellite positioning module cannot receive satellite positioning signals or receives inaccurate satellite positioning signals. For example, the satellite positioning signal is blocked by objects such as high-rise buildings, trees, tunnels, etc., resulting in the satellite positioning module being unable to receive or receiving inaccurate satellite positioning signals. Accordingly, the vehicle's driving trajectory is missing at some moments (i.e., the trajectory points are missing) or the position information of the trajectory points is inaccurate. In this case, it is necessary to fill in the missing trajectory points (i.e., "trajectory compensation") or correct the inaccurate trajectory points (i.e., "trajectory correction"). A feasible solution is to perform trajectory prediction based on the vehicle's driving trajectory data to predict the true position of the missing or inaccurate trajectory points, and then perform trajectory compensation or trajectory correction on the driving trajectory data based on the prediction results.

[0033] In related technologies, a hidden Markov model (HMM) is usually used to match the existing driving trajectory data of the vehicle with the roads on the electronic map (this process can be called "road binding"), so as to predict the actual position of the trajectory point, and perform trajectory compensation or trajectory correction based on the prediction results. The prediction results of this method are not accurate enough. In complex road scenarios (such as complex intersections, overpasses, etc.), the prediction results (i.e., road binding results) are likely to be wrong, or even impossible to obtain prediction results.

[0034] In other related technologies, the vehicle's existing driving trajectory (historical driving trajectory) can also be used as a time series to predict the vehicle's future driving trajectory. This method only predicts the future driving trajectory based on the historical driving trajectory, and the prediction result is also not accurate enough, especially in complex road scenes (such as complex intersections, overpasses, etc.), where errors are prone to occur.

[0035] To this end, an embodiment of the present disclosure provides a trajectory prediction method, which can improve the accuracy of trajectory prediction.

[0036] The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0037] Figure 1 FIG. 1 is a schematic diagram of an exemplary system 100 in which various methods and apparatuses described herein may be implemented according to an embodiment of the present disclosure. Figure 1 , the system 100 includes one or more client devices 101, 102, 103, 104, 105, and 106, a server 120, and one or more communication networks 110 coupling the one or more client devices to the server 120. The client devices 101, 102, 103, 104, 105, and 106 may be configured to execute one or more applications.

[0038] In an embodiment of the present disclosure, the server 120 may run one or more services or software applications that enable execution of a trajectory prediction method and / or a training method of a trajectory prediction model.

[0039] In some embodiments, server 120 may also provide other services or software applications that may include non-virtualized environments and virtualized environments. In some embodiments, these services may be provided as web-based services or cloud services, such as provided to users of client devices 101, 102, 103, 104, 105, and / or 106 under a software as a service (SaaS) model.

[0040] exist Figure 1 In the configuration shown, the server 120 may include one or more components that implement the functions performed by the server 120. These components may include software components, hardware components, or a combination thereof that can be executed by one or more processors. Users operating client devices 101, 102, 103, 104, 105, and / or 106 may in turn utilize one or more client applications to interact with the server 120 to utilize the services provided by these components. It should be understood that a variety of different system configurations are possible, which may differ from the system 100. Therefore, Figure 1 is one example of a system for implementing the various methods described herein and is not intended to be limiting.

[0041] The user may use client devices 101, 102, 103, 104, 105, and / or 106 to navigate. The client device may provide an interface that enables the user of the client device to interact with the client device. The client device may also output information to the user via the interface. Figure 1Only six client devices are depicted, but one skilled in the art will appreciate that the present disclosure may support any number of client devices.

[0042] Client devices 101, 102, 103, 104, 105 and / or 106 may include various types of computer devices, such as portable handheld devices, general-purpose computers (such as personal computers and laptop computers), workstation computers, wearable devices, smart screen devices, self-service terminal devices, service robots, game systems, thin clients, various messaging devices, sensors or other sensing devices, etc. These computer devices may run various types and versions of software applications and operating systems, such as MICROSOFT Windows, APPLE iOS, UNIX-like operating systems, Linux or Linux-like operating systems; or include various mobile operating systems, such as MICROSOFT Windows Mobile OS, iOS, Windows Phone, Android. Portable handheld devices may include cellular phones, smart phones, tablet computers, personal digital assistants (PDAs), etc. Wearable devices may include head-mounted displays (such as smart glasses) and other devices. Game systems may include various handheld game devices, Internet-enabled game devices, etc. Client devices are capable of executing various different applications, such as various Internet-related applications, communication applications (such as email applications), short message service (SMS) applications, and may use various communication protocols.

[0043] The network 110 may be any type of network known to those skilled in the art that may support data communications using any of a variety of available protocols, including but not limited to TCP / IP, SNA, IPX, etc. By way of example only, the one or more networks 110 may be a local area network (LAN), an Ethernet-based network, a token ring, a wide area network (WAN), the Internet, a virtual network, a virtual private network (VPN), an intranet, an extranet, a public switched telephone network (PSTN), an infrared network, a wireless network (e.g., Bluetooth, Wi-Fi), and / or any combination of these and / or other networks.

[0044] Server 120 may include one or more general purpose computers, dedicated server computers (e.g., PC (personal computer) servers, UNIX servers, mid-range servers), blade servers, mainframe computers, server clusters, or any other suitable arrangement and / or combination. Server 120 may include one or more virtual machines running virtual operating systems, or other computing architectures involving virtualization (e.g., one or more flexible pools of logical storage devices that may be virtualized to maintain a server's virtual storage device). In various embodiments, server 120 may run one or more services or software applications that provide the functionality described below.

[0045] The computing units in the server 120 may run one or more operating systems including any of the above operating systems and any commercially available server operating systems. The server 120 may also run any of a variety of additional server applications and / or middle-tier applications, including HTTP servers, FTP servers, CGI servers, JAVA servers, database servers, etc.

[0046] In some implementations, server 120 may include one or more applications to analyze and consolidate data feeds and / or event updates received from users of client devices 101, 102, 103, 104, 105, and 106. Server 120 may also include one or more applications to display data feeds and / or real-time events via one or more display devices of client devices 101, 102, 103, 104, 105, and 106.

[0047] In some embodiments, the server 120 may be a server of a distributed system, or a server combined with a blockchain. The server 120 may also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology. A cloud server is a host product in a cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and virtual private servers (VPS) services.

[0048] The system 100 may also include one or more databases 130. In some embodiments, these databases may be used to store data and other information. For example, one or more of the databases 130 may be used to store information such as music files. The databases 130 may reside in various locations. For example, the database used by the server 120 may be local to the server 120, or may be remote from the server 120 and may communicate with the server 120 via a network-based or dedicated connection. The databases 130 may be of different types. In some embodiments, the databases used by the server 120 may be, for example, relational databases. One or more of these databases may store, update, and retrieve data to and from the databases in response to commands.

[0049] In some embodiments, one or more of the databases 130 may also be used by applications to store application data. The databases used by the applications may be different types of databases, such as a key-value store, an object store, or a conventional store backed by a file system.

[0050] Figure 1 The system 100 may be configured and operated in various ways to enable the application of various methods and apparatuses described in the present disclosure.

[0051] For the purpose of the embodiments of this disclosure, Figure 1 The client devices 101-106 shown may include client applications, which may provide various services based on vehicle driving trajectory data, such as map services, autonomous driving services, information recommendation services, etc. Accordingly, the server 120 is a server corresponding to the client application.

[0052] For example, in Figure 1 In the example, the client devices 101-106 may include an electronic map application, which can provide various services based on the electronic map, such as online navigation, offline route planning, location search, etc. Correspondingly, the server 120 may be a server corresponding to the electronic map application. The server 120 or the client devices 101-106 can, for example, predict the driving trajectory of the vehicle by executing the trajectory prediction method of the embodiment of the present disclosure. The obtained prediction results can be used to optimize the quality of the driving trajectory data (for example, trajectory compensation, trajectory correction, etc.). Furthermore, based on the optimized driving trajectory data, the road elements in the map (such as traffic lights, lane guide arrows, traffic restriction signs, etc.) can be updated to make the electronic map data more accurate and enhance the user experience of the electronic map application.

[0053] Figure 2FIG. 2 is a flow chart of a trajectory prediction method 200 according to an embodiment of the present disclosure. The method 200 may be performed on a server (eg, Figure 1 120) or may be executed on a client device (e.g. Figure 1 The execution of each step of method 200 may be performed at the client devices 101, 102, 103, 104, 105 and 106 shown in FIG. Figure 1 The server 120 shown in FIG. 1 may also be Figure 1 Client devices 101, 102, 103, 104, 105 and 106 are shown in FIG.

[0054] like Figure 2 As shown, the method 200 includes:

[0055] Step 210: Acquire driving trajectory data of the vehicle, where the driving trajectory data includes position information of each of a plurality of trajectory points;

[0056] Step 220: determining the road data corresponding to the driving trajectory data based on the position information of each of the plurality of trajectory points; and

[0057] Step 230: Determine predicted trajectory data of the vehicle based on the driving trajectory data and the road data, where the predicted trajectory data includes position information of at least one predicted trajectory point.

[0058] The driving trajectory of a vehicle is affected by the actual road conditions. According to the embodiments of the present disclosure, the accuracy of trajectory prediction is improved by determining the road conditions near the vehicle's driving trajectory (i.e., "road data") and then combining the vehicle's driving trajectory and the road conditions to predict the vehicle's future driving trajectory (i.e., "predicted trajectory data").

[0059] Each step of method 200 is described in detail below.

[0060] In step 210, the driving trajectory data of the vehicle is obtained, and the driving trajectory data includes the position information of each of a plurality of trajectory points.

[0061] The position information of the vehicle at different times forms the driving track of the vehicle. The driving track of the vehicle includes a plurality of track points, each of which corresponds to a specific time and has corresponding position information. Accordingly, the driving track data of the vehicle includes the position information of each of the plurality of track points.

[0062] The location information of the track point is usually collected by a satellite positioning module and is used to indicate the location of the vehicle at a corresponding time. The location information may be, for example, coordinates, such as longitude and latitude coordinates, UTM (Universal Transverse Mercatorgrid system) coordinates, and the like.

[0063] According to some embodiments, during the driving process of the vehicle, other sensor modules can also be used to collect information such as speed and direction at different times, and store this information together with the position information in the vehicle or upload it to a server. Accordingly, each track point has speed, direction and other information in addition to position information. The driving track data of the vehicle includes speed and direction information of each of the multiple track points in addition to the position information of each of the multiple track points.

[0064] The speed information of the track point is used to indicate the speed of the vehicle at the corresponding moment. The unit of speed information is usually km / h or m / s.

[0065] The direction information of the trajectory point is used to indicate the driving direction of the vehicle at the corresponding moment. The direction information can be expressed as the angle between the driving direction of the vehicle and the reference direction. For example, with the east as the reference direction, the angle increases in the counterclockwise direction, and the value range of the direction information is 0° to 360°. If the vehicle is driving to the north, the direction information is 90°; if the vehicle is driving to the southwest, the direction information is 225°.

[0066] The vehicle's driving trajectory data is a time series consisting of information on multiple trajectory points. For example, the vehicle's driving trajectory data can be represented as a time series {P1, P2, ..., P n}, where P i is the information vector of the i-th (i=1,2,…,N) trajectory point. Specifically, P i It may include only location information, or may include multiple information such as location, direction, speed, etc.

[0067] It should be noted that the driving trajectory data of the vehicle acquired in step 210 may be all of the driving trajectory data of the vehicle stored locally in the vehicle or at a server, or may be a part of the stored driving trajectory data.

[0068] In step 220 , road data corresponding to the driving trajectory data is determined based on the position information of each of the plurality of trajectory points.

[0069] According to some embodiments, step 220 includes the following steps 222-226:

[0070] Step 222: Acquire road network topology data, where the road network topology data includes location information of a plurality of road nodes and connection relationships between the plurality of road nodes;

[0071] Step 224: determining at least one target node corresponding to the plurality of trajectory points from the plurality of road nodes based on the respective position information of the plurality of trajectory points and the plurality of road nodes;

[0072] Step 226: Based on the at least one target node, determine road data, where the road data includes location information of the at least one target node and / or a connection relationship between at least one target node.

[0073] According to the above embodiment, the target nodes and their connection relationships constitute the local road network where the driving trajectory is located. Using the local road network as road data for trajectory prediction can improve the efficiency and accuracy of trajectory prediction.

[0074] In the road network topology, each road is composed of a series of ordered road nodes, and each road node has location information. A road segment (link) is formed between two interconnected road nodes. Accordingly, the road network topology data includes the location information of multiple road nodes and the connection relationship between multiple roads. The location information of the road node can be, for example, coordinates, such as longitude and latitude coordinates, UTM coordinates, etc. Usually, the coordinates of the road node and the coordinates of the trajectory point use the same coordinate system.

[0075] According to some embodiments, for step 224, a distance threshold may be preset, such as 30m, 50m, etc. For each trajectory point, a road node whose distance to the trajectory point is less than or equal to the distance threshold is used as the target node corresponding to the trajectory point; then the target nodes corresponding to the trajectory points are merged to obtain at least one target node.

[0076] After at least one target node is determined in step 224, road data may be determined in step 226. The road data includes the location information of the at least one target node and / or the connection relationship between at least one target node.

[0077] According to some embodiments, when there are two or more target nodes, the connection relationship between the target nodes can be represented by an adjacency matrix, for example. The number of rows and columns of the adjacency matrix is ​​equal to the number of target nodes. The element value a in the i-th row and j-th column of the adjacency matrix A is ij It is used to indicate the connectivity between target node i and target node j. For example, the value 1 can be used to indicate that the two target nodes are connected, and the value 0 can be used to indicate that the two target nodes are not connected. In particular, a ii = 0. Accordingly, the road data may include the location information of each target node and the connection relationship between each target node.

[0078] In the case where there is only one target node, the connection relationship between the target nodes can be set to a null value. Accordingly, the road data only includes the location information of the target node.

[0079] Figure 3 FIG. 1 shows a schematic diagram of driving trajectory data and corresponding road data according to an embodiment of the present disclosure. Figure 3 As shown, the vehicle's driving trajectory 310 includes six trajectory points af, and accordingly, the vehicle's driving trajectory data includes the position information of each of the trajectory points af. The exemplary road network topology includes seven road nodes AG and the connections between the seven road nodes, and accordingly, the road network topology data includes the position information of each of the road nodes AG and their connection relationship.

[0080] The distance threshold can be set to 50m, for example. For each trajectory point, the road node whose distance to the trajectory point is less than or equal to 50m is used as the target node corresponding to the trajectory point. For example, for trajectory point a, since the distance from road node A to trajectory point a is less than 50m, road node A is the target node corresponding to trajectory point a. For trajectory point c, there is no road node within 50m, so it has no corresponding target node. For trajectory point e, since the distances from road nodes F and G to trajectory point e are both less than 50m, road nodes F and G are the target nodes corresponding to trajectory point e. Similarly, it can be determined that trajectory point b corresponds to target node C, trajectory point d corresponds to target node D, and trajectory point f corresponds to target node G.

[0081] The target nodes corresponding to the trajectory point af are merged, and the target nodes corresponding to the trajectory point af are A, C, D, F, and G. Accordingly, the road data includes the location information of the target nodes A, C, D, F, and G and the connection relationship between the target nodes A, C, D, F, and G. The connection relationship can be represented by the following adjacency matrix:

[0082] A C D F G A 0 1 0 0 0 C 1 0 1 0 0 D 0 1 0 1 0 F 0 0 1 0 1 G 0 0 0 1 0

[0083] In step 230 , based on the driving trajectory data and the road data, predicted trajectory data of the vehicle is determined, where the predicted trajectory data includes position information of at least one predicted trajectory point.

[0084] As mentioned above, the driving trajectory data may include only the position information of each trajectory point, or may include the position, speed, direction and other information of each trajectory node. In the case where the driving trajectory data includes multiple information such as the position, speed, direction and other information of each trajectory point, a richer prediction basis can be obtained. By combining multiple information such as position, speed, direction and road data to perform trajectory prediction, the accuracy of trajectory prediction can be further improved.

[0085] According to some embodiments, when the driving trajectory data includes various information such as the position, speed, and direction of each trajectory point, the predicted trajectory data may also correspondingly include information such as the position, speed, and direction of each predicted trajectory point.

[0086] According to some embodiments, a trained trajectory prediction model may be used to determine the predicted trajectory data, that is, step 230 includes: inputting the driving trajectory data and the road data into the trained trajectory prediction model; and obtaining the predicted trajectory data output by the trajectory prediction model.

[0087] According to the above embodiments, the trajectory prediction model is used to perform trajectory prediction, which can improve the generalization and flexibility of trajectory prediction, so that the trajectory prediction method of the embodiment of the present disclosure can be applied to different road scenes. Even for complex road scenes (such as complex intersections, overpasses, etc.), good prediction results can be obtained.

[0088] The trajectory prediction model can be any neural network model. According to some embodiments, the trajectory prediction model can be, for example, a recurrent neural network (RNN) model. The recurrent neural network model is suitable for processing sequence data, and the vehicle's driving trajectory data is a time series sequence. Therefore, using a recurrent neural network model for trajectory prediction can match the model with the data, thereby improving the accuracy of trajectory prediction.

[0089] The training method of the trajectory prediction model will be described in detail below.

[0090] According to other embodiments, a time series prediction algorithm such as Kalman filtering may also be used to determine the predicted trajectory data of the vehicle.

[0091] According to some embodiments, after the predicted trajectory data is obtained through step 230, the driving trajectory data of the vehicle may be further corrected based on the predicted trajectory data, thereby improving the quality of the driving trajectory data.

[0092] According to some embodiments, based on the predicted trajectory data, trajectory compensation may be performed on the driving trajectory data acquired in step 210. Specifically, the driving trajectory data may be concatenated with the predicted trajectory data, thereby filling and expanding the driving trajectory data.

[0093] According to some other embodiments, the track deviation correction may be performed on the formal track data acquired in step 210 based on the predicted track data. Specifically, the continuous track data of the driving track data may be acquired, the continuous track data including the position information of a plurality of continuous track points, the plurality of continuous track points being located after the plurality of track points included in the driving track data, and the number of the plurality of continuous track points being the same as the number of the at least one predicted track point; the continuous track data and the predicted track data are fused to obtain fused track data; and the driving track data and the fused track data are spliced.

[0094] In the above embodiment, the continued trajectory data is the real trajectory data collected by the vehicle after collecting the driving trajectory data in step 210. By fusing the continued trajectory data with the predicted trajectory data, the continued trajectory data can be corrected to improve the quality of the continued trajectory data; accordingly, after splicing the driving trajectory data with the fused trajectory data, more accurate and higher quality driving trajectory data can be obtained.

[0095] According to some embodiments, the continuation trajectory data and the predicted trajectory data may be fused by weighted summation. That is, for each continuation trajectory point, the position information of the continuation trajectory point and the corresponding predicted trajectory point is weightedly summed to obtain the fused position information. Similarly, the speed information or direction information of the continuation trajectory point and the corresponding predicted trajectory point may also be weighted summed to obtain the fused speed information or direction information. The weights of the continuation trajectory point and the predicted trajectory point may be, for example, both 0.5, which means that when performing trajectory correction, the original trajectory data and the predicted trajectory data have the same importance.

[0096] It should be noted that, in addition to being used for trajectory compensation and trajectory correction to improve the quality of trajectory data, the predicted trajectory data can also have other uses, such as real-time route planning for autonomous driving vehicles, etc. The present disclosure does not limit the specific uses of the predicted trajectory data.

[0097] According to an embodiment of the present disclosure, a method for training a trajectory prediction model is also provided. Figure 4 FIG. 4 is a flow chart of a trajectory prediction method 400 according to an embodiment of the present disclosure. The method 400 is usually performed on a server (eg Figure 1 120) or may be executed on a client device (e.g. Figure 1 The method 400 is performed at the client devices 101, 102, 103, 104, 105 and 106 shown in FIG. That is, the execution body of each step of the method 400 may be Figure 1 The server 120 shown in FIG. 1 may also be Figure 1 Client devices 101, 102, 103, 104, 105 and 106 are shown in FIG.

[0098] like Figure 4 As shown, the method 400 includes:

[0099] Step 410: Acquire sample driving trajectory data, wherein the sample driving trajectory data includes a first data segment and a second data segment, wherein the first data segment includes position information of each of a plurality of first trajectory points, and the second data segment includes position information of each of at least one second trajectory point;

[0100] Step 420: Determine sample road data corresponding to the first data segment based on the position information of each of the plurality of first trajectory points;

[0101] Step 430: input the first data segment and the sample road data into the trajectory prediction model to obtain predicted trajectory data output by the trajectory prediction model, wherein the predicted trajectory data includes position information of at least one predicted trajectory point;

[0102] Step 440: Determine a loss value of the trajectory prediction model based on the predicted trajectory data and the second data segment; and

[0103] Step 450: Adjust parameters of the trajectory prediction model based on the loss value.

[0104] According to the embodiments of the present disclosure, the original driving trajectory data of the vehicle can be split into two segments, the first segment (i.e., the first data segment) is used as the input data of the model, and the second segment (i.e., the second data segment) is used as the label data, thereby obtaining the training sample of the model (i.e., the sample driving trajectory data). The training sample is automatically generated from the original driving trajectory data of the vehicle without manual labeling, which greatly improves the generation efficiency of the training sample, thereby improving the training efficiency of the model.

[0105] According to some embodiments, the trajectory prediction model may be a recurrent neural network model. The recurrent neural network model is suitable for processing sequence data, and the vehicle's driving trajectory data is a time series sequence. Therefore, using a recurrent neural network model for trajectory prediction can match the model with the data, thereby improving the accuracy of trajectory prediction.

[0106] According to some embodiments, in order to improve the quality of training samples so as to improve the accuracy of the model, the sample driving trajectory data in step 410 can be obtained by performing a series of preprocessing operations such as trajectory denoising, trajectory smoothing, trajectory thinning, trajectory slicing, etc. on the high-quality original driving trajectory data.

[0107] Trajectory thinning can be achieved, for example, by the Douglas-Peuker algorithm.

[0108] Track slicing is to cut adjacent segments with low correlation in a track into multiple tracks. For example, due to the loss of satellite positioning signals, there may be a long interval between two track points. For example, the collection time of the third and fourth track points in the track differs by half an hour. In this case, the two track points may be far apart. If the two are connected into one track, the track will be messy. Therefore, it is necessary to cut off the connection between the two, so as to split the original track into two tracks. For another example, if the angles of two adjacent track points are very different, such as the direction angle of the previous track point is 90° and the direction angle of the next track point is 270°, then the two should belong to different tracks and need to be sliced.

[0109] According to some embodiments, after the first data segment is obtained in step 410, random noise may be added to the first data segment. Random noise may be used to simulate phenomena such as GPS drift in the real world. By adding random noise to the first data segment, data enhancement of the training sample is achieved, which can improve the generalization and robustness of the model.

[0110] According to some embodiments, the first data segment also includes speed information and direction information of each of the plurality of first trajectory points. By inputting the speed information and direction information into the trajectory prediction model, the trajectory prediction model can learn more abundant information, and perform trajectory prediction by integrating the position information, speed information and direction information, thereby improving the accuracy of trajectory prediction.

[0111] Figure 5 Schematic diagram of sample driving trajectory data according to an embodiment of the present disclosure is shown. Driving trajectory data 510 is obtained by performing pre-processing operations such as trajectory denoising, trajectory smoothing, and trajectory thinning on the original driving trajectory data of the vehicle. Figure 5 As shown, the driving trajectory data 510 includes information such as the position, speed, and direction of 9 trajectory points.

[0112] By splitting the driving trajectory data 510 along the dotted line 540, sample driving trajectory data 520 (i.e., training samples) can be obtained. Figure 5 As shown, the sample driving trajectory data 520 includes a first data segment 522 and a second data segment 524. The first data segment 522 includes information such as the position, speed, and direction of six trajectory points, and the second data segment 524 includes information such as the position, speed, and direction of three trajectory points. In the training process of the trajectory prediction model, the first data segment 522 is the input data, and the second data segment 524 is the label data.

[0113] Furthermore, in order to improve the robustness of the trajectory prediction model and enable the trajectory prediction model to better cope with different scenarios, random noise can be added to the first data segment 522, that is, data enhancement is performed on the training sample 520. The second data segment 524 remains unchanged. Thus, a new first data segment 532 can be obtained, thereby obtaining an enhanced training sample 530.

[0114] According to some embodiments, step 420 includes: acquiring road network topology data, the road network topology data including respective position information of a plurality of road nodes and connection relationships between the plurality of road nodes; determining at least one target node corresponding to the plurality of first trajectory points from the plurality of road nodes based on the respective position information of the plurality of first trajectory points and the plurality of road nodes; and determining the sample road data based on the at least one target node, the sample road data including respective position information of the at least one target node and / or connection relationships between the at least one target node.

[0115] According to the above embodiment, the target node and its connection relationship constitute the local road network where the driving trajectory is located. Using the local road network as sample road data for trajectory prediction can improve the efficiency and accuracy of trajectory prediction.

[0116] The specific implementation of step 420 can refer to the relevant description of steps 222-226 above, which will not be repeated here.

[0117] As described above, the sample road data includes two parts, one part is the location information of the target node, and the other part is the connection relationship between the target nodes. The connection relationship between the target nodes can be represented by an adjacency matrix, for example. According to some embodiments, in step 430, the location information of the target node can be adjusted to a first fixed length by padding or truncation. And, the adjacency matrix is ​​encoded to generate a feature vector of a second fixed length. The encoding can be implemented, for example, by a fully connected layer (FC). The location information of the first fixed length and the feature vector of the second fixed length are concatenated to obtain a road data vector of a fixed length. The road data vector is then input into the trajectory prediction model.

[0118] In step 440, a loss value of the trajectory prediction model is determined based on the predicted trajectory data (predicted value) and the second data segment (true value). According to some embodiments, the loss value of the model may be, for example, a mean square error (MSE) between the predicted trajectory data and the second data segment.

[0119] In step 450 , the parameters of the trajectory prediction model may be adjusted, for example, by a back propagation algorithm.

[0120] Figure 6 A schematic diagram of a training process of a trajectory prediction model according to an embodiment of the present disclosure is shown.

[0121] like Figure 6 As shown, after obtaining the sample driving trajectory data (including the first data segment and the second data segment) and the sample road data, the first data segment and the sample road data are input into the trajectory prediction model 610, and the trajectory prediction model 610 outputs the predicted trajectory data. Subsequently, the loss value (such as MSE loss) of the trajectory prediction model 610 is calculated based on the predicted trajectory data (predicted value) and the second data segment (true value), and then the parameters of the trajectory prediction model 610 are updated based on the loss value. It can be understood that in the model training process, Figure 6 The process shown can be performed multiple times.

[0122] Figure 7 A schematic diagram showing the training and application process of a trajectory prediction model according to an embodiment of the present disclosure is shown.

[0123] like Figure 7 As shown, the training process 710 of the trajectory prediction model includes steps 711-715.

[0124] In step 711, the original trajectory data of the vehicle is preprocessed by noise reduction, smoothing, thinning, slicing, etc. Then the processed trajectory data is split to obtain a first data segment as model input data and a second data segment as real label data. The first data segment and the second data segment constitute sample driving trajectory data, i.e., training samples.

[0125] In step 712, noise disturbance is randomly added to the first data segment to obtain enhanced training samples, thereby generating a training data set.

[0126] In step 713 , the training samples and sample road data are input into the RNN model to train the RNN model.

[0127] In step 714, the performance index of the RNN model is calculated to evaluate its performance. If the performance of the model reaches the expected target, step 715 is executed to end the training process and save the RNN model. The saved RNN model can be put into use. If the model performance does not reach the expected target, step 713 is executed to continue training the RNN model.

[0128] The trajectory prediction model application process 720 includes steps 721 - 723 .

[0129] In step 721, pre-processing such as noise reduction is performed on the trajectory data to be processed.

[0130] In step 722, the preprocessed trajectory data and the corresponding road data are input into the model to obtain the predicted trajectory data output by the model.

[0131] In step 723 , the trajectory data to be processed is corrected (eg, trajectory compensation, trajectory correction, etc.) based on the predicted trajectory data to obtain corrected trajectory data.

[0132] The trajectory prediction method and trajectory prediction model training method of the disclosed embodiments have the following advantages:

[0133] 1. It can achieve better performance in more complex road network conditions. Compared with the traditional HMM algorithm, the neural network can better learn the representation method of hidden states and use hidden states to infer the next trajectory trend. In addition, RNN has the ability to process similar states in the same way. Even if it encounters a situation that has never been seen before, RNN can evaluate which historical state the new state is similar to and make similar processing.

[0134] 2. Automatically generate training data sets. Compared with other algorithms, this model can automatically generate a large number of labeled training data sets from the original trajectory without manual labeling, saving a lot of time and labor costs. In addition, data enhancement strategies are used in the process of generating data, making the trained model more robust and able to better cope with different scenarios.

[0135] 3. When there are multiple possible paths in the trajectory, the neural network can automatically combine the road network data to determine which road the compensated trajectory and the correction trajectory should be mapped to, solving the problem that the traditional trajectory compensation task cannot produce results under multiple possible paths, making the trajectory compensation model more free and able to be used in a wider range of scenarios.

[0136] According to an embodiment of the present disclosure, a trajectory prediction device is also provided. Figure 8 FIG. 8 is a block diagram showing a trajectory prediction device 800 according to an embodiment of the present disclosure. Figure 8 As shown, the device 800 includes:

[0137] The acquisition module 810 is configured to acquire driving trajectory data of the vehicle, wherein the driving trajectory data includes position information of each of a plurality of trajectory points;

[0138] A determination module 820 is configured to determine the road data corresponding to the driving trajectory data based on the position information of each of the plurality of trajectory points; and

[0139] The prediction module 830 is configured to determine predicted trajectory data of the vehicle based on the driving trajectory data and the road data, wherein the predicted trajectory data includes position information of at least one predicted trajectory point.

[0140] According to an embodiment of the present disclosure, the accuracy of trajectory prediction is improved by determining the road conditions near the vehicle's driving trajectory (i.e., "road data") and then combining the vehicle's driving trajectory and road conditions to predict the vehicle's future driving trajectory (i.e., "predicted trajectory data").

[0141] According to some embodiments, the determination module 820 further includes: an acquisition unit configured to acquire road network topology data, the road network topology data including respective position information of a plurality of road nodes and a connection relationship between the plurality of road nodes; a first determination unit configured to determine at least one target node corresponding to the plurality of trajectory points from the plurality of road nodes based on the plurality of trajectory points and the respective position information of the plurality of road nodes; and a second determination unit configured to determine the road data based on the at least one target node, wherein the road data includes respective position information of the at least one target node and / or a connection relationship between the at least one target node.

[0142] According to an embodiment of the present disclosure, a training device for a trajectory prediction model is also provided. Fig. 9 FIG. 9 is a block diagram showing a training device 900 for a trajectory prediction model according to an embodiment of the present disclosure. Fig. 9 As shown, the device 900 includes:

[0143] An acquisition module 910 is configured to acquire sample driving trajectory data, wherein the sample driving trajectory data includes a first data segment and a second data segment, wherein the first data segment includes position information of each of a plurality of first trajectory points, and the second data segment includes position information of each of at least one second trajectory point;

[0144] A first determination module 920 is configured to determine sample road data corresponding to the first data segment based on the position information of each of the plurality of first trajectory points;

[0145] The prediction module 930 is configured to input the first data segment and the sample road data into the trajectory prediction model to obtain predicted trajectory data output by the trajectory prediction model, wherein the predicted trajectory data includes position information of at least one predicted trajectory point;

[0146] A second determination module 940 is configured to determine a loss value of the trajectory prediction model based on the predicted trajectory data and the second data segment; and

[0147] The adjustment module 950 is configured to adjust the parameters of the trajectory prediction model based on the loss value.

[0148] According to the embodiments of the present disclosure, the original driving trajectory data of the vehicle can be split into two segments, the first segment (i.e., the first data segment) is used as the input data of the model, and the second segment (i.e., the second data segment) is used as the label data, so as to obtain the training sample of the model (i.e., the sample driving trajectory data). The training sample is automatically generated from the original driving trajectory data of the vehicle without manual labeling, which greatly improves the generation efficiency of the training sample, thereby improving the training efficiency of the model.

[0149] According to some embodiments, the trajectory prediction model includes a recurrent neural network model.

[0150] It should be understood that Figure 8 The modules or units of the apparatus 800 shown in FIG. 8 can be used in conjunction with the reference Figure 2 The steps in the method 200 described above correspond to each other. Fig. 9 The various modules or units of the apparatus 900 shown in FIG. 9 can be used in conjunction with the reference Figure 4 Thus, the operations, features, and advantages described above for method 200 are also applicable to device 800 and the modules and units included therein, and the operations, features, and advantages described above for method 400 are also applicable to device 900 and the modules and units included therein. For the sake of brevity, some operations, features, and advantages are not described in detail herein.

[0151] Although specific functions are discussed above with reference to specific modules, it should be noted that the functions of the various modules discussed herein can be divided into multiple modules, and / or at least some functions of multiple modules can be combined into a single module. For example, the acquisition module 810 and the determination module 820 described above can be combined into a single module in some embodiments.

[0152] It should also be understood that various techniques may be described herein in the general context of software hardware elements or program modules. Figure 8 , Fig. 9The various modules described can be implemented in hardware or in hardware in combination with software and / or firmware. For example, these modules can be implemented as computer program codes / instructions, which are configured to be executed in one or more processors and stored in a computer-readable storage medium. Alternatively, these modules can be implemented as hardware logic / circuits. For example, in some embodiments, one or more of modules 810-950 can be implemented together in a system on chip (System on Chip, SoC). SoC may include an integrated circuit chip (which includes a processor (e.g., a central processing unit (CPU), a microcontroller, a microprocessor, a digital signal processor (DSP), etc.), a memory, one or more communication interfaces, and / or one or more components in other circuits), and may optionally execute the received program code and / or include embedded firmware to perform functions.

[0153] According to an embodiment of the present disclosure, an electronic device, a readable storage medium and a computer program product are also provided.

[0154] refer to Fig.10 , a block diagram of an electronic device 1000 that can be used as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0155] like Fig.10 As shown, the electronic device 1000 includes a computing unit 1001, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1002 or a computer program loaded from a storage unit 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the device 1000 can also be stored. The computing unit 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0156] Multiple components in the electronic device 1000 are connected to the I / O interface 1005, including: an input unit 1006, an output unit 1007, a storage unit 1008 and a communication unit 1009. The input unit 1006 can be any type of device that can input information to the device 1000. The input unit 1006 can receive input digital or character information and generate key signal input related to user settings and / or function control of the electronic device, and can include but is not limited to a mouse, a keyboard, a touch screen, a trackpad, a trackball, a joystick, a microphone and / or a remote control. The output unit 1007 can be any type of device that can present information, and can include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator and / or a printer. The storage unit 1008 can include but is not limited to a disk and an optical disk. The communication unit 1009 allows the device 1000 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and can include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver and / or a chipset, such as Bluetooth TM devices, 802.11 devices, Wi-Fi devices, WiMAX devices, cellular communication devices, and / or the like.

[0157] The computing unit 1001 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1001 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1001 performs the various methods and processes described above, such as method 200 and method 400. For example, in some embodiments, method 200 and / or method 400 may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 1008. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 1000 via ROM 1002 and / or communication unit 1009. When the computer program is loaded into RAM 1003 and executed by the computing unit 1001, one or more steps of the method 200 and / or method 400 described above may be performed. Alternatively, in other embodiments, the computing unit 1001 may be configured to execute the method 200 and / or the method 400 in any other appropriate manner (eg, by means of firmware).

[0158] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0159] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0160] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0161] To provide interaction with a user, the systems and techniques described herein 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 the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the 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 can be received in any form (including acoustic input, voice input, or tactile input).

[0162] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0163] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0164] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0165] Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but only by the claims after authorization and their equivalent scope. Various elements in the embodiments or examples can be omitted or replaced by their equivalent elements. In addition, each step can be performed in an order different from that described in the present disclosure. Further, the various elements in the embodiments or examples can be combined in various ways. It is important that with the evolution of technology, many elements described herein can be replaced by equivalent elements that appear after the present disclosure.

Claims

1. A trajectory prediction method, include: Acquire driving trajectory data of the vehicle, wherein the driving trajectory data includes position information of respective track points; Acquire road network topology data, wherein the road network topology data includes location information of each of a plurality of road nodes and connection relationships between the plurality of road nodes; Based on the respective position information of the plurality of trajectory points and the plurality of road nodes, determining at least one target node corresponding to the plurality of trajectory points from the plurality of road nodes; Based on the at least one target node, determining road data corresponding to the driving trajectory data, wherein the road data includes position information of each of the at least one target node and a connection relationship between the at least one target node, and the connection relationship between the at least one target node is represented by an adjacency matrix; Filling zeros or truncating the position information of each of the at least one target node to obtain a first feature vector of a first fixed length; Encoding the adjacency matrix using a fully connected layer to obtain a second eigenvector of a second fixed length; Concatenate the first feature vector and the second feature vector to obtain a road data vector; Inputting the driving trajectory data and the road data vector into a trained trajectory prediction model; Acquire predicted trajectory data of the vehicle output by the trajectory prediction model, wherein the predicted trajectory data includes position information of at least one predicted trajectory point; Based on the predicted trajectory data, the driving trajectory data is corrected to obtain optimized driving trajectory data; and Based on the optimized driving trajectory data, the road elements in the electronic map are updated.

2. The method according to claim 1, in, The trajectory prediction model includes a recurrent neural network model.

3. The method according to claim 1 or 2, in, The driving trajectory data also includes speed information and direction information of each of the plurality of trajectory points.

4. The method according to claim 1, in, Based on the predicted trajectory data, correcting the driving trajectory data includes: The driving trajectory data is spliced ​​with the predicted trajectory data.

5. The method according to claim 1, in, Based on the predicted trajectory data, correcting the driving trajectory data includes: Acquire continuous trajectory data of the driving trajectory data, wherein the continuous trajectory data includes position information of each of a plurality of continuous trajectory points, wherein the plurality of continuous trajectory points are located after the plurality of trajectory points, and the number of the plurality of continuous trajectory points is the same as the number of the at least one predicted trajectory point; fusing the continued trajectory data with the predicted trajectory data to obtain fused trajectory data; and The driving trajectory data is spliced ​​with the fused trajectory data.

6. A method for training a trajectory prediction model, wherein the trajectory prediction model is used to implement the trajectory prediction method according to any one of claims 1 to 5, wherein the training method include: Acquire sample driving trajectory data, wherein the sample driving trajectory data includes a first data segment and a second data segment, the first data segment includes position information of each of a plurality of first trajectory points, and the second data segment includes position information of each of at least one second trajectory point; Acquire road network topology data, wherein the road network topology data includes location information of each of a plurality of road nodes and connection relationships between the plurality of road nodes; Based on the respective position information of the plurality of first trajectory points and the plurality of road nodes, determining at least one target node corresponding to the plurality of first trajectory points from the plurality of road nodes; Based on the at least one target node, determine sample road data corresponding to the first data segment, wherein the sample road data includes position information of each of the at least one target node and / or a connection relationship between the at least one target node, and the connection relationship between the at least one target node is represented by an adjacency matrix; Filling zeros or truncating the position information of each of the at least one target node to obtain a first feature vector of a first fixed length; Encoding the adjacency matrix using a fully connected layer to obtain a second eigenvector of a second fixed length; Concatenate the first feature vector and the second feature vector to obtain a road data vector; Inputting the first data segment and the road data vector into the trajectory prediction model to obtain predicted trajectory data output by the trajectory prediction model, wherein the predicted trajectory data includes position information of at least one predicted trajectory point; determining a loss value of the trajectory prediction model based on the predicted trajectory data and the second data segment; and Based on the loss value, parameters of the trajectory prediction model are adjusted.

7. The method according to claim 6, wherein the trajectory prediction model comprises a recurrent neural network model.

8. The method according to claim 6 or 7, in, The first data segment further includes speed information and direction information of each of the plurality of first trajectory points.

9. The method according to claim 6, further comprising: include: Random noise is added to the first data segment.

10. A trajectory prediction device, include: An acquisition module is configured to acquire driving trajectory data of the vehicle, wherein the driving trajectory data includes position information of each of a plurality of trajectory points; Identify modules, including: An acquisition unit is configured to acquire road network topology data, wherein the road network topology data includes location information of each of a plurality of road nodes and connection relationships between the plurality of road nodes; A first determining unit is configured to determine at least one target node corresponding to the plurality of trajectory points from the plurality of road nodes based on respective position information of the plurality of trajectory points and the plurality of road nodes; and A second determining unit is configured to determine road data corresponding to the driving trajectory data based on the at least one target node, wherein the road data includes position information of each of the at least one target node and a connection relationship between the at least one target node, and the connection relationship between the at least one target node is represented by an adjacency matrix; The prediction module is configured as follows: Filling zeros or truncating the position information of each of the at least one target node to obtain a first feature vector of a first fixed length; Encoding the adjacency matrix using a fully connected layer to obtain a second eigenvector of a second fixed length; Concatenate the first feature vector and the second feature vector to obtain a road data vector; Inputting the driving trajectory data and the road data vector into a trained trajectory prediction model; and Acquire predicted trajectory data of the vehicle output by the trajectory prediction model, wherein the predicted trajectory data includes position information of at least one predicted trajectory point; a correction module, configured to correct the driving trajectory data based on the predicted trajectory data to obtain optimized driving trajectory data; and The updating module is configured to update the road elements in the electronic map based on the optimized driving trajectory data.

11. A training device for a trajectory prediction model, wherein the trajectory prediction model is used to implement the trajectory prediction device according to claim 10, wherein the training device include: an acquisition module, configured to acquire sample driving trajectory data, wherein the sample driving trajectory data includes a first data segment and a second data segment, the first data segment includes position information of each of a plurality of first trajectory points, and the second data segment includes position information of each of at least one second trajectory point; The first determination module is configured to: Acquire road network topology data, wherein the road network topology data includes location information of each of a plurality of road nodes and connection relationships between the plurality of road nodes; Based on the respective position information of the plurality of first trajectory points and the plurality of road nodes, determining at least one target node corresponding to the plurality of first trajectory points from the plurality of road nodes; and Based on the at least one target node, determine sample road data corresponding to the first data segment, wherein the sample road data includes position information of each of the at least one target node and / or a connection relationship between the at least one target node, and the connection relationship between the at least one target node is represented by an adjacency matrix; The prediction module is configured as follows: Filling zeros or truncating the position information of each of the at least one target node to obtain a first feature vector of a first fixed length; Encoding the adjacency matrix using a fully connected layer to obtain a second eigenvector of a second fixed length; and Concatenate the first feature vector and the second feature vector to obtain a road data vector; Inputting the first data segment and the road data vector into the trajectory prediction model to obtain predicted trajectory data output by the trajectory prediction model, wherein the predicted trajectory data includes position information of at least one predicted trajectory point; A second determination module is configured to determine a loss value of the trajectory prediction model based on the predicted trajectory data and the second data segment; and An adjustment module is configured to adjust parameters of the trajectory prediction model based on the loss value.

12. The device according to claim 11, in, The trajectory prediction model includes a recurrent neural network model.

13. An electronic device, include: at least one processor; as well as a memory communicatively coupled to the at least one processor; in The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 5.

14. A non-transitory computer-readable storage medium storing computer instructions, in, The computer instructions are used to make a computer execute the method according to any one of claims 1-5.

15. A computer program product comprising a computer program, in, When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.