Adversarial interactive enhancement method and device for ice and snow scene automatic driving test

By generating a multimodal joint input tensor and performing self-supervised pre-training, the problem of scarce manually labeled data in trajectory prediction models in icy and snowy scenarios is solved, which improves the accuracy of trajectory prediction and the ability to interact with adversarial vehicles, and ensures the safety of autonomous driving tests.

CN123138780APending Publication Date: 2026-11-20CHANGCHUN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610293744.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-03-11
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Trajectory prediction models in icy and snowy scenarios rely on scarce manually labeled data, resulting in high training difficulty, weak generalization ability, and low trajectory prediction accuracy, which cannot guarantee the effectiveness of autonomous driving safety verification.

Method used

By generating a multimodal joint input tensor, masking and self-supervised pre-training are performed to generate weight information adapted to the ice and snow scene, reducing the difficulty of model training, enhancing the model's generalization ability, and improving the accuracy of trajectory prediction.

Benefits of technology

It effectively improves the accuracy of vehicle trajectory prediction and the ability to interact with vehicles in icy and snowy scenarios, ensuring the safety and effectiveness of autonomous driving testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123138780A_ABST
    Figure CN123138780A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of vehicle trajectory prediction, in particular to an adversarial interaction enhancement method and device for automatic driving test in an ice and snow scene, wherein the method comprises the following steps: acquiring trajectory information and lane environment information of a test vehicle in a target scene to generate a multi-modal joint input tensor of the test vehicle, then masking the multi-modal joint input tensor to obtain a masking result, performing self-supervised pre-training on the masking result to obtain a pre-training result, generating weight information of the pre-training result, and obtaining trajectory prediction information of a to-be-tested vehicle according to the weight information to achieve a preset adversarial interaction enhancement condition. Therefore, the problem that in the related art, ice and snow scene annotation data is extremely scarce, lane features are masked, model training is difficult, generalization ability is weak, trajectory prediction accuracy of the to-be-tested vehicle is low, errors are large, adversarial vehicle interaction ability is insufficient, decision reliability is poor, and automatic driving safety verification effectiveness cannot be guaranteed is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle trajectory prediction technology, and in particular to an adversarial interaction enhancement method and device for autonomous driving testing in icy and snowy scenarios. Background Technology

[0002] Icy and snowy scenarios, due to their low road surface friction coefficient, strong environmental interference, and the potential loss of lane features due to obscuring, have become bottleneck scenarios for autonomous driving safety verification. In autonomous driving tests in icy and snowy scenarios, the adversary vehicle needs to accurately predict the future trajectory of the vehicle under test and dynamically adjust its own behavior strategy accordingly. The accuracy and real-time adaptability of its trajectory prediction directly determine the depth and effectiveness of autonomous driving safety verification and are key prerequisites for ensuring test reliability.

[0003] In related technologies, trajectory prediction models mainly rely on manually labeled conventional scene (dry road surface) datasets for supervised training. The core logic is to collect historical trajectory data of the vehicle under test and combine it with fixed road environment features to complete the fitting and prediction of future trajectories. Such models can achieve basic trajectory prediction functions in undisturbed conventional road surface scenarios, providing preliminary technical support for autonomous driving testing.

[0004] However, in related technologies, the models rely on a large amount of manually labeled data. In snowy and icy scenarios, due to the high testing difficulty and high data collection cost, labeled data is extremely scarce, and lane features are masked, resulting in high training difficulty and weak generalization ability of the models. They cannot adapt to the complex environment of snowy and icy scenarios, and the adversarial vehicles have low accuracy and large errors in predicting the trajectory of the test vehicles. The adversarial vehicles also have insufficient interaction capabilities and poor decision-making reliability, making it difficult to meet the actual needs of autonomous driving testing in snowy and icy scenarios and failing to guarantee the effectiveness of safety verification. These issues urgently need to be addressed. Summary of the Invention

[0005] This application provides an adversarial interaction enhancement method and device for autonomous driving testing in icy and snowy scenarios, in order to solve the problems in related technologies where the extremely scarce labeled data for icy and snowy scenarios and the masking of lane features lead to high difficulty in model training, weak generalization ability, low accuracy and large error in trajectory prediction of the test vehicle, resulting in insufficient adversarial vehicle interaction ability, poor decision reliability, and inability to guarantee the effectiveness of autonomous driving safety verification.

[0006] The first aspect of this application provides an adversarial interaction enhancement method for autonomous driving testing in icy and snowy scenarios, comprising the following steps: acquiring trajectory information and lane environment information of at least one test vehicle in a target scenario; generating a multimodal joint input tensor for the at least one test vehicle based on the trajectory information and the lane environment information; masking the multimodal joint input tensor to obtain a masking result, and performing self-supervised pre-training on the masking result to obtain a pre-training result, thereby generating weight information of the pre-training result, and obtaining trajectory prediction information of the vehicle to be tested based on the weight information, so as to achieve preset adversarial interaction enhancement conditions.

[0007] Based on the above technical means, this application embodiment effectively achieves unified representation of multi-source heterogeneous data by generating a multimodal joint input tensor, eliminating modal differences. By masking the multimodal joint input tensor, a masking result is obtained, and the masking result is subjected to self-supervised pre-training. Without relying on a large amount of manually labeled data, weight information adapted to the ice and snow scene can be generated, effectively reducing the difficulty of model training, enhancing the model's generalization ability, and loading the weight information for fine-tuning to obtain the trajectory prediction information of the vehicle under test. This effectively improves the accuracy of vehicle trajectory prediction in ice and snow scenes, reduces prediction errors, provides accurate and reliable decision-making basis for adversarial vehicles, enhances the interaction capability of adversarial vehicles in autonomous driving tests in ice and snow scenes, and ensures the effectiveness of safety verification.

[0008] Optionally, in one embodiment of this application, obtaining the trajectory prediction information of the vehicle under test based on the weight information includes: acquiring the actual trajectory information and actual lane environment information of the vehicle under test; fusing and stitching the actual trajectory information and the actual lane environment information based on the weight information to generate a feature map of the vehicle under test; enhancing the feature map to obtain a final enhanced feature map; and generating the trajectory prediction information based on the final enhanced feature map.

[0009] Based on the above technical means, the embodiments of this application effectively ensure the adaptability of the model to the ice and snow environment by transferring weight information, and fuse and stitch together the actual trajectory information and the actual lane environment information to effectively integrate vehicle trajectory features and lane environment features, form a unified structured feature representation, and enhance the feature map to improve the feature representation capability.

[0010] Optionally, in one embodiment of this application, generating the multimodal joint input tensor of the at least one test vehicle based on the trajectory information and the lane environment information includes: mapping the trajectory information and the lane environment information to a target embedding space to obtain historical information, future information and lane information in the target embedding space; and generating the multimodal joint input tensor based on the historical information, the future information and the lane information.

[0011] Based on the above technical means, the embodiments of this application map trajectory information and lane environment information to the target embedding space and generate a multimodal joint input tensor based on historical information, future information and lane information, effectively eliminating modal differences, providing a unified input information basis for the subsequent execution of ice and snow feature masking reconstruction strategy, and providing reliable data support for accurate trajectory prediction and adversarial interaction enhancement.

[0012] Optionally, in one embodiment of this application, the step of performing self-supervised pre-training on the masking result to obtain a pre-training result and generating weight information of the pre-training result includes: extracting visible data features of the masking result, determining the feature space of the masking result, and retrieving the index vector of the token; reconstructing the visible data features into the feature space, and completing the token based on the feature space and the index vector to obtain a decoding result; performing self-supervised pre-training based on the multimodal joint input tensor, the decoding result, and the target loss function to obtain a pre-training result; and obtaining the weight information based on the pre-training result.

[0013] Based on the above technical means, the embodiments of this application reconstruct the visible data features into the feature space, and complete the token according to the feature space and index vector to obtain the decoding result. Then, self-supervised pre-training is performed to obtain weight information, enabling the model to learn to recover the ice and snow scene features from the incomplete data, reducing the dependence on the labeled data under the ice and snow scene, effectively reducing the model training cost, and facilitating the subsequent transfer of weight information, accelerating the model fine-tuning process, and improving the model deployment efficiency.

[0014] Optionally, in one embodiment of this application, the enhancement processing of the feature map to obtain a final enhanced feature map includes: performing global average pooling and nonlinear transformation on the feature map to obtain channel attention weights of the feature map; obtaining an enhanced feature map based on the channel attention weights and the feature map; performing feature extraction and nonlinear transformation on the enhanced feature map to obtain spatial attention weights of the enhanced feature map; and obtaining the final enhanced feature map based on the spatial attention weights and the enhanced feature map.

[0015] Based on the above technical means, the embodiments of this application obtain an enhanced feature map according to the channel attention weight and feature map, which effectively avoids overfitting of single channel features, and obtains the final enhanced feature map according to the spatial attention weight and enhanced feature map, effectively mining real-time motion behavior and road structure information, improving the expressive ability of features in the spatial dimension, improving the real-time prediction accuracy of trajectory, providing a more stable and accurate prediction basis for counter-vehicles, and effectively enhancing the interaction capability and decision reliability in ice and snow scenarios.

[0016] Optionally, in one embodiment of this application, generating the trajectory prediction information based on the final enhanced feature map includes: generating multiple potential future trajectories of the vehicle under test and corresponding multiple probability weights based on the final enhanced feature map; and aggregating the multiple potential future trajectories and the multiple probability weights to generate the trajectory prediction information.

[0017] Based on the above technical means, this application embodiment generates multiple potential future trajectories and corresponding multiple probability weights of the vehicle under test according to the final enhanced feature map, effectively covering multiple possible movement modes of the vehicle under test in complex ice and snow scenarios, providing comprehensive real-time risk prediction basis for the adversary vehicle, effectively improving the interaction adaptability and rationality of interaction decisions between the adversary vehicle and the vehicle under test, and strengthening the adversarial interaction enhancement effect.

[0018] A second aspect of this application provides an adversarial interaction enhancement device for autonomous driving testing in icy and snowy scenarios, comprising: an acquisition module for acquiring trajectory information and lane environment information of at least one test vehicle in a target scenario; a generation module for generating a multimodal joint input tensor of the at least one test vehicle based on the trajectory information and the lane environment information; and an enhancement module for masking the multimodal joint input tensor to obtain a masking result, performing self-supervised pre-training on the masking result to obtain a pre-training result, generating weight information of the pre-training result, and obtaining trajectory prediction information of the test vehicle based on the weight information to achieve preset adversarial interaction enhancement conditions.

[0019] Based on the above technical means, this application embodiment effectively achieves unified representation of multi-source heterogeneous data by generating a multimodal joint input tensor, eliminating modal differences. By masking the multimodal joint input tensor, a masking result is obtained, and the masking result is subjected to self-supervised pre-training. Without relying on a large amount of manually labeled data, weight information adapted to the ice and snow scene can be generated, effectively reducing the difficulty of model training, enhancing the model's generalization ability, and loading the weight information for fine-tuning to obtain the trajectory prediction information of the vehicle under test. This effectively improves the accuracy of vehicle trajectory prediction in ice and snow scenes, reduces prediction errors, provides accurate and reliable decision-making basis for adversarial vehicles, enhances the interaction capability of adversarial vehicles in autonomous driving tests in ice and snow scenes, and ensures the effectiveness of safety verification.

[0020] Optionally, in one embodiment of this application, the enhancement module includes: an acquisition unit, configured to acquire the actual trajectory information and actual lane environment information of the vehicle under test; a first generation unit, configured to fuse and stitch the actual trajectory information and the actual lane environment information based on the weight information to generate a feature map of the vehicle under test; a second generation unit, configured to enhance the feature map to obtain a final enhanced feature map; and a third generation unit, configured to generate the trajectory prediction information based on the final enhanced feature map.

[0021] Based on the above technical means, the embodiments of this application effectively ensure the adaptability of the model to the ice and snow environment by transferring weight information, and fuse and stitch together the actual trajectory information and the actual lane environment information to effectively integrate vehicle trajectory features and lane environment features, form a unified structured feature representation, and enhance the feature map to improve the feature representation capability.

[0022] Optionally, in one embodiment of this application, the generation module includes: a fourth generation unit, configured to map the trajectory information and the lane environment information to a target embedding space to obtain historical information, future information and lane information in the target embedding space; and a fifth generation unit, configured to generate the multimodal joint input tensor based on the historical information, the future information and the lane information.

[0023] Based on the above technical means, the embodiments of this application map trajectory information and lane environment information to the target embedding space and generate a multimodal joint input tensor based on historical information, future information and lane information, effectively eliminating modal differences, providing a unified input information basis for the subsequent execution of ice and snow feature masking reconstruction strategy, and providing reliable data support for accurate trajectory prediction and adversarial interaction enhancement.

[0024] Optionally, in one embodiment of this application, the enhancement module includes: an extraction unit, configured to extract visible data features of the masking result, determine the feature space of the masking result, and retrieve the index vector of the token; a sixth generation unit, configured to reconstruct the visible data features into the feature space, and complete the token based on the feature space and the index vector to obtain a decoding result; a seventh generation unit, configured to perform self-supervised pre-training based on the multimodal joint input tensor, the decoding result, and the target loss function to obtain a pre-training result; and an eighth generation unit, configured to obtain the weight information based on the pre-training result.

[0025] Based on the above technical means, the embodiments of this application reconstruct the visible data features into the feature space, and complete the token according to the feature space and index vector to obtain the decoding result. Then, self-supervised pre-training is performed to obtain weight information. This enables the model to learn to recover the ice and snow scene features from the incomplete data, reduce the dependence on the labeled data in the ice and snow scene, effectively reduce the model training cost, facilitate the subsequent transfer of weight information, accelerate the model fine-tuning process, and improve the model deployment efficiency.

[0026] Optionally, in one embodiment of this application, the second generation unit includes: a first generation subunit, configured to perform global average pooling and nonlinear transformation on the feature map to obtain channel attention weights of the feature map; a second generation subunit, configured to obtain an enhanced feature map based on the channel attention weights and the feature map; a third generation subunit, configured to perform feature extraction and nonlinear transformation on the enhanced feature map to obtain spatial attention weights of the enhanced feature map; and a fourth generation subunit, configured to obtain the final enhanced feature map based on the spatial attention weights and the enhanced feature map.

[0027] Based on the above technical means, the embodiments of this application obtain an enhanced feature map according to the channel attention weight and feature map, which effectively avoids overfitting of single channel features, and obtains the final enhanced feature map according to the spatial attention weight and enhanced feature map, effectively mining real-time motion behavior and road structure information, improving the expressive ability of features in the spatial dimension, improving the real-time prediction accuracy of trajectory, providing a more stable and accurate prediction basis for counter-vehicles, and effectively enhancing the interaction capability and decision reliability in ice and snow scenarios.

[0028] Optionally, in one embodiment of this application, the third generation unit includes: a fifth generation subunit, configured to generate multiple potential future trajectories and corresponding multiple probability weights of the vehicle under test based on the final enhanced feature map; and a sixth generation subunit, configured to aggregate the multiple potential future trajectories and the multiple probability weights to generate the trajectory prediction information.

[0029] Based on the above technical means, this application embodiment generates multiple potential future trajectories and corresponding multiple probability weights of the vehicle under test according to the final enhanced feature map, effectively covering multiple possible movement modes of the vehicle under test in complex ice and snow scenarios, providing comprehensive real-time risk prediction basis for the adversary vehicle, effectively improving the interaction adaptability and rationality of interaction decisions between the adversary vehicle and the vehicle under test, and strengthening the adversarial interaction enhancement effect.

[0030] A third aspect of this application provides a vehicle, including: a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the program to implement the adversarial interaction enhancement method for autonomous driving testing in ice and snow scenarios as described in the above embodiments.

[0031] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described adversarial interaction enhancement method for autonomous driving testing in snow and ice scenarios.

[0032] A fifth aspect of this application provides a computer program product, including a computer program that, when executed, implements the above-described adversarial interaction enhancement method for autonomous driving testing in snow and ice scenarios.

[0033] This application's embodiments effectively achieve unified representation of multi-source heterogeneous data by generating a multimodal joint input tensor, eliminating modal differences. Masking results are obtained by masking the multimodal joint input tensor, and self-supervised pre-training is performed on the masking results. This eliminates the need for extensive manually labeled data, generating weight information adapted to icy and snowy scenarios, effectively reducing model training difficulty and enhancing model generalization ability. Fine-tuning by loading the weight information yields trajectory prediction information for the vehicle under test, effectively improving the accuracy of vehicle trajectory prediction in icy and snowy scenarios, reducing prediction errors, providing accurate and reliable decision-making basis for adversarial vehicles, enhancing the interaction capabilities of adversarial vehicles in autonomous driving testing in icy and snowy scenarios, and ensuring the effectiveness of safety verification. Therefore, this solves the problems in related technologies where the extreme scarcity of labeled data for icy and snowy scenarios and the masking of lane features lead to high model training difficulty, weak generalization ability, low accuracy and large errors in trajectory prediction of the vehicle under test, resulting in insufficient interaction capabilities of adversarial vehicles, poor decision reliability, and an inability to guarantee the effectiveness of autonomous driving safety verification.

[0034] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description

[0035] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:

[0036] Figure 1 This is a flowchart of an adversarial interaction enhancement method for autonomous driving testing in snowy and icy environments, provided according to an embodiment of this application. Figure 2 This is a schematic diagram illustrating the influence trend of a masking reconstruction strategy provided according to an embodiment of this application; Figure 3This is a schematic diagram visualizing the results provided according to one embodiment of this application; Figure 4 This is a schematic diagram illustrating the principle of trajectory prediction according to an embodiment of this application; Figure 5 This is a schematic diagram of a trajectory prediction framework provided according to an embodiment of this application; Figure 6 This is a block diagram of an adversarial interaction enhancement device for autonomous driving testing in snow and ice scenarios provided according to an embodiment of this application; Figure 7 This is a structural schematic diagram of a vehicle provided according to an embodiment of this application.

[0037] Figure label: 60 - Adversarial interaction enhancement device for autonomous driving testing in ice and snow scenarios; 100 - Acquisition module; 200 - Generation module; 300 - Enhancement module; 701 - Memory; 702 - Processor; 703 - Communication interface. Detailed Implementation

[0038] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.

[0039] The following description, with reference to the accompanying drawings, describes an adversarial interaction enhancement method and apparatus for autonomous driving testing in snowy and icy scenarios, according to embodiments of this application. To address the issues mentioned in the background art, such as the extreme scarcity of labeled data for snow and ice scenes and the masking of lane features, which leads to high training difficulty, weak generalization ability, low accuracy and large errors in trajectory prediction of the test vehicle, resulting in insufficient adversarial vehicle interaction capabilities, poor decision reliability, and inability to guarantee the effectiveness of autonomous driving safety verification, this application provides an adversarial interaction enhancement method for autonomous driving testing in snow and ice scenes. This method effectively achieves unified representation of multi-source heterogeneous data by generating a multimodal joint input tensor, eliminating modal differences. The masking result is obtained by masking the multimodal joint input tensor, and self-supervised pre-training is performed on the masking result. This eliminates the need for a large amount of manually labeled data to generate weight information adapted to snow and ice scenes, effectively reducing model training difficulty and enhancing model generalization ability. By loading the weight information for fine-tuning, trajectory prediction information of the test vehicle is obtained, effectively improving the accuracy of vehicle trajectory prediction in snow and ice scenes, reducing prediction errors, providing accurate and reliable decision-making basis for adversarial vehicles, enhancing the interaction capabilities of adversarial vehicles in autonomous driving testing in snow and ice scenes, and ensuring the effectiveness of safety verification. This solves the problems in related technologies, such as the extreme scarcity of labeled data for ice and snow scenes, the masking of lane features, which leads to high difficulty in model training, weak generalization ability, low accuracy and large errors in trajectory prediction of test vehicles, insufficient adversarial vehicle interaction capabilities, poor decision reliability, and inability to guarantee the effectiveness of autonomous driving safety verification.

[0040] Specifically, Figure 1 This is a flowchart of an adversarial interaction enhancement method for autonomous driving testing in snowy and icy scenarios, provided according to an embodiment of this application.

[0041] like Figure 1 As shown, the adversarial interaction enhancement method for autonomous driving testing in icy and snowy scenarios includes the following steps: In step S101, the trajectory information and lane environment information of at least one test vehicle in the target scenario are obtained.

[0042] In the embodiments of this application, the target scenario can be understood as an application scenario determined by those skilled in the art based on testing requirements, which may include, but is not limited to, ice and snow scenarios and dry scenarios. The target scenario includes road environment, traffic participants, and climate conditions, and is used for data collection and model training.

[0043] A test vehicle can be understood as a vehicle driving in a target scenario, used to collect trajectory information and lane environment information of the test vehicle.

[0044] Trajectory information can be understood as a dataset reflecting the motion state of the test vehicle during its driving in the target scene. It may include, but is not limited to, real-time position, driving speed, driving direction, steering angle and acceleration. This application does not impose any specific restrictions.

[0045] Lane environment information can be understood as the relevant road environment dataset during the test vehicle's driving in the target scenario, which may include, but is not limited to, the number of lanes, width, curvature, and boundary position. This application does not impose any specific restrictions.

[0046] In some cases, embodiments of this application can collect data based on the motion prediction portion of the Argoverse 2 autonomous driving perception and prediction research dataset, which contains 250,000 unique real traffic multimodal scene fragments and rich agent trajectory information and map lane information, covering typical scenarios such as straight driving, turning, lane changing, and intersections, providing trajectory information and lane environment information for test vehicles.

[0047] In addition, the embodiments of this application can preprocess the trajectory information and lane environment information of the test vehicle, remove abnormal data such as trajectory jumps and missing lane information, and synchronize the trajectory information with the coordinate system to obtain the effective information therein, providing a data foundation for subsequent processing.

[0048] In step S102, at least one multimodal joint input tensor for a test vehicle is generated based on trajectory information and lane environment information.

[0049] In the embodiments of this application, the multimodal joint input tensor can be understood as a high-dimensional tensor generated by embedding, mapping, temporal alignment and dimensional unification of the trajectory information and lane environment information of the test vehicle.

[0050] The following details how embodiments of this application generate a multimodal joint input tensor for at least one test vehicle based on trajectory information and lane environment information.

[0051] Specifically, in one embodiment of this application, generating a multimodal joint input tensor for at least one test vehicle based on trajectory information and lane environment information includes: mapping the trajectory information and lane environment information to a target embedding space to obtain historical information, future information and lane information in the target embedding space; and generating a multimodal joint input tensor based on the historical information, future information and lane information.

[0052] In the embodiments of this application, the target embedding space can be understood as a high-dimensional feature space that maps trajectory information and lane environment information, and is used to achieve feature alignment and unified representation of data of different modalities and different dimensions.

[0053] Historical information can be understood as the historical trajectory in the test vehicle trajectory information, which is then mapped and represented as a feature in the target embedding space.

[0054] Future information can be understood as the future trajectory in the test vehicle trajectory information, which is then mapped and represented as a feature in the target embedding space.

[0055] Lane information can be understood as the lane environment information of the test vehicle, which is then mapped and represented as a feature in the target embedding space.

[0056] In some cases, embodiments of this application will use valid information obtained from the trajectory information and lane environment information of the test vehicle to perform feature transformation through an embedding layer, mapping it to a unified target embedding space to obtain historical information. Future Information Lane information .in, Indicates batch size. This indicates the number of vehicles per frame. Indicates the number of historical time steps. The feature dimensions representing historical information For future time steps, As a characteristic dimension of future information, For the number of roads, The time steps of lane information. For lane information feature dimensions, It is the set of real numbers.

[0057] In this process, the embedding layer aligns the time steps and feature dimensions of historical information, future information, and lane information during feature transformation to generate a multimodal joint input tensor.

[0058] This application embodiment maps trajectory information and lane environment information to the target embedding space and generates a multimodal joint input tensor based on historical information, future information, and lane information. This effectively eliminates modal differences, provides a unified input information basis for the subsequent execution of ice and snow feature masking and reconstruction strategies, and provides reliable data support for accurate trajectory prediction and adversarial interaction enhancement.

[0059] In step S103, the masking multimodal joint input tensor is used to obtain the masking result, and the masking result is subjected to self-supervised pre-training to obtain the pre-training result, so as to generate the weight information of the pre-training result, and the trajectory prediction information of the vehicle to be tested is obtained according to the weight information, so as to achieve the preset adversarial interaction enhancement conditions.

[0060] In the embodiments of this application, the masking result can be understood as the feature tensor obtained after performing a random masking operation on the multimodal joint input tensor.

[0061] In some cases, embodiments of this application simulate data distortion in snow and ice scenes using a masking reconstruction strategy based on multimodal joint input tensors, thereby training the model's ability to recover features from incomplete information.

[0062] First, to enhance the interaction capabilities of the adversarial vehicle with the test vehicle in icy and snowy scenarios, this application embodiment can simulate two types of problems in icy and snowy scenarios through dynamic masking: for lane information (lane line coordinates and width), the lane line coordinates and boundaries of the lane are randomly masked (the masking ratio is dynamically adjusted) to simulate the scenario where snow covers the lane; for historical and future information (the historical trajectory and future trajectory of the driving vehicle), the trajectory points in the historical trajectory and future trajectory of the driving vehicle are randomly masked to simulate the scenario where ice and snow reduce the reflectivity of the lidar, blur the camera image, and cause the track data to be missing.

[0063] After dynamic masking, the embodiments of this application obtain a masking result, and the expression of the masking result may be, but is not limited to, the following: , in, As a result of concealing historical information, Tokens for historical information Preserve the token's index vector in the historical information. As a result of concealing future information, Tokens for future information Reserve the token's index vector for future information. The result of masking lane information, Token for lane information Reserve the index vector of the token in the lane information.

[0064] It should be noted that when selecting and retaining tokens, this embodiment calculates the number of tokens to be retained based on a certain masking ratio set in the masking reconstruction strategy, and constructs a corresponding index vector based on the number of tokens, so as to locate in the multimodal joint input tensor according to the index vector and obtain the masking result.

[0065] For example, such as Figure 2As shown, the masking ratio affects the subsequent model prediction performance. MR (Miss Rate), minADE (minimum Average Displacement Error), and minFDE (minimum Final Displacement Error) are evaluation metrics; lower metric values ​​indicate better model prediction performance. The figure shows that when the masking ratio is 0.6, MR drops to 0.703, minADE drops to 0.189, and minFDE drops to 0.419, indicating that at this masking ratio, the model achieves the optimal balance between prediction accuracy, coverage, and endpoint location accuracy for vehicle trajectories in icy and snowy scenes.

[0066] The following details how the embodiments of this application perform self-supervised pre-training on the masking results to obtain pre-training results, thereby generating weight information of the pre-training results.

[0067] Specifically, in one embodiment of this application, self-supervised pre-training is performed on the masking result to obtain pre-training results, thereby generating weight information of the pre-training results. This includes: extracting visible data features of the masking result and determining the feature space of the masking result, and retrieving the index vector of the token; reconstructing the visible data features into the feature space, and completing the token based on the feature space and the index vector to obtain the decoding result; performing self-supervised pre-training based on the multimodal joint input tensor, the decoding result, and the target loss function to obtain the pre-training result; and obtaining weight information based on the pre-training result.

[0068] In the embodiments of this application, visible data features can be understood as the part of the feature tensor that is not covered by the mask and retains the original feature information after the masking operation is performed on the multimodal joint input tensor.

[0069] The feature space can be understood as a high-dimensional feature space that matches the output dimension of the encoder. It is the target space for visible data feature reconstruction and token completion, and is used to unify the feature representation dimension.

[0070] The index vector can be understood as a set of position indices of the feature tokens covered by the mask in the original input tensor, which are pre-recorded during the masking operation stage. It is used to locate the positions of the tokens that need to be completed during the decoding stage, so as to realize the directional reconstruction of the incomplete features.

[0071] The decoding result can be understood as a feature tensor with the same dimension as the multimodal joint input tensor, obtained by reconstructing and completing the masked feature tokens through the decoder based on visible data features, feature space and index vector.

[0072] In some cases, embodiments of this application use a Transformer encoder to extract features from the masking results to obtain visible data features (dynamic correlation features between vehicle trajectory and lane environment). The encoder is composed of multiple layers of Transformer Blocks stacked together, each layer including a multi-head self-attention mechanism, a feedforward network, residual connections, and layer normalization.

[0073] The multi-head self-attention mechanism captures contextual information at each time step through attention weight calculation. After being concatenated by multiple attention heads, it is mapped back to the original dimension via linear transformation. This is used to integrate and refine vehicle trajectory features and lane environment features in icy and snowy scenarios. The expression for its calculation process can be, but is not limited to, as follows: , , in, This is a multi-head self-attention mechanism process. For query vector, For key vectors, For value vectors, To conceal the results, To query the weight matrix, The key weight matrix is... For value weight matrix, For normalization function, The dimension of the key vector.

[0074] The feedforward network consists of two fully connected layers, and its computation process can be, but is not limited to, as follows: , in, This refers to the nonlinear transformation operation in the feedforward network. For process vectors, This is the weight matrix of the first fully connected layer. This is the weight matrix of the second fully connected layer. This is the bias vector of the first fully connected layer. This is the bias vector for the second fully connected layer. The activation function (which enhances the expressive power of the model by introducing non-linear activation).

[0075] Residual connections and layer normalization are used to improve training stability. Residual connections add the input information directly to the output without transformation, preventing gradient vanishing in deep networks. Layer normalization standardizes the input information of each layer to accelerate model convergence. Its calculation process can be, but is not limited to, as follows: , , in, For process vectors, This is a multi-head self-attention mechanism process. This is the first residual join operation. For layer normalization operation, This is the first output vector. This refers to the nonlinear transformation operation in the feedforward network. For the second residual join operation, This is the second output vector.

[0076] Furthermore, in this embodiment, the visible data features can be reconstructed and spliced ​​using a Transformer decoder to restore them to a feature space consistent with the masking result. Then, the masked token can be completed according to the token's index vector to obtain the completed token.

[0077] It can be seen that the expression for data features can be, but is not limited to, as follows: , in, For visible data features, The number of unmasked tokens. For feature dimension, It is the set of real numbers.

[0078] To ensure the temporal order and spatial consistency of the trajectory data, this embodiment adds a location code (marking the time step and spatial location of each token) to the completion token, and normalizes the completion token with the added location code to obtain the decoding result (reconstructing the features of the ice and snow scene). The Transformer decoder uses mean squared error loss and mean absolute error loss to calculate the reconstruction loss of lane information, historical information, and future information respectively (which can be understood as calculating the difference between the decoding result and the multimodal joint input tensor). The reconstruction loss of lane information, historical information, and future information is weighted and summed to obtain the target loss function, so as to enhance the reconstruction accuracy and ensure that the model learns to adapt to the real-time prediction capability of ice and snow scenarios.

[0079] The expression for the target loss function can be, but is not limited to, as follows: , in, For the total loss, These are the pre-trained weight coefficients for historical information. For pre-trained weight coefficients of future information, These are the pre-trained weight coefficients for lane information. For the loss of historical information during reconstruction, For the loss of information in the future The loss is used to reconstruct lane information. The pre-trained weight coefficients can be iteratively optimized to balance the degree of influence of the loss among different parts.

[0080] This application embodiment reconstructs visible data features into a feature space, and completes the token based on the feature space and index vector to obtain the decoding result. Then, it performs self-supervised pre-training to obtain weight information. This enables the model to learn to recover the features of the ice and snow scene from the incomplete data, reduces the dependence on the labeled data in the ice and snow scene, effectively reduces the model training cost, facilitates the subsequent transfer of weight information, accelerates the model fine-tuning process, and improves the model deployment efficiency.

[0081] The following details how embodiments of this application obtain trajectory prediction information for the vehicle under test based on weight information.

[0082] Specifically, in one embodiment of this application, obtaining trajectory prediction information of the vehicle under test based on weight information includes: acquiring actual trajectory information and actual lane environment information of the vehicle under test; fusing and stitching the actual trajectory information and actual lane environment information based on weight information to generate a feature map of the vehicle under test; enhancing the feature map to obtain a final enhanced feature map; and generating trajectory prediction information based on the final enhanced feature map.

[0083] In the embodiments of this application, the vehicle under test can be understood as the target vehicle whose trajectory is predicted by an adversarial vehicle in an ice and snow scene.

[0084] The actual trajectory information can be understood as a dataset that reflects the motion state of the vehicle under test in real time in an ice and snow scene. It may include, but is not limited to, real-time position, driving speed, driving direction, steering angle and acceleration. This application does not impose any specific restrictions.

[0085] Actual lane environment information can be understood as a real-time road environment dataset collected by the test vehicle in an icy or snowy scene, which may include, but is not limited to, the number of lanes, width, curvature, and boundary position. This application does not impose any specific restrictions.

[0086] The feature map can be understood as a high-dimensional structured feature tensor obtained by fusing and splicing the actual trajectory information and actual lane environment information of the vehicle under test and encoding it with an encoder.

[0087] Trajectory prediction information can be understood as multiple potential trajectories and corresponding probability weights of the test vehicle generated by a multimodal trajectory decoder based on the final enhanced feature map, which are used to support the interactive decision-making and strategy adjustment of adversarial vehicles.

[0088] In some cases, embodiments of this application first load weight information and then perform fine-tuning training based on the weight information to obtain trajectory prediction information based on the actual trajectory information of the vehicle under test and the actual lane environment information of the traffic scenario.

[0089] First, in this embodiment, the adversarial vehicle acquires the actual trajectory information (historical trajectory) and actual lane environment information of the vehicle under test as input information. Then, the input information is converted into a unified vector representation through an embedding layer to obtain embedded information. Feature fusion is then performed on the embedded information to mine the potential correlation between vehicle trajectory features and lane environment features, resulting in fused features. The expression for the fused features can be, but is not limited to, as follows: , in, As a feature of fusion, For vehicle trajectory characteristics This refers to the characteristics of the lane environment.

[0090] In addition, embodiments of this application can load the weight file generated during the pre-training stage (in .ckpt format, which supports loading on the PyTorch Lightning framework and contains pre-training parameter configurations and knowledge representations) to initialize the Transformer encoder weights of the real-time prediction model. This weight file contains prior knowledge of the ice and snow scene learned during the pre-training stage (such as anti-interference ability, dynamic correlation between vehicle trajectory and lane environment), enabling the real-time prediction model to directly reuse pre-training experience without having to train from scratch, thereby improving the efficiency of prediction implementation.

[0091] Furthermore, in this embodiment, the fused features are concatenated, and positional encoding is added to obtain the concatenated features. The expression for the concatenated features can be, but is not limited to, as follows: , in, For splicing features, For feature splicing operations, For vehicle trajectory characteristics For lane environment characteristics, This represents the number of vehicle trajectory features. For the number of lane environment features, For the dimension of a single feature, It is the set of real numbers.

[0092] Subsequently, in this embodiment, the spliced ​​features (also known as embedded sequence information, i.e., sequence data composed of vectors generated by the embedding layer, which is the standard data form that the Transformer encoder can process) are fed into the Transformer encoder. The encoder's multi-head self-attention mechanism captures contextual information for each time step by calculating attention weights. The encoder's feedforward network performs nonlinear transformation using the GELU activation function (which has smoother gradient properties and is suitable for sequence modeling scenarios). Residual connections and layer normalization act on the multi-head self-attention mechanism and the feedforward network to enhance training stability and suppress the gradient vanishing problem during training.

[0093] It is understood that, in order to fit subsequent computer vision operations, the feature information output by the encoder in this application embodiment is called a feature map, and then the feature map is enhanced to obtain a final enhanced feature map, and trajectory prediction information is generated based on the final enhanced feature map.

[0094] This application embodiment effectively ensures the model's adaptability to icy and snowy environments by transferring weight information, and integrates and stitches together actual trajectory information and actual lane environment information to effectively combine vehicle trajectory features and lane environment features to form a unified structured feature representation. Furthermore, it enhances the feature map to improve feature representation capabilities.

[0095] The following details how the embodiments of this application enhance the feature map to obtain the final enhanced feature map.

[0096] Specifically, in one embodiment of this application, the feature map is enhanced to obtain a final enhanced feature map, including: performing global average pooling and nonlinear transformation on the feature map to obtain channel attention weights of the feature map; obtaining an enhanced feature map based on the channel attention weights and the feature map; performing feature extraction and nonlinear transformation on the enhanced feature map to obtain spatial attention weights of the enhanced feature map; and obtaining a final enhanced feature map based on the spatial attention weights and the enhanced feature map.

[0097] In the embodiments of this application, the channel attention weight can be understood as a weight vector representing the importance of each channel feature after performing global average pooling and nonlinear transformation on the feature map.

[0098] Enhanced feature maps can be understood as feature tensors obtained by multiplying the channel attention weights element-wise with the feature map.

[0099] Spatial attention weights can be understood as weight matrices that characterize the importance of features at each spatial location after feature extraction and nonlinear transformation of the enhanced feature map.

[0100] The final enhanced feature map can be understood as the feature tensor obtained by multiplying the spatial attention weights element-wise with the enhanced feature map.

[0101] In some cases, embodiments of this application employ a channel spatial fusion module to enhance the feature map. The channel spatial fusion module may include, but is not limited to, a channel information submodule, a channel shuffling operation, and a spatial feature enhancement submodule, to achieve joint enhancement across the spatiotemporal dimensions.

[0102] First, in this embodiment, the channel spatial fusion module performs global average pooling on the input feature map, compressing the features of each channel into a scalar to obtain global features. Then, two fully connected layers are used to perform a nonlinear transformation on the global features to obtain the channel attention weights. The formula for calculating the channel attention weights can be, but is not limited to, the following: , in, For channel attention weights, It is the Sigmoid activation function. This is the weight matrix of the first fully connected layer. This is the weight matrix of the second fully connected layer. For activation function, This is a global average pooling operation. This is a feature map.

[0103] Furthermore, in this embodiment, the channel attention weights are multiplied element-wise with the feature map to obtain the enhanced feature map. The formula for calculating the enhanced feature map can be, but is not limited to, the following: , in, To enhance the feature map, For feature maps, This is an element-wise multiplication operation.

[0104] The embodiments of this application capture the global dependencies of channels through the above-mentioned global average pooling operation. The generated channel attention weights can enhance the feature representation of important channels in ice and snow scenes and improve the semantic recognition of features.

[0105] Subsequently, this embodiment performs a channel shuffling operation on the enhanced feature map to obtain a channel-shuffled feature map. This breaks the characteristic of independent channel enhancement or suppression, enhances the cross-channel information mixing capability, avoids overfitting of single-channel features, and improves the model's ability to fuse multimodal features of ice and snow scenes. The expression for the channel shuffling operation can be, but is not limited to, as follows: , in, This is a feature map of channel shuffling. For channel mixed washing operation, To enhance the feature map.

[0106] Subsequently, in this embodiment, two convolutional layers in the spatial feature enhancement submodule extract features from the channel shuffled feature map to obtain local spatial features. A batch normalization layer in the spatial feature enhancement submodule then accelerates training and enhances model stability to obtain spatial attention weights. The formula for calculating the spatial attention weights is: , in, Spatial attention weights, It is the Sigmoid activation function. This is the first convolutional layer. This is the second convolutional layer. For activation function, For batch normalization layer, This is a feature map of channel mixing and shuffling.

[0107] Furthermore, in this embodiment, the spatial attention weights are multiplied element-wise with the channel shuffling feature map to obtain the final enhanced feature map. The formula for calculating the final enhanced feature map can be, but is not limited to, the following: , in, To ultimately enhance the feature map, This is a feature map of channel shuffling. This is an element-wise multiplication operation.

[0108] This application embodiment obtains an enhanced feature map based on channel attention weights and feature maps, effectively avoiding overfitting of single-channel features. It also obtains a final enhanced feature map based on spatial attention weights and enhanced feature maps, effectively mining real-time motion behavior and road structure information, improving the expressive power of features in the spatial dimension, improving the real-time prediction accuracy of trajectories, providing a more stable and accurate prediction basis for combat vehicles, and effectively enhancing the interaction capability and decision reliability in ice and snow scenarios.

[0109] The following details how embodiments of this application generate trajectory prediction information based on the final enhanced feature map to achieve certain adversarial interaction enhancement conditions.

[0110] Specifically, in one embodiment of this application, generating trajectory prediction information based on the final enhanced feature map includes: generating multiple potential future trajectories of the vehicle under test and corresponding multiple probability weights based on the final enhanced feature map; aggregating the multiple potential future trajectories and multiple probability weights to generate trajectory prediction information.

[0111] In the embodiments of this application, the potential future trajectory can be understood as the final enhanced feature map, which predicts multiple motion paths that the vehicle under test may follow in the future.

[0112] The probability weight can be understood as the confidence value assigned to each potential future trajectory, used to quantify the likelihood that the trajectory will become the vehicle's actual movement path.

[0113] In some cases, after obtaining the final enhanced feature map, embodiments of this application encode the final enhanced feature map into agent features of the vehicle under test, and then input the agent features into a multimodal decoder, which includes... K The system has several parallel trajectory prediction branches. Each branch outputs a potential future trajectory of the vehicle under test through a linear transformation and a nonlinear activation function, and outputs the probability weight of the potential future trajectory.

[0114] The expression for the output of the multimodal decoder can be, but is not limited to, as follows: , in, For the first The potential future trajectory generated by each branch contains the trajectory coordinates of T future time steps; For the first The probability weights of each branch satisfy the following conditions: ; The intelligent agent characteristics of the vehicle under test; This is a multimodal decoder function; The number of trajectories generated.

[0115] It is understood that the embodiments of this application generate multiple potential future trajectories and probability weights through the above-mentioned multi-branch parallel prediction, thereby improving the comprehensiveness of the prediction model and providing sufficient basis for the real-time combat behavior decision-making of the combat vehicle to cope with the uncertainty in the ice and snow scene.

[0116] In addition, certain conditions for enhanced adversarial interaction can be understood as improving the accuracy and reliability of trajectory prediction for the vehicle under test in icy and snowy scenarios, so that the adversarial vehicle can achieve safe interaction and behavioral decisions with the vehicle under test based on trajectory prediction information. This application does not impose specific limitations.

[0117] In some cases, embodiments of this application can determine whether the accuracy of trajectory prediction reaches a certain threshold based on trajectory prediction information, thereby confirming that certain conditions for enhanced adversarial interaction have been met.

[0118] Of course, in other cases, the embodiments of this application can determine, based on trajectory prediction information, that multiple potential future trajectories cover the actual driving path of the vehicle under test in an ice and snow scenario, thereby determining that certain conditions for enhanced adversarial interaction have been met.

[0119] Of course, in other cases, the embodiments of this application can use the adversarial vehicle to identify the slip and deviation trends of the vehicle under test in the ice and snow scene based on the trajectory prediction information, and determine that certain adversarial interaction enhancement conditions have been met.

[0120] Furthermore, in this embodiment of the application, after reaching certain conditions for enhanced adversarial interaction, all output results can be integrated into a multimodal prediction set to characterize the various possibilities of the future motion of the vehicle under test, and a result weight file of the prediction model can be generated, which contains model parameter information.

[0121] like Figure 3 As shown, the result weight file supports result visualization, displaying multimodal trajectories in the form of graphs or charts, presenting potential future paths with different probabilities, significantly improving the decision-making efficiency of adversarial vehicles, and adapting to the complex interaction needs in ice and snow scenarios.

[0122] This application embodiment generates multiple potential future trajectories and corresponding probability weights for the vehicle under test based on the final enhanced feature map, effectively covering multiple possible movement modes of the vehicle under test in complex ice and snow scenarios, providing comprehensive real-time risk prediction basis for the adversary vehicle, effectively improving the interaction adaptability and rationality of interaction decisions between the adversary vehicle and the vehicle under test, and strengthening the adversarial interaction enhancement effect.

[0123] The principle of the adversarial interaction enhancement method for autonomous driving testing in snow and ice scenarios proposed in this application is illustrated below with a specific embodiment.

[0124] like Figure 4 and Figure 5 As shown, this embodiment of the application obtains the trajectory information (including historical and future temporal motion data) and lane environment information (including road structure, snow and ice coverage, etc.) of the test vehicle in the target ice and snow scene. Then, the two types of information are mapped to a unified target embedding space through the embedding layer to obtain historical information, future information and lane information. Multimodal joint input tensors are generated through multi-source fusion to complete data preprocessing and feature alignment.

[0125] Furthermore, in this embodiment, a random masking operation is performed on the multimodal joint input tensor to obtain a masking result, which is then input into a self-supervised learning pre-training module. Figure 5The left-hand pre-training branch reconstructs the visible data features using a Transformer encoder-decoder structure, completes the masked feature tokens, obtains the decoding result, and generates weight information through backpropagation iterative optimization based on the decoding result and the target loss function, thus completing the pre-training and providing model support for adversarial interaction.

[0126] Furthermore, in this embodiment, the actual trajectory information and actual lane environment information of the vehicle under test are obtained. A prediction model is initialized based on the pre-trained weight information. The actual trajectory information and actual lane environment information are fused, spliced, and encoded to generate a feature map. Channel attention enhancement and spatial attention enhancement are then sequentially applied to the feature map. Figure 5 The right-side feature enhancement module obtains the final enhanced feature map, which in turn generates multiple potential future trajectories and corresponding probability weights for the vehicle under test. These trajectories are then aggregated to obtain trajectory prediction information, thereby achieving certain conditions for enhanced adversarial interaction and providing reliable decision-making basis for adversarial vehicles, thus enhancing interaction capabilities.

[0127] The adversarial interaction enhancement method for autonomous driving testing in icy and snowy scenarios proposed in this application effectively achieves unified representation of multi-source heterogeneous data by generating a multimodal joint input tensor, eliminating modal differences. Masking results are obtained by masking the multimodal joint input tensor, and self-supervised pre-training is performed on the masking results. This generates weight information adapted to icy and snowy scenarios without relying on a large amount of manually labeled data, effectively reducing model training difficulty and enhancing model generalization ability. Fine-tuning is performed by loading the weight information to obtain trajectory prediction information for the vehicle under test, effectively improving the accuracy of vehicle trajectory prediction in icy and snowy scenarios, reducing prediction errors, providing accurate and reliable decision-making basis for adversarial vehicles, enhancing the interaction capability of adversarial vehicles in autonomous driving testing in icy and snowy scenarios, and ensuring the effectiveness of safety verification. Therefore, this solves the problems in related technologies where the extreme scarcity of labeled data in icy and snowy scenarios and the masking of lane features lead to high model training difficulty, weak generalization ability, low accuracy and large errors in trajectory prediction of the vehicle under test, resulting in insufficient interaction capability and poor decision reliability of adversarial vehicles, and ultimately failing to guarantee the effectiveness of autonomous driving safety verification.

[0128] Next, referring to the accompanying drawings, we describe the adversarial interaction enhancement device for autonomous driving testing in snow and ice scenarios proposed in accordance with the embodiments of this application.

[0129] Figure 6 This is a block diagram of an adversarial interaction enhancement device for autonomous driving testing in snow and ice scenarios, provided according to an embodiment of this application.

[0130] like Figure 6 As shown, the adversarial interaction enhancement device 60 for autonomous driving testing in ice and snow scenarios includes: an acquisition module 100, a generation module 200, and an enhancement module 300.

[0131] The acquisition module 100 is used to acquire trajectory information and lane environment information of at least one test vehicle in the target scenario.

[0132] The generation module 200 is used to generate a multimodal joint input tensor for at least one test vehicle based on trajectory information and lane environment information.

[0133] The enhancement module 300 is used to mask the multimodal joint input tensor to obtain the masking result, and to perform self-supervised pre-training on the masking result to obtain the pre-training result, so as to generate the weight information of the pre-training result, and to obtain the trajectory prediction information of the vehicle under test based on the weight information, so as to achieve the preset adversarial interaction enhancement conditions.

[0134] Optionally, in one embodiment of this application, the enhancement module 300 includes: an acquisition unit, a first generation unit, a second generation unit, and a third generation unit.

[0135] The acquisition unit is used to acquire the actual trajectory information and actual lane environment information of the vehicle under test.

[0136] The first generation unit is used to fuse and stitch together the actual trajectory information and the actual lane environment information based on the weight information to generate a feature map of the vehicle to be tested.

[0137] The second generation unit is used to enhance the feature map to obtain the final enhanced feature map.

[0138] The third generation unit is used to generate trajectory prediction information based on the final enhanced feature map.

[0139] Optionally, in one embodiment of this application, the generation module 200 includes a fourth generation unit and a fifth generation unit.

[0140] The fourth generation unit is used to map trajectory information and lane environment information to the target embedding space to obtain historical information, future information and lane information in the target embedding space.

[0141] The fifth generation unit is used to generate a multimodal joint input tensor based on historical information, future information, and lane information.

[0142] Optionally, in one embodiment of this application, the enhancement module 300 includes: an extraction unit, a sixth generation unit, a seventh generation unit, and an eighth generation unit.

[0143] The extraction unit is used to extract the visible data features of the masking result, determine the feature space of the masking result, and retrieve the index vector of the token.

[0144] The sixth generation unit is used to reconstruct the visible data features into the feature space, and complete the token based on the feature space and index vector to obtain the decoding result.

[0145] The seventh generation unit is used to perform self-supervised pre-training based on the multimodal joint input tensor, decoding results, and target loss function to obtain pre-training results.

[0146] The eighth generation unit is used to obtain weight information based on the pre-training results.

[0147] Optionally, in one embodiment of this application, the second generation unit includes: a first generation subunit, a second generation subunit, a third generation subunit, and a fourth generation subunit.

[0148] The first generation subunit is used to perform global average pooling and nonlinear transformation on the feature map to obtain the channel attention weights of the feature map.

[0149] The second generation subunit is used to obtain the enhanced feature map based on the channel attention weights and the feature map.

[0150] The third generation subunit is used to perform feature extraction and nonlinear transformation on the enhanced feature map to obtain the spatial attention weights of the enhanced feature map.

[0151] The fourth generation sub-unit is used to obtain the final enhanced feature map based on the spatial attention weights and the enhanced feature map.

[0152] Optionally, in one embodiment of this application, the third generation unit includes a fifth generation subunit and a sixth generation subunit.

[0153] The fifth generation subunit is used to generate multiple potential future trajectories of the vehicle under test and their corresponding multiple probability weights based on the final enhanced feature map.

[0154] The sixth generation subunit is used to aggregate multiple potential future trajectories and multiple probability weights to generate trajectory prediction information.

[0155] It should be noted that the foregoing explanation of the adversarial interaction enhancement method embodiment for autonomous driving testing in snow and ice scenarios also applies to the adversarial interaction enhancement device for autonomous driving testing in snow and ice scenarios in this embodiment, and will not be repeated here.

[0156] The adversarial interaction enhancement device for autonomous driving testing in icy and snowy scenarios proposed in this application effectively achieves unified representation of multi-source heterogeneous data by generating a multimodal joint input tensor, eliminating modal differences. It obtains masking results by masking the multimodal joint input tensor and performs self-supervised pre-training on the masking results. This eliminates the need for extensive manually labeled data, generating weight information adapted to icy and snowy scenarios, effectively reducing model training difficulty and enhancing model generalization ability. Furthermore, by loading the weight information for fine-tuning, it obtains trajectory prediction information for the vehicle under test, effectively improving the accuracy of vehicle trajectory prediction in icy and snowy scenarios, reducing prediction errors, and providing accurate and reliable decision-making basis for adversarial vehicles. This enhances the interaction capability of adversarial vehicles in autonomous driving testing in icy and snowy scenarios, ensuring the effectiveness of safety verification. Therefore, it solves the problem in related technologies where the extreme scarcity of labeled data for icy and snowy scenarios leads to high model training difficulty, weak generalization ability, low accuracy and large errors in trajectory prediction of the vehicle under test, resulting in insufficient interaction capability and poor decision reliability of adversarial vehicles, thus failing to guarantee the effectiveness of autonomous driving safety verification.

[0157] Figure 7 This is a schematic diagram of the structure of a vehicle according to an embodiment of this application. The vehicle may include: The memory 701, the processor 702, and the computer program stored on the memory 701 and executable on the processor 702.

[0158] When the processor 702 executes the program, it implements the adversarial interaction enhancement method for autonomous driving testing in ice and snow scenarios provided in the above embodiments.

[0159] Furthermore, the vehicle also includes: Communication interface 703 is used for communication between memory 701 and processor 702.

[0160] The memory 701 is used to store computer programs that can run on the processor 702.

[0161] The memory 701 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.

[0162] If the memory 701, processor 702, and communication interface 703 are implemented independently, then the communication interface 703, memory 701, and processor 702 can be interconnected via a bus to complete communication between them. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized into address buses, data buses, control buses, etc. For ease of representation, Figure 7 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0163] Optionally, in a specific implementation, if the memory 701, processor 702, and communication interface 703 are integrated on a single chip, then the memory 701, processor 702, and communication interface 703 can communicate with each other through an internal interface.

[0164] The processor 702 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.

[0165] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described adversarial interaction enhancement method for autonomous driving testing in snow and ice scenarios.

[0166] This application also provides a computer program product, including a computer program that, when executed, implements the above-described adversarial interaction enhancement method for autonomous driving testing in snow and ice scenarios.

[0167] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0168] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0169] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or N executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.

[0170] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.

[0171] It should be understood that the various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, it can be implemented using any one or more of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0172] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.

[0173] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

[0174] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.

Claims

1. A method for enhancing adversarial interaction in autonomous driving testing in icy and snowy scenarios, characterized in that, Includes the following steps: Acquire trajectory information and lane environment information of at least one test vehicle in the target scenario; Generate a multimodal joint input tensor for at least one test vehicle based on the trajectory information and the lane environment information; The multimodal joint input tensor is masked to obtain a masking result, and the masking result is subjected to self-supervised pre-training to obtain a pre-training result, so as to generate weight information of the pre-training result, and the trajectory prediction information of the vehicle to be tested is obtained according to the weight information to achieve the preset adversarial interaction enhancement conditions.

2. The method according to claim 1, characterized in that, The step of obtaining trajectory prediction information for the vehicle under test based on the weight information includes: Obtain the actual trajectory information and actual lane environment information of the vehicle under test; Based on the weight information, the actual trajectory information and the actual lane environment information are fused and stitched together to generate a feature map of the vehicle under test. The feature map is then enhanced to obtain the final enhanced feature map; The trajectory prediction information is generated based on the final enhanced feature map.

3. The method according to claim 1, characterized in that, The step of generating the multimodal joint input tensor of the at least one test vehicle based on the trajectory information and the lane environment information includes: The trajectory information and the lane environment information are mapped to the target embedding space to obtain historical information, future information and lane information in the target embedding space; The multimodal joint input tensor is generated based on the historical information, the future information, and the lane information.

4. The method according to claim 1, characterized in that, The step of performing self-supervised pre-training on the masking result to obtain pre-training results, and generating weight information of the pre-training results, includes: Extract the visible data features of the masking result, determine the feature space of the masking result, and retrieve the index vector of the token; The visible data features are reconstructed into the feature space, and the token is completed based on the feature space and the index vector to obtain the decoding result; Self-supervised pre-training is performed based on the multimodal joint input tensor, the decoding result, and the target loss function to obtain the pre-training result; The weight information is obtained based on the pre-training results.

5. The method according to claim 2, characterized in that, The enhancement process of the feature map to obtain the final enhanced feature map includes: Global average pooling and nonlinear transformation are performed on the feature map to obtain the channel attention weights of the feature map; An enhanced feature map is obtained based on the channel attention weights and the feature map; Feature extraction and nonlinear transformation are performed on the enhanced feature map to obtain the spatial attention weights of the enhanced feature map; The final enhanced feature map is obtained based on the spatial attention weights and the enhanced feature map.

6. The method according to claim 2, characterized in that, The step of generating the trajectory prediction information based on the final enhanced feature map includes: Based on the final enhanced feature map, multiple potential future trajectories of the vehicle under test and corresponding multiple probability weights are generated. The multiple potential future trajectories and the multiple probability weights are aggregated to generate the trajectory prediction information.

7. An adversarial interaction enhancement device for autonomous driving testing in ice and snow scenarios, characterized in that, include: The acquisition module is used to acquire trajectory information and lane environment information of at least one test vehicle in the target scenario; The generation module is used to generate a multimodal joint input tensor for the at least one test vehicle based on the trajectory information and the lane environment information. The enhancement module is used to mask the multimodal joint input tensor to obtain a masking result, and to perform self-supervised pre-training on the masking result to obtain a pre-training result, so as to generate weight information of the pre-training result, and to obtain trajectory prediction information of the vehicle to be tested based on the weight information, so as to achieve the preset adversarial interaction enhancement conditions.

8. A vehicle, characterized in that, include: The memory, the processor, and the computer program stored in the memory and capable of running on the processor, wherein the processor executes the program to implement the adversarial interaction enhancement method for autonomous driving testing in snow and ice scenarios as described in any one of claims 1-6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, The program is executed by the processor to implement the adversarial interaction enhancement method for autonomous driving testing in snow and ice scenarios as described in any one of claims 1-6.

10. A computer program product, comprising a computer program, characterized in that, The computer program is executed to implement the adversarial interaction enhancement method for autonomous driving testing in snow and ice scenarios as described in any one of claims 1-6.