Automatic driving scene mining method and device, equipment, storage medium and program product

By receiving and processing multi-modal scene mining conditions, the autonomous driving scene mining method searches for similar scenes from the preset scene vector library, solving the problems of rule dependence and insufficient data synthesis in the existing technology, and improving the training of autonomous driving models. efficiency and data quality.

CN118779651APending Publication Date: 2024-10-15NINGBO LOTUS ROBOTICS CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410792384.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing autonomous driving scene mining methods rely on preset rules and data synthesis, which cannot fully cover potential scenarios, and synthetic data may not fully simulate the characteristics of real data, resulting in a decrease in data quality and a negative impact on model training.

Method used

Provides an autonomous driving scene mining method that receives scene mining conditions, processes them into condition vectors, searches for the target scene vector with the highest similarity to it from the preset scene vector library, and uses convolutional neural networks and visual encoders to extract images Feature vector supports multi-modal input of text, image and video types, enhancing the flexibility and adaptability of scene mining.

Benefits of technology

It can effectively mine autonomous driving scenes with similar conditions to scene mining, increase the amount of training data, improve model iteration efficiency, provide high-precision similarity search, enhance the flexibility and adaptability of scene mining, and expand the scope of applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779651A_ABST
    Figure CN118779651A_ABST
Patent Text Reader

Abstract

The invention relates to an automatic driving scene mining method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the following steps: receiving a scene mining condition; processing the scene mining condition into a condition vector according to an input type corresponding to the scene mining condition; the input type comprises at least one of a text type, an image type and a video type; searching a target scene vector with the highest similarity with the condition vector from a preset scene vector library; and taking the automatic driving scene data corresponding to the target scene vector as a mining result corresponding to the scene mining condition. By adopting the method, the automatic driving scene similar to the scene mining condition can be rapidly mined, so that the training data volume of the automatic driving scene is increased, and the iteration efficiency of the model is improved; a multi-modal mining condition input mode is provided, the flexibility and adaptability of scene mining are enhanced, and the application range of scene mining is expanded.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of machine learning technology, and in particular to an autonomous driving scene mining method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] Scene mining plays a vital role in autonomous driving technology. It aims to search and filter out scene data that meets the requirements from the massive data collected by autonomous driving, and continuously improve the processing and response capabilities of the autonomous driving system in various practical application scenarios by continuously supplementing the model's training set.

[0003] At present, the rule-based data mining method is generally used, which is to match the collected data through a series of preset rules to filter out the data that meets the rules. However, this method relies on pre-defined rules and cannot fully cover all potential scenarios; due to the uncertainty of image information, when unknown categories or information appear, the rule-based method cannot mine effective information.

[0004] In addition, traditional methods also use data synthesis methods to deal with the problem of insufficient long-tail scenarios in data sets. The specific method is to use mathematical transformation, random perturbation or statistical model-based methods to synthesize or mutate existing data samples to generate new data samples; in the process of data synthesis or mutation, increase the sample size of long-tail categories in order to improve the balance of the data set. However, the synthesized data in this way may not be able to fully simulate the statistical characteristics and distribution laws of real data, resulting in a decrease in data quality; noise and outliers may be generated during the synthesis process, and these non-realistic data samples may have a negative impact on model training. Summary of the invention

[0005] Based on this, it is necessary to provide an autonomous driving scene mining method, device, computer equipment, computer readable storage medium and computer program product to address the above-mentioned technical problems, which can mine autonomous driving scenes with similar scene mining conditions, thereby increasing the amount of training data for the autonomous driving scene and improving the iteration efficiency of the model.

[0006] In a first aspect, the present application provides an autonomous driving scene mining method, comprising:

[0007] Receive scene mining conditions;

[0008] According to the input type corresponding to the scene mining condition, the scene mining condition is processed into a condition vector; the input type includes at least one of a text type, an image type, and a video type;

[0009] Searching for a target scene vector having the highest similarity to the conditional vector from a preset scene vector library; the preset scene vector library stores scene vectors corresponding to several autonomous driving scenes;

[0010] The autonomous driving scene data corresponding to the target scene vector is used as the mining result corresponding to the scene mining condition.

[0011] In one embodiment, before receiving the scenario mining condition, the method further includes:

[0012] Read data files from the autonomous driving system;

[0013] Parsing the data file to extract at least one image data;

[0014] Classify the image data according to the driving scenario and determine the autonomous driving scenario data corresponding to each type of image data;

[0015] Extracting image feature vectors from image data;

[0016] The image feature vector is used as the scene vector, and the scene vector and the autonomous driving scene data are stored correspondingly in a preset scene vector library.

[0017] In one embodiment, extracting an image feature vector from image data includes:

[0018] Perform resolution adjustment and normalization processing on the image data to obtain an image input vector;

[0019] Load the image encoder; the image encoder includes a convolutional neural network and a visual encoder;

[0020] Use convolutional neural network to perform convolution and pooling processing on the image input vector to obtain the image embedding vector;

[0021] The image embedding vector is encoded using a visual encoder, and the encoded vector is mapped to a vector space of a set length to obtain an image feature vector.

[0022] In one embodiment, when the input type is a text type, the scene mining condition is processed into a condition vector according to the input type corresponding to the scene mining condition, including:

[0023] Perform word segmentation on the scene mining conditions to obtain the text input vector;

[0024] Load the text model; the text model includes the embedding processing unit and the text encoder;

[0025] Using the embedding processing unit to add position encoding information to the text input vector to obtain a text embedding vector;

[0026] The text embedding vector is encoded using a text encoder, and the encoded vector is mapped to a vector space of a set length to obtain a conditional vector.

[0027] In one embodiment, when the input type is an image type, the scene mining condition is processed into a condition vector according to the input type corresponding to the scene mining condition, including:

[0028] Adjust the resolution and normalize the scene mining conditions to obtain a conditional input vector;

[0029] Load the image encoder; the image encoder includes a convolutional neural network and a visual encoder;

[0030] Use a convolutional neural network to perform convolution and pooling on the conditional input vector to obtain a conditional embedding vector;

[0031] The conditional embedding vector is encoded using a visual encoder, and the encoded vector is mapped to a vector space of a set length to obtain a conditional vector.

[0032] In one embodiment, when the input type is a video type, the scene mining condition is processed into a condition vector according to the input type corresponding to the scene mining condition, including:

[0033] Parse the scene mining conditions into several frame images;

[0034] The resolution of each frame image is adjusted and normalized to obtain multiple input vectors;

[0035] Load the image encoder; the image encoder includes a convolutional neural network and a visual encoder;

[0036] Use a convolutional neural network to perform convolution and pooling on each input vector to obtain multiple embedding vectors;

[0037] According to the frame position information of several frame images, time sequence information is added to multiple embedding vectors to obtain multiple target embedding vectors;

[0038] The visual encoder is used to encode each target embedding vector respectively, and each encoded vector is mapped to a vector space of a set length to obtain multiple conditional vectors.

[0039] In a second aspect, the present application also provides an autonomous driving scene mining device, comprising:

[0040] A receiving module, used for receiving scene mining conditions;

[0041] A processing module, used for processing the scene mining condition into a condition vector according to an input type corresponding to the scene mining condition; the input type includes at least one of a text type, an image type and a video type;

[0042] A search module, used to search for a target scene vector having the highest similarity with the conditional vector from a preset scene vector library; the preset scene vector library stores scene vectors corresponding to a number of autonomous driving scenes;

[0043] The output module is used to use the autonomous driving scene data corresponding to the target scene vector as the mining result corresponding to the scene mining condition.

[0044] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0045] Receive scene mining conditions;

[0046] According to the input type corresponding to the scene mining condition, the scene mining condition is processed into a condition vector; the input type includes at least one of a text type, an image type, and a video type;

[0047] Searching for a target scene vector having the highest similarity to the conditional vector from a preset scene vector library; the preset scene vector library stores scene vectors corresponding to several autonomous driving scenes;

[0048] The autonomous driving scene data corresponding to the target scene vector is used as the mining result corresponding to the scene mining condition.

[0049] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0050] Receive scene mining conditions;

[0051] According to the input type corresponding to the scene mining condition, the scene mining condition is processed into a condition vector; the input type includes at least one of a text type, an image type, and a video type;

[0052] Searching for a target scene vector having the highest similarity to the conditional vector from a preset scene vector library; the preset scene vector library stores scene vectors corresponding to several autonomous driving scenes;

[0053] The autonomous driving scene data corresponding to the target scene vector is used as the mining result corresponding to the scene mining condition.

[0054] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0055] Receive scene mining conditions;

[0056] According to the input type corresponding to the scene mining condition, the scene mining condition is processed into a condition vector; the input type includes at least one of a text type, an image type, and a video type;

[0057] Searching for a target scene vector having the highest similarity to the conditional vector from a preset scene vector library; the preset scene vector library stores scene vectors corresponding to several autonomous driving scenes;

[0058] The autonomous driving scene data corresponding to the target scene vector is used as the mining result corresponding to the scene mining condition.

[0059] The above-mentioned autonomous driving scene mining method, device, computer equipment, computer-readable storage medium and computer program product receive scene mining conditions; process the scene mining conditions into conditional vectors according to the input type corresponding to the scene mining conditions; the input type includes at least one of text type, image type and video type; search for the target scene vector with the highest similarity to the conditional vector from the preset scene vector library; the preset scene vector library stores scene vectors corresponding to several autonomous driving scenes; and use the autonomous driving scene data corresponding to the target scene vector as the mining result corresponding to the scene mining conditions. Through the above-mentioned method, autonomous driving scenes similar to the scene mining conditions can be quickly mined from several autonomous driving scenes, thereby increasing the amount of training data for the autonomous driving scenes and improving the iteration efficiency of the model; a multi-modal mining condition input method is provided, which can convert the multi-modal scene mining conditions into a unified vector representation, so as to perform high-precision similarity search based on the vector, enhance the flexibility and adaptability of scene mining, and expand the application scope of scene mining. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0061] FIG1 is an application environment diagram of an autonomous driving scene mining method in one embodiment;

[0062] FIG2 is a schematic diagram of a flow chart of an autonomous driving scene mining method in one embodiment;

[0063] FIG3 is a schematic flow chart of a step of storing a preset scene vector library in one embodiment;

[0064] FIG4 is a structural block diagram of an autonomous driving scene mining device in one embodiment;

[0065] FIG. 5 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0066] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0067] The autonomous driving scene mining method provided in the embodiment of the present application can be applied to the application environment shown in FIG1. ​​The computer device 102 is provided with a multimodal model 104 and a mining system 106. The multimodal module 104 obtains data from the autonomous driving system 108, processes it into a scene vector, and stores it in a scene vector database 110. The mining system 106 receives the scene mining conditions, and the multimodal model 104 processes the scene mining conditions into a conditional vector. The mining system 106 searches the scene vector database 110 for the target scene vector with the highest similarity to the conditional vector to determine the mining result.

[0068] It is understandable that the scene vector database 110 may be disposed inside the computer device 102 or on other devices that communicate with the computer device 102, and this application does not impose any limitation on this.

[0069] In one implementation, the multimodal model 110 is a large multimodal model. Optionally, the multimodal model 110 includes two main encoders: an image encoder and a text encoder. In a specific implementation, the multimodal model 110 is split into two independent models according to the encoder to process text and image inputs respectively. When performing different multimodal recognition tasks, the corresponding model is loaded to process the input text or image into a feature vector. In one implementation, the multimodal model 110 is trained in advance using a large amount of sample data. When the loss function reaches a minimum value or the number of iterations reaches a set value, a trained multimodal model 110 is obtained. The trained multimodal model 110 is subsequently used to process scene mining conditions or image data collected by the autonomous driving system 108.

[0070] In an exemplary embodiment, as shown in FIG2 , a method for mining autonomous driving scenarios is provided, which is described by taking the method applied to the computer device 102 in FIG1 as an example, including:

[0071] Step 202: receiving scene mining conditions.

[0072] Among them, an input interface for scene mining conditions is provided, through which scene mining conditions defined by the user or required by the model to be trained are received to describe the scene features required by the user.

[0073] Step 204: Process the scene mining condition into a condition vector according to the input type corresponding to the scene mining condition; the input type includes at least one of a text type, an image type, and a video type.

[0074] Among them, the scene mining conditions defined by the user can be at least one of the text type, image type and video type. The input type is text type, which means that the user inputs the specific features of the new scene in text form, such as "night, rain, city road, pedestrians walking", etc. Optionally, the user inputs voice data in voice form, and performs text recognition on the voice data input by the user to obtain the text type scene mining conditions. The input type is image type, which means that the user provides a single sample picture, which reflects the visual features of the new scene, and the picture format is jpeg or other. The input type is video type, which means that the user displays the dynamic features of the new scene through video samples, and is input in the form of mp4 files or other forms.

[0075] In one implementation, a corresponding processing strategy is determined according to an input type corresponding to a scene mining condition, and the scene mining condition is processed according to the processing strategy to obtain a condition vector.

[0076] Optionally, the conditional vectors obtained by processing scene mining conditions of different input types are mapped to the same length of the vector space, thereby converting the multimodal input into a vector representation of uniform size.

[0077] In one implementation, a multimodal large model is used to process scene mining conditions of different input types, and the deep learning capability of the multimodal large model is utilized to convert the scene mining conditions into a high-dimensional feature vector, namely, a conditional vector.

[0078] Step 206, searching for a target scene vector having the highest similarity to the conditional vector from a preset scene vector library; the preset scene vector library stores scene vectors corresponding to a number of autonomous driving scenarios.

[0079] It is understandable that the preset scene vector library refers to a database built in advance, referring to the scene vector database in Figure 1. In one implementation, the mining system sends the conditional vector to the scene vector database, and the scene vector database performs an efficient similarity search based on the conditional vector, determines the target scene vector in the library with the highest similarity to the conditional vector, and returns it to the user through the mining system. Optionally, the similarity between the conditional vector and any scene vector in the preset scene vector library can be determined by cosine similarity or Euclidean distance.

[0080] In one implementation, the similarity between the conditional vector and each scene vector in a preset scene vector library is determined, and a scene vector with the highest similarity is selected from the preset scene vector library as the target scene vector.

[0081] The preset scene vector library is a structured database that stores scene vectors corresponding to a number of autonomous driving scenes. In one implementation, the preset scene vector library is updated in real time according to data collected by the autonomous driving system.

[0082] Step 208: Use the autonomous driving scene data corresponding to the target scene vector as the mining result corresponding to the scene mining condition.

[0083] The preset scene vector library stores multiple scene vectors and the autonomous driving scene data corresponding to each scene vector. The autonomous driving scene data corresponding to the target scene vector can be determined by querying the preset scene vector library based on the target scene vector. The autonomous driving scene data includes image data, driving environment information (e.g., weather, temperature, road type, etc.) and driving condition information (e.g., vehicle speed, working conditions, etc.). In one implementation, the mining results are fed back to the user or the model to be trained.

[0084] In the above-mentioned autonomous driving scene mining method, scene mining conditions are received; according to the input type corresponding to the scene mining conditions, the scene mining conditions are processed into conditional vectors; the input type includes at least one of text type, image type and video type; the target scene vector with the highest similarity to the conditional vector is searched from the preset scene vector library; the preset scene vector library stores scene vectors corresponding to several autonomous driving scenes; the autonomous driving scene data corresponding to the target scene vector is used as the mining result corresponding to the scene mining condition. Through the above-mentioned method, autonomous driving scenes similar to the scene mining conditions can be quickly mined from several autonomous driving scenes, thereby increasing the amount of training data for the autonomous driving scene and improving the iteration efficiency of the model; a multi-modal mining condition input method is provided, which can convert the multi-modal scene mining conditions into a unified vector representation, so as to perform high-precision similarity search based on the vector, enhance the flexibility and adaptability of scene mining, and expand the application scope of scene mining.

[0085] In an exemplary embodiment, as shown in FIG3 , before step 202, the method further includes:

[0086] Step 302, read the data file from the autonomous driving system.

[0087] Among them, automated tools are used to access various types of data collected by the autonomous driving system in real time, read data files, and ensure data integrity and real-time performance.

[0088] Step 304: parse the data file to extract at least one image data.

[0089] Step 306: classify the image data according to the driving scene, and determine the automatic driving scene data corresponding to each type of image data.

[0090] The data file includes image data, driving environment information (e.g., weather, temperature, road type, etc.) and driving condition information (e.g., vehicle speed, working condition, etc.) collected by the automatic driving system at at least one time, and the image data is classified according to the image content, and the image data, driving environment information and driving condition information are used as the automatic driving scene data corresponding to the image data of this type. It can be understood that in a certain automatic driving scene, the automatic driving system set on the vehicle controls the visual sensor to capture image data, and uses other sensors to collect the driving environment information and driving condition information in the automatic driving scene.

[0091] Step 308: extracting image feature vectors from the image data.

[0092] The image feature vector represents the numerical representation of a specific feature in the image. In one implementation, the steps of preprocessing, feature extraction, feature encoding, and feature vector generation are sequentially performed on the image data to obtain the image feature vector. Feature extraction can be performed using a feature extractor, such as SIFT (Scale Invariant Feature Transform), SURF (Speeded Up Robust Features), etc., or a deep learning network, such as CNN (Convolutional Neural Network), etc.

[0093] Step 310: Use the image feature vector as a scene vector, and store the scene vector and the autonomous driving scene data in a preset scene vector library in correspondence.

[0094] Among them, the scene vectors and autonomous driving scene data are stored in a preset scene vector library in real time. The preset scene vector library stores image data (and / or scene vectors corresponding to the image data) under a variety of different environments and different driving conditions, providing rich sample resources for subsequent processing.

[0095] In this embodiment, real-time access to the autonomous driving system achieves the timeliness of data collection and image data processing, improves the efficiency of scene library construction, and provides rich data support for scene mining. Extracting deeper feature vectors from image data can more accurately describe and distinguish different driving scenes.

[0096] In an exemplary embodiment, extracting an image feature vector from image data includes: adjusting the resolution and normalizing the image data to obtain an image input vector; loading an image encoder; the image encoder includes a convolutional neural network and a visual encoder; performing convolution and pooling processing on the image input vector using the convolutional neural network to obtain an image embedding vector; encoding the image embedding vector using the visual encoder, and mapping the encoded vector to a vector space of a set length to obtain an image feature vector.

[0097] The resolution adjustment process may include: adjusting the image resolution to a preset pixel size, for example, to a size of 224x224 pixels, to ensure consistency of the image input. The normalization process may include: for each pixel, subtracting the mean from the pixel value of the pixel and dividing it by the standard deviation to obtain an image input vector, eliminating illumination changes and color deviations, and ensuring that the image data is in a standardized form.

[0098] It is understandable that the multimodal model is split into two independent models according to the encoder, which processes text and image inputs respectively. In this embodiment, in order to process image data, only the image encoder is loaded, which can save computing resources and improve the processing efficiency of image data. Optionally, the split image encoder is loaded into the video memory. The image encoder includes a convolutional neural network (CNN) and a vision encoder (Vision Transformer, ViT). The convolutional neural network is provided with multiple convolutional layers and pooling layers, which extract the hierarchical features of the image through multiple convolutional layers and pooling layers, convert the image in the original pixel space into a point in a high-dimensional feature space, and obtain the image embedding vector.

[0099] The image embedding vector is sent to the visual encoder for further processing. The visual encoder can be a Transformer encoder. The Transformer encoder is an encoder that uses a self-attention mechanism to capture the relationship between different regions within the image. In the specific implementation, the multi-head self-attention mechanism is used to enhance the expression ability of image features, and the fully connected layer (Feed-Forward Networks, FFNs) is used to enhance the nonlinear representation ability to achieve the processing of the image embedding vector. In the last layer of the Transformer encoder, the extracted feature vector is normalized to obtain the encoded vector. The encoded vector is mapped to a vector space of a set length through a linear layer to obtain a fixed-size image feature vector, that is, a feature vector of a single image. For example, the encoded vector is mapped to a vector space of a fixed length of 512 through a linear layer.

[0100] In one implementation, feature vectors are written in batches into a pre-designed preset scene vector library to facilitate rapid retrieval and analysis.

[0101] In an exemplary embodiment, when the input type is a text type, step 204 includes: performing word segmentation processing on the scene mining condition to obtain a text input vector; loading a text model; the text model includes an embedding processing unit and a text encoder; using the embedding processing unit to add position encoding information to the text input vector to obtain a text embedding vector; using the text encoder to encode the text embedding vector, and mapping the encoded vector to a vector space of a set length to obtain a conditional vector.

[0102] Among them, the scene mining conditions of the text type are segmented. Optionally, the text is segmented using Byte Pair Encoding (BPE) to decompose the input text into sub-word identifiers to obtain a text input vector.

[0103] It is understandable that the multimodal model is split into two independent models according to the encoder, which process text and image input respectively. In this embodiment, in order to process text data, only the text model for processing text is loaded, which can save computing resources and improve the processing efficiency of text data. The text model includes an embedding processing unit and a text encoder. The text input vector after word segmentation processing is input into the text model, and the embedding processing unit adds position encoding information to the text input vector to obtain a text embedding vector.

[0104] The text embedding vector is sent to the text encoder for further processing. The text encoder can be a Transformer encoder, which uses the self-attention mechanism to process the text sequence, so that the model can capture long-distance dependencies in the text. The self-attention mechanism can be implemented by calculating the attention weight of each word to all other words in the sequence. The fully connected layer in the Transformer encoder further performs nonlinear transformation on the text features to enhance the expressive power of the model; in the last layer of the Transformer encoder, the extracted feature vector is mapped to a vector space of a set length through a linear layer to obtain a fixed-size feature vector, that is, a conditional vector. For example, the encoded vector is mapped to a vector space of a fixed length of 512 through a linear layer.

[0105] It can be understood that the output size of the multimodal model is a fixed length, which can ensure the consistency of the size of the conditional vector and the scene vector, and provide the possibility for comparison and analysis of different types of data, so as to quickly retrieve scene data with similar scenes from the preset scene vector library.

[0106] In an exemplary embodiment, when the input type is an image type, step 204 includes: adjusting the resolution and normalizing the scene mining conditions to obtain a conditional input vector; loading an image encoder; the image encoder includes a convolutional neural network and a visual encoder; using the convolutional neural network to perform convolution and pooling processing on the conditional input vector to obtain a conditional embedding vector; using the visual encoder to encode the conditional embedding vector, and mapping the encoded vector to a vector space of a set length to obtain a conditional vector.

[0107] Among them, the processing method for scene mining conditions of image types is consistent with the processing method for image data collected by the autonomous driving system.

[0108] In a specific implementation, the resolution adjustment process may be: adjusting the image resolution to a preset pixel size, for example, to a size of 224x224 pixels, to ensure the consistency of the image input. The normalization process may be: for each pixel, subtracting the mean from the pixel value of the pixel and dividing it by the standard deviation to obtain a conditional input vector, eliminating illumination changes and color deviations, and ensuring that the scene mining conditions of the image type are in a standardized form.

[0109] It is understandable that the multimodal model is split into two independent models according to the encoder, which processes text and image inputs respectively. In this embodiment, in order to process image data, only the image encoder is loaded, which can save computing resources and improve the processing efficiency of image data. Optionally, the split image encoder is loaded into the video memory. The image encoder includes a convolutional neural network (CNN) and a vision encoder (Vision Transformer, ViT). The convolutional neural network is provided with multiple convolutional layers and pooling layers, which extract the hierarchical features of the image through multiple convolutional layers and pooling layers, convert the image in the original pixel space into a point in a high-dimensional feature space, and obtain a conditional embedding vector.

[0110] The conditional embedding vector is sent to the visual encoder for further processing. The visual encoder can be a Transformer encoder. The Transformer encoder is an encoder that uses a self-attention mechanism to capture the relationship between different regions within the image. In the specific implementation, the multi-head self-attention mechanism is used to enhance the expression ability of image features, and the fully connected layer (Feed-Forward Networks, FFNs) is used to enhance the nonlinear representation ability to achieve the processing of the conditional embedding vector. In the last layer of the Transformer encoder, the extracted feature vector is normalized to obtain the encoded vector. The encoded vector is mapped to a vector space of a set length through a linear layer to obtain a fixed-size feature vector, that is, a conditional vector. For example, the encoded vector is mapped to a vector space of a fixed length of 512 through a linear layer.

[0111] In an exemplary embodiment, when the input type is a video type, step 204 includes: parsing the scene mining conditions into several frame images; adjusting the resolution and normalizing each frame image respectively to obtain multiple input vectors; loading an image encoder; the image encoder includes a convolutional neural network and a visual encoder; using the convolutional neural network to perform convolution and pooling processing on each input vector respectively to obtain multiple embedding vectors; adding timing information to the multiple embedding vectors according to the frame position information of the several frame images to obtain multiple target embedding vectors; using the visual encoder to encode each target embedding vector respectively, and mapping each encoded vector to a vector space of a set length to obtain multiple conditional vectors.

[0112] Among them, the scene mining conditions of the video type are parsed into a series of continuous frame images. Each frame of the image is preprocessed (i.e., resolution adjustment and normalization processing) to obtain multiple input vectors. In a specific implementation, the resolution adjustment process can be: adjusting the image resolution to a preset pixel size, for example, adjusting to a size of 224x224 pixels to ensure the consistency of the image input. The normalization process can be: for each pixel, subtract the mean from the pixel value of the pixel and divide it by the standard deviation to obtain a conditional input vector, eliminate lighting changes and color deviations, and ensure that each frame of the image is in a standardized form.

[0113] It is understandable that the multimodal model is split into two independent models according to the encoder, which processes text and image inputs respectively. In this embodiment, in order to process image data, only the image encoder is loaded, which can save computing resources and improve the processing efficiency of video data. Optionally, the split image encoder is loaded into the video memory. The image encoder includes a convolutional neural network (CNN) and a vision encoder (Vision Transformer, ViT). The convolutional neural network is provided with multiple convolutional layers and pooling layers, which extract the hierarchical features of multiple frame images through multiple convolutional layers and pooling layers, convert the image in the original pixel space into a point in a high-dimensional feature space, and obtain multiple embedded vectors.

[0114] A time-series embedding layer is set between the convolutional neural network and the visual encoder. Before encoding, the time-series embedding layer uses position encoding to add a fixed vector related to the frame position to add time-series information to each embedding vector, and finally obtain multiple target embedding vectors. By introducing the time-series processing mechanism, the ability to capture dynamic information of the video is improved.

[0115] The multiple target embedding vectors are sent to the visual encoder for further processing. The visual encoder can be a Transformer encoder. The Transformer encoder is an encoder that uses a self-attention mechanism to capture the relationship between different regions within the image. In a specific implementation, for each target embedding vector, the multi-head self-attention mechanism is used to enhance the expression ability of image features, and the fully connected layer (Feed-Forward Networks, FFNs) is used to enhance the nonlinear representation ability to achieve the processing of the target embedding vector. In the last layer of the Transformer encoder, the extracted feature vector is normalized to obtain the encoded vector. The encoded vector is mapped to a vector space of a set length through a linear layer to obtain a fixed-size feature vector, that is, a conditional vector. For example, the encoded vector is mapped to a vector space of a fixed length of 512 through a linear layer. The above encoding process is performed on each target embedding vector separately, and multiple conditional vectors are finally obtained.

[0116] In one implementation, for the scene mining conditions of the video type, multiple condition vectors can be obtained through processing, and the target scene vectors with the highest similarity to each condition vector are searched from the preset scene vector library, and finally at least one target scene vector is obtained. The autonomous driving scene data corresponding to the at least one target scene vector is used as the mining result of the scene mining conditions of the video type, and is fed back to the user or the model to be trained.

[0117] It can be understood that the output size of the multimodal model is a fixed length, which can ensure the consistency of the sizes of various types of conditional vectors, so that data from different sources can be processed and analyzed using the same mining method, enhancing the flexibility and adaptability of scenario mining.

[0118] In an exemplary embodiment, the autonomous driving scene mining method includes the following steps:

[0119] 1. Use automated tools to access various data collected by the autonomous driving system in real time to ensure data integrity and real-time performance. Efficiently parse the accessed data files, extract image data, and classify and organize them according to the image content to form a structured scene library. The scene library contains image data under a variety of different environments and driving conditions, providing rich sample resources for subsequent processing.

[0120] 2. Use the deep learning capabilities of the multimodal large model to convert the image data in the scene library into high-dimensional feature vectors. The detailed process of image vectorization is as follows:

[0121] Preprocessing: The image is preprocessed, including adjusting the image resolution to 224x224 pixels to ensure input consistency. The image is normalized by subtracting the mean from the pixel value and dividing it by the standard deviation to eliminate illumination changes and color deviations, ensuring that the image data is in a standardized form, thereby obtaining the image input vector.

[0122] Model transformation and loading: The multimodal large model contains two main encoders, namely the image encoder and the text encoder. The encoder is split into two independent models to process text and image inputs respectively. The image model that processes the image part mainly includes the convolutional neural network (CNN) and the Vision Transformer (ViT). The split image model is loaded into the video memory.

[0123] Embedding: The preprocessed image input vector is input into the image model separately. The image model extracts the hierarchical features of the image through multiple convolutional layers and pooling layers, thereby converting the image in the original pixel space into a point in a high-dimensional feature space and obtaining the image embedding vector.

[0124] Encoding: The image embedding vector is fed into the Transformer encoder for further processing. The Transformer encoder uses the self-attention mechanism to capture the relationship between different regions within the image, enhances the expressiveness of image features through multi-head self-attention, and enhances the nonlinear representation capability through the fully connected layer to achieve the processing of image embedding sequences.

[0125] Mapping: In the last layer of the Transformer encoder, the extracted feature vector is normalized. The normalized feature vector is mapped to a vector space with a fixed length of 512 through a linear layer, and the resulting vector is the feature vector of a single image.

[0126] Write feature vectors in batches into a pre-designed scene vector database for quick retrieval and analysis.

[0127] 3. The mining system receives new scenario mining conditions defined by the user, which can be of the following three types:

[0128] Text input: Users describe the specific features of the new scene in text form, such as "night, rain, city roads, pedestrians walking", etc.

[0129] Image input: The user provides a sample image that reflects the visual characteristics of the new scene and is input in a single image JPEG format.

[0130] Video input: Users demonstrate the dynamic features of new scenes through video samples, which are input as a single video mp4 file.

[0131] 4. Use a multimodal large model to process the above three types of mining condition inputs and convert them into feature vectors of uniform size, ensuring the accuracy and consistency of subsequent searches. The vectorization process is as follows:

[0132] a: Text input:

[0133] Preprocessing: Preprocess the text input and segment the text using Byte Pair Encoding (BPE) to decompose the text input into smaller subword identifiers, namely, text input vectors.

[0134] Model loading: Only the text model is loaded. This model is the model for processing text input obtained by splitting in step 2 above.

[0135] Embedding: The preprocessed text input vector is fed into the text model, and the text model adds position encoding information to the text input vector to obtain a text embedding vector.

[0136] Encoding: The text embedding vector is then fed into the Transformer encoder. The encoder uses a self-attention mechanism to process the text sequence, allowing the model to capture long-range dependencies in the text. The self-attention mechanism works by calculating the attention weight of each word with respect to all other words in the sequence. The fully connected layers in the Transformer encoder further perform nonlinear transformations on the text features to enhance the model's expressiveness.

[0137] Mapping: In the last layer of the Transformer encoder, the extracted feature vector is mapped to a vector space with a fixed length of 512 through a linear layer, and the obtained vector is the feature vector of a single text.

[0138] b: Image input:

[0139] The vectorization process for the image input is the same as the image vectorization in step 2.

[0140] c: Video input:

[0141] Data conversion: parse video data into a series of continuous frame images.

[0142] Preprocessing: Preprocess each frame of the image. Use the image vectorization preprocessing method in step 2 to obtain multiple image input vectors.

[0143] Embedding: The preprocessed image input vector is fed into the image model. The image model is based on a convolutional neural network, which extracts image features through multiple convolutional layers and pooling layers to generate an image embedding vector. This step is the same as the embedding process of the image input vectorization in step 2.

[0144] Temporal processing: Different from the image vectorization in step 2, a temporal embedding layer is added to the video input vectorization process before encoding. The temporal embedding layer uses position encoding to add temporal information to each image embedding vector by adding a fixed vector related to the frame position to obtain the final image embedding vector.

[0145] Encoding and Mapping: Encoding and mapping are done in the same way as the image input vectorization in step 2.

[0146] 5. The mining system sends the converted mining condition feature vectors to the scene vector database. The scene vector database performs efficient similarity search based on these mining condition feature vectors to find the most matching scene vector.

[0147] 6. The scene vector database searches based on the similarity of the vectors to find the vectors closest to the mining condition feature vectors. The scenes represented by these vectors are the scenes that meet the user-defined mining conditions. The mining system returns these scene data to the user to complete the mining of new scenes.

[0148] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0149] Based on the same inventive concept, the embodiment of the present application also provides an autonomous driving scene mining device for implementing the autonomous driving scene mining method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more autonomous driving scene mining device embodiments provided below can refer to the limitations of the autonomous driving scene mining method above, and will not be repeated here.

[0150] In an exemplary embodiment, as shown in FIG4 , an autonomous driving scene mining device is provided, comprising:

[0151] The receiving module 402 is used to receive scene mining conditions.

[0152] The processing module 404 is used to process the scene mining condition into a condition vector according to the input type corresponding to the scene mining condition; the input type includes at least one of a text type, an image type and a video type.

[0153] The search module 406 is used to search for a target scene vector having the highest similarity with the conditional vector from a preset scene vector library; the preset scene vector library stores scene vectors corresponding to a number of autonomous driving scenes.

[0154] The output module 408 is used to use the autonomous driving scene data corresponding to the target scene vector as the mining result corresponding to the scene mining condition.

[0155] In the above-mentioned autonomous driving scene mining device, scene mining conditions are received; according to the input type corresponding to the scene mining conditions, the scene mining conditions are processed into conditional vectors; the input type includes at least one of text type, image type and video type; the target scene vector with the highest similarity to the conditional vector is searched from the preset scene vector library; the preset scene vector library stores scene vectors corresponding to several autonomous driving scenes; the autonomous driving scene data corresponding to the target scene vector is used as the mining result corresponding to the scene mining condition. Through the above-mentioned method, autonomous driving scenes similar to the scene mining conditions can be quickly mined from several autonomous driving scenes, thereby increasing the amount of training data for the autonomous driving scene and improving the iteration efficiency of the model; a multi-modal mining condition input method is provided, which can convert the multi-modal scene mining conditions into a unified vector representation, so as to perform high-precision similarity search based on the vector, enhance the flexibility and adaptability of scene mining, and expand the application scope of scene mining.

[0156] In an exemplary embodiment, the autonomous driving scene mining device further includes a library building module;

[0157] A library building module is used to read a data file from an autonomous driving system; parse the data file to extract at least one image data; classify the image data according to the driving scene, and determine the autonomous driving scene data corresponding to each type of image data; extract an image feature vector from the image data; use the image feature vector as a scene vector, and store the scene vector and the autonomous driving scene data in a preset scene vector library.

[0158] In one of the embodiments, the library building module is also used to adjust the resolution and normalize the image data to obtain an image input vector; load the image encoder; the image encoder includes a convolutional neural network and a visual encoder; use the convolutional neural network to perform convolution and pooling processing on the image input vector to obtain an image embedding vector; use the visual encoder to encode the image embedding vector, and map the encoded vector to a vector space of a set length to obtain an image feature vector.

[0159] In one of the embodiments, when the input type is a text type, the processing module 404 is also used to perform word segmentation processing on the scene mining conditions to obtain a text input vector; load a text model; the text model includes an embedding processing unit and a text encoder; use the embedding processing unit to add position encoding information to the text input vector to obtain a text embedding vector; use the text encoder to encode the text embedding vector, and map the encoded vector to a vector space of a set length to obtain a conditional vector.

[0160] In one of the embodiments, when the input type is an image type, the processing module 404 is also used to adjust the resolution and normalize the scene mining conditions to obtain a conditional input vector; load the image encoder; the image encoder includes a convolutional neural network and a visual encoder; use the convolutional neural network to perform convolution and pooling processing on the conditional input vector to obtain a conditional embedding vector; use the visual encoder to encode the conditional embedding vector, and map the encoded vector to a vector space of a set length to obtain a conditional vector.

[0161] In one of the embodiments, when the input type is a video type, the processing module 404 is also used to parse the scene mining conditions into several frame images; adjust the resolution and normalize each frame image respectively to obtain multiple input vectors; load the image encoder; the image encoder includes a convolutional neural network and a visual encoder; use the convolutional neural network to perform convolution and pooling processing on each input vector respectively to obtain multiple embedding vectors; according to the frame position information of several frame images, add timing information to the multiple embedding vectors to obtain multiple target embedding vectors; use the visual encoder to encode each target embedding vector respectively, and map each encoded vector to a vector space of a set length to obtain multiple conditional vectors.

[0162] Each module in the above-mentioned autonomous driving scene mining device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0163] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG5. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store image feature vectors and scene data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for mining scenes for autonomous driving is implemented.

[0164] Those skilled in the art will understand that the structure shown in FIG. 5 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0165] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: receiving a scene mining condition; processing the scene mining condition into a conditional vector according to an input type corresponding to the scene mining condition; the input type includes at least one of a text type, an image type, and a video type; searching a preset scene vector library for a target scene vector having the highest similarity to the conditional vector; the preset scene vector library stores scene vectors corresponding to several autonomous driving scenes; and using autonomous driving scene data corresponding to the target scene vector as a mining result corresponding to the scene mining condition.

[0166] In one embodiment, when the processor executes the computer program, the following steps are also implemented: reading a data file from the autonomous driving system; parsing the data file to extract at least one image data; classifying the image data according to the driving scene, and determining the autonomous driving scene data corresponding to each type of image data; extracting an image feature vector from the image data; using the image feature vector as a scene vector, and storing the scene vector and the autonomous driving scene data correspondingly in a preset scene vector library.

[0167] In one embodiment, when the processor executes the computer program, the following steps are also implemented: adjusting the resolution and normalizing the image data to obtain an image input vector; loading an image encoder; the image encoder includes a convolutional neural network and a visual encoder; using the convolutional neural network to perform convolution and pooling processing on the image input vector to obtain an image embedding vector; using the visual encoder to encode the image embedding vector, and mapping the encoded vector to a vector space of a set length to obtain an image feature vector.

[0168] In one embodiment, the processor also implements the following steps when executing the computer program: when the input type is a text type, the scene mining condition is segmented to obtain a text input vector; the text model is loaded; the text model includes an embedding processing unit and a text encoder; the embedding processing unit is used to add position encoding information to the text input vector to obtain a text embedding vector; the text encoder is used to encode the text embedding vector, and the encoded vector is mapped to a vector space of a set length to obtain a conditional vector.

[0169] In one embodiment, when the processor executes the computer program, the following steps are also implemented: when the input type is an image type, the scene mining condition is resolution adjusted and normalized to obtain a conditional input vector; the image encoder is loaded; the image encoder includes a convolutional neural network and a visual encoder; the conditional input vector is convoluted and pooled using the convolutional neural network to obtain a conditional embedding vector; the conditional embedding vector is encoded using the visual encoder, and the encoded vector is mapped to a vector space of a set length to obtain a conditional vector.

[0170] In one embodiment, the processor also implements the following steps when executing the computer program: when the input type is a video type, the scene mining conditions are parsed into several frame images; the resolution of each frame image is adjusted and normalized to obtain multiple input vectors; the image encoder is loaded; the image encoder includes a convolutional neural network and a visual encoder; the convolutional neural network is used to perform convolution and pooling processing on each input vector to obtain multiple embedding vectors; according to the frame position information of several frame images, timing information is added to the multiple embedding vectors to obtain multiple target embedding vectors; each target embedding vector is encoded by using the visual encoder, and each encoded vector is mapped to a vector space of a set length to obtain multiple conditional vectors.

[0171] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: receiving a scene mining condition; processing the scene mining condition into a condition vector according to an input type corresponding to the scene mining condition; the input type includes at least one of a text type, an image type, and a video type; searching a preset scene vector library for a target scene vector having the highest similarity to the condition vector; the preset scene vector library stores scene vectors corresponding to several autonomous driving scenes; and using autonomous driving scene data corresponding to the target scene vector as a mining result corresponding to the scene mining condition.

[0172] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: reading a data file from the autonomous driving system; parsing the data file to extract at least one image data; classifying the image data according to the driving scene, and determining the autonomous driving scene data corresponding to each type of image data; extracting an image feature vector from the image data; using the image feature vector as a scene vector, and storing the scene vector and the autonomous driving scene data in a preset scene vector library accordingly.

[0173] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: adjusting the resolution and normalizing the image data to obtain an image input vector; loading an image encoder; the image encoder includes a convolutional neural network and a visual encoder; using the convolutional neural network to perform convolution and pooling processing on the image input vector to obtain an image embedding vector; using the visual encoder to encode the image embedding vector, and mapping the encoded vector to a vector space of a set length to obtain an image feature vector.

[0174] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the input type is a text type, the scene mining condition is segmented to obtain a text input vector; the text model is loaded; the text model includes an embedding processing unit and a text encoder; the embedding processing unit is used to add position encoding information to the text input vector to obtain a text embedding vector; the text encoder is used to encode the text embedding vector, and the encoded vector is mapped to a vector space of a set length to obtain a conditional vector.

[0175] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the input type is an image type, the scene mining condition is resolution adjusted and normalized to obtain a conditional input vector; the image encoder is loaded; the image encoder includes a convolutional neural network and a visual encoder; the conditional input vector is convoluted and pooled using the convolutional neural network to obtain a conditional embedding vector; the conditional embedding vector is encoded using the visual encoder, and the encoded vector is mapped to a vector space of a set length to obtain a conditional vector.

[0176] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the input type is a video type, the scene mining conditions are parsed into several frame images; the resolution of each frame image is adjusted and normalized to obtain multiple input vectors; the image encoder is loaded; the image encoder includes a convolutional neural network and a visual encoder; the convolutional neural network is used to perform convolution and pooling processing on each input vector to obtain multiple embedding vectors; according to the frame position information of several frame images, timing information is added to the multiple embedding vectors to obtain multiple target embedding vectors; each target embedding vector is encoded by using the visual encoder, and each encoded vector is mapped to a vector space of a set length to obtain multiple conditional vectors.

[0177] In one embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the following steps: receiving a scene mining condition; processing the scene mining condition into a condition vector according to an input type corresponding to the scene mining condition; the input type includes at least one of a text type, an image type, and a video type; searching a preset scene vector library for a target scene vector having the highest similarity to the condition vector; the preset scene vector library stores scene vectors corresponding to several autonomous driving scenes; and using autonomous driving scene data corresponding to the target scene vector as a mining result corresponding to the scene mining condition.

[0178] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: reading a data file from the autonomous driving system; parsing the data file to extract at least one image data; classifying the image data according to the driving scene, and determining the autonomous driving scene data corresponding to each type of image data; extracting an image feature vector from the image data; using the image feature vector as a scene vector, and storing the scene vector and the autonomous driving scene data in a preset scene vector library accordingly.

[0179] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: adjusting the resolution and normalizing the image data to obtain an image input vector; loading an image encoder; the image encoder includes a convolutional neural network and a visual encoder; using the convolutional neural network to perform convolution and pooling processing on the image input vector to obtain an image embedding vector; using the visual encoder to encode the image embedding vector, and mapping the encoded vector to a vector space of a set length to obtain an image feature vector.

[0180] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the input type is a text type, the scene mining condition is segmented to obtain a text input vector; the text model is loaded; the text model includes an embedding processing unit and a text encoder; the embedding processing unit is used to add position encoding information to the text input vector to obtain a text embedding vector; the text encoder is used to encode the text embedding vector, and the encoded vector is mapped to a vector space of a set length to obtain a conditional vector.

[0181] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the input type is an image type, the scene mining condition is resolution adjusted and normalized to obtain a conditional input vector; the image encoder is loaded; the image encoder includes a convolutional neural network and a visual encoder; the conditional input vector is convoluted and pooled using the convolutional neural network to obtain a conditional embedding vector; the conditional embedding vector is encoded using the visual encoder, and the encoded vector is mapped to a vector space of a set length to obtain a conditional vector.

[0182] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the input type is a video type, the scene mining conditions are parsed into several frame images; the resolution of each frame image is adjusted and normalized to obtain multiple input vectors; the image encoder is loaded; the image encoder includes a convolutional neural network and a visual encoder; the convolutional neural network is used to perform convolution and pooling processing on each input vector to obtain multiple embedding vectors; according to the frame position information of several frame images, timing information is added to the multiple embedding vectors to obtain multiple target embedding vectors; each target embedding vector is encoded by using the visual encoder, and each encoded vector is mapped to a vector space of a set length to obtain multiple conditional vectors.

[0183] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0184] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0185] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0186] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for mining autonomous driving scenarios, characterized in that: The method comprises: Receive scene mining conditions; According to the input type corresponding to the scene mining condition, the scene mining condition is processed into a condition vector; the input type includes at least one of a text type, an image type, and a video type; Searching for a target scene vector having the highest similarity to the conditional vector from a preset scene vector library; the preset scene vector library stores scene vectors corresponding to a number of autonomous driving scenes; The autonomous driving scene data corresponding to the target scene vector is used as the mining result corresponding to the scene mining condition.

2. The method according to claim 1, characterized in that Before receiving the scene mining condition, the method further includes: Read data files from the autonomous driving system; Parsing the data file to extract at least one image data; Classifying the image data according to driving scenarios, and determining autonomous driving scenario data corresponding to each type of image data; Extracting an image feature vector from the image data; The image feature vector is used as a scene vector, and the scene vector and the autonomous driving scene data are stored correspondingly in a preset scene vector library.

3. The method according to claim 2, characterized in that The step of extracting an image feature vector from the image data comprises: Performing resolution adjustment and normalization processing on the image data to obtain an image input vector; Loading an image encoder; the image encoder includes a convolutional neural network and a visual encoder; Using the convolutional neural network to perform convolution and pooling processing on the image input vector to obtain an image embedding vector; The image embedding vector is encoded using the visual encoder, and the encoded vector is mapped to a vector space of a set length to obtain an image feature vector.

4. The method according to any one of claims 1 to 3, characterized in that In the case where the input type is a text type, processing the scene mining condition into a condition vector according to the input type corresponding to the scene mining condition includes: Performing word segmentation processing on the scene mining condition to obtain a text input vector; Load the text model; the text model includes the embedding processing unit and the text encoder; Using the embedding processing unit to add position encoding information to the text input vector to obtain a text embedding vector; The text embedding vector is encoded by using the text encoder, and the encoded vector is mapped to a vector space of a set length to obtain a conditional vector.

5. The method according to any one of claims 1 to 3, characterized in that: In the case where the input type is an image type, processing the scene mining condition into a condition vector according to the input type corresponding to the scene mining condition includes: Performing resolution adjustment and normalization processing on the scene mining condition to obtain a condition input vector; Loading an image encoder; the image encoder includes a convolutional neural network and a visual encoder; Using the convolutional neural network to perform convolution and pooling processing on the conditional input vector to obtain a conditional embedding vector; The conditional embedding vector is encoded using the visual encoder, and the encoded vector is mapped to a vector space of a set length to obtain a conditional vector.

6. The method according to any one of claims 1 to 3, characterized in that: In the case where the input type is a video type, processing the scene mining condition into a condition vector according to the input type corresponding to the scene mining condition includes: Parsing the scene mining condition into a plurality of frame images; The resolution of each frame image is adjusted and normalized to obtain multiple input vectors; Loading an image encoder; the image encoder includes a convolutional neural network and a visual encoder; Using the convolutional neural network to perform convolution processing and pooling processing on each input vector respectively to obtain multiple embedding vectors; According to the frame position information of the plurality of frame images, adding timing information to the plurality of embedding vectors to obtain a plurality of target embedding vectors; The visual encoder is used to encode each target embedding vector respectively, and each encoded vector is mapped to a vector space of a set length to obtain multiple conditional vectors.

7. An autonomous driving scene mining device, characterized in that: The device comprises: A receiving module, used for receiving scene mining conditions; A processing module, configured to process the scene mining condition into a condition vector according to an input type corresponding to the scene mining condition; the input type includes at least one of a text type, an image type, and a video type; A search module, used to search for a target scene vector having the highest similarity to the conditional vector from a preset scene vector library; the preset scene vector library stores scene vectors corresponding to a number of autonomous driving scenes; An output module is used to use the autonomous driving scene data corresponding to the target scene vector as a mining result corresponding to the scene mining condition.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Automatic driving test scene analysis method and system

    CN113989768A

  • Automatic driving method based on similar scene mining and vehicle

    CN115675528A

  • Scene mining method and device for automatic driving, electronic equipment and storage medium

    CN117576648A

  • Scene recognition method and device, model training method and device and electronic equipment

    CN117789103A

  • Scenario similarity retrieval-based automatic scenario generation system and method

    EP4379644A1