Occupancy map prediction method, electronic device, and storage medium
By compressing the historical occupancy map into three sets of orthogonal plane features and combining them with vehicle and external environment query conditions for motion compensation and prediction, the problem of low accuracy and computational efficiency of existing occupancy map prediction methods is solved, achieving more efficient and accurate autonomous driving environment perception.
Patent Information
- Application Number
- CN202611686045.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-29
- Publication Date
- 2026-11-27
AI Technical Summary
Existing occupancy map prediction methods suffer from poor accuracy and low computational efficiency in autonomous driving. In particular, due to unreasonable motion compensation mechanisms, severe interference from vehicle motion, and an excessively high proportion of invalid calculations, error accumulation and spatial consistency are difficult to guarantee.
The historical occupancy map is compressed into latent space features corresponding to three sets of orthogonal planes. Motion compensation is performed using the vehicle's pose at multiple historical moments, and the changes corresponding to each orthogonal plane are predicted by combining the query conditions of the vehicle and the external environment. Finally, the future occupancy map is decoded.
The computational efficiency and accuracy of the occupancy map prediction method have been improved, meeting the real-time requirements of vehicle-mounted systems and maintaining the spatial consistency and reliability of the prediction results.
Smart Images

Figure CN123181784A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of intelligent driving technology, and in particular to an occupancy map prediction method, electronic device and storage medium. Background Technology
[0002] As autonomous driving evolves towards higher levels of intelligence, vehicles need to make safe and autonomous decisions in complex and dynamic urban environments. Occupation graph models, as the core foundation of the system, can model the spatiotemporal evolution of the physical world and predict future states, making them crucial for achieving a closed loop from perception to decision-making.
[0003] Occupancy map prediction methods possess advantages such as strong geometric consistency, good open-set perception capability, and direct application to motion planning, making them a mainstream technology in the current autonomous driving field. Current mainstream occupancy map prediction methods employ multi-sensor input, feature encoding and temporal prediction, and finally decoding output, generating the future occupancy map by fusing historical multi-frame data. However, occupancy map prediction methods still have many shortcomings in practical applications: unreasonable motion compensation mechanisms lead to severe interference from vehicle motion, resulting in error accumulation and distortion of dynamic object trajectories; a large amount of static environment data is repeatedly calculated, resulting in an excessively high proportion of invalid calculations; spatial consistency is difficult to guarantee in long-term temporal predictions; machine model training is difficult and inaccurate, and the large number of parameters makes it difficult to meet the real-time requirements of in-vehicle systems.
[0004] Therefore, traditional occupancy map prediction methods suffer from technical problems such as poor accuracy and low computational efficiency. Summary of the Invention
[0005] The main objective of this application is to provide an occupancy map prediction method, an electronic device, and a storage medium, aiming to solve the technical problems of poor accuracy and low computational efficiency in existing occupancy map prediction methods.
[0006] To achieve the above objectives, this application proposes an occupancy map prediction method, the method comprising: The historical occupation map is compressed into three sets of orthogonal planes, each corresponding to the first latent space features; Motion compensation is performed on each of the first latent space features based on the vehicle pose at multiple historical moments to obtain each of the second latent space features corresponding to each of the first latent space features. Obtain the first query condition and the second query condition, and based on each of the second latent space features, the first query condition and the second query condition, predict the change amount corresponding to each of the orthogonal planes, wherein the first query condition and the second query condition correspond to the vehicle query and the external environment query, respectively. Based on the change amount corresponding to each of the orthogonal planes, update each of the second latent space features to obtain the updated third latent space features. Decode each of the aforementioned third hidden space features to obtain the future occupancy map.
[0007] In one embodiment, before the step of performing motion compensation on each of the first latent space features based on the vehicle pose at multiple historical moments, the method further includes: Based on each of the first latent space features, the historical vehicle poses corresponding to the multiple historical moments in the global coordinate system are obtained respectively. Based on the historical vehicle poses, the first coordinates of each point in the vehicle coordinate system at each historical moment are obtained, wherein the vehicle coordinate system is a coordinate system constructed with the vehicle as the origin. Based on the historical vehicle poses and by transforming the first coordinates to the global coordinate system, the global coordinates of each point at each historical moment in the global coordinate system are obtained.
[0008] In one embodiment, the step of performing motion compensation on each of the first latent space features based on the vehicle pose at multiple historical moments, and obtaining each of the second latent space features corresponding to each of the first latent space features, includes: Obtain the second coordinates of each point in the vehicle coordinate system at the target prediction time; Match each of the second coordinates with the global coordinates corresponding to each point at the target historical time to obtain the initial global coordinates corresponding to each of the second coordinates; Based on the vehicle pose at the target historical moment corresponding to each of the initial global coordinates, each of the initial global coordinates is mapped to the first coordinate in the corresponding vehicle coordinate system. If the first coordinate is within the coverage area of each of the first latent space features, copy the features of each of the first coordinates and fill them into the features of the second coordinates corresponding to each of the first coordinates. If the first coordinate is not within the coverage of each of the first latent space features, fill the feature of the second coordinate corresponding to each of the first coordinates with 0; Based on the features of each of the second coordinates, the second latent space features corresponding to each of the orthogonal planes are obtained.
[0009] In one embodiment, the step of obtaining the first query condition and the second query condition includes: Obtain vehicle motion information within a preset time range, map the vehicle motion information to a multi-dimensional space, and obtain the first query condition; Obtain pre-learned information on changes in the external environment, and use this information as a second query condition.
[0010] In one embodiment, the step of predicting the change amount corresponding to each of the orthogonal planes based on each of the second latent space features, the first query condition, and the second query condition includes: Each of the second latent space features is converted into a three-dimensional mesh feature, and the three-dimensional mesh feature is input into a preset encoder. The encoder obtains a scene memory library based on each of the second latent space features and the historical time corresponding to each of the second latent space features. By concatenating the first query condition, the second query condition, and the preset future step embedding, a concatenated query condition is obtained, wherein the future step embedding is used to represent the prediction requirement at least one future moment; Input the splicing query conditions into a preset decoder, and the preset decoder performs attention interaction on the scene memory based on the splicing query conditions to predict the 3D mesh feature increment; The feature increment of the three-dimensional mesh is converted into the change amount corresponding to each of the orthogonal planes.
[0011] In one embodiment, the three-dimensional mesh features include three-dimensional lexical features, the three-dimensional mesh feature increments include incremental lexical sequences, and the steps of converting each of the second latent space features into three-dimensional mesh features, inputting the three-dimensional mesh features into a preset encoder, and obtaining a scene memory bank through the encoder based on each of the second latent space features and the historical time corresponding to each of the second latent space features include: Projecting and downsampling each of the second latent space features yields the first low-resolution features corresponding to the three sets of orthogonal planes, respectively. Each of the first low-resolution features is broadcast to a three-dimensional grid to obtain three-dimensional word features; Based on multiple historical moments corresponding to each of the second latent space features, the three-dimensional word features corresponding to each of the second latent space features are spliced together to obtain a historical word sequence. The historical lexical sequence and the pre-learned temporal embedding are input into a preset encoder. The three-dimensional lexical features corresponding to each historical moment are interacted through a self-attention mechanism to generate a scene memory bank. The temporal embedding is used to characterize the temporal relationship between the three-dimensional lexical features in the historical lexical sequence. The step of converting the three-dimensional mesh feature increment into the change amount corresponding to each of the orthogonal planes includes: The incremental word sequence is reconstructed in a three-dimensional grid to obtain the second low-resolution feature; Upsample the second low-resolution feature to obtain the change amount corresponding to each of the orthogonal planes.
[0012] In one embodiment, the step of compressing the historical occupancy map into three sets of first latent space features corresponding to orthogonal planes includes: Input the historical occupancy map into a pre-trained three-plane encoder; The three-plane encoder obtains the first latent space features corresponding to each of the three orthogonal planes based on the projection of the historical occupancy map onto the three sets of orthogonal planes. The three sets of orthogonal planes are three mutually perpendicular planes, including the top view plane, the front view plane, and the side view plane.
[0013] In one embodiment, the step of decoding each of the third latent space features to obtain the future occupancy map includes: Based on the third latent space features, the position codes and corresponding occupancy features of each three-dimensional coordinate point in the three sets of orthogonal planes are obtained, wherein the occupancy features include at least semantic labels; The location codes and corresponding occupancy features are input into a pre-trained three-plane decoder, and a future occupancy map is constructed through the three-plane decoder.
[0014] In addition, to achieve the above objectives, this application also proposes an electronic device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the occupancy map prediction method as described above.
[0015] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the occupancy map prediction method as described above.
[0016] One or more technical solutions proposed in this application have at least the following technical effects: The occupancy map prediction method provided in this application compresses the historical occupancy map into three sets of planes, transforms three-dimensional spatial coordinate points into two-dimensional spatial feature vectors, and controls the number of query conditions, thereby reducing the computational load of the model and improving its computational efficiency, meeting the real-time requirements under the limited computing resources of in-vehicle systems. Motion compensation of the vehicle's pose based on multiple historical moments enables the acquired three-plane latent space features to more accurately represent the real changes in the external environment, improving the model's accuracy. Encoding, prediction, and decoding based on a unified three-plane latent space maintains the spatial consistency of the prediction results, improving the model's reliability and stability. The method provided in this application solves the technical problems of poor accuracy and low computational efficiency in existing occupancy map prediction methods. Attached Figure Description
[0017] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a flowchart illustrating an embodiment of the occupancy map prediction method of this application. Figure 2 A basic flowchart is provided for an embodiment of the occupancy map prediction method of this application; Figure 3 Detailed method diagrams provided for embodiments of the occupancy map prediction method of this application; Figure 4 This is an optional implementation flowchart of step S20 in an embodiment of the occupancy map prediction method of this application; Figure 5 This is a prediction effect diagram of an embodiment of the occupancy map prediction method of this application; Figure 6 This is a query visualization diagram of an embodiment of the occupancy graph prediction method of this application; Figure 7 This is a schematic diagram of the module structure of the occupancy map prediction device according to an embodiment of this application; Figure 8 This is a schematic diagram of the device structure of the hardware operating environment involved in the occupancy map prediction method in this application embodiment.
[0020] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0021] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.
[0022] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0023] As autonomous driving evolves towards higher levels of intelligence, vehicles need to make safe and autonomous decisions in complex and dynamic urban environments. Occupancy graph prediction methods, with their advantages of strong geometric consistency, good open set perception capabilities, and direct application to motion planning, have become the mainstream technology in the current autonomous driving field. However, existing occupancy graph prediction methods suffer from unreasonable motion compensation mechanisms, excessively high rates of invalid computation, poor spatial consistency, and technical problems such as poor accuracy and low computational efficiency.
[0024] The main solution of this application embodiment is as follows: by encoding and compressing the high-dimensional occupancy map into latent space features corresponding to three orthogonal planes, and then performing motion compensation on the latent space features based on the historical vehicle motion recorded by the sensors in the latent space of the three planes, the historical scenes at different historical moments are unified to the target prediction coordinate system, eliminating scene changes caused by vehicle motion, which facilitates the prediction model to predict the motion of the surrounding environment and surrounding objects, and constructs a rigorous and reasonable motion compensation mechanism; then, the resolution of the motion-compensated latent space features is reduced and input into the prediction model for future time prediction. Two types of queries are used during prediction: one is the query formed by vehicle motion information, and the other is the query of external self-learning variables. The prediction results of the prediction model are upsampled to obtain the change in the latent space features in the three-plane latent space at future time. This change is superimposed on the motion-compensated three-plane latent space features, and then the latent space features obtained after superposition are decoded into the future occupancy map. By compressing the high-dimensional occupancy graph into latent space features in three planes, reducing the resolution of latent space features before inputting them into the prediction model, and controlling the number of queries, storage requirements and invalid computations can be reduced, thus improving the computational efficiency of the occupancy graph prediction method. Furthermore, by performing motion compensation on the vehicle's motion in the three-plane latent space, the occupancy graph prediction method achieves better spatial consistency, thereby improving the accuracy of the prediction.
[0025] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device capable of performing the above functions. This embodiment does not impose specific limitations on this. The following uses an in-vehicle terminal as an example to describe this embodiment and the following embodiments.
[0026] Based on this, this application provides an occupancy map prediction method, please refer to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the occupancy map prediction method of this application.
[0027] In this embodiment, the occupancy map prediction method includes steps S10 to S50: Step S10: Compress the historical occupancy map into three sets of orthogonal planes corresponding to the first latent space features; It should be noted that the historical occupancy map refers to three-dimensional raster data collected from multiple historical moments in the past, used to characterize the occupancy status of environmental space. The data of each raster includes, but is not limited to, the occupancy status and semantic category of that spatial location. The historical occupancy map can be generated by the fusion of multiple onboard sensors. The three sets of orthogonal planes refer to three mutually perpendicular projection planes extracted from three-dimensional space, namely the xy top view plane, the xz front view plane, and the yz side view plane. By combining the features of the three sets of orthogonal two-dimensional planes, the features of three-dimensional space can be equivalently represented. The first latent space feature refers to the low-dimensional planar feature vector obtained by compressing the high-dimensional original occupancy map through the encoder. Its distribution is strictly aligned with the preset three-plane latent space.
[0028] Specifically, in the three-dimensional space of the occupancy diagram, the three coordinate axes are the x-axis (horizontal), y-axis (vertical), and z-axis (height), which are perpendicular to each other, forming a standard three-dimensional rectangular coordinate system. Each orthogonal plane is a two-dimensional plane composed of two of these coordinate axes. Specifically, the three orthogonal planes are: the xy plane, composed of the x and y axes, representing the horizontal plane, which can be understood as a top-down view; the yz plane, composed of the y and z axes, representing the side elevation, which can be understood as the height and depth information observed from the side; and the xz plane, composed of the x and z axes, representing another vertical plane, which can be understood as a perspective viewed from the front or back.
[0029] For example, let Let represent the historical occupancy map at time t, centered on the vehicle, where H, W, and L represent the height, width, and length of the historical occupancy map in three-dimensional space, respectively. For each input historical occupancy map, feature encoding is performed, mapping it from the original voxel space to a compact and information-rich high-dimensional feature space. Then, axial pooling is performed on the encoded features along three mutually perpendicular coordinate axes (e.g., x, y, z axes). Essentially, this process projects the high-dimensional encoded features onto three orthogonal two-dimensional planes and aggregates information, resulting in three planar features corresponding to each of the three orthogonal planes defined by two different coordinate axes. The combination of these three planar features is used as the first latent space feature. This first latent space feature can compactly represent the scene features in the complete historical occupancy map with a lower data dimensionality.
[0030] Step S20: Motion compensation is performed on each first latent space feature based on the vehicle pose at multiple historical moments to obtain each second latent space feature corresponding to each first latent space feature. It should be noted that the vehicle's pose refers to its position and attitude information in the world coordinate system, which is recorded in real time by a positioning system composed of an onboard odometer, an inertial measurement unit, and a global satellite positioning system; motion compensation refers to transforming the latent space features at different historical moments from their respective vehicle coordinate systems to the current vehicle coordinate system, eliminating spatial misalignment caused by vehicle motion, and enabling the three-plane latent space features of all historical moments to be processed in a unified coordinate system; the second latent space feature refers to the latent space feature after motion compensation of the first latent space feature.
[0031] Step S30: Obtain the first query condition and the second query condition. Based on each second latent space feature, the first query condition and the second query condition, predict the change amount corresponding to each orthogonal plane. The first query condition and the second query condition correspond to the vehicle query and the external environment query, respectively. It should be noted that the query conditions are instruction-based feature data that guide the model to specifically retrieve related information from historical latent features and predict environmental changes. In this embodiment, the first query condition corresponds to the vehicle query, which uses the vehicle's driving parameters within the historical time range to constitute the query information, representing the vehicle's driving intention. The second query condition corresponds to the external environment query, which uses all external traffic elements on the road surface to constitute the query information, representing the dynamic constraints of the objective environment. Both serve as the attention query vector, used to filter effective information from the second latent space features after sportswear compensation and predict the change in occupancy map features. The change corresponding to each of the orthogonal planes refers to the predicted change in latent space features at the future time relative to the current time, characterizing the movement and state changes of obstacles in the environment.
[0032] Step S40: Update each second latent space feature according to the change amount corresponding to each orthogonal plane to obtain the updated third latent space features. It should be noted that the third latent space feature refers to the latent space feature that integrates historical information and future change predictions. It retains the static structural information of the current environment while incorporating future dynamic change information.
[0033] Step S50: Decode each third latent space feature to obtain the future occupancy map.
[0034] It should be noted that the future occupancy map refers to the predicted three-dimensional raster data representing the environmental occupancy state at future moments, which can provide a data foundation for autonomous vehicles to make motion planning and obstacle avoidance decisions. Decoding refers to the process of mapping low-dimensional latent space features back to the three-dimensional occupancy map.
[0035] To better understand the solution approach of this embodiment, please refer to... Figure 2 , Figure 2This is a basic flowchart of the occupancy map prediction method embodiment of this application. The historical occupancy maps at times t-3, t-2, and t are input into a three-plane encoder and compressed into three sets of orthogonal plane latent space features, i.e., the first latent space features. After motion compensation, the second latent space features are obtained. Subsequently, the prediction model encoder-decoder predicts the change in the latent space features at the target prediction time (corresponding to the values in the diagram) through vehicle queries and external environment queries. For example, an autoregressive method can be used to progressively predict based on changes over time, superimposing the changes in latent space features onto the second latent space features to obtain the third latent space features. After inputting the third latent space features into the three-plane decoder, the future occupancy map at time t+1 is obtained.
[0036] Specifically, please refer to Figure 3 , Figure 3 The three-plane encoder and three-plane decoder are preset machine models, as explained in steps S11-S12; motion compensation represents the motion compensation calculation process in step S20; the predictive model encoder and predictive model decoder are two modules of the predictive model, as explained in steps S33-S36; in the query input to the predictive model decoder, the dark block represents the vehicle query, and the light block represents the external environment query; the latent space feature change refers to the change corresponding to each orthogonal plane predicted in step S30. Figure 3 This diagram illustrates the method details of the occupancy map prediction method embodiment of this application. Given a historical occupancy observation sequence and vehicle movement, the model uses this as a predefined scene context and predicts the future occupancy scene given the future vehicle movement. For historical time t, the historical occupancy map is... The scene context is represented as Corresponding historical cycling movement and the future of motorsports They are represented as follows: , among which, each bicycle movement Indicates the time i of the vehicle Transformations from time 1 to time i, such as translation and rotation. The historical occupancy sequence provides scene context, including static structures, visible objects, and recent scene evolution. Historical vehicle motion is used to align the scene observed in different vehicle coordinate systems, while future vehicle motion serves as a condition for the controllable generation of the future.
[0037] Furthermore, the machine model used to predict future scene changes learns the following mapping relationship: ,in This represents the predicted future occupancy map sequence.
[0038] This embodiment compresses the historical occupancy map into three planes, transforming three-dimensional spatial coordinates into two-dimensional spatial feature vectors. By controlling the number of query conditions, it reduces the computational load of the model, improves its computational efficiency, and meets the real-time requirements under the limited computing resources of in-vehicle systems. Motion compensation of the vehicle's pose based on multiple historical moments enables the acquired three-plane latent space features to more accurately represent the real changes in the external environment, improving the model's accuracy. Encoding, prediction, and decoding based on a unified three-plane latent space maintains the spatial consistency of the prediction results, improving the model's reliability and stability. The method provided in this application solves the technical problems of poor accuracy and low computational efficiency in existing occupancy map prediction methods.
[0039] In one feasible implementation, step S10 may include steps S11-S12: Step S11: Input the historical occupancy map into the pre-trained three-plane encoder; It should be noted that the pre-trained three-plane encoder is a convolutional coding network obtained by pre-training with a large number of real-world occupancy samples. It projects the three-dimensional occupancy map onto three orthogonal planes respectively, and its function is to map the high-dimensional original raster data to the low-dimensional latent space.
[0040] Step S12: Using a three-plane encoder, the first latent space features corresponding to each orthogonal plane are obtained based on the projection of the historical occupancy map onto the three sets of orthogonal planes. The three sets of orthogonal planes are three mutually perpendicular planes, including the top view plane, the front view plane, and the side view plane.
[0041] Specifically, the historical occupancy graph at time t By three-plane encoder Encode and compress it into three orthogonal feature planes, resulting in The first latent space feature at time t, each three-dimensional coordinate point They have corresponding position codes in the xy, xz, and yz planes, respectively. And semantic tags. The data processing steps S11~S12 can be represented by formula (1): (1); This implementation significantly reduces the number of data parameters by compressing the 3D historical occupancy map into features of three orthogonal planes, effectively reducing the computational power required by the vehicle-mounted chip. Furthermore, compared to a single bird's-eye view projection, splitting the 3D spatial information from three orthogonal planes effectively eliminates spatial observation blind spots and improves the completeness of environmental representation. The pre-programmed three-plane encoder has been trained on a large number of scene samples in advance; the vehicle-mounted device directly loads the fixed model, eliminating the need for online parameter iteration. Projection and encoding can be quickly completed simply by inputting the occupancy map, improving the accuracy of the first latent space features and adapting to the real-time computing needs of vehicle-mounted devices.
[0042] In one feasible implementation, before the step of performing motion compensation on each first latent space feature based on the vehicle pose at multiple historical moments in step S20, the occupancy map prediction method further includes steps S201~S203: Step S201: Based on the features of each first latent space, obtain the historical vehicle poses corresponding to multiple historical moments in the global coordinate system. It should be noted that the global coordinate system is a unified global coordinate system established based on fixed landmarks on the world map. During the calculation and prediction process, the coordinate reference remains unchanged. The historical vehicle position and pose refer to the three-dimensional coordinates and self-position of the vehicle in the global coordinate system at different historical moments, providing reference parameters for the alignment of spatial features at different times.
[0043] Step S202: Based on each historical vehicle pose, obtain the first coordinates of each point in the vehicle coordinate system at each historical moment, wherein the vehicle coordinate system is a coordinate system constructed with the vehicle as the origin; It should be noted that the vehicle coordinate system is a coordinate system constructed in a three-plane potential space, with the vehicle's center of mass or rear axle center as the origin, the vehicle's forward direction as the x-axis, the vehicle's lateral direction as the y-axis, and the vertical upward direction as the z-axis. The vehicle coordinate system changes synchronously with the vehicle's position at every moment; the first coordinate is the coordinate of each point in the vehicle coordinate system in the three-plane potential space at a historical moment.
[0044] Step S203: Based on each historical vehicle pose and transform each first coordinate to the global coordinate system, obtain the global coordinates of each point in the global coordinate system at each historical moment.
[0045] It should be noted that global coordinates refer to the coordinates of each point in the vehicle coordinate system at each historical moment in the global coordinate system. They are used to represent the absolute position of obstacle points in space at each historical moment in the fixed world coordinate system.
[0046] Specifically, for each time k, its vehicle pose in the global coordinate system is represented as: ,in, and The data processing procedure used to transform points in the vehicle coordinate system at time k to the global coordinate system can be represented by formula (2): (2); in, This represents the first coordinate in the vehicle's coordinate system at historical time k. This represents the global coordinates of the same point in the global coordinate system.
[0047] This implementation transforms each coordinate point in the vehicle coordinate system at historical moments to the global coordinate system, constructing a unified global spatial reference and improving the spatial consistency of the occupancy map prediction method. By transforming the coordinates based on the vehicle pose corresponding to the timestamp of each first latent space feature, coordinate conversion errors caused by temporal misalignment can be avoided, thereby improving the computational accuracy of subsequent motion compensation.
[0048] In one feasible implementation, step S20 may include steps S21 to S26: Step S21: Obtain the second coordinates of each point in the vehicle coordinate system at the target prediction time; It should be noted that the second coordinate is the coordinate of each point in the vehicle coordinate system under the three-plane potential space at the target prediction time, the spatial coordinate of all sampling points of the orthogonal plane grid, and the reference coordinate for the arrangement of the new feature grid after motion compensation.
[0049] Step S22: Match each second coordinate with the global coordinates corresponding to each point at the target historical time to obtain the initial global coordinates corresponding to each second coordinate. It should be noted that the initial global coordinates refer to the points corresponding to the second coordinates of each point at the target prediction time in the global coordinate system, which are used to match and associate with the global coordinates of each point at the historical time that have been calculated in the global coordinate system.
[0050] Step S23: Based on the vehicle pose at the target historical moment corresponding to each initial global coordinate, map each initial global coordinate to the first coordinate in the corresponding vehicle coordinate system. Step S24: If the first coordinate is within the coverage area of each first latent space feature, copy the features of each first coordinate and fill them into the features of the second coordinates corresponding to each first coordinate. Step S25: If the first coordinate is not within the coverage of each first latent space feature, fill the feature of the second coordinate corresponding to each first coordinate with 0; It should be noted that the coverage of the first latent space feature refers to the effective spatial boundary corresponding to the first latent space feature at a historical moment. A point falling within the boundary indicates that there is effective historical environmental feature information at that location; a feature fill of 0 indicates that there is no effective historical observation information at that spatial location.
[0051] Step S26: Based on the features of each second coordinate, obtain the second latent space features corresponding to each orthogonal plane.
[0052] It should be noted that the second latent space feature is a three-plane space feature that has been uniformly aligned to the vehicle coordinate system at the target time after cross-frame motion compensation.
[0053] Specifically, let i represent a given historical time, and j represent the target prediction time. This represents the second coordinate in the vehicle's coordinate system at the target prediction time j, using the vehicle's pose at the target time. Will Mapping to the global coordinate system, and then mapping it back to the vehicle's coordinate system at historical time i, yields... The first coordinate in the vehicle coordinate system at historical moment i The data processing procedure can be represented by formula (3): (3); If the first coordinate The corresponding position is located in the first latent space feature at historical time i. Within the coverage area, the first coordinate will be... Feature copied to the second coordinate Otherwise, the second coordinate The feature is filled with 0, indicating that there is no valid historical correspondence in this region, and it needs to be inferred by the prediction module. The second latent space feature at time j obtained after filling can be expressed by formula (4): (4); In addition, for easier understanding of the method in this embodiment, please refer to Figure 4 , Figure 4 coordinates in , , The three-dimensional grid representing the target prediction time in steps S331~S334 , Figure 4 This is an optional implementation flowchart of step S20 in an embodiment of the occupancy map prediction method of this application. Based on the vehicle's motion trajectory, this embodiment transforms each point in the vehicle coordinate system at the target prediction time j to the global coordinate system through target-history mapping, and then maps it to the vehicle coordinate system at the given historical time i, thereby finding the position of the three-dimensional coordinate point in the three-plane space at the target prediction time in the three-plane space at the historical time.
[0054] This implementation maps the coordinates of the vehicle coordinate system at the target prediction time to the vehicle coordinate system at historical times, and uniformly corrects the environmental features at different historical times to the vehicle coordinate system at the target time. This eliminates scene offsets caused by vehicle translation and turning, improves the alignment accuracy of temporal features, and enhances the accuracy of the occupancy map prediction method. Motion compensation calculations are performed independently in three sets of planes, reducing computational redundancy and improving the computational efficiency of the occupancy map prediction method.
[0055] In one feasible implementation, the step of obtaining the first query condition and the second query condition in step S30 further includes steps S31 to S32: Step S31: Obtain vehicle motion information within a preset time range, map the vehicle motion information to a multi-dimensional space, and obtain the first query condition; It should be noted that the preset time range refers to the vehicle motion planning window that matches the future occupancy map prediction time domain, usually set to 1-3 seconds, covering the core time scale of autonomous driving decision-making and planning; vehicle motion information refers to the set of time-series parameters recorded by the vehicle's sensors that can characterize the vehicle's driving intention, including but not limited to the three-dimensional position coordinates, driving speed, longitudinal acceleration, lateral acceleration, front wheel steering angle, gear and driving mode at historical moments; mapping vehicle motion information to multi-dimensional space refers to converting the time-series motion data into a fixed-dimensional feature vector through a dedicated encoder, enabling it to interact with latent space features through attention; the query is a vector used to calculate the attention weights of the prediction model, which determines which parts of the input sequence the model should focus on at the current position. The first query condition is a vectorized representation of the vehicle's subjective driving intention, used to guide the model to focus on the environmental areas related to the vehicle's motion path.
[0056] Step S32: Obtain pre-learned information on changes in the external environment and use this information as the second query condition.
[0057] It should be noted that the pre-learned external environment change information refers to the statistical regularities and behavioral patterns of dynamic environmental changes in different scenarios learned by the model from massive amounts of real driving data during the offline training phase, rather than the current environmental state perceived in real time. This includes, but is not limited to, the typical movement trajectories of different types of traffic participants, traffic flow characteristics of different road scenarios, and the probability of occurrence of common interactive behaviors. The second query condition is a vectorized representation of the prior knowledge of environmental dynamics, which can provide additional learnable slots for modeling residual scene changes that cannot be completely determined by the vehicle's movement, such as local appearance changes, occlusion changes, and new observation areas.
[0058] Specifically, based on the vehicle's motion information from time t to time t+1 It is mapped to multiple word units through a multilayer perceptron (MLP) and expanded into For each vehicle motion query, the data processing process can be represented by formula (5): (5); Then, introduce A learnable external query, the data processing procedure can be represented by formula (6): (6); This implementation method integrates two query conditions: vehicle query determines which areas require special attention, and external environment query determines the possible changes in these areas. The integration of the two query conditions can simultaneously consider the interaction between the vehicle and the environment, making the prediction results more consistent with the operational logic of real traffic scenarios. This makes future predictions controllable and adaptable to different scenarios, thereby improving the accuracy and reliability of the occupancy map prediction method.
[0059] In one feasible implementation, step S30, which predicts the changes corresponding to each orthogonal plane based on each second latent space feature, the first query condition, and the second query condition, further includes steps S33 to S36: Step S33: Convert each second latent space feature into a three-dimensional mesh feature, input the three-dimensional mesh feature into a preset encoder, and obtain the scene memory library by the encoder based on each second latent space feature and the historical time corresponding to each second latent space feature; It should be noted that the preset encoder is derived from the preset prediction model. As a preferred embodiment, the prediction model can adopt the encoder-decoder autoregressive architecture of the transformer model. The training process of the model is as follows: The future prediction module is trained using both latent space supervision and occupied space supervision. The data processing process of the training can be expressed by formula (7): (7); in, It is the sum of the L1 and L2 regression losses. This is used to balance supervision at the three-plane level and supervision at the occupancy level. During training, the pre-trained encoder is fixed to maintain the stability of the target three planes; at the same time, the Triplane decoder is fine-tuned during training to enable it to better reconstruct the occupancy scene from the predicted latent states.
[0060] Step S34: Concatenate the first query condition, the second query condition, and the preset future step embedding to obtain the concatenated query condition, wherein the future step embedding is used to represent the prediction requirement at least one future moment. Specifically, the final decoder query is obtained by concatenating the two types of queries and adding a learnable future step embedding. The data processing can be represented by formula (8): (8); For example, the total number of queries is set to be consistent with the number of 3D mesh features, i.e., the total number of queries. ,in For the number of vehicle queries, The number of queries in the external environment. This represents the number of features in the 3D mesh.
[0061] Step S35: Input the splicing query conditions into the preset decoder. The preset decoder performs attention interaction on the scene memory bank according to the splicing query conditions to predict the 3D mesh feature increment. Step S36: Convert the 3D mesh feature increments into the changes corresponding to each orthogonal plane.
[0062] This implementation transforms the two-dimensional features of the dispersed three-plane latent space into three-dimensional mesh features, which can more accurately capture the correlation and occlusion relationships of spatial structures and improve the inference accuracy of the prediction model. By integrating the three-dimensional mesh features of multiple historical moments and adding temporal coding, a structured scene memory is constructed, and a learnable future step embedding is introduced, enabling the decoder to retrieve relevant information from the scene memory at any historical moment through an attention mechanism, ensuring the temporal consistency of prediction results at different moments. The entire prediction process adopts an end-to-end trainable architecture, and the final output of the three-plane latent space feature changes is fully compatible with the two-dimensional feature update steps of the original scheme, improving the accuracy of prediction without affecting the smoothness of the occupancy graph prediction method.
[0063] In one feasible implementation, in steps S33-S36, the three-dimensional grid features include three-dimensional lexical features, and the three-dimensional grid feature increment includes an incremental lexical sequence. Step S33 further includes steps S331-S334: Step S331: Project and downsample each of the second latent space features to obtain the first low-resolution features corresponding to the three sets of orthogonal planes respectively; It should be noted that the first low-resolution feature is a compact feature representation obtained by compressing the dimensions of the high-resolution second latent space feature. This significantly reduces the computational cost of subsequent 3D modeling while preserving the core spatial semantic information. Projection and downsampling are processes that simultaneously achieve feature dimension compression and spatial information extraction through convolution operations.
[0064] Step S332: Broadcast each of the first low-resolution features to the three-dimensional grid to obtain three-dimensional word features; It should be noted that three-dimensional lexical features are feature representations obtained by extending two-dimensional planar features to three-dimensional space. Each three-dimensional lexical corresponds to a cubic grid in three-dimensional space and is the basic unit for the Transformer architecture to process three-dimensional spatial information. Broadcasting refers to the operation of copying and extending two-dimensional features along the depth dimension to three-dimensional space to form a three-dimensional feature vector.
[0065] Step S333: Based on the multiple historical moments corresponding to each second latent space feature, the three-dimensional word features corresponding to each second latent space feature are spliced together to obtain the historical word sequence. It should be noted that the historical lexical sequence is a temporal feature sequence formed by splicing three-dimensional lexical features from different historical moments in chronological order. Each three-dimensional lexical feature in the sequence corresponds to the three-dimensional spatial state of a historical moment.
[0066] Step S334: Input the historical lexical sequence and the pre-learned temporal embedding into the preset encoder, and generate a scene memory bank by interacting with the three-dimensional lexical features corresponding to each historical moment through a self-attention mechanism. The temporal embedding is used to represent the temporal relationship between the three-dimensional lexical features in the historical lexical sequence. It should be noted that temporal embedding is a set of learnable feature vectors, each vector uniquely corresponding to a historical moment, used to convey the temporal information of lexical units to the model, enabling the model to distinguish the spatial state at different times; self-attention mechanism is a deep learning mechanism of machine learning that captures the internal association of sequences through dynamic weight allocation, and can calculate the association weight between any two lexical units, realizing information interaction across time and space.
[0067] Step S36 also includes steps S361 to S362: Step S361: Reconstruct the incremental word sequence in the three-dimensional grid to obtain the second low-resolution feature; Step S362: Upsample the second low-resolution feature to obtain the change amount corresponding to each orthogonal plane.
[0068] It should be noted that the incremental word sequence is the prediction result output by the decoder, representing the change in three-dimensional word features in the future relative to the current time; reconstruction refers to the process of reorganizing the one-dimensional incremental word sequence into a three-dimensional grid structure to restore the spatial dimension information; the second low-resolution feature is a two-dimensional planar feature obtained by projecting the three-dimensional incremental feature, with the same size as the first low-resolution feature; upsampling is the process of restoring the low-resolution feature to the original high-resolution feature, which is achieved through transposed convolution or interpolation methods.
[0069] To facilitate understanding, the method of this embodiment combined with the above steps S33 to S36 will be described in detail below. Specifically, firstly, the motion-compensated three planes... The model is converted into a low-resolution 3D feature mesh, enabling the prediction model to model the scene within a uniform and compact spatial structure. Specifically, each plane is projected and downsampled by a lightweight 2D convolutional terminator encoder, denoted as […]. , and The number of output channels is Then, please refer to Figure 4 Three planar features are broadcast to a 3D mesh of the same size. The data is then merged. For each 3D mesh location... The calculation process of the fusion features can be represented by formula (9): (9); in, () indicates that a planar feature is broadcast to the 3D mesh along its missing axis. Subsequently, the fused feature is projected onto the token dimension of the Transformer and added to the 3D sinusoidal positional encoding. The data processing can be represented by formula (10): (10); in, () indicates mapping features to A fully connected layer of dimensionless type, where LN() represents layer normalization. This represents the spatial location encoding of a 3D mesh.
[0070] For each prediction step, we use the nearest... The three-plane states after motion compensation serve as the temporal context. After lexicalization, the historical lexical sequence is concatenated along the time dimension, and the data processing can be represented by formula (11): (11); Add learnable temporal embeddings to the concatenated lexical sequence To distinguish different historical moments, the sequence is encoded as spatiotemporal memory, and then the word sequence is input into the encoder of the prediction model. The data processing process can be represented by formula (12): (12); in, This represents the encoded spatiotemporal memory. Through a self-attention mechanism, the predictive model encoder allows lexical units from different spatial locations and historical moments to interact with each other, thereby generating a scene memory bank that summarizes recent scene context.
[0071] The predictive model decoder performs attentional interaction on the encoded historical memory and makes predictions. The data processing process can be represented by formula (13): (13); in, This represents the predicted incremental word sequence.
[0072] The predicted incremental terms are reconstructed back into a predefined 3D latent grid and restored to a three-plane resolution via an upsampling operation Up(). This data processing can be represented by formula (14): (14); Up() includes 3D feature refinement, interpolation, and projection back to the latent space features of each orthogonal plane, obtaining the change amount corresponding to each orthogonal plane. : .
[0073] To facilitate understanding, based on this implementation method, the implementation method of step S40 will be described in detail: the predicted changes corresponding to each orthogonal plane. The updated three-plane latent space features are then added to the corresponding motion-compensated second latent space features to obtain the updated three-plane latent space features, denoted as the third latent space features. The data processing procedure can be represented by formula (15): (15); This implementation transforms the latent space features of the three planes into a sequence of lexical terms, significantly reducing computational complexity and effectively improving the inference speed of the prediction model. Therefore, it can better capture long-distance dependencies in space and enhance the modeling ability for large scenes. By introducing a self-attention mechanism, it can automatically learn the relationships between different historical moments and spatial locations, combining the motion states of multiple past moments for global inference, thus improving prediction accuracy. Pre-learning temporal embeddings can explicitly convey the temporal information of lexical terms to the model, enabling it to distinguish spatial states at different times and learn the temporal patterns of environmental changes, further improving the accuracy and computational efficiency of the occupancy graph prediction model.
[0074] In one feasible implementation, step S50 may include steps S51-S52: Step S51: Based on each third latent space feature, obtain the position code and corresponding occupancy feature of each three-dimensional coordinate point in the three sets of orthogonal planes, wherein the occupancy feature includes at least a semantic label; It should be noted that the third latent space feature is a low-dimensional dense feature that integrates historical environmental information and future change predictions, containing all the key information about spatial structure, obstacle distribution, and dynamic changes; the position encoding is a feature vector used to characterize the position of a 3D coordinate point in the three-plane latent space, which can guide the decoder to accurately reconstruct the geometric relationship of the 3D space; the occupancy feature is a set of features describing the occupancy status of a point in the 3D space, including but not limited to occupancy status and semantic labels. The occupancy status indicates whether the point is occupied by an obstacle, or the probability that the point is occupied by an obstacle, and the semantic label indicates the category of obstacle, such as car, pedestrian, guardrail, building, etc.
[0075] Step S52: Input the location codes and corresponding occupancy features into the pre-trained three-plane decoder, and construct the future occupancy map through the three-plane decoder.
[0076] It should be noted that the three-plane decoder is a dedicated decoding network designed symmetrically with the three-plane encoder. It adopts a multi-branch transposed convolution structure, which can efficiently reconstruct the low-dimensional latent space features of three orthogonal planes into a high-resolution three-dimensional occupancy map.
[0077] Specifically, the updated third hidden space features Input three-plane decoder Decoded as a future occupied scene The data processing procedure can be represented by formula (16): (16); To facilitate understanding of the method in this embodiment combined with steps S11-S12, the following further explains that, in order to reconstruct the occupancy map, each three-dimensional coordinate point It queries the corresponding occupancy features from the third latent space features of the xy, xz, and yz planes. The retrieved features are then encoded with their positions. After fusion, it is input into the three-plane decoder. In this context, it is used to predict semantically occupied labels.
[0078] In addition, pre-training was conducted through occupation and reconstruction tasks. The data processing procedure can be represented by formulas (17) and (18): (17); (18); in, Indicates each moment, Represents the loss function. and These are cross-entropy loss (CE) and Lovasz-softmax loss, respectively. To reconstruct the 3D occupancy map at the future moment, For the corresponding truth value label.
[0079] This implementation decodes the predicted third latent space features into a future occupancy map in three-dimensional space, obtaining a prediction result corresponding to the historical occupancy map. During the decoding process, three-dimensional position encoding is introduced, and the occupancy status and semantic labels are output simultaneously. This accurately reconstructs the geometric structure and obstacle distribution in three-dimensional space, improving the accuracy of the prediction results. This facilitates the adoption of differentiated obstacle avoidance strategies by the motion planning system and exhibits good scalability. The decoding is completed based on a pre-trained three-plane decoder, meeting the real-time requirements of in-vehicle systems, making the prediction results visible, and improving the accuracy and convenience of occupancy map prediction.
[0080] For example, preferred methods according to the above embodiments are described in reference to... Figure 5 The captions above the image explain the types of obstacles represented by each color block: orange for ordinary obstacles, pink for bicycles, bright yellow for buses, dark blue for cars, light blue for parked vehicles, light brown for motorcycles, red for pedestrians, dark yellow for traffic cones, dark brown for trucks, purple for driveways, dark gray for other flat ground, black for sidewalks, light green for terrain, light gray for human obstacles, and dark green for vegetation. Figure 5 This image shows the prediction results of an embodiment of the occupancy map prediction method of this application, comparing the prediction results over the next 6 frames (0-3 seconds). The first row represents the actual values of the real scene; the second row represents the prediction results of the preferred method in the prior art (traditional world model), which contains missing elements and incorrect motion during the prediction process; the third row represents the method of this embodiment. It can be seen that in this embodiment, surrounding objects maintain consistency during prediction, and the motion pattern prediction is more accurate and closer to real scene changes. Furthermore, please refer to... Figure 6 , Figure 6 The meaning of the captions and symbols in the upper middle section are as follows: Figure 5 Completely consistent, the text in parentheses at the bottom of the figure represents the x-axis displacement, y-axis displacement, and azimuth change, respectively. For example, (+0.17 m, +2.43 m, -0.05 rad) represents a positive x-axis movement of 0.17 m, a positive y-axis movement of 2.43 m, and a negative azimuth deflection of 0.05 rad. The blue rectangular patterns are heatmaps reflecting the predictive model's attention to different areas of the 3D scene; warm colors indicate high attention, and cool colors indicate low attention. Figure 6 This is a query visualization diagram of an embodiment of the occupancy map prediction method of this application. It shows the query visualization of the predicted future occupancy map and the corresponding vehicle control signal under different future vehicle motion control signals given the same historical occupancy map context. Figure 6The first row shows the predicted future vehicle motion when the vehicle is turning, and the second row shows the predicted future vehicle motion when the vehicle is going straight. It can be seen that the vehicle query and the future vehicle motion control signal can be kept consistent, and the scene prediction can react in real time according to the vehicle's control signal.
[0081] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the occupancy map prediction method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.
[0082] This application also provides an occupancy map prediction device, please refer to... Figure 7 The occupancy map prediction device includes: Compression module 10 is used to compress the historical occupancy map into three sets of first latent space features corresponding to the orthogonal planes respectively; The compensation module 20 is used to perform motion compensation on each first latent space feature and obtain each second latent space feature corresponding to each first latent space feature. Prediction module 30 is used to predict the change amount corresponding to each orthogonal plane based on each second latent space feature, the first query condition, and the second query condition. Update module 40 is used to update each second latent space feature to obtain the updated third latent space features; Decoding module 50 is used to decode each third hidden space feature to obtain the future occupancy map.
[0083] The occupancy map prediction device provided in this application, employing the occupancy map prediction method in the above embodiments, can solve the technical problems of poor accuracy and low computational efficiency in the occupancy map prediction method. Compared with the prior art, the beneficial effects of the occupancy map prediction device provided in this application are the same as those of the occupancy map prediction method provided in the above embodiments, and other technical features in the occupancy map prediction device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0084] This application provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the occupancy map prediction method in Embodiment 1 above.
[0085] The following is for reference. Figure 8The diagram illustrates a structural schematic of an electronic device suitable for implementing embodiments of this application. The electronic devices in these embodiments may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 8 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0086] like Figure 8 As shown, the electronic device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the electronic device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. Communication device 1009 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data. While electronic devices with various systems are shown in the figures, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.
[0087] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0088] The electronic device provided in this application employs the occupancy map prediction method in the above embodiments, which can solve the technical problems of poor accuracy and low computational efficiency in the occupancy map prediction method. Compared with the prior art, the beneficial effects of the electronic device provided in this application are the same as those of the occupancy map prediction method provided in the above embodiments, and other technical features of the electronic device are the same as those disclosed in the method of the previous embodiment, and will not be repeated here.
[0089] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0090] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0091] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the occupancy map prediction method in the above embodiments.
[0092] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0093] The aforementioned computer-readable storage medium may be included in an electronic device or may exist independently without being assembled into an electronic device.
[0094] The aforementioned computer-readable storage medium carries one or more programs, which, when executed by an electronic device, cause the electronic device to: The historical occupation map is compressed into three sets of orthogonal planes, each corresponding to the first latent space features; Motion compensation is performed on each first latent space feature based on the vehicle pose at multiple historical moments to obtain each second latent space feature corresponding to each first latent space feature. Obtain the first query condition and the second query condition, and based on the features of each second latent space, the first query condition and the second query condition, predict the change amount corresponding to each orthogonal plane, wherein the first query condition and the second query condition correspond to the vehicle query and the external environment query, respectively. Based on the changes corresponding to each orthogonal plane, update the features of each second latent space to obtain the updated features of each third latent space. Decode each third hidden space feature to obtain the future occupancy map.
[0095] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0096] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0097] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0098] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described occupancy map prediction method, thereby solving the technical problems of poor accuracy and low computational efficiency in the occupancy map prediction method. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the occupancy map prediction method provided in the above embodiments, and will not be repeated here.
[0099] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the occupancy map prediction method as described above.
[0100] The computer program product provided in this application can solve the technical problems of poor accuracy and low computational efficiency in occupancy map prediction methods. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the occupancy map prediction method provided in the above embodiments, and will not be repeated here.
[0101] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. An occupancy map prediction method, characterized in that, The method includes: The historical occupation map is compressed into three sets of orthogonal planes, each corresponding to the first latent space features; Motion compensation is performed on each of the first latent space features based on the vehicle pose at multiple historical moments to obtain each of the second latent space features corresponding to each of the first latent space features. Obtain the first query condition and the second query condition, and based on each of the second latent space features, the first query condition and the second query condition, predict the change amount corresponding to each of the orthogonal planes, wherein the first query condition and the second query condition correspond to the vehicle query and the external environment query, respectively. Based on the change amount corresponding to each of the orthogonal planes, update each of the second latent space features to obtain the updated third latent space features. Decode each of the third latent space features to obtain the future occupancy map; The step of performing motion compensation on each of the first latent space features based on the vehicle pose at multiple historical moments, and obtaining the corresponding second latent space features for each of the first latent space features, includes: Obtain the second coordinates of each point in the vehicle coordinate system at the target prediction time; Match each of the second coordinates with the global coordinates corresponding to each point at the target historical time to obtain the initial global coordinates corresponding to each of the second coordinates; Based on the vehicle pose at the target historical moment corresponding to each of the initial global coordinates, each of the initial global coordinates is mapped to the first coordinate in the corresponding vehicle coordinate system. If the first coordinate is within the coverage area of each of the first latent space features, copy the features of each of the first coordinates and fill them into the features of the second coordinates corresponding to each of the first coordinates. If the first coordinate is not within the coverage of each of the first latent space features, fill the feature of the second coordinate corresponding to each of the first coordinates with 0; Based on the features of each of the second coordinates, the second latent space features corresponding to each of the orthogonal planes are obtained.
2. The method as described in claim 1, characterized in that, Before the step of performing motion compensation on each of the first latent space features based on the vehicle pose at multiple historical moments, the method further includes: Based on each of the first latent space features, the historical vehicle poses corresponding to the multiple historical moments in the global coordinate system are obtained respectively. Based on the historical vehicle poses, the first coordinates of each point in the vehicle coordinate system at each historical moment are obtained, wherein the vehicle coordinate system is a coordinate system constructed with the vehicle as the origin. Based on the historical vehicle poses and by transforming the first coordinates to the global coordinate system, the global coordinates of each point at each historical moment in the global coordinate system are obtained.
3. The method as described in claim 1, characterized in that, The steps for obtaining the first query condition and the second query condition include: Obtain vehicle motion information within a preset time range, map the vehicle motion information to a multi-dimensional space, and obtain the first query condition; Obtain pre-learned information on changes in the external environment, and use this information as a second query condition.
4. The method as described in claim 1, characterized in that, The step of predicting the change amount corresponding to each of the orthogonal planes based on each of the second latent space features, the first query condition, and the second query condition includes: Each of the second latent space features is converted into a three-dimensional mesh feature, and the three-dimensional mesh feature is input into a preset encoder. The encoder obtains a scene memory library based on each of the second latent space features and the historical time corresponding to each of the second latent space features. By concatenating the first query condition, the second query condition, and the preset future step embedding, a concatenated query condition is obtained, wherein the future step embedding is used to represent the prediction requirement at least one future moment; Input the splicing query conditions into a preset decoder, and the preset decoder performs attention interaction on the scene memory based on the splicing query conditions to predict the 3D mesh feature increment; The feature increment of the three-dimensional mesh is converted into the change amount corresponding to each of the orthogonal planes.
5. The method as described in claim 4, characterized in that, The three-dimensional mesh features include three-dimensional lexical features, and the three-dimensional mesh feature increments include incremental lexical sequences. The steps of converting each of the second latent space features into three-dimensional mesh features, inputting the three-dimensional mesh features into a preset encoder, and obtaining the scene memory bank through the encoder based on each of the second latent space features and the historical time corresponding to each of the second latent space features include: Projecting and downsampling each of the second latent space features yields the first low-resolution features corresponding to the three sets of orthogonal planes, respectively. Each of the first low-resolution features is broadcast to a three-dimensional grid to obtain three-dimensional word features; Based on multiple historical moments corresponding to each of the second latent space features, the three-dimensional word features corresponding to each of the second latent space features are spliced together to obtain a historical word sequence. The historical lexical sequence and the pre-learned temporal embedding are input into a preset encoder. The three-dimensional lexical features corresponding to each historical moment are interacted through a self-attention mechanism to generate a scene memory bank. The temporal embedding is used to characterize the temporal relationship between the three-dimensional lexical features in the historical lexical sequence. The step of converting the three-dimensional mesh feature increment into the change amount corresponding to each of the orthogonal planes includes: The incremental word sequence is reconstructed in a three-dimensional grid to obtain the second low-resolution feature; Upsample the second low-resolution feature to obtain the change amount corresponding to each of the orthogonal planes.
6. The method as described in claim 1, characterized in that, The step of compressing the historical occupancy map into three sets of orthogonal planes corresponding to the first latent space features includes: Input the historical occupancy map into a pre-trained three-plane encoder; The three-plane encoder obtains the first latent space features corresponding to each of the three orthogonal planes based on the projection of the historical occupancy map onto the three sets of orthogonal planes. The three sets of orthogonal planes are three mutually perpendicular planes, including the top view plane, the front view plane, and the side view plane.
7. The method as described in claim 1, characterized in that, The step of decoding each of the third latent space features to obtain the future occupancy map includes: Based on the third latent space features, the position codes and corresponding occupancy features of each three-dimensional coordinate point in the three sets of orthogonal planes are obtained, wherein the occupancy features include at least semantic labels; The location codes and corresponding occupancy features are input into a pre-trained three-plane decoder, and a future occupancy map is constructed through the three-plane decoder.
8. An electronic device, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the occupancy map prediction method as described in any one of claims 1 to 7.
9. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the occupancy map prediction method as described in any one of claims 1 to 7.
