Trajectory prediction method and device, storage medium, driving system and vehicle

By acquiring and fusing global data and using the trained trajectory prediction model to perform trajectory prediction, the problem of trajectory prediction algorithms relying on single data in the existing technology is solved, the prediction accuracy and safety are improved, and the risk of accidents is reduced.

CN111316286BActive Publication Date: 2024-09-10SZ ZHUOYU TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980005403.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-03-27
Publication Date
2024-09-10
Estimated Expiration
2039-03-27

AI Technical Summary

Technical Problem

Existing trajectory prediction algorithms only rely on the data of a single moving object and cannot consider other moving objects and environmental information from a global perspective, resulting in safety risks such as predicted trajectory intersections and accidents.

Method used

By acquiring and fusing the global semantic data and global trajectory data of the area where the object to be predicted is located, extracting features and using the trained trajectory prediction model for prediction, considering the trajectories of all moving objects in the area, it improves prediction accuracy and safety.

Benefits of technology

It improves the accuracy of trajectory prediction, reduces the probability of accidents, and enhances the safety of path planning and scheduling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111316286B
    Figure CN111316286B
Patent Text Reader

Abstract

Provided are a trajectory prediction method and device, a storage medium, a driving system, and a vehicle. The method obtains global semantic data and global trajectory data of the area where the object to be predicted is located (S202), and then fuses the global semantic data and the global trajectory data to obtain global fusion data (S204), thereby extracting features from the global fusion data to obtain global features (S206), and then using a trained trajectory prediction model to process the global features to obtain a target trajectory of the object to be predicted (S208). The method can realize trajectory prediction of a moving object in combination with global data, has a high prediction accuracy, and reduces the probability of accidents to a certain extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent transportation technology, and in particular to a trajectory prediction method and device, a storage medium, a driving system and a vehicle. Background Art

[0002] With the development of intelligent transportation, the prediction algorithm of the motion trajectory of moving objects has great significance in the field of path planning. By predicting the motion trajectory of moving objects, path planning can be carried out when the possible motion trajectory of the moving object is known, which is helpful to prevent accidents such as collisions.

[0003] The current trajectory prediction algorithm is generally based on the motion data of the moving object itself. The motion model applicable to the moving object is determined according to the category to which the moving object belongs, and the motion model is used to process the motion data of the moving object itself. After that, the regional semantic information is integrated through post-processing to predict the motion trajectory of the object to be predicted.

[0004] The existing trajectory prediction algorithm is based on the motion data of the moving object itself and is unable to perform trajectory prediction from a global perspective. This can easily lead to the intersection of predicted trajectories of different moving objects, and in turn cause accidents such as collisions in the path planning or scheduling based on this, posing a major safety hazard. Summary of the invention

[0005] The embodiments of the present invention provide a trajectory prediction method and device, a storage medium, a driving system and a vehicle, which can realize trajectory prediction of a moving object in combination with global data, have a high prediction accuracy, and reduce the probability of accidents to a certain extent.

[0006] In a first aspect, an embodiment of the present invention provides a trajectory prediction method, comprising:

[0007] Obtain global semantic data and global trajectory data of the area where the object to be predicted is located;

[0008] fusing the global semantic data with the global trajectory data to obtain global fused data;

[0009] Extracting features from the global fusion data to obtain global features;

[0010] The global features are processed using a trained trajectory prediction model to obtain a target trajectory of the object to be predicted.

[0011] In a second aspect, an embodiment of the present invention provides a trajectory prediction device, including:

[0012] An acquisition module is used to acquire global semantic data and global trajectory data of the area where the object to be predicted is located;

[0013] A fusion module, used for fusing the global semantic data with the global trajectory data to obtain global fusion data;

[0014] A feature extraction module, used to extract features from the global fusion data to obtain global features;

[0015] The prediction module is used to process the global features using the trained trajectory prediction model to obtain the target trajectory of the object to be predicted.

[0016] In a third aspect, an embodiment of the present invention provides a trajectory prediction device, including:

[0017] Memory;

[0018] Processor; and

[0019] Computer programs;

[0020] The computer program is stored in the memory and is configured to be executed by the processor to implement the method as described in the first aspect.

[0021] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon.

[0022] The computer program is executed by a processor to implement the method according to the first aspect.

[0023] In a fifth aspect, an embodiment of the present invention provides a driving system, including:

[0024] A trajectory prediction device, used to execute the method according to the first aspect;

[0025] The motion controller is used to control the motion of the controlled object according to the target trajectory.

[0026] In a possible design, the controlled object and the object to be predicted are different objects.

[0027] In a sixth aspect, an embodiment of the present invention provides a vehicle, including:

[0028] The trajectory prediction device as described in the second aspect or the third aspect is used to execute the method as described in the first aspect.

[0029] In a seventh aspect, an embodiment of the present invention provides a vehicle, comprising:

[0030] A driving system as described in the fifth aspect.

[0031] In an eighth aspect, an embodiment of the present invention provides a control device for an unmanned aerial vehicle, comprising:

[0032] A driving system as described in the fifth aspect.

[0033] The technical solution provided by the embodiment of the present invention can obtain the global features of the area by acquiring and processing the global semantic data and the global trajectory data of the area where the object to be predicted is located. Then, the global features can be processed using the trained trajectory prediction model to obtain the target trajectory of the object to be predicted. In other words, the technical solution provided by the embodiment of the present invention starts from the global semantics and the global trajectory. When predicting the trajectory of an object to be predicted, all moving objects in the area are considered, and the global semantic data of the area is combined to realize the trajectory prediction of any moving object in the area. Compared with the prediction method that only considers a single object to be predicted, this solution has a higher prediction accuracy. Moreover, when performing subsequent path planning or scheduling based on this, it can also reduce the probability of accidents to a certain extent and have higher safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 A schematic top view of a trajectory prediction scenario provided by an embodiment of the present invention;

[0035] Figure 2 A schematic diagram of a flow chart of a trajectory prediction method provided by an embodiment of the present invention;

[0036] Figure 3 A schematic diagram of a flow chart of another trajectory prediction method provided by an embodiment of the present invention;

[0037] Figure 4 A schematic diagram of a flow chart of another trajectory prediction method provided by an embodiment of the present invention;

[0038] Figure 5 A schematic diagram of the recurrent unit structure of the recurrent neural network model provided in an embodiment of the present invention;

[0039] Figure 6 A schematic diagram of the model architecture of a recurrent neural network model provided in an embodiment of the present invention;

[0040] Figure 7 A schematic diagram of the model architecture of a long short-term memory network model provided by an embodiment of the present invention;

[0041] Figure 8 A schematic diagram of a flow chart of another trajectory prediction method provided by an embodiment of the present invention;

[0042] Fig. 9 A functional block diagram of a trajectory prediction device provided by an embodiment of the present invention;

[0043] Fig.10 A schematic diagram of the physical structure of a trajectory prediction device provided by an embodiment of the present invention;

[0044] Fig.11 A schematic diagram of the architecture of a driving system provided by an embodiment of the present invention;

[0045] Fig.12 A schematic diagram of a vehicle architecture provided by an embodiment of the present invention;

[0046] Fig.13 A schematic diagram of another vehicle architecture provided by an embodiment of the present invention.

[0047] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0048] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0049] First, the terms involved in the present invention are explained:

[0050] Moving object: refers to a living being or object that can move in a trajectory. The moving object involved in the embodiments of the present invention may include, but is not limited to, at least one of a vehicle, an animal, a person, a robot, and an unmanned aerial vehicle. Among them, the vehicle may be an unmanned vehicle, such as an unmanned ground vehicle (UGV), or a private vehicle or a public transport vehicle in an automatic driving mode.

[0051] Objects to be predicted: one or more moving objects whose target trajectories are to be predicted. The term "multiple" refers to two or more objects. This concept will be discussed later and will not be described in detail.

[0052] Semantic object: refers to the objects in each semantic concept in the region. Please refer to Figure 1 The scene shown in the figure has semantic objects including vehicles, lane lines, and lanes. Figure 1 This is only used as an example. In an actual trajectory prediction scenario, there are many semantic categories of semantic objects, such as trees, obstacles, railings, signs, people, animals, etc. The embodiments of the present invention have no special limitations on the semantic categories of each semantic object.

[0053] Long Short Term Memory (LSTM) model: It is a variant of the Recurrent Neural Network (RNN) model. Compared with the RNN model, LSTM has a longer time-dependent modeling capability.

[0054] The specific application scenario of the technical solution provided by the embodiment of the present invention is: a trajectory prediction scenario for a moving object.

[0055] Furthermore, the technical solution provided by the embodiment of the present invention can also be specifically applied to a path planning scenario. In this case, path planning for one or more moving objects can be implemented based on the predicted trajectory.

[0056] In addition, the technical solution provided by the embodiment of the present invention can also be specifically applied to vehicle scheduling scenarios. For example, scheduling of schedulable vehicles can be achieved by predicting the trajectories of other non-schedulable vehicles or objects.

[0057] As described in the background technology, the existing trajectory prediction method is only for a single moving object. After the category of the moving object is determined, the motion data of the moving object itself is processed through the motion model corresponding to the category, thereby predicting the motion trajectory of the moving object. On the one hand, this prediction method is subject to the limitation of the object category. It is necessary to accurately determine the category of the moving object in order to obtain a more accurate prediction result with the motion model corresponding to the category; on the other hand, this prediction method only relies on the motion data of the moving object itself, and does not conduct a comprehensive analysis from a global perspective in combination with the current motion environment and the motion conditions of other moving objects. This method does not take into account other moving or non-moving objects in the area where the moving object is located. It is very likely that the predicted trajectories of two moving objects of the same category will intersect. Therefore, if path planning or object scheduling is carried out based on this, accidents such as collisions are very likely to occur, which poses a great safety risk.

[0058] Based on this, the technical solution provided by the embodiment of the present invention aims to solve the above technical problems of the prior art, and proposes the following solution: comprehensively consider the global data of the area where the object to be predicted is located, including global semantic data and global trajectory data, and obtain global features based on this, and use the global features as the input of the trajectory prediction model to obtain the target trajectory of the object to be predicted.

[0059] Based on this design, the trajectory prediction method provided in the embodiment of the present invention can be specifically executed in a built-in processor of a moving object or a terminal device held by it, or can also be specifically executed in the cloud or background server.

[0060] For example. In one possible scenario, the first processor of the autonomous driving vehicle can plan the driving route by itself, and the second processor of the autonomous driving vehicle is used to execute the trajectory prediction method provided by the present solution, and is used to input the predicted trajectory into the first built-in processor, so that the first processor can perform subsequent path planning according to the predicted trajectory. The first processor and the second processor can be the same processor, or different processors, for example, one or two processors in an Advanced Driving Assistant System (ADAS); and the first processor and the second processor can be part of the vehicle's master controller, or can be a background main server or a cloud server that controls the driving of the unmanned vehicle.

[0061] The following specific embodiments are used to describe in detail the technical solutions of the present invention and how the technical solutions of the present application solve the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.

[0062] Embodiment 1

[0063] The present invention provides a trajectory prediction method. Figure 2-Figure 4 ,in, Figure 2 A schematic diagram of a trajectory prediction method provided by an embodiment of the present invention is shown. Figure 3 The following is a schematic diagram showing the implementation flow of the trajectory prediction method provided by an embodiment of the present invention in a specific application scenario. Figure 4 for Figure 3 A specific implementation of the process shown.

[0064] like Figure 2 As shown, the method comprises the following steps:

[0065] S202, obtaining global semantic data and global trajectory data of the area where the object to be predicted is located.

[0066] As mentioned above, the object to be predicted is a moving object, which may include but is not limited to at least one of the following: a vehicle, an animal, a person, a robot, and an unmanned aerial vehicle. In addition, the number of the objects to be predicted in the embodiment of the present invention is not particularly limited, and may be one or more.

[0067] The global semantic data is used to describe the semantic categories of each object in the area where the object to be predicted is located. At this time, each moving object or non-moving object is a semantic object with its own semantic category. The global trajectory data is used to describe the historical motion coordinates of each moving object in the area. It can be seen that in a specific implementation, the global trajectory data can include the historical motion coordinates of at least one frame.

[0068] Figure 3 Shown Figure 1 Taking the scenario shown above as an example, this is a schematic diagram of the implementation process of this solution. Figure 3 As shown, the driving scene contains three semantics, namely: vehicle, lane and lane line. At this time, it is necessary to obtain the global semantic data in the scene, that is, the semantic data of each semantic object; and it is also necessary to obtain the global trajectory data of the scene, that is, the trajectory data of each moving object: vehicle 1 (as the object to be predicted), vehicle 2 and vehicle 3.

[0069] It should be noted that Figure 3 This is for illustration only. In a specific implementation scenario, the representation of the global trajectory data and the global semantic data is not limited to a single acquisition method, and can be acquired as a whole data.

[0070] In such Figure 4 In an implementation scenario shown, the trajectory data of each moving object can be realized by an LSTM model, which will be described in detail later.

[0071] S204, fusing the global semantic data with the global trajectory data to obtain global fusion data.

[0072] Specifically, Figure 3 As shown, the fusion module is used to fuse the global semantic data corresponding to each frame with the global trajectory data to obtain the global fusion data of each frame.

[0073] S206, extracting features from the global fusion data to obtain global features.

[0074] like Figure 3 As shown in FIG, the feature extraction module is used to extract global features from the global fusion data. Figure 4 In one implementation scenario shown, this step can be implemented by a convolutional neural network (CNN) model, which will be described in detail later.

[0075] S208, using the trained trajectory prediction model to process the global features to obtain the target trajectory of the object to be predicted.

[0076] The present invention adopts a trained trajectory prediction model to predict the motion trajectory of a moving object. At this time, the input of the trajectory prediction model is a global feature, and the output is the motion trajectory of the moving object.

[0077] Specifically, the trajectory prediction model provided by the embodiment of the present invention may include but is not limited to: at least one of the following: LSTM model, Multi-Layer Perception (MLP); wherein the multi-layer perceptron includes: RNN model, gated recurrent neural network (GRU) model. For example, Figure 4 In the implementation scenario shown, trajectory prediction is achieved through the LSTM model. At this time, Y=LSTM(feature), where Y represents the target trajectory and feature represents the global feature.

[0078] Please refer to Figure 5-7 ,in, Figure 5 The design logic of a recurrent unit in the RNN model is shown. Figure 6 The model architecture diagram of the RNN model is shown. Figure 7 A schematic diagram of the model architecture of the LSTM model is shown.

[0079] As an effective means of temporal modeling, RNN model is more suitable for ordinary neural networks, such as Figure 5 As shown in , the main difference is that the output or intermediate state of the previous frame is used as the input of the current frame to achieve the fusion of historical messages and time sequence relationships. Figure 5 After the loop unit shown in the figure is expanded in time, the following Figure 6 The RNN model shown in Figure 1 is as follows. Figure 6 As shown in Figure 1, the RNN model can realize time series modeling. Therefore, the trajectory prediction step in this scheme can be implemented by the RNN model.

[0080] like Figure 7 As shown in Figure 2, each repeating module in the LSTM model contains four interaction layers. These four interaction layers interact in a special way, so that the output or intermediate state of the previous frame is used as the input of the current frame. Figure 6 Compared with the RNN model shown in the figure, the LSTM model has a better time-dependent modeling capability. In addition, considering that the trajectory prediction has a strong temporal correlation with the historical data of the moving object, the use of the LSTM model to implement trajectory prediction can obtain a trajectory prediction result that is closer to the actual development.

[0081] Through the above-mentioned design, the technical solution provided by the embodiment of the present invention can realize the trajectory prediction of any object to be predicted based on the global data. Compared with the trajectory prediction method based only on the motion data of the object to be predicted, this solution has a higher prediction accuracy. Moreover, when subsequent path planning or scheduling is performed based on this, the probability of accidents can be reduced to a certain extent, and it has higher safety.

[0082] The following, Figure 2 The implementation method of the method shown is described in detail.

[0083] S202 includes the acquisition of two aspects of global data: global semantic data and global trajectory data. The acquisition methods of these two types of global data can refer to Figure 8 The process shown.

[0084] On the one hand, if Figure 8 As shown, the method of obtaining global semantic data may include the following steps:

[0085] S202-12, obtaining a global regional image of the region where the object to be predicted is located.

[0086] The global area image can be an image acquired in real time. The image acquired in real time has higher timeliness, and the global semantic data obtained thereby is more accurate. Specifically, the real-time acquisition method may include but is not limited to: real-time image acquisition through an image acquisition device. Among them, the image acquisition device may be a part of the trajectory prediction device (the execution subject of the trajectory prediction method); or, it has real-time data interaction with the trajectory prediction device. For example, if the trajectory prediction device can be a processor A in the main controller of the vehicle, the image acquisition device can be a camera in the black box of the vehicle, which can directly input the acquired image into the processor A; or, the image acquisition device can be a camera set in the area, such as a camera set on the road or on the roadside. At this time, the processor A can request and receive the global area image in real time from the camera in the area or the background server of the camera in the area.

[0087] In addition to real-time acquisition, global semantic data can also be acquired by calling the collected data. Specifically, in one implementation scenario, a global area image of the area in a high-precision map can be obtained; in another implementation scenario, a global area image of the area that has been collected in other processors or memories can be obtained. Moreover, this implementation method can only obtain environmental information of the area, such as non-real-time data of non-moving objects such as roads, signs, and lane lines, but cannot obtain the movement of moving objects in real-time scenes. Therefore, when implementing this solution in this way, it is only applicable to trajectory prediction for a single object to be predicted, and cannot be combined with the trajectories of other moving objects to achieve comprehensive prediction, and the prediction accuracy is relatively weak.

[0088] It should be noted that the image subsequently processed in the embodiment of the present invention is a top-view image. Therefore, if the image obtained by the aforementioned implementation method is not a top-view image, it is also necessary to perform a top-view projection on the collected image to obtain a top-view image that meets the needs of subsequent processing.

[0089] In a possible design, the overhead view image involved in the embodiment of the present invention may be specifically expressed as a digital orthophoto map (DOM) image.

[0090] In addition, for the convenience of processing, the shape or size of the area where the object to be predicted is located can be further personalized, and the embodiment of the present invention has no special limitation on this. Figure 1 A rectangular area with a fixed length and width is the area where it is located. For example, you can get Figure 1 (or Figure 3 ) is an image of a rectangular area with a length of W and a width of H. For another example, the entire road where the object to be predicted is located can also be used as the area where the object to be predicted is located.

[0091] S202-14, performing semantic recognition on each pixel in the global region image to obtain a semantic category of each pixel.

[0092] In one possible design, semantic recognition of each pixel can be achieved through deep learning. If this method is used, it is necessary to use the preset pixel sample data to perform deep learning on the pixel semantic recognition model before executing this step to obtain a pixel semantic recognition model that meets the application requirements (which can be achieved by defining the loss function). In this way, when executing this step, only the global area image needs to be input into the pixel semantic recognition model, and the output of the pixel semantic recognition model is the semantic category of each pixel.

[0093] In another possible design, the pixel value of each pixel can be used as a basis to compare the pixel value of each pixel with the pixel interval corresponding to each semantic category, so that for any pixel value, the semantic category corresponding to the pixel interval into which the pixel value falls is used as the semantic category corresponding to the pixel. The correspondence between each semantic category and the pixel interval can be preset in a custom manner.

[0094] S202-16, semantically annotating the global region image according to the semantic category of each pixel to obtain the global semantic information.

[0095] Since the semantic category of each pixel has been determined, when executing this step, the global area image can be semantically segmented according to the semantic category of each pixel to obtain multiple semantic objects; thereby, each semantic object is semantically labeled to obtain the global semantic information.

[0096] Semantic annotation is only used to distinguish the semantic categories of each object, and can be annotated in any distinguishable way. For example, different colors can be used to identify each semantic object. Or, Figure 1 (or Figure 3 ), each semantic object can be identified by different background patterns. It can be seen that after identification, semantic objects with the same identification are the same type of semantic objects.

[0097] At this point, it should be noted that in different implementation scenarios, the marking method of other moving objects of the same category as the object to be predicted may be the same as or different from the marking method of the object to be predicted. Figure 1 As shown in FIG. 1 , when the object to be predicted is vehicle 1, the area where the object to be predicted is located also includes moving objects of the same category: vehicle 2 and vehicle 3. At this time, if step S208 is implemented by using the first trajectory prediction model (the first trajectory prediction model is used to predict the target trajectory of the object to be predicted, and the implementation method will be described in detail later), Figure 1 As shown, it is necessary to distinguish and identify vehicle 1 from vehicle 2 and vehicle 3. Vehicle 1 has one identification, and vehicle 2 and vehicle 3 have another identification. Alternatively, if step S208 is implemented by a second trajectory prediction model (the second trajectory prediction model is used to predict the motion trajectory of all moving objects in the area, and the implementation method will be described in detail later), there is no need to distinguish and identify moving objects of the same category, and vehicles 1, vehicle 2 and vehicle 3 can be identified using the same identification method (the same identification method Figure 1 not shown).

[0098] Furthermore, when performing semantic annotation, you can further customize the grid division, each grid can include one or more pixels, and the division method can be implemented according to the preset resolution. Figure 1The global area image shown is divided into square grids with a length of 20 cm. In this way, when performing subsequent semantic annotation, only the grid needs to be annotated. When the grid contains multiple pixels, the implementation method of dividing the grid is conducive to reducing the amount of marking and improving processing efficiency.

[0099] In addition to the aforementioned implementations, Figure 8 The steps S202-14 and S202-16 can also be implemented by a neural network model. That is, before executing S202-14, a semantic recognition model is trained, so that the global region image obtained in step S202-12 is input into the semantic recognition model, and the output of the semantic recognition model is the global region image labeled with the semantic category, thus obtaining the global semantic data.

[0100] There is no special limitation on the categories of the aforementioned semantic recognition models and pixel semantic recognition models. They can be implemented using CNN models or other neural network models. The sample data of the two models need to be labeled and designed differently according to the input and output of the models, which will not be elaborated here.

[0101] On the other hand, Figure 8 As shown, the method of obtaining global trajectory data may include the following steps:

[0102] S202-22, obtaining a trajectory point set of each moving object in the area where the object to be predicted is located, wherein the trajectory point set is formed by a collection of coordinate points of the moving object in a time series order.

[0103] This step is used to obtain the trajectory point set of each moving object in the current area, where each trajectory point set is composed of multiple coordinate points of the moving object. For the convenience of processing, the coordinate points of each moving object can be converted to coordinate points in the same coordinate system. For example, the coordinate points of each trajectory point set can be converted to Figure 1 The coordinate points in the rectangular coordinate system formed by the two right-angled sides of the rectangular area shown in the figure are expressed as (X, Y), and the trajectory point set of each moving object can be expressed as {(X i , Y i )}, where i is used to represent the temporal order of coordinate points.

[0104] Specifically, in a specific implementation, the coordinate point set can be formed by obtaining the coordinate points of each moving object in a time interval with the current moment as the end point. The length of the time interval can be preset as needed, for example, the trajectory point set of each moving object within 3 seconds before the current moment can be obtained.

[0105] It should be noted that in this step, the trajectory point set can be actively monitored by the execution subject, or it can be obtained by requesting data from other processors or acquisition devices. For example, if the execution subject is processor A in the main controller of vehicle 1, the coordinate points of vehicle 1 can be collected by its own locator, such as GPS, and the locator of vehicle 1 sends the collected coordinate data to processor A, which performs coordinate conversion to obtain the trajectory point set of vehicle 1; and the trajectory point sets of other vehicles can be obtained by requesting other processors. For example, if there is communication with other vehicles, their trajectory point sets can be obtained from other vehicles respectively; for example, the trajectory point sets of other vehicles can be obtained from the road surface monitor in the area; in addition, the trajectory point sets of other vehicles can also be calculated by collecting images of other vehicles and calculating the distance from themselves. There can be many implementation methods, which will not be repeated.

[0106] In addition, the data source (or direct acquisition source) of the trajectory point set may be different from the data source (or direct acquisition source) of the global area image in the aforementioned S202 - 12 .

[0107] S202-24, encoding the trajectory point set of each moving object to obtain the trajectory features of each moving object.

[0108] This step can also be implemented by a neural network model, where the trajectory point set of each moving object obtained in S202-22 (for example, the trajectory point set of each moving object within 3 seconds) is input into a coding model (a trained neural network model, for example, Figure 4 The LSTM model shown in FIG. 1 ), the output of the encoding model is the trajectory feature of each moving object (encoder).

[0109] Specifically, for any moving object, its trajectory characteristics can be expressed as: encoder = LSTM{(X i , Y i )}. The length of the trajectory feature (encoder) can be assumed to be C, and the value of C is generally a preset empirical value.

[0110] S202-26: construct a trajectory tensor according to the trajectory features of each moving object to serve as the global trajectory data.

[0111] Based on the trajectory features of each moving object obtained in step S202-24, this step can construct a trajectory tensor (tensor) with a size of C*H*W, and store the trajectory features (encoder) of each moving object in the tensor. Specifically, for any moving object, the encoder of the moving object is stored in the center position of the moving object. In a possible design, Figure 1 As shown, the tensor is divided into grids. In this way, the encoder of the moving object is stored in the grid corresponding to the grid in the tensor where the center position of the moving object is located.

[0112] Through Figure 8 The implementation shown can realize the acquisition of global semantic data and global trajectory data. In the implementation described above, the global semantic data can be expressed as a W*H image, and the global trajectory data can be expressed as a tensor of size C*H*W. Therefore, when executing the fusion step described in S204, the two can be fused into a fused tensor of size (C+1)*H*W. The fused tensor can be specifically expressed as: tensor((C+1)*H*W).

[0113] Based on the global fusion data obtained in the above steps, it is only necessary to perform feature extraction on the global fusion data to obtain the global features including the object to be predicted. In specific implementation, it can also be implemented through a neural network model. That is, the fusion information is processed using a trained feature extraction model to obtain the global features. Among them, the feature extraction model involved in the embodiment of the present invention at least includes: Figure 4 The Convolutional Neural Networks (CNN) model shown in FIG. Similar to the aforementioned method of using a neural network model to implement data processing, it is necessary to train the CNN model using feature extraction samples before executing this step. The model training process will not be described in detail.

[0114] Similarly, before executing S208, it is also necessary to complete the training and learning of the trajectory prediction model. In a specific implementation scenario, the training of the trajectory prediction model (and the neural network model involved in the aforementioned implementation methods) is generally completed before executing this solution, so as to realize trajectory prediction in real time and efficiently. This implementation method has high real-time performance, which is conducive to realizing trajectory prediction in real time, and then realizing path planning or scheduling in near real time.

[0115] When the trajectory prediction model is specifically implemented for training, a first trajectory prediction model can be trained to predict a single moving object (the object to be predicted) based on global features. For the object to be predicted, this single prediction method has faster processing efficiency, which is beneficial for path planning and scheduling in real-time scenarios.

[0116] Alternatively, a second trajectory prediction model can be trained to predict all moving objects contained in the area based on global features. When the second trajectory prediction model is used to process global features, the global features are input into the second trajectory prediction model, the motion trajectories of all moving objects in the area output by the second trajectory prediction model are obtained, and the motion trajectory of the object to be predicted among all the moving objects is used as the target trajectory. This global prediction method can output the motion trajectories of all moving objects in the area at one time, which is conducive to the realization of global scheduling, and is also conducive to reducing the probability of accidents during scheduling or path planning, thereby improving safety.

[0117] In addition, a third trajectory prediction model for multiple (not all) moving objects contained in the prediction area based on the global features may also be trained. The model training method and the implementation method of S208 are the same as above and will not be described in detail.

[0118] In summary, based on the different designs of the trained trajectory prediction models, the technical solution provided by the embodiments of the present invention can not only realize trajectory prediction for a single moving object, but also realize trajectory prediction for multiple moving objects. Moreover, the trajectory prediction model as described above has no dependence on the object category. Through the above-mentioned trained trajectory prediction model, trajectory prediction for any category of moving objects can be realized, which has higher flexibility and can also be applied to trajectory prediction in scenes with multiple categories of objects.

[0119] In addition, in some special implementation scenarios, it is also possible to train the corresponding trajectory prediction models for each type of moving object separately, as in the existing implementation method. That is, the technical solution provided by the embodiment of the present invention can also realize personalized prediction for each category of moving objects. Among them, when training the trajectory prediction models for each type of moving object, the sample data is the relevant data of the object of that category.

[0120] As mentioned above, after the target trajectory of the object to be predicted is obtained through the above-mentioned implementation methods, the target trajectory can be used for further processing.

[0121] In a possible design, motion planning can be performed for the object to be predicted based on the target trajectory, that is, further path planning can be implemented based on the predicted trajectory of the object to be predicted.

[0122] In another possible design, motion planning can be performed for other moving objects based on the target trajectory. That is, in the process of path planning for one or more other moving objects, a route can be planned based on the predicted trajectory of the object to be predicted to avoid collision or other safety accidents with the object to be predicted.

[0123] Then, the moving object is dispatched according to the planned moving path.

[0124] It is to be understood that some or all of the steps or operations in the above embodiments are merely examples, and the present application embodiments may also perform other operations or variations of various operations. In addition, the various steps may be performed in different orders presented in the above embodiments, and it is possible that not all of the operations in the above embodiments need to be performed.

[0125] Embodiment 2

[0126] Based on the trajectory prediction method provided in the first embodiment above, the present invention further provides a device embodiment for implementing each step and method in the above method embodiment.

[0127] The present invention provides a trajectory prediction device, please refer to Fig. 9 , the trajectory prediction device 600 comprises:

[0128] An acquisition module 61 is used to acquire global semantic data and global trajectory data of the area where the object to be predicted is located;

[0129] A fusion module 62, used for fusing the global semantic data with the global trajectory data to obtain global fusion data;

[0130] A feature extraction module 63 is used to extract features from the global fusion data to obtain global features;

[0131] The prediction module 64 is used to process the global features using the trained trajectory prediction model to obtain the target trajectory of the object to be predicted.

[0132] In a possible design, the acquisition module 61 is specifically used to:

[0133] Acquire a global area image of the area where the object to be predicted is located;

[0134] Performing semantic recognition on each pixel in the global region image to obtain a semantic category of each pixel;

[0135] According to the semantic category of each pixel, the global region image is semantically annotated to obtain the global semantic information.

[0136] The acquisition module 61 is further specifically used for:

[0137] According to the semantic category of each pixel, the global region image is semantically segmented to obtain a plurality of semantic objects;

[0138] Semantic annotation is performed on each semantic object to obtain the global semantic information.

[0139] The global area image involved in the embodiment of the present invention is a digital orthophoto DOM image.

[0140] In another possible design, the acquisition module 61 is specifically used for:

[0141] Acquire a trajectory point set of each moving object in the area where the object to be predicted is located, wherein the trajectory point set is formed by a collection of coordinate points of the moving object in a time series order;

[0142] Encoding the trajectory point set of each moving object to obtain the trajectory feature of each moving object;

[0143] According to the trajectory features of each moving object, a trajectory tensor is constructed to serve as the global trajectory data.

[0144] In a possible design, the fusion module 63 is specifically used for:

[0145] The fusion information is processed using a trained feature extraction model to obtain the global feature.

[0146] Among them, the feature extraction model involved in the embodiment of the present invention at least includes: a convolutional neural network CNN model.

[0147] The trajectory prediction model involved in the embodiment of the present invention includes at least one of the following: a long short-term memory network LSTM model, a multi-layer perceptron MLP;

[0148] The multi-layer perceptron includes a recurrent neural network (RNN) model and a gated recurrent unit (GRU) model.

[0149] In a possible design, the trajectory prediction model is a first trajectory prediction model, and the first trajectory prediction model is used to predict a target trajectory of the object to be predicted.

[0150] In another possible design, the trajectory prediction model is a second trajectory prediction model, and the second trajectory prediction model is used to predict the motion trajectories of all moving objects in the area; in this case, the prediction module 64 is specifically used to:

[0151] The global feature is input into the second trajectory prediction model, the motion trajectories of all moving objects in the area output by the second trajectory prediction model are obtained, and the motion trajectory of the object to be predicted among all the moving objects is used as the target trajectory.

[0152] In the embodiment of the present invention, the object to be predicted includes at least one of the following: a vehicle, an animal, a person, a robot, and an unmanned aerial vehicle.

[0153] In addition, in one or possible designs, the trajectory prediction device 600 may also include:

[0154] Planning Module( Fig. 9 (not shown) for performing motion planning for the object to be predicted according to the target trajectory.

[0155] Fig. 9 The trajectory prediction device 600 of the illustrated embodiment can be used to execute the technical solution of the above-mentioned method embodiment. Its implementation principle and technical effects can be further referred to the relevant description in the method embodiment. Optionally, the trajectory prediction device 600 can be a terminal device or a background server, etc.

[0156] It should be understood that the above Fig. 9 The division of the various modules of the trajectory prediction device 600 shown is only a division of logical functions. In actual implementation, they can be fully or partially integrated into a physical entity, or they can be physically separated. And these modules can all be implemented in the form of software calling through processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in the form of hardware. For example, the prediction module 64 can be a separate processing element, or it can be integrated in the trajectory prediction device 600, such as a chip of the terminal. In addition, it can also be stored in the memory of the trajectory prediction device 600 in the form of a program, and called and executed by a processing element of the trajectory prediction device 600. The implementation of other modules is similar. In addition, all or part of these modules can be integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.

[0157] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more digital singnal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a certain module above is implemented in the form of a processing element scheduler, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call a program. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0158] In addition, the present invention provides a trajectory prediction device, please refer to Fig.10 , the trajectory prediction device 600 comprises:

[0159] Memory 610;

[0160] Processor 620; and

[0161] Computer programs;

[0162] The computer program is stored in the memory 610 and is configured to be executed by the processor 620 to implement the method described in the above embodiment.

[0163] The number of processors 620 in the trajectory prediction device 600 may be one or more, and the processor 620 may also be called a processing unit, which may implement certain control functions. The processor 620 may be a general-purpose processor or a dedicated processor, etc. In an optional design, the processor 620 may also store instructions, which may be executed by the processor 620, so that the trajectory prediction device 600 performs the trajectory prediction method described in the above method embodiment.

[0164] In yet another possible design, the trajectory prediction device 600 may include a circuit, which may implement the functions of sending, receiving, or communicating in the aforementioned method embodiments.

[0165] Optionally, the number of memories 610 in the trajectory prediction device 600 may be one or more, and instructions or intermediate data are stored in the memory 610, and the instructions can be executed on the processor 620, so that the trajectory prediction device 600 performs the method described in the above method embodiment. Optionally, other relevant data may also be stored in the memory 610. Optionally, instructions and / or data may also be stored in the processor 620. The processor 620 and the memory 610 may be provided separately or integrated together.

[0166] In addition, if Fig.10 As shown, a transceiver 630 is also provided in the trajectory prediction device 600, wherein the transceiver 630 can be called a transceiver unit, a transceiver, a transceiver circuit, or a transceiver, etc., and is used for data transmission or communication with a test device or other terminal device, which will not be repeated here.

[0167] like Fig.10 As shown, the memory 610, the processor 620 and the transceiver 630 are connected and communicated via a bus.

[0168] If the trajectory prediction device 600 is used to implement the corresponding Figure 2 When the method is used, for example, the global semantic data and the global trajectory data can be obtained by the transceiver 630. The processor 620 is used to complete the corresponding determination or control operation, and optionally, the corresponding instructions can be stored in the memory 610. The specific processing method of each component can refer to the relevant description of the above embodiment.

[0169] In addition, an embodiment of the present invention provides a readable storage medium on which a computer program is stored. The computer program is executed by a processor to implement the method described in the first embodiment.

[0170] In addition, the present invention provides a driving system, please refer to Fig.11 , the driving system 800 includes:

[0171] A trajectory prediction device 600, configured to execute the method described in any implementation manner in the first embodiment;

[0172] The motion controller 810 is used to control the motion of the controlled object according to the target trajectory obtained by the trajectory prediction device.

[0173] The controlled object and the object to be predicted are the same object. For example, in a possible design, in a scenario where the vehicle predicts its own trajectory and plans its route, the motion controller can plan its own driving route based on its own target trajectory predicted by the trajectory prediction device 600; and, further, can realize automatic movement of the controlled object, that is, automatic driving.

[0174] In addition, the controlled object and the object to be predicted can be different objects. Taking the above scenario as an example, the vehicle can predict the trajectory of other vehicles that are relatively close to itself on the road, so that when executing its own motion control, it can try to avoid collisions with other vehicles or moving obstacles (vehicles, people, animals, etc.), so as to reduce the probability of safety accidents and improve safety.

[0175] In another specific implementation scenario, the motion controller 810 may also output the target trajectory obtained by the trajectory prediction device 600, so that the user can use the target trajectory as a reference when driving or controlling the movement of the controlled object. In particular, in a scene with multiple objects, by predicting the target trajectory of multiple other objects to be predicted, it is more conducive to improving the control safety in the scene with multiple objects.

[0176] Specifically, the controlled object may include but is not limited to at least one of the following: a vehicle, an animal, a person, a robot, and an unmanned aerial vehicle. In addition, in the embodiment of the present invention, there is no particular limitation on the number of controlled objects, which may be one or more. For example, the motion controller may be a driving controller of a vehicle, or a flight controller of an unmanned aerial vehicle, etc., which will not be described in detail.

[0177] In addition, an embodiment of the present invention provides a vehicle.

[0178] Please refer to Fig.12 , the vehicle 900 comprises:

[0179] The trajectory prediction device 600 is used to execute the method described in any implementation manner in the first embodiment.

[0180] Or, if Fig.13 As shown, the vehicle 900 includes:

[0181] like Fig.11 Driving system 800 is shown.

[0182] In addition, an embodiment of the present invention also provides a control device for an unmanned aerial vehicle.

[0183] In one possible design, the control device of the unmanned aerial vehicle includes:

[0184] The trajectory prediction device 600 is used to execute the method described in any implementation manner in the first embodiment.

[0185] In another design, the control device of the unmanned aerial vehicle includes:

[0186] Driving system 800.

[0187] Specifically, the UAV and the control device of the UAV may be designed independently or in combination (the control device is disposed inside the UAV), and this is not particularly limited in the embodiments of the present invention.

[0188] It can be seen that the control devices of vehicles and unmanned aerial vehicles are controlled objects that can carry the aforementioned trajectory prediction device. As mentioned above, in addition to this, they also further include robots or machine toys, etc., which will not be repeated here.

[0189] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., various media that can store program codes.

[0190] Since each module in this embodiment can execute the method shown in the first embodiment, for the parts not described in detail in this embodiment, reference may be made to the relevant description of the first embodiment.

[0191] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A trajectory prediction method, characterized in that: include: Obtain global semantic data and global trajectory data of the area where the object to be predicted is located; The global trajectory data includes coordinate data or trajectory tensors for describing the historical motion coordinates of each moving object in the area where the object to be predicted is located; fusing the global semantic data with the global trajectory data to obtain global fused data; Extracting features from the global fusion data to obtain global features; Processing the global features using the trained trajectory prediction model to obtain the target trajectory of the object to be predicted; The acquisition of the global semantic data includes: A global regional image of the area where the object to be predicted is located is obtained, and semantic recognition is performed on each pixel in the global regional image. Based on the pixel value of each pixel, the pixel value of each pixel is compared with the pixel interval corresponding to each semantic category, and the semantic category corresponding to the pixel interval in which the pixel value falls is used as the semantic category corresponding to the pixel. According to the semantic categories of each pixel, the global regional image is semantically annotated to obtain the global semantic data.

2. The method according to claim 1, characterized in that The step of semantically labeling the global region image according to the semantic category of each pixel to obtain the global semantic data includes: According to the semantic category of each pixel, the global region image is semantically segmented to obtain a plurality of semantic objects; Semantic annotation is performed on each semantic object to obtain the global semantic data.

3. The method according to claim 1 or 2, characterized in that: The global area image is a digital orthophoto DOM image.

4. The method according to claim 1, characterized in that: The acquisition of the global trajectory data includes: Acquire a trajectory point set of each moving object in the area where the object to be predicted is located, wherein the trajectory point set is formed by a collection of coordinate points of the moving object in a time series order; Encoding the trajectory point set of each moving object to obtain the trajectory feature of each moving object; According to the trajectory features of each moving object, a trajectory tensor is constructed to serve as the global trajectory data.

5. The method according to any one of claims 1, 2 and 4, characterized in that: The extracting features from the global fusion data to obtain global features includes: The trained feature extraction model is used to process the fusion information to obtain the global feature.

6. The method according to claim 5, characterized in that The feature extraction model at least includes: a convolutional neural network (CNN) model.

7. The method according to claim 1, characterized in that The trajectory prediction model includes at least one of the following: a long short-term memory network LSTM model, a multi-layer perceptron MLP; Wherein, the multilayer perceptron includes: a recurrent neural network RNN ​​model or a gated recurrent unit GRU model.

8. The method according to claim 1 or 7, characterized in that: The trajectory prediction model is a first trajectory prediction model, and the first trajectory prediction model is used to predict the target trajectory of the object to be predicted.

9. The method according to claim 1 or 7, characterized in that: The trajectory prediction model is a second trajectory prediction model, and the second trajectory prediction model is used to predict the motion trajectories of all moving objects in the area; The using the trained trajectory prediction model to process the global features to obtain the target trajectory of the object to be predicted includes: The global feature is input into the second trajectory prediction model, the motion trajectories of all moving objects in the area output by the second trajectory prediction model are obtained, and the motion trajectory of the object to be predicted among all the moving objects is used as the target trajectory.

10. The method according to claim 1, characterized in that The object to be predicted includes at least one of the following: a vehicle, an animal, a person, a robot, and an unmanned aerial vehicle.

11. The method according to claim 1, characterized in that: The method further comprises: According to the target trajectory, motion planning is performed for the object to be predicted.

12. A trajectory prediction device, characterized in that: include: An acquisition module is used to acquire global semantic data and global trajectory data of the area where the object to be predicted is located; The global trajectory data includes coordinate data or trajectory tensors for describing the historical motion coordinates of each moving object in the area where the object to be predicted is located; A fusion module, used for fusing the global semantic data with the global trajectory data to obtain global fusion data; A feature extraction module, used to extract features from the global fusion data to obtain global features; A prediction module, used to process the global features using a trained trajectory prediction model to obtain a target trajectory of the object to be predicted; The acquisition of the global semantic data includes: A global regional image of the area where the object to be predicted is located is obtained, and semantic recognition is performed on each pixel in the global regional image. Based on the pixel value of each pixel, the pixel value of each pixel is compared with the pixel interval corresponding to each semantic category, and the semantic category corresponding to the pixel interval in which the pixel value falls is used as the semantic category corresponding to the pixel. According to the semantic categories of each pixel, the global regional image is semantically annotated to obtain the global semantic data.

13. A trajectory prediction device, characterized in that: include: Memory; processor; as well as Computer programs; The computer program is stored in the memory and is configured to be executed by the processor to implement the method according to any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: A computer program is stored thereon, The computer program is executed by a processor to implement the method according to any one of claims 1 to 11.

15. A driving system, characterized in that: include: A trajectory prediction device, configured to execute the method according to any one of claims 1 to 11; A motion controller is used to control the motion of a controlled object according to the target trajectory obtained by the trajectory prediction device.

16. A vehicle, characterized in that: include: A driving system as claimed in claim 15.