A method and device for predicting vehicle trajectory at an intersection
By using the cross-attention mechanism in the encoding-decoding model to fuse the high-dimensional features of vehicles and exit lanes, the problem of poor trajectory prediction in complex intersection scenarios with the existing technology is solved, the prediction accuracy is improved, and the autonomous driving vehicle is ensured to Safe operation at complex intersections.
Patent Information
- Application Number
- CN202210667289.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-13
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-06-13
AI Technical Summary
Existing trajectory prediction methods have poor prediction results in complex intersection scenarios and cannot effectively consider the randomness and diversity of vehicle behaviors at intersections, resulting in insufficient prediction accuracy.
The cross-attention mechanism is used to fuse the high-dimensional features of the vehicle with the high-dimensional features of the exit lane. Trajectory prediction is performed through the encoding-decoding model framework. The impact of different lanes and other vehicles on the predicted vehicle trajectory is considered to improve the prediction accuracy.
It improves the accuracy of vehicle trajectory prediction in intersection scenarios, allowing autonomous vehicles to drive more focused and safely in complex intersection scenarios.
Smart Images

Figure CN115050184B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of autonomous driving technology, and in particular to a method and device for predicting vehicle trajectories at intersections. Background Art
[0002] Trajectory prediction technology, that is, predicting the driving trajectory of road traffic participants in the future, is one of the important technologies to ensure the safety and comfort of autonomous driving. For example, predicting the trajectory of vehicles at intersections. At intersections, the traffic environment is relatively complex, and vehicles are not constrained by lane lines and have a certain degree of randomness. Therefore, traffic accidents occur frequently at intersections. In view of this, trajectory prediction of vehicles at intersections is a crucial part of ensuring driving safety.
[0003] Since the existing trajectory prediction method does not distinguish between intersection and non-intersection scenarios, the implementation of this method is heavily dependent on lane lines. For complex intersection traffic scenarios, the trajectory prediction results of this method are poor. Summary of the invention
[0004] In view of the above situation, the present invention provides a method and device for predicting vehicle trajectories at intersections, so as to effectively predict the driving trajectories of vehicles in complex intersection scenarios and improve the accuracy of trajectory prediction.
[0005] In a first aspect, this specification provides a method for predicting vehicle trajectories at an intersection, comprising:
[0006] Inputting the exit lane information into a first encoder to obtain high-dimensional features of a plurality of exit lanes;
[0007] Input the intersection vehicle information into the second encoder to obtain the high-dimensional features of the predicted vehicle and the high-dimensional features of other vehicles;
[0008] Based on a cross attention mechanism, the high-dimensional features of the predicted vehicle and the high-dimensional features of other vehicles are fused to obtain vehicle fusion features;
[0009] Based on the cross attention mechanism, the vehicle fusion feature and the high-dimensional features of the plurality of exit lanes are fused to obtain a vehicle lane fusion feature;
[0010] Selecting a plurality of target exit lanes from the plurality of exit lanes based on the high-dimensional features of the predicted vehicle and the high-dimensional features of the plurality of exit lanes;
[0011] The high-dimensional features of the predicted vehicle, the vehicle lane fusion features and the high-dimensional features of each of the target exit lanes are input into a decoder to obtain the trajectory of the predicted vehicle.
[0012] In a second aspect, an embodiment of the present specification provides a vehicle trajectory prediction device at an intersection, comprising:
[0013] The encoding module is configured to input the exit lane information into a first encoder to obtain high-dimensional features of a plurality of exit lanes; input the intersection vehicle information into a second encoder to obtain high-dimensional features of the predicted vehicle and high-dimensional features of other vehicles;
[0014] A cross attention module is configured to fuse the high-dimensional features of the predicted vehicle and the high-dimensional features of other vehicles based on a cross attention mechanism to obtain a vehicle fusion feature; and fuse the vehicle fusion feature and the high-dimensional features of the plurality of exit lanes based on the cross attention mechanism to obtain a vehicle lane fusion feature;
[0015] A selection module configured to select a plurality of target exit lanes from the plurality of exit lanes based on the high-dimensional features of the predicted vehicle and the high-dimensional features of the plurality of exit lanes;
[0016] The decoding module is configured to input the high-dimensional features of the predicted vehicle, the vehicle lane fusion features and the high-dimensional features of each of the target exit lanes into a decoder to obtain the trajectory of the predicted vehicle.
[0017] In a third aspect, an embodiment of the present specification provides an electronic device, including:
[0018] one or more processors;
[0019] a storage device for storing one or more programs,
[0020] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any of the above embodiments.
[0021] In a fourth aspect, an embodiment of the present invention provides a computer-readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method described in any of the above embodiments.
[0022] One embodiment of the above invention has the following advantages or beneficial effects: the present invention uses the cross-attention mechanism twice, which can make the autonomous driving vehicle more focused and effective in accurately predicting the vehicle's driving trajectory based on the main information of the exit lane and the intersection vehicle. The first time, based on the cross-attention mechanism, the high-dimensional features of the predicted vehicle and the high-dimensional features of other vehicles are fused to obtain the vehicle fusion features, which can distinguish the degree of influence of other vehicles on the predicted vehicle in the intersection scene; the second time, based on the cross-attention mechanism, the vehicle fusion features and the high-dimensional features of several exit lanes are fused to obtain the vehicle lane fusion features, which can consider the influence of different lanes on the vehicle in the prediction process. The embodiment of the present invention inputs the high-dimensional features of the predicted vehicle, the vehicle lane fusion features and the high-dimensional features of the target exit lane into the decoder, taking into account the influence of three different dimensions of features on the vehicle trajectory, which can further improve the accuracy of trajectory prediction in the intersection scene. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments, which constitute a part of the present invention. The schematic embodiments of the present invention and their descriptions explain the present invention and do not constitute improper limitations on the present invention. In the drawings:
[0024] Figure 1 A flow chart of a method for predicting vehicle trajectories at intersections provided by one embodiment of the present invention;
[0025] Figure 2 A flow chart of a method for predicting vehicle trajectories at intersections provided by one embodiment of the present invention;
[0026] Figure 3 A schematic diagram of a vehicle trajectory prediction device for an intersection provided by an embodiment of the present invention;
[0027] Figure 4 The figure is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0028] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention 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 and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0029] The road conditions at intersections are complex. Although traffic lights, stop signs, lane lines, etc. can effectively solve traffic flow, their performance in terms of road safety and traffic efficiency is still unsatisfactory. At intersections, intersection vehicle prediction has the following difficulties:
[0030] (1) There are no lane line constraints at the intersection, and the vehicle behavior intentions are diverse;
[0031] (2) The shapes of intersections vary, from standard cross-shaped to various irregular shapes;
[0032] (3) The behavior of vehicles at intersections is highly random.
[0033] The existing trajectory prediction methods mainly rely on lane lines to predict vehicle trajectories. In view of the above difficulties at intersections, the existing trajectory prediction cannot achieve accurate prediction.
[0034] In view of this, according to Figure 1 This specification provides a method for predicting vehicle trajectories at an intersection, comprising:
[0035] Step 100, inputting exit lane information into a first encoder to obtain high-dimensional features of a plurality of exit lanes;
[0036] Step 101, input the intersection vehicle information into a second encoder to obtain high-dimensional features of the predicted vehicle and high-dimensional features of other vehicles;
[0037] In this specification, the intersection refers to the place where the road forks, that is, the part where two or more roads intersect at the same plane, also known as the intersection. According to the direction of vehicle travel, the lane entering the intersection is called the entrance lane, and the lane leaving the intersection is called the exit lane, referred to as the entrance and exit.
[0038] Intersections include but are not limited to crossroads, T-intersections, and Y-intersections.
[0039] High-dimensional features are a more structured and complex feature representation method composed of low-dimensional features. For example, in this manual, low-dimensional features represent the shape, size, type and other information of the lane line of the exit lane, as well as the size, color, shape and other information of the vehicle at the intersection. The encoder then combines the above low-dimensional features to obtain a high-dimensional feature vector. Since high-dimensional features contain richer information and effectively reduce information redundancy, they are conducive to improving the accuracy of trajectory prediction.
[0040] Step 102, fusing the high-dimensional features of the predicted vehicle and the high-dimensional features of other vehicles based on a cross-attention mechanism to obtain a vehicle fusion feature;
[0041] Step 103, fusing the vehicle fusion feature and the high-dimensional features of several exit lanes based on a cross attention mechanism to obtain a vehicle lane fusion feature;
[0042] Step 104, selecting a plurality of target exit lanes from the plurality of exit lanes based on the high-dimensional features of the predicted vehicle and the high-dimensional features of the plurality of exit lanes;
[0043] Among them, selecting several target exit lanes from several exit lanes is to obtain exit lanes with a higher matching degree with the predicted vehicle. There can be one or more matching lanes, which can be set according to actual needs.
[0044] Step 105 , the high-dimensional features of the predicted vehicle, the vehicle lane fusion features, and the high-dimensional features of each target exit lane are input into a decoder to obtain the trajectory of the predicted vehicle.
[0045] The first encoder, the second encoder and the decoder are essentially a neural network. The first encoder and the second encoder are used to encode the input sequence into a vector sequence, and the decoder is used to decode the generated vector sequence into an output sequence.
[0046] In view of the problem that the existing trajectory prediction method relying on lane lines cannot effectively pay attention to complex intersection situations and its trajectory prediction effect is poor, this specification proposes a method for predicting vehicle trajectory at an intersection. The method is based on the framework of the encoding-decoding model. First, the high-dimensional features of several exit lanes, as well as the high-dimensional features of the predicted vehicle and the high-dimensional features of other vehicles are obtained according to the vehicle information and exit lane information in the intersection scene, so as to obtain more comprehensive and effective information in the complex intersection scene; then, based on two cross-attention mechanisms, one is to distinguish the degree of influence of other vehicles on the predicted vehicle in the intersection scene, and the other is to consider the influence of different lanes on the vehicle in the prediction process; finally, the high-dimensional features of the predicted vehicle, the vehicle lane fusion features and the high-dimensional features of the target exit lane are input into the decoder, considering the influence of three different dimensions of features on the vehicle trajectory, which can further improve the accuracy of trajectory prediction in the intersection scene. The method uses the cross-attention mechanism to make the autonomous driving vehicle more focused and effectively obtain important information, improve the accuracy of the vehicle's driving trajectory prediction, and make the autonomous driving vehicle run more smoothly and safely in complex intersection scenes.
[0047] In one embodiment of the present invention, step 100 specifically includes:
[0048] The exit lane information includes any one or more of lane centerline information, lane width and lane type, but is not limited to these. Among them, lane centerline information is an important feature line in the geometric design of road routes and an important control line in road traffic management. It is used to divide the traffic markings of opposite traffic flows and is divided into double solid center lines, single solid center lines, dashed center lines and double solid center lines. Lane width refers to the width required for a column of vehicles to travel safely and smoothly on the road, including the outer width of the designed vehicle and the remaining width required for passing, overtaking or parallel driving. Lane types usually refer to bicycle lanes, bus lanes and overtaking lanes.
[0049] The first encoder includes one or a combination of two or more network structures selected from the group consisting of a multilayer perceptron, a convolutional neural network, a long short-term memory network, and a recurrent neural network, but is not limited thereto. The first encoder uses different network structures to solve different tasks, and does not specifically refer to a specific network structure in this specification.
[0050] In actual application scenarios, before predicting the trajectory of the predicted vehicle, it is necessary to train the first encoder, the second encoder, the decoder, and the evaluation network based on the historical data of the intersection, and the historical data includes the exit lane information and the intersection vehicle information. For example, based on the exit lane information and the intersection vehicle information of intersection A within one month, the prediction model is trained. Specifically, the exit lane information of intersection A within one month is input into the first encoder, and the intersection vehicle information of intersection A within one month is input into the second encoder to obtain a trained prediction model. The prediction model is composed of the first encoder, the second encoder and other networks; based on the exit lane information and the intersection vehicle information of intersection A at the current moment, the trained prediction model is used to predict the trajectory of the vehicle at intersection A. As described in the above embodiment, the exit lane information is input into the first encoder, and the intersection vehicle information is input into the second encoder.
[0051] The first encoder is used to vectorize the exit lane information and extract as many high-dimensional features of the exit lane as possible.
[0052] In actual application scenarios, when an autonomous vehicle passes through an intersection, the perception system captures important intersection information such as lane centerline information, lane width, and lane type. The perception system consists of three parts: sensors, high-precision maps, and information recognition units. This important information is transmitted to the first encoder for feature vectorization to obtain high-dimensional features of several exit lanes. For example, the first encoder combines two discrete features, lane centerline information and lane width information, into second-order features, or combines three discrete features, lane centerline information, lane width information, and lane type information, into third-order features.
[0053] In one embodiment of the present invention, step 101 specifically includes:
[0054] The intersection vehicle information includes any one or more of vehicle position, vehicle speed and vehicle acceleration, but is not limited thereto.
[0055] The second encoder is essentially the same as the first encoder, but the two can use different neural networks or the same neural network, depending on actual needs.
[0056] Similarly, the second encoder is used to vectorize the vehicle information at the intersection and extract as many high-dimensional features of the vehicles at the intersection as possible.
[0057] In actual application scenarios, when an autonomous vehicle passes through an intersection, its perception system must not only capture exit lane information, but also important intersection vehicle information such as the position, speed, and acceleration of the predicted vehicle and other vehicles. This information is input into the second encoder for feature vectorization to obtain high-dimensional features of the predicted vehicle and other vehicles.
[0058] In one embodiment of the present invention, step 102 specifically includes:
[0059] Calculate the first attention score based on the high-dimensional features of the predicted vehicle and the high-dimensional features of other vehicles;
[0060] Taking the first attention score as the weight, the high-dimensional features of other vehicles are weighted summed to obtain the vehicle fusion feature.
[0061] Specifically, the predicted vehicle high-dimensional features are used as query Query1, and other vehicle high-dimensional features are used as <key value Key1, value item Value1> data pairs;
[0062] Based on the cross attention mechanism, the product of query Query1 and key value Key1 is transmitted to the softmax layer to obtain the feature similarity weight matrix W1, that is, the first attention score matrix, which is expressed as follows:
[0063]
[0064] Among them, Q1 is the abbreviation of Query1, K1 is the abbreviation of Key1, and V1 is the abbreviation of Value1; k represents the K1 dimension and T represents the transpose operation.
[0065] The value item Value1 is weighted and summed according to the feature similarity weight matrix W1 to obtain the vehicle fusion feature.
[0066] In one embodiment of the present invention, step 103 specifically includes:
[0067] Calculate the second attention score based on the vehicle fusion features and the high-dimensional features of several exit lanes;
[0068] The second attention score is used as the weight to perform weighted summation on the high-dimensional features of several exit lanes to obtain the vehicle lane fusion feature.
[0069] Specifically, the vehicle fusion feature is used as query Query2, and the high-dimensional features of several exit lanes are used as <key value Key2, value item Value2> data pairs;
[0070] Based on the cross attention mechanism, the product of query Query2 and key value Key2 is transmitted to the softmax layer to obtain the feature similarity weight matrix W2, that is, the second attention score matrix, which is expressed as follows:
[0071]
[0072] Among them, Q2 is the abbreviation of Query2, K2 is the abbreviation of Key2, and V2 is the abbreviation of Value2; k represents the K2 dimension and T represents the transpose operation.
[0073] The value item Value2 is weighted and summed according to the feature similarity weight matrix W2 to obtain the vehicle lane fusion feature.
[0074] In one embodiment of the present invention, step 104 specifically includes:
[0075] The high-dimensional features of the predicted vehicle and the high-dimensional features of several exit lanes are input into the evaluation network to obtain the first score of each exit lane;
[0076] Calculating a second score for each exit lane based on the first score and the second attention score;
[0077] In order to select exit lanes with higher relevance and reduce the amount of calculation, several target exit lanes are selected from several exit lanes according to the second score. The higher the second score value, the higher the relevance of the predicted vehicle to the lane.
[0078] Alternatively, the high-dimensional features of the predicted vehicle and the high-dimensional features of several exit lanes are calculated by vector distance, for example, distance algorithms such as Euclidean distance, Mahalanobis distance, and Manhattan distance can be used to obtain the correlation between each exit lane and the predicted vehicle;
[0079] According to the order of correlation from large to small, several target exit vehicles are selected from several exit lanes.
[0080] In actual application scenarios, there are multiple exit lanes in the intersection scene. Autonomous driving vehicles can predict the proportion of driving in different exit lanes to respond to different emergencies and select the appropriate exit lane to facilitate safe and smooth driving of autonomous driving vehicles.
[0081] In one embodiment of the present invention, the evaluation network includes: a multi-layer perceptron, or a convolutional neural network, or a time recursive neural network.
[0082] In one embodiment of the present invention, step 105 specifically includes: the decoder is a convolutional neural network or a time recursive neural network.
[0083] according to Figure 2 This specification provides a method for predicting vehicle trajectories at an intersection, comprising:
[0084] Step 200, input lane centerline information, lane width and lane type into a multi-layer perceptron to obtain high-dimensional features of several exit lanes.
[0085] Step 201, input the vehicle position, vehicle speed and vehicle acceleration into a recurrent neural network to obtain high-dimensional features of the predicted vehicle and high-dimensional features of other vehicles.
[0086] Step 202: Calculate a first attention score based on the high-dimensional features of the predicted vehicle and the high-dimensional features of the other vehicles.
[0087] Step 203: Taking the first attention score as a weight, weighted sum is performed on the high-dimensional features of the other vehicles to obtain the vehicle fusion feature.
[0088] Step 204: Calculate a second attention score based on the vehicle fusion feature and the high-dimensional features of the plurality of exit lanes.
[0089] Step 205 , taking the second attention score as a weight, weighted sum is performed on the high-dimensional features of the plurality of exit lanes to obtain the vehicle lane fusion feature.
[0090] Step 206 , high-dimensional features of the predicted vehicle and high-dimensional features of several exit lanes are input into an evaluation network to obtain a first score for each exit lane.
[0091] Step 207 : Calculate a second score for each exit lane based on the first score and the second attention score.
[0092] Step 208 : Selecting a plurality of target exit lanes from a plurality of exit lanes according to the second score.
[0093] In step 209, the high-dimensional features of the predicted vehicle, the vehicle lane fusion features, and the high-dimensional features of each target exit lane are input into a convolutional neural network to obtain the trajectory of the predicted vehicle.
[0094] When the autonomous driving vehicle in the embodiment of this specification faces a complex intersection scenario, the autonomous driving vehicle can more focus and effectively predict the vehicle's driving trajectory by referencing the cross-attention mechanism twice.
[0095] according to Figure 3 This specification provides a vehicle trajectory prediction device for an intersection, comprising:
[0096] The encoding module 300 is configured to input the exit lane information into a first encoder to obtain high-dimensional features of a plurality of exit lanes; input the intersection vehicle information into a second encoder to obtain high-dimensional features of the predicted vehicle and high-dimensional features of other vehicles;
[0097] The cross attention module 301 is configured to fuse the high-dimensional features of the predicted vehicle and the high-dimensional features of other vehicles based on the cross attention mechanism to obtain a vehicle fusion feature; fuse the vehicle fusion feature and the high-dimensional features of several exit lanes based on the cross attention mechanism to obtain a vehicle lane fusion feature;
[0098] A selection module 302 is configured to select a plurality of target exit lanes from a plurality of exit lanes based on the high-dimensional features of the predicted vehicle and the high-dimensional features of the plurality of exit lanes;
[0099] The decoding module 303 is configured to input the high-dimensional features of the predicted vehicle, the vehicle lane fusion features and the high-dimensional features of each target exit lane into a decoder to obtain the trajectory of the predicted vehicle.
[0100] In one embodiment of the present invention, the exit lane information includes any one or more of lane centerline information, lane width, and lane type.
[0101] In one embodiment of the present invention, the first encoder includes one or a combination of two or more of a multilayer perceptron, a convolutional neural network, a long short-term memory network, and a recurrent neural network.
[0102] In one embodiment of the present invention, the intersection vehicle information includes: any one or more of vehicle position, vehicle speed and vehicle acceleration.
[0103] In one embodiment of the present invention, the second encoder includes one or a combination of two or more of a multilayer perceptron, a convolutional neural network, a long short-term memory network, and a recurrent neural network.
[0104] In one embodiment of the present invention, the cross-attention module 301 is configured to calculate a first attention score based on the high-dimensional features of the predicted vehicle and the high-dimensional features of other vehicles; and to perform weighted summation on the high-dimensional features of other vehicles using the first attention score as a weight to obtain a vehicle fusion feature.
[0105] In one embodiment of the present invention, the cross-attention module 301 is configured to calculate a second attention score based on the vehicle fusion feature and the high-dimensional features of several exit lanes; using the second attention score as the weight, the high-dimensional features of several exit lanes are weighted summed to obtain the vehicle lane fusion feature.
[0106] In one embodiment of the present invention, the selection module 302 is configured to input the high-dimensional features of the predicted vehicle and the high-dimensional features of the several exit lanes into an evaluation network to obtain a first score for each of the exit lanes; calculate a second score for each exit lane based on the first score and the second attention score; and select several target exit lanes from the several exit lanes based on the second score.
[0107] In one embodiment of the present invention, the evaluation network includes: a multi-layer perceptron, or a convolutional neural network, or a time recursive neural network.
[0108] In one embodiment of the present invention, the decoder is a convolutional neural network or a time recurrent neural network.
[0109] An embodiment of the present invention provides an electronic device, including:
[0110] one or more processors;
[0111] a storage device for storing one or more programs,
[0112] When one or more programs are executed by one or more processors, the one or more processors implement the method of any of the above embodiments.
[0113] An embodiment of the present invention provides a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the method of any of the above embodiments is implemented.
[0114] Reference below Figure 4 A schematic diagram of the structure of a computer system 400 of a terminal device suitable for implementing an embodiment of the present invention is shown. Figure 4 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0115] like Figure 4As shown, the computer system 400 includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage part 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the system 400 are also stored. The CPU 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0116] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage section 408 as needed.
[0117] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 409, and / or installed from the removable medium 411. When the computer program is executed by the central processing unit (CPU) 401, the above-mentioned functions defined in the system of the present invention are executed.
[0118] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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 above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0119] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0120] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor. For example, they may be described as: a processor includes a sending module, an acquisition module, a determination module, and a first processing module. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the sending module may also be described as a "module for sending a picture acquisition request to the connected server."
[0121] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for predicting vehicle trajectories at intersections, characterized in that: include: Inputting the exit lane information into a first encoder to obtain high-dimensional features of a plurality of exit lanes; Input the intersection vehicle information into the second encoder to obtain the high-dimensional features of the predicted vehicle and the high-dimensional features of other vehicles; Based on a cross attention mechanism, the high-dimensional features of the predicted vehicle and the high-dimensional features of other vehicles are fused to obtain vehicle fusion features; Based on the cross attention mechanism, the vehicle fusion feature and the high-dimensional features of the plurality of exit lanes are fused to obtain a vehicle lane fusion feature; Selecting a plurality of target exit lanes from the plurality of exit lanes based on the high-dimensional features of the predicted vehicle and the high-dimensional features of the plurality of exit lanes; The high-dimensional features of the predicted vehicle, the vehicle lane fusion features and the high-dimensional features of each of the target exit lanes are input into a decoder to obtain the trajectory of the predicted vehicle; wherein, The vehicle fusion feature and the high-dimensional features of the plurality of exit lanes are fused based on the cross attention mechanism to obtain a vehicle lane fusion feature, including: Calculating a second attention score according to the vehicle fusion feature and the high-dimensional features of the plurality of exit lanes; Taking the second attention score as a weight, performing weighted summation on the high-dimensional features of the plurality of exit lanes to obtain the vehicle lane fusion feature; Based on the high-dimensional features of the predicted vehicle and the high-dimensional features of the plurality of exit lanes, selecting a plurality of target exit lanes from the plurality of exit lanes comprises: Inputting the high-dimensional features of the predicted vehicle and the high-dimensional features of the plurality of exit lanes into an evaluation network to obtain a first score for each of the exit lanes; Calculating a second score for each of the exit lanes based on the first score and the second attention score; A plurality of target exit lanes are selected from the plurality of exit lanes according to the second score.
2. The method according to claim 1, characterized in that: The exit lane information includes: any one or more of lane centerline information, lane width and lane type.
3. The method according to claim 1, characterized in that The first encoder includes one or a combination of two or more of a multilayer perceptron, a convolutional neural network, a long short-term memory network, and a recurrent neural network.
4. The method according to claim 1, characterized in that: The intersection vehicle information includes: any one or more of vehicle position, vehicle speed and vehicle acceleration.
5. The method according to claim 1, characterized in that The second encoder includes one or a combination of two or more of a multilayer perceptron, a convolutional neural network, a long short-term memory network, and a recurrent neural network.
6. The method according to claim 1, characterized in that Based on the cross attention mechanism, the high-dimensional features of the predicted vehicle and the high-dimensional features of other vehicles are fused to obtain vehicle fusion features, including: Calculating a first attention score according to the high-dimensional features of the predicted vehicle and the high-dimensional features of the other vehicles; The first attention score is used as a weight to perform weighted summation on the high-dimensional features of the other vehicles to obtain the vehicle fusion feature.
7. The method according to claim 1, characterized in that The evaluation network includes: a multi-layer perceptron, or a convolutional neural network, or a time recursive neural network.
8. The method according to claim 1, characterized in that The decoder is a convolutional neural network or a time recursive neural network.
9. A vehicle trajectory prediction device at an intersection, characterized in that: include: an encoding module configured to input the exit lane information into a first encoder to obtain high-dimensional features of a plurality of exit lanes; Input the intersection vehicle information into the second encoder to obtain the high-dimensional features of the predicted vehicle and the high-dimensional features of other vehicles; A cross attention module is configured to fuse the high-dimensional features of the predicted vehicle and the high-dimensional features of other vehicles based on a cross attention mechanism to obtain a vehicle fusion feature; Based on the cross attention mechanism, the vehicle fusion feature and the high-dimensional features of the plurality of exit lanes are fused to obtain a vehicle lane fusion feature; A selection module configured to select a plurality of target exit lanes from the plurality of exit lanes based on the high-dimensional features of the predicted vehicle and the high-dimensional features of the plurality of exit lanes; A decoding module is configured to input the high-dimensional features of the predicted vehicle, the vehicle lane fusion features and the high-dimensional features of each of the target exit lanes into a decoder to obtain the trajectory of the predicted vehicle; wherein, The cross attention module is further configured to calculate a second attention score based on the vehicle fusion feature and the high-dimensional features of the plurality of exit lanes; Taking the second attention score as a weight, performing weighted summation on the high-dimensional features of the plurality of exit lanes to obtain the vehicle lane fusion feature; The selection module is further configured to select a plurality of target exit lanes from the plurality of exit lanes based on the high-dimensional features of the predicted vehicle and the high-dimensional features of the plurality of exit lanes, including: Inputting the high-dimensional features of the predicted vehicle and the high-dimensional features of the plurality of exit lanes into an evaluation network to obtain a first score for each of the exit lanes; Calculating a second score for each of the exit lanes based on the first score and the second attention score; A plurality of target exit lanes are selected from the plurality of exit lanes according to the second score.
10. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.
11. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Cited By
Intersection vehicle trajectory prediction system and method considering traffic flow characteristics
CN117116033A
