Sample construction method and device

By automatically constructing and comparing vehicle driving trajectories, the problems of low manual annotation efficiency and poor stability in the autonomous driving system are solved, and efficient and accurate vehicle driving intention recognition is achieved.

CN118551218APending Publication Date: 2024-08-27HANGZHOU ZHIHUI MANTU TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410526120.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-28
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

In the existing technology, vehicle cut-in intention prediction in autonomous driving systems requires manual labeling of data. The process is complex and inefficient, and is easily affected by subjective factors, resulting in unstable labeling.

Method used

By extracting the driving information of the target vehicle and associated vehicles, the target and associated driving trajectories are constructed, and the vehicle's driving intention is automatically determined based on the trajectory overlap conditions and timestamp comparison, and the trajectory is extended to determine the intention when the trajectories do not overlap, and the driving intention recognition is constructed Sample pairs to train the model.

Benefits of technology

It improves the efficiency of sample labeling, saves human resources, reduces the influence of subjective factors, and improves the stability of labeling and the accuracy of driving intention recognition of the automatic driving system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118551218A
    Figure CN118551218A
Patent Text Reader

Abstract

The embodiment of the invention provides a sample construction method and device. The sample construction method comprises the steps that target driving information of a target vehicle and associated driving information of an associated vehicle are extracted from a to-be-labeled sample; constructing a target driving track corresponding to the target vehicle according to the target driving information, and constructing an associated driving track corresponding to the associated vehicle according to the associated driving information; under the condition that the target driving track and the associated driving track meet a track overlapping condition, determining driving intention information of the associated vehicle by comparing timestamps corresponding to the target vehicle and the associated vehicle; under the condition that the target driving track and the associated driving track do not meet the track overlapping condition, extending the target driving track and the associated driving track, and determining driving intention information of the associated vehicle according to an extending result; and constructing a driving intention recognition sample pair based on the to-be-labeled sample and the driving intention information of the associated vehicle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification relate to the field of machine learning technology, and in particular to a sample construction method and device. Background Art

[0002] With the development of computer technology, driverless driving has become a trend. In the field of driverless driving, vehicle cut-in intention prediction is an important component. Predicting the behavior of surrounding vehicles in the same direction invading the front of the vehicle from the side, so as to make responses such as braking avoidance and detour, can effectively improve the efficiency and safety of the autonomous driving system. In practical applications, in order to make the cut-in intention prediction more accurate, it is necessary to use a deep learning model, and the prediction accuracy of the deep learning model needs to be data-driven. In other words, it is necessary to annotate the cut-in intention of other vehicles on the road for the data collected by the autonomous driving system to provide supervised training for data-driven. In the prior art, most of the data annotation operations are completed manually. By finding the vehicle where the cut-in occurs and the corresponding timestamp, as the cut-in end time, and then reversing the timestamp to the moment when the vehicle is observed to have a cut-in trend, as the cut-in start time, the cut-in start time, the cut-in end time and the corresponding vehicle form a cut-in intention annotation. However, this operation process is relatively complicated, and the manual annotation efficiency is low, which is easily affected by subjective factors and leads to unstable annotation. Therefore, an effective solution is urgently needed to solve the above problems. Summary of the invention

[0003] In view of this, the embodiments of this specification provide a sample construction method. One or more embodiments of this specification also relate to a sample construction device, a computing device, a computer-readable storage medium and a computer program product to solve the technical defects existing in the prior art.

[0004] According to a first aspect of an embodiment of this specification, a sample construction method is provided, including:

[0005] Extracting target driving information of a target vehicle and associated driving information of associated vehicles from the samples to be labeled;

[0006] Constructing a target driving trajectory corresponding to the target vehicle according to the target driving information, and constructing an associated driving trajectory corresponding to the associated vehicle according to the associated driving information;

[0007] When the target driving trajectory and the associated driving trajectory meet the trajectory overlap condition, determining the driving intention information of the associated vehicle by comparing the timestamps corresponding to the target vehicle and the associated vehicle respectively;

[0008] When the target driving trajectory and the associated driving trajectory do not satisfy the trajectory overlap condition, extending the target driving trajectory and the associated driving trajectory, and determining the driving intention information of the associated vehicle according to the extension result;

[0009] A driving intention recognition sample pair is constructed based on the sample to be labeled and the driving intention information of the associated vehicle.

[0010] According to a second aspect of an embodiment of this specification, another sample construction method is provided, which is applied to a cloud-side device, including:

[0011] The sample to be labeled uploaded by the receiving end-side device is extracted from the sample to be labeled target driving information of the target vehicle and associated driving information of associated vehicles;

[0012] Constructing a target driving trajectory corresponding to the target vehicle according to the target driving information, and constructing an associated driving trajectory corresponding to the associated vehicle according to the associated driving information;

[0013] When the target driving trajectory and the associated driving trajectory meet the trajectory overlap condition, determining the driving intention information of the associated vehicle by comparing the timestamps corresponding to the target vehicle and the associated vehicle respectively;

[0014] When the target driving trajectory and the associated driving trajectory do not satisfy the trajectory overlap condition, extending the target driving trajectory and the associated driving trajectory, and determining the driving intention information of the associated vehicle according to the extension result;

[0015] A driving intention recognition sample pair is constructed based on the sample to be labeled and the driving intention information of the associated vehicle, and the driving intention recognition sample pair is sent to the terminal side device.

[0016] According to a third aspect of the embodiments of this specification, there is provided a sample construction device, including:

[0017] An extraction module is configured to extract target driving information of a target vehicle and associated driving information of associated vehicles from the sample to be labeled;

[0018] A construction module, configured to construct a target driving trajectory corresponding to the target vehicle according to the target driving information, and to construct an associated driving trajectory corresponding to the associated vehicle according to the associated driving information;

[0019] A comparison module is configured to determine the driving intention information of the associated vehicle by comparing the timestamps corresponding to the target vehicle and the associated vehicle respectively when the target driving trajectory and the associated driving trajectory meet the trajectory overlap condition;

[0020] an extension module, configured to extend the target driving trajectory and the associated driving trajectory when the target driving trajectory and the associated driving trajectory do not meet the trajectory overlap condition, and determine the driving intention information of the associated vehicle according to the extension result;

[0021] The sample pair construction module is configured to construct a driving intention recognition sample pair based on the sample to be labeled and the driving intention information of the associated vehicle.

[0022] According to a fourth aspect of an embodiment of this specification, another sample construction device is provided, which is applied to a cloud-side device, including:

[0023] A sample receiving module is configured to receive samples to be labeled uploaded by a terminal device, and extract target driving information of a target vehicle and associated driving information of associated vehicles from the samples to be labeled;

[0024] A trajectory building module is configured to build a target driving trajectory corresponding to the target vehicle according to the target driving information, and to build an associated driving trajectory corresponding to the associated vehicle according to the associated driving information;

[0025] A timestamp comparison module is configured to determine the driving intention information of the associated vehicle by comparing the timestamps corresponding to the target vehicle and the associated vehicle respectively when the target driving trajectory and the associated driving trajectory meet the trajectory overlap condition;

[0026] A trajectory extension module is configured to extend the target driving trajectory and the associated driving trajectory when the target driving trajectory and the associated driving trajectory do not meet the trajectory overlap condition, and determine the driving intention information of the associated vehicle according to the extension result;

[0027] The sample pair sending module is configured to construct a driving intention recognition sample pair based on the sample to be labeled and the driving intention information of the associated vehicle, and send the driving intention recognition sample pair to the terminal side device.

[0028] According to a fifth aspect of an embodiment of this specification, a computing device is provided, including:

[0029] Memory and processor;

[0030] The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the above-mentioned sample construction method are implemented.

[0031] According to a sixth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the above-mentioned sample construction method are implemented.

[0032] According to a seventh aspect of the embodiments of this specification, a computer program product is provided, including a computer program or instructions, which implement the steps of the above-mentioned sample construction method when executed by a processor.

[0033] The sample construction method provided in this embodiment can automatically complete the labeling of the vehicle driving intention in the sample, and can first extract the target driving information of the target vehicle and the associated driving information of the associated vehicle from the sample to be labeled; thereafter, the target driving trajectory corresponding to the target vehicle can be constructed in combination with the target driving information, and the associated driving trajectory corresponding to the associated vehicle can be constructed according to the associated driving information; the driving routes of the target vehicle and the associated vehicle within the set time interval can be determined through the driving trajectory. On this basis, the driving intention identification can be completed by combining the driving trajectories corresponding to the target vehicle and the associated vehicle respectively. That is to say, when the target driving trajectory and the associated driving trajectory meet the trajectory overlap condition, it means that the two have the behavior of invading the lane of the other party, so the driving intention information of the associated vehicle can be determined by comparing the timestamps corresponding to the target vehicle and the associated vehicle respectively, so as to realize accurate and automatic intention labeling for the associated vehicle in this case. When the target driving trajectory and the associated driving trajectory do not meet the trajectory overlap condition, it means that the two do not have the behavior of invading the lane of the other party on the current trajectory, but it does not exclude that this situation may still exist in the subsequent driving, so the target driving trajectory and the associated driving trajectory can be extended, and then the driving intention information of the associated vehicle can be determined according to the extension result. After obtaining the driving intention information corresponding to the associated vehicle in the sample to be labeled, the driving intention recognition sample pair can be constructed by combining the sample to be labeled and the driving intention information of the associated vehicle, so that in the model training stage, the model can be trained in combination with the sample pair, so that the downstream model for identifying the vehicle's driving intention has a more accurate recognition ability. The automatic labeling of the vehicle's driving intention in the sample by the above method can effectively improve the sample labeling efficiency, save more human resources, and is not affected by subjective factors, which can effectively improve the labeling stability. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 is a schematic diagram of a sample construction method provided by an embodiment of this specification;

[0035] Figure 2 is a flow chart of a sample construction method provided by an embodiment of this specification;

[0036] Figure 3is a schematic diagram of a driving trajectory in a sample construction method provided in an embodiment of this specification;

[0037] Figure 4 is a flow chart of another sample construction method provided by an embodiment of this specification;

[0038] Figure 5 is a processing flow chart of a sample construction method provided by an embodiment of this specification;

[0039] Figure 6 is a schematic diagram of the structure of a sample construction device provided by an embodiment of this specification;

[0040] Figure 7 is a schematic diagram of the structure of another sample construction device provided by an embodiment of this specification;

[0041] Figure 8 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0042] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

[0043] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0044] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0045] In addition, 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 one or more embodiments of this specification 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 the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0046] In one or more embodiments of this specification, a large model refers to a deep learning model with large-scale model parameters, which usually contains hundreds of millions, tens of billions, hundreds of billions, trillions, or even more than 10 trillion model parameters. A large model can also be called a foundation model / foundation model. The large model is pre-trained with large-scale unlabeled corpus to produce a pre-trained model with more than 100 million parameters. This model can adapt to a wide range of downstream tasks, and the model has good generalization ability, such as a large-scale language model (LLM), a multi-modal pre-training model, etc.

[0047] When the big model is used in practice, only a small number of samples are needed to fine-tune the pre-trained model and it can be applied to different tasks. The big model can be widely used in natural language processing (NLP), computer vision and other fields. Specifically, it can be applied to computer vision tasks such as visual question answering (VQA), image caption (IC), image generation, as well as natural language processing tasks such as text-based sentiment classification, text summary generation, and machine translation. The main application scenarios of the big model include digital assistants, intelligent robots, search, online education, office software, e-commerce, intelligent design, etc.

[0048] First, the terms involved in one or more embodiments of this specification are explained.

[0049] Cut-in: In the field of autonomous driving, cut-in usually refers to a traffic behavior, that is, a vehicle cuts into the front or adjacent lane of another vehicle while driving.

[0050] In this specification, a sample construction method is provided. This specification also relates to a sample construction device, a computing device, a computer-readable storage medium and a computer program product, which are described in detail one by one in the following embodiments.

[0051] See also Figure 1 As shown in the schematic diagram, the sample construction method provided by this embodiment can automatically complete the marking of the driving intention of the vehicle in the sample, and can first extract the target driving information of the target vehicle and the associated driving information of the associated vehicle from the sample to be marked; thereafter, the target driving trajectory corresponding to the target vehicle can be constructed in combination with the target driving information, and the associated driving trajectory corresponding to the associated vehicle can be constructed according to the associated driving information; the driving routes of the target vehicle and the associated vehicle within the set time interval can be determined through the driving trajectory. On this basis, the driving intention recognition can be completed by combining the driving trajectories corresponding to the target vehicle and the associated vehicle respectively. That is to say, when the target driving trajectory and the associated driving trajectory meet the trajectory overlap condition, it means that the two have the behavior of invading the lane of the other party, so the driving intention information of the associated vehicle can be determined by comparing the timestamps corresponding to the target vehicle and the associated vehicle respectively, so as to realize accurate and automatic intention marking for the associated vehicle in this case. When the target driving trajectory and the associated driving trajectory do not meet the trajectory overlap condition, it means that the two do not have the behavior of invading the lane of the other party on the current trajectory, but it does not exclude that this situation may still exist in the subsequent driving, so the target driving trajectory and the associated driving trajectory can be extended, and then the driving intention information of the associated vehicle can be determined according to the extension result. After obtaining the driving intention information corresponding to the associated vehicle in the sample to be labeled, the driving intention recognition sample pair can be constructed by combining the sample to be labeled and the driving intention information of the associated vehicle, so that in the model training stage, the model can be trained in combination with the sample pair, so that the downstream model for identifying the vehicle's driving intention has a more accurate recognition ability. The automatic labeling of the vehicle's driving intention in the sample by the above method can effectively improve the sample labeling efficiency, save more human resources, and is not affected by subjective factors, which can effectively improve the labeling stability.

[0052] See also Figure 2 , Figure 2 A flow chart of a sample construction method provided according to an embodiment of the present specification is shown, which specifically includes the following steps.

[0053] Step S202: extracting target driving information of the target vehicle and associated driving information of associated vehicles from the samples to be labeled.

[0054] The sample construction method provided in this embodiment is applied to an autonomous driving scenario. A neural network model that has a prediction requirement for vehicle driving behavior is used to automatically label the driving intention of the vehicles contained in the samples that the model needs to use, and then the neural network model can be trained using the labeled samples, so that the model can have more accurate prediction capabilities, so as to make accurate driving intention judgments on driving vehicles in autonomous driving scenarios.

[0055] Specifically, the sample to be labeled specifically refers to the sample required for training a neural network model with the ability to recognize vehicle driving intentions, and the sample does not have a label, so it is necessary to use the sample construction method provided in this embodiment to perform intention recognition of each vehicle in the sample, so as to automatically complete the driving intention labeling of each vehicle, and use it as a label for subsequent model training; wherein, the sample to be labeled can be a video clip collected by an automatic driving system. Correspondingly, the target vehicle specifically refers to the reference vehicle in the sample to be labeled, that is, the vehicle can be understood as an automatic driving vehicle, and the associated vehicle is other vehicles traveling around the target vehicle. The driving behavior of the associated vehicle will affect the driving of the target vehicle. Therefore, the intention recognition and labeling of the associated vehicle can be used as a label in the model training stage to improve the accuracy of the model's recognition of the driving behavior intention of any vehicle. Correspondingly, the driving information is the relevant information collected for the vehicle in the sample to be labeled during driving, including but not limited to the timestamp of each frame of the vehicle, the position, speed, direction, vehicle length, vehicle width and other structured information, which is used for subsequent intention recognition and labeling. In practical applications, the target driving information can be collected by the perception module or positioning module of the unmanned driving system. This will then generate the driving information corresponding to each vehicle in the sample to be labeled for use in the sample labeling stage.

[0056] Based on this, in order to automatically complete the labeling of the driving intention of the vehicle in the sample, the target driving information of the target vehicle and the associated driving information of the associated vehicle can be extracted from the sample to be labeled; thereafter, the target driving trajectory corresponding to the target vehicle can be constructed in combination with the target driving information, and the associated driving trajectory corresponding to the associated vehicle can be constructed according to the associated driving information; the driving routes of the target vehicle and the associated vehicle within the set time interval can be determined through the driving trajectory. On this basis, the driving intention recognition can be completed by combining the driving trajectories corresponding to the target vehicle and the associated vehicle respectively. In other words, when the target driving trajectory and the associated driving trajectory meet the trajectory overlap condition, it means that the two have the behavior of invading the lane of the other party. Therefore, the driving intention information of the associated vehicle can be determined by comparing the timestamps corresponding to the target vehicle and the associated vehicle respectively, so as to realize accurate and automatic intention labeling for the associated vehicle in this case. When the target driving trajectory and the associated driving trajectory do not meet the trajectory overlap condition, it means that the two do not have the behavior of invading the lane of the other party on the current trajectory, but it does not exclude that this situation may still exist in the subsequent driving. Therefore, the target driving trajectory and the associated driving trajectory can be extended, and then the driving intention information of the associated vehicle can be determined according to the extension result. After obtaining the driving intention information corresponding to the associated vehicle in the sample to be labeled, the driving intention information of the sample to be labeled and the associated vehicle can be combined to construct a driving intention recognition sample pair, so that in the model training stage, the sample pair can be combined to train the model, so that the downstream model for identifying the vehicle's driving intention has more accurate recognition capabilities.

[0057] Furthermore, when extracting driving information from the sample to be labeled, in order to accurately construct the driving trajectory corresponding to each vehicle through the driving information and accurately determine the driving intention of the associated vehicle, driving information of multiple driving information dimensions can be collected for use. In this embodiment, the specific implementation method is as follows:

[0058] A sample to be labeled is selected from a sample set, wherein the sample to be labeled is associated with a target vehicle and an associated vehicle, and the target vehicle and the associated vehicle have a position association relationship; a plurality of driving sub-information corresponding to the target vehicle and a plurality of driving sub-information corresponding to the associated vehicle are extracted from the sample to be labeled according to a preset driving information dimension; target driving information is composed according to the plurality of driving sub-information corresponding to the target vehicle, and associated driving information is composed according to the plurality of driving sub-information corresponding to the associated vehicle.

[0059] Specifically, the sample set specifically refers to a set of samples that are not labeled with the driving intention of the associated vehicle. Correspondingly, the position association relationship specifically refers to the relationship that the associated vehicle is driving around the target vehicle. Correspondingly, the driving information dimension specifically refers to the information collection dimension set for the sample to be labeled, and each driving information dimension is associated with the relevant dimensions for subsequent driving intention identification, including but not limited to the time dimension, location dimension, speed dimension, direction dimension, vehicle attribute dimension, etc.

[0060] Based on this, in the driving intention recognition stage of associated vehicles, a sample to be labeled can be selected from the sample set first, and the sample to be labeled can be associated with a target vehicle and an associated vehicle, wherein the target vehicle and the associated vehicle have a positional association relationship; thereafter, multiple driving sub-information corresponding to the target vehicle and multiple driving sub-information corresponding to the associated vehicle can be extracted from the sample to be labeled according to a preset driving information dimension; finally, the target driving information can be composed according to the multiple driving sub-information corresponding to the target vehicle, and the associated driving information can be composed according to the multiple driving sub-information corresponding to the associated vehicle, so that subsequent intention recognition can be performed in combination with the driving information corresponding to the target vehicle and the associated vehicle, thereby achieving the purpose of automatically completing the sample labeling.

[0061] For example, select a sample to be labeled in the sample set. The sample to be labeled is a video clip of the target vehicle A driving for 60 seconds. The starting frame of the video is as follows: Figure 3 As shown in (a), there are associated vehicles B and C around the target vehicle A. At this time, the timestamp, position, speed, direction, vehicle length and width and other structured information corresponding to vehicles A, B and C in each frame can be determined based on the sample, so as to automatically determine the cut-in intention type of a certain frame of vehicles B and C, so as to accurately mark the driving behaviors of vehicles B and C, and thus construct a sample pair to train a model that can recognize vehicle driving intentions.

[0062] In summary, by collecting driving sub-information in multiple dimensions to form driving information, it can be ensured that when the corresponding driving trajectory of the vehicle is subsequently constructed, the driving route, status and behavior of the vehicle in each frame can be accurately reflected, thereby supporting the subsequent automatic labeling of the vehicle's driving intention information for use in the model training stage.

[0063] Step S204: constructing a target driving trajectory corresponding to the target vehicle according to the target driving information, and constructing an associated driving trajectory corresponding to the associated vehicle according to the associated driving information.

[0064] Specifically, after obtaining the target driving information of the target vehicle and the associated driving information of the associated vehicles in the sample to be labeled, in order to save more human resources and improve the efficiency of sample labeling, the driving tracks corresponding to each vehicle can be constructed in combination with the driving information corresponding to each vehicle, and the driving intention of the associated vehicle can be identified and the labeling purpose can be achieved by subsequently judging the relationship between the driving tracks. Therefore, the target driving track corresponding to the target vehicle can be constructed according to the target driving information, and the associated driving track corresponding to the associated vehicle can be constructed according to the associated driving information. In addition, in order to achieve the purpose of driving intention identification, the target driving track and the associated driving track need to be frame aligned in the time dimension, and then the purpose of driving intention identification can be achieved by comparing the driving track relationship.

[0065] The target driving trajectory specifically refers to the trajectory drawn for the driving route of the target vehicle according to the target driving information, and correspondingly, the associated driving trajectory specifically refers to the trajectory drawn for the driving route of the associated vehicle according to the associated driving information. It should be noted that during the associated vehicle intention recognition stage, the purpose is to detect whether the associated vehicle will invade the driving route of the target vehicle. Therefore, when constructing driving trajectories for the target vehicle and the associated vehicle, the starting point and the end point of the driving trajectory construction of the two can be controlled to be the same, that is, the two have a frame alignment relationship, so as to ensure the accuracy of driving intention recognition.

[0066] Furthermore, considering that the driving information is related to the entire driving route of the vehicle, and driving intention recognition does not require all the information, processing all the information will also affect the efficiency. Therefore, the driving information with the preset driving duration information can be extracted to construct the driving trajectory. In this embodiment, the specific implementation method is as follows:

[0067] According to the preset driving duration information, target local driving information is extracted from the target driving information, and associated local driving information is extracted from the associated driving information; a target driving trajectory corresponding to the target vehicle is constructed according to the target local driving information, and an associated driving trajectory corresponding to the associated vehicle is constructed according to the associated local driving information; wherein the target driving trajectory and the associated driving trajectory have a frame alignment relationship in the time dimension.

[0068] Specifically, the preset driving duration information specifically refers to the time interval set when constructing the driving trajectory for the target vehicle and the associated vehicle. The target driving trajectory and the associated driving trajectory are constructed based on the duration information, which can ensure that the two have a frame alignment relationship in the time dimension. Correspondingly, the local driving information specifically refers to the part of the driving information intercepted according to the driving duration information in the driving information, so as to construct the driving trajectory corresponding to the driving duration information. Ensure that the subsequent driving intention recognition processing is carried out on the basis of the frame alignment relationship between the two.

[0069] Based on this, in order to accurately identify the driving intention of the vehicle and achieve the purpose of sample labeling, the target local driving information can be extracted from the target driving information according to the preset driving duration information, and the associated local driving information can be extracted from the associated driving information; the driving information extracted from both can be associated with the driving duration information, and on this basis, the target driving trajectory corresponding to the target vehicle can be constructed according to the target local driving information, and the associated driving trajectory corresponding to the associated vehicle can be constructed according to the associated local driving information; the target driving trajectory and the associated driving trajectory have a frame alignment relationship in the time dimension, so as to facilitate the subsequent driving intention identification of the associated vehicle.

[0070] Using the above example, after determining the driving information corresponding to vehicles A, B, and C, in order to automatically determine the cut-in intent type of a frame of vehicles B and C, the timestamp, position, speed, direction, vehicle length, width, and other information corresponding to the vehicles from the start frame to the end frame 5s later (i.e., 50 frames) can be extracted from the driving information corresponding to vehicles A, B, and C. After that, the driving information corresponding to these 50 frames can be used to construct the driving trajectory a corresponding to vehicle A, the driving trajectory b corresponding to vehicle B, and the driving trajectory c corresponding to vehicle C. The schematic diagrams of the driving trajectories a, b, and c are as follows: Figure 3 As shown in (b), the cut-in intention type of vehicles B and C can be identified by analyzing the overlapping relationship between driving trajectories b and c and driving trajectory a.

[0071] In summary, by truncating the driving information according to the preset driving duration information and constructing the driving trajectory based on this, it can be ensured that the driving trajectories corresponding to the target vehicle and the associated vehicles have a frame alignment relationship, and the intention recognition of the associated vehicles is performed on this basis, which can further ensure accuracy.

[0072] Step S206, when the target driving trajectory and the associated driving trajectory meet the trajectory overlap condition, the driving intention information of the associated vehicle is determined by comparing the timestamps corresponding to the target vehicle and the associated vehicle respectively.

[0073] Specifically, after the construction of the driving trajectories corresponding to the associated vehicle and the target vehicle is completed, the target driving trajectory and the associated driving trajectory can be overlapped to determine the possible driving behaviors of the target vehicle and the associated vehicle, thereby achieving the purpose of identifying the driving intention of the associated vehicle. Therefore, a trajectory overlap condition can be set in advance, and it can be detected whether the target driving trajectory and the associated driving trajectory meet the trajectory overlap condition.

[0074] When the target driving trajectory and the associated driving trajectory meet the trajectory overlap condition, it means that the target driving trajectory and the associated driving trajectory have overlapping positions within the set distance range, which further indicates that the associated vehicle may invade the lane of the target vehicle, or the associated vehicle may be close to the target vehicle, so that the driving intention of the associated vehicle can be mapped. In order to ensure the accuracy of the driving intention recognition, the driving relationship between the target vehicle and the associated vehicle can be detected by comparing the timestamps corresponding to the target vehicle and the associated vehicle, and then the driving intention information of the associated vehicle can be determined.

[0075] Among them, the trajectory overlap condition specifically refers to the condition of detecting the overlapping relationship between the target driving trajectory and the associated driving trajectory and determining whether the overlapping position is less than the set threshold from the starting position. The restrictions of the two sub-conditions can ensure accurate identification of different driving intentions. Correspondingly, the timestamp specifically refers to the timestamp corresponding to the closest point between the target driving trajectory and the associated driving trajectory, and the associated vehicle and the target vehicle are at the overlapping position. By comparing the timestamps corresponding to their respective closest points, it can be understood whether the associated vehicle has lane invasion behavior, yielding behavior or approaching behavior. Then determine the driving intention information of the associated vehicle. Among them, the driving intention information is the driving intention of the associated vehicle relative to the target vehicle, including but not limited to lane invasion behavior intention, yielding behavior intention, invasion and deceleration behavior intention, deceleration and yielding behavior intention, approaching behavior intention, etc. When the driving intention of the associated vehicle is identified, the annotation accuracy can be guaranteed by accurately identifying different types of behavior intentions, and then in the model training stage, the model can learn more abundant driving intention recognition capabilities, thereby improving driving safety in the autonomous driving scenario.

[0076] Furthermore, when detecting the overlapping relationship between the target driving trajectory and the associated driving trajectory, considering that the early or late occurrence of the overlapping relationship is also an important factor affecting the accuracy of driving intention recognition, driving intention recognition can be performed by detecting the overlapping position. In this embodiment, the specific implementation method is as follows:

[0077] In the case where there is an overlapping position between the target driving trajectory and the associated driving trajectory, the target starting position of the target vehicle is determined according to the target driving information, and a first distance between the target starting position and the overlapping position is calculated; in the case where the first distance is less than or equal to a preset distance threshold, it is determined that the target driving trajectory and the associated driving trajectory satisfy a trajectory overlap condition, a target terminal position associated with the overlapping position is determined on the target driving trajectory, and an associated terminal position associated with the overlapping position is determined on the associated driving trajectory; a target timestamp corresponding to the target vehicle at the target terminal position is determined, and an associated timestamp corresponding to the associated vehicle at the associated terminal position is determined; and driving intention information of the associated vehicle is determined by comparing the target timestamp and the associated timestamp.

[0078] Specifically, the overlapping position specifically refers to the position information corresponding to the overlapping point between the target driving trajectory and the associated driving trajectory. Correspondingly, the target starting position specifically refers to the starting position corresponding to the target vehicle in the target driving trajectory, which can be understood as the position of the target vehicle in the first frame. Correspondingly, the first distance is the distance between the target starting position and the overlapping position. Correspondingly, the target end position specifically refers to the position of the target vehicle closest to the overlapping position on the target driving trajectory. The associated end position specifically refers to the position of the associated vehicle closest to the overlapping position on the associated driving trajectory. It should be noted that although the end positions corresponding to the associated vehicle and the target vehicle are closest to the overlapping position, due to the different driving information such as the trajectory, speed, etc. corresponding to the associated vehicle and the target vehicle, the timestamps corresponding to the end positions of the associated vehicle and the target vehicle may be different. Correspondingly, the target timestamp is the timestamp information corresponding to the target vehicle when it is at the target end position, and the associated timestamp is the timestamp information corresponding to the associated vehicle when it is at the associated end position.

[0079] Based on this, when there is an overlapping position between the target driving trajectory and the associated driving trajectory, it means that the target vehicle and the associated vehicle will intrude into the lane in the subsequent driving. In order to accurately identify the driving intention type of the associated vehicle, the target starting position of the target vehicle can be determined according to the target driving information, and the first distance between the target starting position and the overlapping position can be calculated; when the first distance is less than or equal to the preset distance threshold, it is determined that the target driving trajectory and the associated driving trajectory meet the trajectory overlap condition, which further indicates that the associated vehicle will have a behavior that affects the driving of the target vehicle, or an avoidance behavior, etc. in the time interval corresponding to the current trajectory. In order to accurately determine the driving intention of the associated vehicle, the target end position associated with the overlapping position can be determined on the target driving trajectory, and the associated end position associated with the overlapping position can be determined on the associated driving trajectory; thereafter, the target timestamp corresponding to the target vehicle at the target end position can be determined according to the target driving information, and the associated timestamp corresponding to the associated vehicle at the associated end position can be determined according to the associated driving information; by comparing the target timestamp and the associated timestamp, the driving intention information of the associated vehicle can be determined.

[0080] In specific implementation, when the associated timestamp is earlier than the target timestamp, it means that the associated vehicle has entered the front of the target vehicle from the side, and then the driving intention of the associated vehicle is determined to be lane intrusion; when the associated timestamp is later than the target timestamp, it means that the associated vehicle gives way to the target vehicle, and then the driving intention of the associated vehicle is determined to be slowing down and giving way; when the associated timestamp is equal to the target timestamp, it means that the associated vehicle has approached the target vehicle, and then the driving intention of the associated vehicle is determined to be approaching intention.

[0081] Using the above example, after obtaining the driving trajectories corresponding to vehicles A, B, and C, we can first detect whether driving trajectory a overlaps with driving trajectories b and c; according to the detection, we determine the overlapping position of driving trajectory a and driving trajectory b, such as Figure 3As shown in (b). At this time, the starting position of vehicle A in the first frame can be determined, and the first distance from the starting position to the overlapping position can be calculated. When the distance is less than 30m, the position Pa1 where vehicle A is closest to the overlapping position can be determined on the driving trajectory a, and the position Pb1 where vehicle B is closest to the overlapping position can be determined on the driving trajectory b. On this basis, the timestamp Ta1 corresponding to vehicle A at position Pa1 can be determined according to the driving information corresponding to vehicle A, and the timestamp Tb1 corresponding to vehicle B at position Pb1 can be determined according to the driving information corresponding to vehicle B. At this time, Ta1 and Tb1 can be compared. If Tb1 is earlier than Ta1, it means that vehicle B will invade the lane of vehicle A from the side, so the intention annotation type of vehicle B in the current frame is determined to be cut-in. If Tb1 is later than Ta1, it means that vehicle B will give way to vehicle A, so the intention annotation type of vehicle B in the current frame is determined to be yield. If Tb1 is equal to Ta1, it means that vehicle B will approach vehicle A. Therefore, the intention annotation type of vehicle B in the current frame is determined to be approach, so that sample pairs can be constructed based on the intention annotation information and a neural network model with vehicle intention recognition capability can be trained.

[0082] In summary, when there is an overlapping position between the target driving trajectory and the associated driving trajectory and the overlapping position is close, the driving intention of the associated vehicle can be identified by combining the timestamps corresponding to the closest points between the associated vehicle and the target vehicle to the overlapping position, thereby ensuring the accuracy of driving intention identification.

[0083] Step S208, when the target driving trajectory and the associated driving trajectory do not satisfy the trajectory overlap condition, the target driving trajectory and the associated driving trajectory are extended, and the driving intention information of the associated vehicle is determined according to the extension result.

[0084] Specifically, when the target driving trajectory and the associated driving trajectory do not meet the trajectory overlap condition, it means that there is no overlapping position between the target driving trajectory and the associated driving trajectory within the set distance range, which further means that the associated vehicle will not affect the target vehicle on the driving trajectory corresponding to the current time interval. However, this does not mean that the target vehicle will not be affected in the entire sample. In order to be able to mark the driving intention of the associated vehicle in each frame, the target driving trajectory and the associated driving trajectory can be extended. After extension, the driving intention is identified in combination with the extended driving trajectory, so that the driving intention information of the associated vehicle can be determined based on the extension result. Among them, extension specifically refers to the processing operation of extending the trajectory of the target driving trajectory and / or the associated driving trajectory, and the extension processing needs to be completed based on the target driving information corresponding to the target vehicle and / or the associated driving information of the associated vehicle, to ensure that the extended trajectory is still the driving route shown by the vehicle in the sample.

[0085] Furthermore, if the target driving trajectory and the associated driving trajectory do not overlap in the current time interval, it does not mean that the two do not invade each other's lanes. In order to ensure that any driving intention of the associated vehicle can be identified, the driving intention can also be identified by extending the driving trajectory. In this embodiment, the specific implementation method is as follows:

[0086] In the case where there is an overlapping position between the target driving trajectory and the associated driving trajectory and the first distance is greater than the preset distance threshold, or in the case where there is no overlapping position between the target driving trajectory and the associated driving trajectory, it is determined that the target driving trajectory and the associated driving trajectory do not meet the trajectory overlapping condition, and the target driving trajectory is extended, and the driving intention information of the associated vehicle is determined based on the extended target driving trajectory and the associated driving trajectory.

[0087] Based on this, when there is an overlapping position between the target driving trajectory and the associated driving trajectory and the first distance is greater than the preset distance threshold, or when there is no overlapping position between the target driving trajectory and the associated driving trajectory, it can be determined that the target driving trajectory and the associated driving trajectory do not meet the trajectory overlap condition, which further indicates that the associated vehicle will not produce any behavior that affects the driving of the target vehicle in the time interval corresponding to the current trajectory, but this situation will not continue to future driving time intervals. Therefore, in order to accurately identify the driving intention of the associated vehicle in each frame, the target driving trajectory can be extended to achieve determination of the driving intention information of the associated vehicle based on the extended target driving trajectory and the associated driving trajectory.

[0088] In practical applications, after the target driving trajectory and / or the associated driving trajectory are extended, the driving intention recognition based on the extended processing can refer to the relevant description in the above implementation, and this embodiment will not be elaborated in detail here.

[0089] In summary, when there is no overlapping position in the trajectory or the overlapping position is far away, the driving intention of the associated vehicle cannot be accurately identified based on the current trajectory. Therefore, the intention can be identified by extending the driving trajectory to ensure the accuracy of driving trajectory recognition.

[0090] Furthermore, after the driving trajectory is extended, intention recognition is performed based on the extended driving trajectory.

[0091] In this embodiment, the specific implementation method is as follows:

[0092] Performing an extension process on the target driving trajectory to obtain a target extended driving trajectory; detecting whether there is an extended overlapping position between the target extended driving trajectory and the associated driving trajectory;

[0093] If so, determine the target extended end position associated with the extended overlapping position on the target extended driving trajectory, and determine the associated extended end position associated with the extended overlapping position on the associated driving trajectory; determine the target extension timestamp corresponding to the target extended end position of the target vehicle, and determine the associated extension timestamp corresponding to the associated vehicle at the associated extended end position; and determine the driving intention information of the associated vehicle by comparing the target extension timestamp and the associated extension timestamp.

[0094] If not, the associated driving trajectory is extended to obtain an associated extended driving trajectory; when there is an overlapping position of target extension between the target extended driving trajectory and the associated extended driving trajectory, the avoidance driving intention information is used as the driving intention information of the associated vehicle; when there is no overlapping position of target extension between the target extended driving trajectory and the associated extended driving trajectory, the fuzzy driving intention information is used as the driving intention information of the associated vehicle.

[0095] Specifically, the target extended driving trajectory specifically refers to the driving trajectory obtained after the target driving trajectory is extended according to the target driving information corresponding to the target vehicle, and the information interval used for the extension processing is the same as the information interval used when constructing the target driving trajectory. For example, if the target driving trajectory is constructed using the driving information corresponding to 5s, the target extended driving trajectory will also continue to use the driving information of 5s-10s to extend, thereby ensuring that the extended driving trajectory strictly complies with the driving route of the target vehicle and is continuous. Correspondingly, the extended overlapping position target extended driving trajectory and the associated driving trajectory have overlapping points corresponding to the position information. Correspondingly, the target extended terminal position specifically refers to the position on the target extended driving trajectory where the target vehicle is closest to the extended overlapping position. The associated extended terminal position specifically refers to the position on the associated driving trajectory where the associated vehicle is closest to the extended overlapping position. Correspondingly, the target extended timestamp is the timestamp information corresponding to the target vehicle when it is at the target extended terminal position. The associated extended timestamp is the timestamp information corresponding to the associated vehicle when it is at the associated extended terminal position.

[0096] Correspondingly, the associated extended driving trajectory specifically refers to the driving trajectory obtained by extending the associated driving trajectory with the associated driving information corresponding to the associated vehicle, and the information interval used for the extension processing is the same as the information interval used when constructing the associated driving trajectory. Correspondingly, the target extended overlapping position specifically refers to the position information corresponding to the overlapping point between the target extended driving trajectory and the associated extended driving trajectory. The avoidance driving intention information specifically refers to the driving intention type of the associated vehicle to avoid the target vehicle. Fuzzy driving intention information specifically refers to the type of driving intention of the associated vehicle that cannot be determined. In practical applications, when the driving intention information of the associated vehicle is fuzzy driving intention information, it can be used as a negative sample to construct a sample pair training model, and the clear intention type can be used as a positive sample to train the model.

[0097] Using the above example, Figure 3 As shown in (c), according to the detection results, it is determined that there is no overlapping position between driving trajectory a and driving trajectory c, or there is an overlapping position between driving trajectory a and driving trajectory c, but the distance between the overlapping position and the starting position of vehicle A is greater than 30m. At this time, it can be determined that vehicle C may not have invaded the lane in front of vehicle A. However, it may also be that vehicle A is cut-in by other vehicles, resulting in a large deceleration, so that driving trajectory a and driving trajectory c do not overlap. Therefore, in order to be able to identify the driving intention of vehicle C in this case, it can be determined with the help of an extension line. According to the driving information corresponding to vehicle A, the driving trajectory a is extended for another 5s as the extended driving trajectory a corresponding to vehicle A. It should be noted that if the extended length is less than 8m or greater than 24m, it can be extended or shortened. On this basis, it is detected whether the extended driving trajectory a overlaps with the driving trajectory c.

[0098] According to the detection results, it is determined that there is an extended overlapping position between the extended driving trajectory a and the driving trajectory c, such as Figure 3As shown in (c). At this time, the position Pa2 where vehicle A is closest to the extended overlapping position can be determined on the extended driving trajectory a, and the position Pc1 where vehicle C is closest to the extended overlapping position can be determined on the driving trajectory c. On this basis, the timestamp Ta2 corresponding to vehicle A at position Pa2 can be determined according to the driving information corresponding to vehicle A, and the timestamp Tc1 corresponding to vehicle C at position Pc1 can be determined according to the driving information corresponding to vehicle C. At this time, Ta2 and Tc1 can be compared. If Tc1 is earlier than Ta2, it means that vehicle C will invade the lane of vehicle A from the side, and vehicle A will have a large deceleration, so the intention annotation type of vehicle C in the current frame is determined to be cut-inP2. If Tc1 is later than Ta2, it means that vehicle C will give way to vehicle A, so the intention annotation type of vehicle C in the current frame is determined to be yield. If Tc1 is equal to Ta2, it means that vehicle C will approach vehicle A, so the intention annotation type of vehicle C in the current frame is determined to be approach, so that sample pairs can be constructed based on the intention annotation information in the future, and a neural network model with vehicle intention recognition capability can be trained.

[0099] In addition, if it is determined according to the detection result that the extended driving trajectory a and the driving trajectory c do not have an extended overlapping position, such as Figure 3 As shown in (d), it means that no cut-in occurs, but it is also possible that vehicle C gives way to vehicle A so that the driving trajectory c and the extended driving trajectory a do not overlap. At this time, the driving trajectory c can be extended by another 5s according to the driving information corresponding to vehicle C, as the extended driving trajectory c corresponding to vehicle C. It should be noted that if the extended length is less than 8m or greater than 24m, it can be further extended or shortened. On this basis, it can be detected whether the extended driving trajectory a overlaps with the extended driving trajectory c. If so, it means that vehicle C slowed down significantly to give way to vehicle A, and the intention labeling type of vehicle C can be directly determined as yield P2. If not, it means that the driving behavior of vehicle C is uncertain, and the intention labeling type of vehicle C can be determined as not sure.

[0100] In summary, by comparing the different relationships between trajectories and then determining the different intention types of associated vehicles, the accuracy of driving intention recognition of associated vehicles can be ensured. On this basis, a sample pair training model is constructed to obtain a driving intention recognition model with stronger generalization ability and better prediction effect.

[0101] Step S210: constructing a driving intention recognition sample pair based on the sample to be labeled and the driving intention information of the associated vehicle.

[0102] Specifically, after obtaining the driving intention information corresponding to the associated vehicle in the sample to be labeled as mentioned above, the driving intention information of the sample to be labeled and the associated vehicle can be combined to construct a driving intention recognition sample pair, and then the driving intention recognition sample pair can be added to the sample set corresponding to the model with driving intention recognition capability, so as to be used when training the model.

[0103] During the model training phase, the samples to be labeled can be input into a model with driving intention recognition capabilities for processing. After obtaining the prediction results, the loss value can be calculated based on the driving intention information of the associated vehicle and the prediction results. The model can then be adjusted based on the calculation results. If the adjusted model does not meet the training stop conditions, new sample pairs can be selected for retraining until a model that meets the training stop conditions is obtained. After deploying it to application scenarios, such as in the field of autonomous driving, relevant driving information can be collected in real time to determine the driving intentions of the vehicles around the driving vehicle, so as to make more accurate driving judgments for the autonomous driving vehicle. For example, if the left-hand vehicle turns to plan to enter the left lane, the vehicle can be automatically controlled to slow down.

[0104] The sample construction method provided in this embodiment can automatically complete the labeling of the vehicle driving intention in the sample, and can first extract the target driving information of the target vehicle and the associated driving information of the associated vehicle from the sample to be labeled; thereafter, the target driving trajectory corresponding to the target vehicle can be constructed in combination with the target driving information, and the associated driving trajectory corresponding to the associated vehicle can be constructed according to the associated driving information; the driving routes of the target vehicle and the associated vehicle within the set time interval can be determined through the driving trajectory. On this basis, the driving intention identification can be completed by combining the driving trajectories corresponding to the target vehicle and the associated vehicle respectively. That is to say, when the target driving trajectory and the associated driving trajectory meet the trajectory overlap condition, it means that the two have the behavior of invading the lane of the other party, so the driving intention information of the associated vehicle can be determined by comparing the timestamps corresponding to the target vehicle and the associated vehicle respectively, so as to realize accurate and automatic intention labeling for the associated vehicle in this case. When the target driving trajectory and the associated driving trajectory do not meet the trajectory overlap condition, it means that the two do not have the behavior of invading the lane of the other party on the current trajectory, but it does not exclude that this situation may still exist in the subsequent driving, so the target driving trajectory and the associated driving trajectory can be extended, and then the driving intention information of the associated vehicle can be determined according to the extension result. After obtaining the driving intention information corresponding to the associated vehicle in the sample to be labeled, the driving intention recognition sample pair can be constructed by combining the sample to be labeled and the driving intention information of the associated vehicle, so that in the model training stage, the model can be trained in combination with the sample pair, so that the downstream model for identifying the vehicle's driving intention has a more accurate recognition ability. The automatic labeling of the vehicle's driving intention in the sample by the above method can effectively improve the sample labeling efficiency, save more human resources, and is not affected by subjective factors, which can effectively improve the labeling stability.

[0105] Corresponding to the above method embodiment, this specification also provides another sample construction method embodiment, Figure 4 FIG. 2 shows a flow chart of another sample construction method provided by an embodiment of the present specification. Figure 4 As shown, the method includes:

[0106] Step S402, receiving the sample to be labeled uploaded by the terminal side device, and extracting the target driving information of the target vehicle and the associated driving information of the associated vehicles from the sample to be labeled;

[0107] Step S404, constructing a target driving trajectory corresponding to the target vehicle according to the target driving information, and constructing an associated driving trajectory corresponding to the associated vehicle according to the associated driving information;

[0108] Step S406, when the target driving trajectory and the associated driving trajectory meet the trajectory overlap condition, determining the driving intention information of the associated vehicle by comparing the timestamps corresponding to the target vehicle and the associated vehicle respectively;

[0109] Step S408, when the target driving trajectory and the associated driving trajectory do not meet the trajectory overlap condition, extending the target driving trajectory and the associated driving trajectory, and determining the driving intention information of the associated vehicle according to the extension result;

[0110] Step S410: construct a driving intention recognition sample pair based on the sample to be labeled and the driving intention information of the associated vehicle, and send the driving intention recognition sample pair to the terminal side device.

[0111] Specifically, the cloud-side device refers to the device that runs the method on the server side that provides the sample construction method. Correspondingly, the end-side device refers to the device held by the user who has the sample annotation requirement. That is to say, when the user holding the end-side device has the sample annotation requirement, the sample to be annotated can be sent to the cloud-side device through the set interface, and then the cloud-side device automatically completes the sample annotation processing, and constructs the sample pair according to the annotation result and feeds back to the end-side device.

[0112] Among them, the sample labeling process of the cloud-side device can refer to the same or corresponding description content in the above embodiment, and this embodiment will not be elaborated in detail here.

[0113] The following combination Figure 5 , taking the application of the sample construction method provided in this specification in an actual application scenario as an example, the sample construction method is further described. Figure 5 A processing flow chart of a sample construction method provided in an embodiment of the present specification is shown, which specifically includes the following steps.

[0114] Step S502: extracting target driving information of the target vehicle and associated driving information of associated vehicles from the samples to be labeled.

[0115] Step S504: extracting target local driving information from the target driving information according to the preset driving duration information, and extracting associated local driving information from the associated driving information.

[0116] Step S506, constructing a target driving trajectory corresponding to the target vehicle according to the target local driving information, and constructing an associated driving trajectory corresponding to the associated vehicle according to the associated local driving information; wherein the target driving trajectory and the associated driving trajectory have a frame alignment relationship in the time dimension.

[0117] Step S508, when there is an overlapping position between the target driving trajectory and the associated driving trajectory, determine the target starting position of the target vehicle according to the target driving information, and calculate a first distance between the target starting position and the overlapping position.

[0118] Step S510, when the first distance is less than or equal to a preset distance threshold, determines that the target driving trajectory and the associated driving trajectory satisfy a trajectory overlap condition, and determines a target terminal position associated with the overlapping position on the target driving trajectory, and determines an associated terminal position associated with the overlapping position on the associated driving trajectory.

[0119] Step S512, determining a target timestamp corresponding to the target vehicle at the target end position, and determining an associated timestamp corresponding to the associated vehicle at the associated end position;

[0120] Step S514, determining the driving intention information of the associated vehicle by comparing the target timestamp and the associated timestamp.

[0121] Step S516: When there is an overlapping position between the target driving trajectory and the associated driving trajectory and the first distance is greater than a preset distance threshold, or when there is no overlapping position between the target driving trajectory and the associated driving trajectory, it is determined that the target driving trajectory and the associated driving trajectory do not meet the trajectory overlapping condition.

[0122] Step S518: Extend the target driving trajectory to obtain a target extended driving trajectory.

[0123] Step S520, determining the driving intention information of the associated vehicle by detecting whether there is an extended overlapping position between the target extended driving trajectory and the associated driving trajectory.

[0124] Specifically, it is detected whether there is an extended overlapping position between the target extended driving trajectory and the associated driving trajectory.

[0125] If so, determine the target extended end position associated with the extended overlapping position on the target extended driving trajectory, and determine the associated extended end position associated with the extended overlapping position on the associated driving trajectory; determine the target extension timestamp corresponding to the target vehicle at the target extended end position, and determine the associated extension timestamp corresponding to the associated vehicle at the associated extended end position; and determine the driving intention information of the associated vehicle by comparing the target extension timestamp and the associated extension timestamp.

[0126] If not, the associated driving trajectory is extended to obtain an associated extended driving trajectory; when there is an overlapping position between the target extended driving trajectory and the associated extended driving trajectory, the avoidance driving intention information is used as the driving intention information of the associated vehicle; when there is no overlapping position between the target extended driving trajectory and the associated extended driving trajectory, the fuzzy driving intention information is used as the driving intention information of the associated vehicle.

[0127] Step S522: construct a driving intention recognition sample pair based on the sample to be labeled and the driving intention information of the associated vehicle.

[0128] In summary, in order to automatically complete the labeling of the driving intention of the vehicle in the sample, the target driving information of the target vehicle and the associated driving information of the associated vehicle can be extracted from the sample to be labeled; thereafter, the target driving trajectory corresponding to the target vehicle can be constructed in combination with the target driving information, and the associated driving trajectory corresponding to the associated vehicle can be constructed according to the associated driving information; the driving routes of the target vehicle and the associated vehicle within the set time interval can be determined through the driving trajectory. On this basis, the driving intention recognition can be completed by combining the driving trajectories corresponding to the target vehicle and the associated vehicle respectively. In other words, when the target driving trajectory and the associated driving trajectory meet the trajectory overlap condition, it means that the two have the behavior of invading the lane of the other party. Therefore, the driving intention information of the associated vehicle can be determined by comparing the timestamps corresponding to the target vehicle and the associated vehicle respectively, so as to realize accurate and automatic intention labeling for the associated vehicle in this case. When the target driving trajectory and the associated driving trajectory do not meet the trajectory overlap condition, it means that the two do not have the behavior of invading the lane of the other party on the current trajectory, but it does not exclude that this situation may still exist in the subsequent driving. Therefore, the target driving trajectory and the associated driving trajectory can be extended, and then the driving intention information of the associated vehicle can be determined according to the extension result. After obtaining the driving intention information corresponding to the associated vehicle in the sample to be labeled, the driving intention recognition sample pair can be constructed by combining the sample to be labeled and the driving intention information of the associated vehicle, so that in the model training stage, the model can be trained in combination with the sample pair, so that the downstream model for identifying the vehicle's driving intention has a more accurate recognition ability. The automatic labeling of the vehicle's driving intention in the sample by the above method can effectively improve the sample labeling efficiency, save more human resources, and is not affected by subjective factors, which can effectively improve the labeling stability.

[0129] Corresponding to the above method embodiment, this specification also provides a sample construction device embodiment, Figure 6 FIG. 1 shows a schematic diagram of a sample construction device provided by an embodiment of the present specification. Figure 6 As shown, the device comprises:

[0130] An extraction module 602 is configured to extract target driving information of a target vehicle and associated driving information of associated vehicles from the sample to be labeled;

[0131] A construction module 604 is configured to construct a target driving trajectory corresponding to the target vehicle according to the target driving information, and to construct an associated driving trajectory corresponding to the associated vehicle according to the associated driving information;

[0132] The comparison module 606 is configured to determine the driving intention information of the associated vehicle by comparing the timestamps corresponding to the target vehicle and the associated vehicle respectively when the target driving trajectory and the associated driving trajectory meet the trajectory overlap condition;

[0133] An extension module 608 is configured to extend the target driving trajectory and the associated driving trajectory when the target driving trajectory and the associated driving trajectory do not meet the trajectory overlap condition, and determine the driving intention information of the associated vehicle according to the extension result;

[0134] The sample pair construction module 610 is configured to construct a driving intention recognition sample pair based on the sample to be labeled and the driving intention information of the associated vehicle.

[0135] In an optional embodiment, the comparison module 606 is further configured to:

[0136] In the case where there is an overlapping position between the target driving trajectory and the associated driving trajectory, the target starting position of the target vehicle is determined according to the target driving information, and a first distance between the target starting position and the overlapping position is calculated; in the case where the first distance is less than or equal to a preset distance threshold, it is determined that the target driving trajectory and the associated driving trajectory meet the trajectory overlap condition, and a step of determining the driving intention information of the associated vehicle by comparing the timestamps corresponding to the target vehicle and the associated vehicle is performed; wherein, determining the driving intention information of the associated vehicle by comparing the timestamps corresponding to the target vehicle and the associated vehicle comprises: determining a target terminal position associated with the overlapping position on the target driving trajectory, and determining an associated terminal position associated with the overlapping position on the associated driving trajectory; determining a target timestamp corresponding to the target vehicle at the target terminal position, and determining an associated timestamp corresponding to the associated vehicle at the associated terminal position; determining the driving intention information of the associated vehicle by comparing the target timestamp and the associated timestamp.

[0137] In an optional embodiment, the extension module 608 is further configured to:

[0138] In the case where there is an overlapping position between the target driving trajectory and the associated driving trajectory and the first distance is greater than the preset distance threshold, or in the case where there is no overlapping position between the target driving trajectory and the associated driving trajectory, it is determined that the target driving trajectory and the associated driving trajectory do not meet the trajectory overlapping condition, and a step of extending the target driving trajectory and the associated driving trajectory is performed; wherein, extending the target driving trajectory and the associated driving trajectory and determining the driving intention information of the associated vehicle based on the extension result includes: extending the target driving trajectory and determining the driving intention information of the associated vehicle based on the extended target driving trajectory and the associated driving trajectory.

[0139] In an optional embodiment, the extension module 608 is further configured to:

[0140] The target driving trajectory is extended to obtain a target extended driving trajectory; it is detected whether there is an extended overlapping position between the target extended driving trajectory and the associated driving trajectory; if so, a target extended terminal position associated with the extended overlapping position is determined on the target extended driving trajectory, and an associated extended terminal position associated with the extended overlapping position is determined on the associated driving trajectory; a target extended timestamp corresponding to the target extended terminal position of the target vehicle is determined, and an associated extended timestamp corresponding to the associated vehicle at the associated extended terminal position is determined; and driving intention information of the associated vehicle is determined by comparing the target extended timestamp and the associated extended timestamp.

[0141] In an optional embodiment, the extension module 608 is further configured to:

[0142] When the result of detecting whether there is an extended overlapping position between the target extended driving trajectory and the associated driving trajectory is negative, the associated driving trajectory is extended to obtain an associated extended driving trajectory; when there is a target extended overlapping position between the target extended driving trajectory and the associated extended driving trajectory, the avoidance driving intention information is used as the driving intention information of the associated vehicle; when there is no target extended overlapping position between the target extended driving trajectory and the associated extended driving trajectory, the fuzzy driving intention information is used as the driving intention information of the associated vehicle.

[0143] In an optional embodiment, the construction module 604 is further configured to:

[0144] According to the preset driving duration information, target local driving information is extracted from the target driving information, and associated local driving information is extracted from the associated driving information; a target driving trajectory corresponding to the target vehicle is constructed according to the target local driving information, and an associated driving trajectory corresponding to the associated vehicle is constructed according to the associated local driving information; wherein the target driving trajectory and the associated driving trajectory have a frame alignment relationship in the time dimension.

[0145] The sample construction device provided in this embodiment can automatically complete the labeling of the driving intention of the vehicle in the sample, and can first extract the target driving information of the target vehicle and the associated driving information of the associated vehicle from the sample to be labeled; thereafter, the target driving trajectory corresponding to the target vehicle can be constructed in combination with the target driving information, and the associated driving trajectory corresponding to the associated vehicle can be constructed according to the associated driving information; the driving routes of the target vehicle and the associated vehicle within the set time interval can be determined through the driving trajectory. On this basis, the driving intention recognition can be completed by combining the driving trajectories corresponding to the target vehicle and the associated vehicle respectively. That is to say, when the target driving trajectory and the associated driving trajectory meet the trajectory overlap condition, it means that the two have the behavior of invading the lane of the other party, so the driving intention information of the associated vehicle can be determined by comparing the timestamps corresponding to the target vehicle and the associated vehicle respectively, so as to realize accurate and automatic intention labeling for the associated vehicle in this case. When the target driving trajectory and the associated driving trajectory do not meet the trajectory overlap condition, it means that the two do not have the behavior of invading the lane of the other party on the current trajectory, but it does not exclude that this situation may still exist in the subsequent driving, so the target driving trajectory and the associated driving trajectory can be extended, and then the driving intention information of the associated vehicle can be determined according to the extension result. After obtaining the driving intention information corresponding to the associated vehicle in the sample to be labeled, the driving intention recognition sample pair can be constructed by combining the sample to be labeled and the driving intention information of the associated vehicle, so that in the model training stage, the model can be trained in combination with the sample pair, so that the downstream model for identifying the vehicle's driving intention has a more accurate recognition ability. The automatic labeling of the vehicle's driving intention in the sample by the above method can effectively improve the sample labeling efficiency, save more human resources, and is not affected by subjective factors, which can effectively improve the labeling stability.

[0146] The above is a schematic scheme of a sample construction device of this embodiment. It should be noted that the technical scheme of the sample construction device and the technical scheme of the above sample construction method belong to the same concept, and the details not described in detail in the technical scheme of the sample construction device can be referred to the description of the technical scheme of the above sample construction method.

[0147] Corresponding to the above method embodiment, this specification also provides another sample construction device embodiment, Figure 7FIG. 2 shows a schematic diagram of the structure of another sample construction device provided by an embodiment of the present specification. Figure 7 As shown, the device is applied to a cloud-side device, including:

[0148] The sample receiving module 702 is configured to receive the sample to be labeled uploaded by the terminal device, and extract the target driving information of the target vehicle and the associated driving information of the associated vehicles from the sample to be labeled;

[0149] A trajectory building module 704 is configured to build a target driving trajectory corresponding to the target vehicle according to the target driving information, and to build an associated driving trajectory corresponding to the associated vehicle according to the associated driving information;

[0150] The timestamp comparison module 706 is configured to determine the driving intention information of the associated vehicle by comparing the timestamps corresponding to the target vehicle and the associated vehicle respectively when the target driving trajectory and the associated driving trajectory meet the trajectory overlap condition;

[0151] The trajectory extension module 708 is configured to extend the target driving trajectory and the associated driving trajectory when the target driving trajectory and the associated driving trajectory do not meet the trajectory overlap condition, and determine the driving intention information of the associated vehicle according to the extension result;

[0152] The sample pair sending module 710 is configured to construct a driving intention recognition sample pair based on the sample to be labeled and the driving intention information of the associated vehicle, and send the driving intention recognition sample pair to the terminal side device.

[0153] The above is a schematic scheme of a sample construction device of this embodiment. It should be noted that the technical scheme of the sample construction device and the technical scheme of the above sample construction method belong to the same concept, and the details not described in detail in the technical scheme of the sample construction device can be referred to the description of the technical scheme of the above sample construction method.

[0154] Figure 8 The block diagram of a computing device 800 according to an embodiment of the present specification is shown. The components of the computing device 800 include but are not limited to a memory 810 and a processor 820. The processor 820 is connected to the memory 810 via a bus 830, and a database 850 is used to store data.

[0155] The computing device 800 also includes an access device 840 that enables the computing device 800 to communicate via one or more networks 860. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 840 may include one or more of any type of network interface (e.g., a network interface card (NIC)) that is wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a world-wide interoperability for microwave access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, and a near field communication (NFC).

[0156] In one embodiment of the present specification, the above components of the computing device 800 and Figure 8 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 8 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0157] The computing device 800 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 800 may also be a mobile or stationary server.

[0158] The processor 820 is used to execute the following computer executable instructions, which, when executed by the processor, implement the steps of the above-mentioned sample construction method.

[0159] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above sample construction method belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the above sample construction method.

[0160] An embodiment of the present specification further provides a computer-readable storage medium storing computer-executable instructions, which can implement the steps of the above-mentioned sample construction method when executed by a processor.

[0161] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the sample construction method described above are of the same concept, and the details not described in detail in the technical scheme of the storage medium can be found in the description of the technical scheme of the sample construction method described above.

[0162] An embodiment of the present specification further provides a computer program, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above-mentioned sample construction method.

[0163] The above is an illustrative solution of a computer program of this embodiment. It should be noted that the technical solution of the computer program and the technical solution of the sample construction method described above are of the same concept, and the details not described in detail in the technical solution of the computer program can be found in the description of the technical solution of the sample construction method described above.

[0164] An embodiment of the present specification further provides a computer program product, including a computer program or instructions, which implement the steps of the above-mentioned sample construction method when executed by a processor.

[0165] The above is a schematic solution of a computer program product of this embodiment. It should be noted that the technical solution of the computer program product and the technical solution of the sample construction method described above are of the same concept, and the details not described in detail in the technical solution of the computer program product can be found in the description of the technical solution of the sample construction method described above.

[0166] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0167] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0168] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0169] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0170] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.

Claims

1. A sample construction method, include: Extracting target driving information of a target vehicle and associated driving information of associated vehicles from the samples to be labeled; Constructing a target driving trajectory corresponding to the target vehicle according to the target driving information, and constructing an associated driving trajectory corresponding to the associated vehicle according to the associated driving information; When the target driving trajectory and the associated driving trajectory meet the trajectory overlap condition, determining the driving intention information of the associated vehicle by comparing the timestamps corresponding to the target vehicle and the associated vehicle respectively; When the target driving trajectory and the associated driving trajectory do not satisfy the trajectory overlap condition, extending the target driving trajectory and the associated driving trajectory, and determining the driving intention information of the associated vehicle according to the extension result; A driving intention recognition sample pair is constructed based on the sample to be labeled and the driving intention information of the associated vehicle.

2. The sample construction method according to claim 1, wherein when the target driving trajectory and the associated driving trajectory meet the trajectory overlap condition, the driving intention information of the associated vehicle is determined by comparing the timestamps corresponding to the target vehicle and the associated vehicle respectively. include: In the case where there is an overlapping position between the target driving trajectory and the associated driving trajectory, determining a target starting position of the target vehicle according to the target driving information, and calculating a first distance between the target starting position and the overlapping position; When the first distance is less than or equal to a preset distance threshold, determining that the target driving trajectory and the associated driving trajectory satisfy a trajectory overlap condition, and performing a step of determining driving intention information of the associated vehicle by comparing timestamps corresponding to the target vehicle and the associated vehicle respectively; Wherein, determining the driving intention information of the associated vehicle by comparing the timestamps corresponding to the target vehicle and the associated vehicle respectively includes: determining a target end position associated with the overlapping position on the target driving trajectory, and determining an associated end position associated with the overlapping position on the associated driving trajectory; Determine a target timestamp corresponding to the target vehicle at the target end position, and determine an associated timestamp corresponding to the associated vehicle at the associated end position; The driving intention information of the associated vehicle is determined by comparing the target timestamp and the associated timestamp.

3. The sample construction method according to claim 2, wherein when the target driving trajectory and the associated driving trajectory do not meet the trajectory overlap condition, the target driving trajectory and the associated driving trajectory are extended. include: In a case where there is an overlapping position between the target driving trajectory and the associated driving trajectory and the first distance is greater than the preset distance threshold, or in a case where there is no overlapping position between the target driving trajectory and the associated driving trajectory, determining that the target driving trajectory and the associated driving trajectory do not meet the trajectory overlapping condition, and executing a step of extending the target driving trajectory and the associated driving trajectory; The step of extending the target driving trajectory and the associated driving trajectory and determining the driving intention information of the associated vehicle according to the extension result includes: The target driving trajectory is extended, and the driving intention information of the associated vehicle is determined according to the extended target driving trajectory and the associated driving trajectory.

4. The sample construction method according to claim 3, wherein the target driving trajectory is extended, and the driving intention information of the associated vehicle is determined according to the extended target driving trajectory and the associated driving trajectory. include: Performing an extension process on the target driving trajectory to obtain a target extended driving trajectory; Detecting whether there is an extended overlapping position between the target extended driving trajectory and the associated driving trajectory; If so, determining a target extended end position associated with the extended overlapping position on the target extended driving trajectory, and determining an associated extended end position associated with the extended overlapping position on the associated driving trajectory; Determine a target extension timestamp corresponding to the target vehicle at the target extension end position, and determine an associated extension timestamp corresponding to the associated vehicle at the associated extension end position; The driving intention information of the associated vehicle is determined by comparing the target extension timestamp and the associated extension timestamp.

5. According to the sample construction method of claim 4, when the result of the determination of whether the target extended driving trajectory and the associated driving trajectory have an extended overlapping position is negative, the following steps are performed: Performing an extension process on the associated driving trajectory to obtain an associated extended driving trajectory; When there is a target extension overlap position between the target extended driving trajectory and the associated extended driving trajectory, using the avoidance driving intention information as the driving intention information of the associated vehicle; In a case where there is no target extension overlapping position between the target extended driving trajectory and the associated extended driving trajectory, the fuzzy driving intention information is used as the driving intention information of the associated vehicle.

6. The sample construction method according to any one of claims 1 to 5, wherein the target driving trajectory corresponding to the target vehicle is constructed according to the target driving information, and the associated driving trajectory corresponding to the associated vehicle is constructed according to the associated driving information. include: extracting target partial driving information from the target driving information according to preset driving duration information, and extracting associated partial driving information from the associated driving information; Constructing a target driving trajectory corresponding to the target vehicle according to the target local driving information, and constructing an associated driving trajectory corresponding to the associated vehicle according to the associated local driving information; The target driving trajectory and the associated driving trajectory have a frame alignment relationship in the time dimension.

7. A sample construction method, applied to cloud-side devices, include: The sample to be labeled uploaded by the receiving end-side device is extracted from the sample to be labeled target driving information of the target vehicle and associated driving information of associated vehicles; Constructing a target driving trajectory corresponding to the target vehicle according to the target driving information, and constructing an associated driving trajectory corresponding to the associated vehicle according to the associated driving information; When the target driving trajectory and the associated driving trajectory meet the trajectory overlap condition, determining the driving intention information of the associated vehicle by comparing the timestamps corresponding to the target vehicle and the associated vehicle respectively; When the target driving trajectory and the associated driving trajectory do not satisfy the trajectory overlap condition, extending the target driving trajectory and the associated driving trajectory, and determining the driving intention information of the associated vehicle according to the extension result; A driving intention recognition sample pair is constructed based on the sample to be labeled and the driving intention information of the associated vehicle, and the driving intention recognition sample pair is sent to the terminal side device.

8. A computing device, include: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the method described in any one of claims 1 to 7 are implemented.

9. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, implement the steps of the method according to any one of claims 1 to 7.

10. A computer program product, comprising a computer program or instructions, which implement the steps of the method according to any one of claims 1 to 7 when executed by a processor.