Adversarial patch generation method, device and medium for autonomous driving target detection

By obtaining random initialization patches in autonomous vehicles and through two-stage training to maximize feature differences and minimize confidence loss, adversarial patches suitable for specific target detection algorithms are generated, which solves the problem of unsatisfactory attack effects and patches in the existing technology. It solves the problem of poor adaptability and achieves more efficient attack effects and model versatility.

CN118447352BInactive Publication Date: 2024-10-08CATARC TIANJIN AUTOMOTIVE ENG RES INST CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410927609.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-10-08
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing adversarial attacks in autonomous vehicles ignore the specific impact of detection results on subsequent autonomous driving strategies, and similar patches have different attack effects on different target detection algorithms, requiring repeated training for different models or detection algorithms, resulting in attack effects. Not ideal.

Method used

By obtaining random initialization patches, maximizing the feature difference between clean images and adversarial images to generate pre-training patches, and performing secondary training by minimizing the confidence loss between detection results and blank labels to generate adversarial patches suitable for specific target detection algorithms. , divided into two stages and gradually generated to improve versatility and adaptability.

Benefits of technology

It improves the attack effect of the adversarial patch on the autonomous driving strategy and the versatility of different target detection algorithms, reduces the training frequency of different detection algorithms, and improves the interpretability and training efficiency of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118447352B_ABST
    Figure CN118447352B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of artificial intelligence technology, and specifically discloses a method, device and storage medium for generating adversarial patches for autonomous driving target detection, the method comprising: obtaining a random initialization patch; extracting features from a clean image without interference and a first adversarial image to which the random initialization patch is added, and iteratively updating the random initialization patch by maximizing the feature difference between the clean image and the first adversarial image to obtain a pre-trained patch; using a second adversarial image to which the pre-trained patch is added to attack the target detection algorithm of the autonomous driving vehicle, and iteratively updating the pre-trained patch by minimizing the confidence loss between the detection result and the blank label to obtain an adversarial patch suitable for the target detection algorithm. The present invention improves the attack effect and versatility of the adversarial patch.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of artificial intelligence technology, and in particular to a method, device and medium for generating adversarial patches for autonomous driving target detection. Background Art

[0002] In the field of autonomous driving, attacking the vehicle-side object detection algorithm means creating multiple adversarial images containing interference to interfere with the vehicle's object detection results. Through such attacks, the robustness of the vehicle's internal object detection algorithm can be optimized and driving safety can be improved.

[0003] Many existing adversarial attacks mislead the target detection algorithm's prediction accuracy for various targets by adding tiny disturbances to the vehicle-side perception images, but ignore the specific impact of the detection results on the subsequent autonomous driving strategy, resulting in unsatisfactory attack effects. At the same time, the target detection algorithms built into various types of vehicles are not the same, and the attack effects of the same type of patches on different target detection algorithms are different, and repeated training is often required for different vehicle models or detection algorithms. Summary of the invention

[0004] Embodiments of the present invention provide a method, device, and medium for generating an adversarial patch for autonomous driving target detection, which improve the attack effect of the adversarial patch on autonomous driving strategies and the versatility of the adversarial patch to different target detection algorithms.

[0005] In a first aspect, an embodiment of the present invention provides a method for generating adversarial patches for autonomous driving target detection, comprising:

[0006] Obtaining randomly initialized patches for perturbing the autonomous vehicle's perceived image;

[0007] Extracting features from a clean image without interference and a first adversarial image to which the random initialization patch is added, and iteratively updating the random initialization patch by maximizing the feature difference between the clean image and the first adversarial image to obtain a pre-trained patch;

[0008] Attacking the target detection algorithm of the autonomous driving vehicle using the second adversarial image to which the pre-trained patch is added, and iteratively updating the pre-trained patch by minimizing the confidence loss between the detection result and the blank label to obtain an adversarial patch suitable for the target detection algorithm;

[0009] The detection result includes the prediction confidence and prediction bounding box of the target, and the blank label includes zero confidence and a blank bounding box.

[0010] In a second aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:

[0011] one or more processors;

[0012] a memory for storing one or more programs,

[0013] When the one or more programs are executed by the one or more processors, the one or more processors implement the adversarial patch generation method for autonomous driving target detection described in any embodiment.

[0014] In a third aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the adversarial patch generation method for autonomous driving target detection as described in any embodiment.

[0015] The embodiment of the present invention discloses a method for generating adversarial patches for autonomous driving target detection. In view of the specific impact of different detection results on the autonomous driving strategy, a blank label is introduced to induce the target detection algorithm to approach the detection result of the target in front to be empty, so as to cause strong interference to the autonomous driving strategy. At the same time, the adversarial patch of this embodiment is generated step by step in two stages. In the first stage, the interference effect of the pre-trained patch is ensured by maximizing the feature difference between the clean image and the adversarial image. In the second stage, the pre-trained patch is trained again by minimizing the loss of the detection result and the blank label to ensure the adaptability of the adversarial patch to the specific target detection algorithm. When the target detection algorithm changes, it is only necessary to use the pre-trained patch to re-train again, without re-starting the training from the randomly initialized patch, and the adversarial patch adapted to the new algorithm can be quickly obtained. The entire staged training process not only improves the training efficiency for different detection algorithms, but also enhances the interpretability and versatility of the overall model. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 is a flow chart of a method for generating adversarial patches for autonomous driving target detection provided by an embodiment of the present invention;

[0018] Figure 2 A flowchart of using a feature extraction network to pre-train patches in the present invention;

[0019] Figure 3 A schematic diagram of generating a final adversarial patch based on a pre-trained patch in the present invention;

[0020] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0021] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.

[0022] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0023] In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0024] Figure 1 1 is a flow chart of a method for generating adversarial patches for autonomous driving target detection provided by an embodiment of the present invention. The method is applicable to the case of adversarial attacks on target detection algorithms in autonomous driving vehicles and is executed by electronic devices. Figure 1 As shown, the method specifically includes:

[0025] S110: Obtain a random initialization patch for interfering with the image perceived by the autonomous driving vehicle.

[0026] The patch may be a local patch for locally interfering with the perception image of the autonomous driving vehicle. Exemplarily, a random initialization method is used to generate an initialization patch of 150×150 pixels.

[0027] S120, performing feature extraction on the clean image without interference and the first adversarial image to which the random initialization patch is added, and iteratively updating the random initialization patch by maximizing the feature difference between the clean image and the first adversarial image to obtain a pre-trained patch.

[0028] A clean image refers to an interference-free image perceived by an autonomous vehicle, such as an image captured by a vehicle camera, or an image within the field of view of a vehicle camera acquired through other devices; an adversarial image refers to a clean image with an interference patch added. This step pre-trains the initialization patch by maximizing the feature difference between the clean image and the adversarial image. The pre-trained patch can ensure that the features of the clean image are sufficiently changed to form a strong interference to the clean image. Optionally, the process includes the following steps:

[0029] Step 1: Add the random initialization patch as the current patch to the clean image to obtain the first adversarial image. Since it is difficult to obtain the image data stream in the vehicle in the autonomous driving scenario, it is difficult to directly add the interference patch to the digital signal of the image. Therefore, in this embodiment, the interference patch is printed out and pasted on the adversarial entity (for example, the front vehicle, traffic sign, billboard and other planes) of the clean image to generate the adversarial image. In a specific implementation, a clean image is first collected. The image must have a vehicle (such as a truck with a container), a billboard, a traffic sign, and other planes that are convenient for pasting interference patches. At the same time, in order to enhance the robustness of the patch, the image can be collected from different distances and different perspectives of the adversarial entity. After the image is collected, the corner point coordinates of the pasting plane in the image are marked to limit the patch addition area. Then, the randomly initialized patch is pasted on the marked pasting plane through perspective transformation to obtain the adversarial image. Among them, the specific process of perspective transformation is the prior art, with the corner point coordinates of the pasting plane as input, and is mainly used to correct the spatial position relationship. For example, when the billboard is not facing the camera, the coordinates of the patch on the billboard are calculated by perspective transformation, and then added.

[0030] Step 2: Input the first adversarial image and the clean image into a neural network-based feature extraction model to obtain two deep features. Exemplarily, the feature extraction is implemented by a neural network model after removing some residual blocks, maximum pooling layers, and fully connected layers from a ResNet network. For example, a ResNet50 network removes the last three residual blocks, maximum pooling layers, and fully connected layers as a feature extraction model.

[0031] Step three, update the current patch according to the root mean square loss of the two depth features to obtain a new current patch; return to the operation of adding the current patch to the clean image in step one, repeat until the root mean square loss reaches the maximization condition, and use the final current patch as the pre-trained patch. Specifically, the root mean square loss is calculated using the elements of the depth features of the first adversarial image and the depth features of the clean image; the patch pixel value is updated with the goal of maximizing the root mean square loss. The greater the loss, the greater the difference between the adversarial image and the clean image, and the more disturbing the patch. In practical applications, the maximization condition can be specifically set as needed, such as the root mean square loss reaches a set threshold, or the root mean square loss no longer increases in multiple cycles, etc., without specific restrictions. Exemplarily, the patch pixel value can be updated by the projected gradient descent method:

[0032]

[0033] In the formula, patch t and patch t+1 Respectively represent t Second and t +1 patch after iteration, represents the gradient of the RMS loss function with respect to the patch, represents the amplitude of pixel update at each iteration, sign () represents a symbolic function.

[0034] It should be noted that the above update iteration process can be repeated for multiple clean images to enhance the robustness of the pre-trained patches.

[0035] S130. Attack the target detection algorithm of the autonomous driving vehicle using the second adversarial image to which the pre-trained patch is added, and iteratively update the pre-trained patch by minimizing the confidence loss between the detection result and the blank label to obtain an adversarial patch suitable for the target detection algorithm.

[0036] Since the target detection algorithms in autonomous vehicles are different, it is difficult to construct a common adversarial patch for all target detection algorithms at one time. Therefore, this embodiment constructs a new adversarial image based on the pre-trained patch to attack the specific target detection algorithm, thereby performing secondary training on the pre-trained patch. Optionally, the process includes the following steps:

[0037] Step 1: Add the pre-trained patch as the current patch to the clean image to obtain a second adversarial image. The clean image here can be re-collected and annotated, or the clean image annotated in S120 can be reused, which is not specifically limited in this embodiment. Paste the pre-trained patch (after perspective transformation) on the pasteable plane in the image data to obtain a new adversarial image. For ease of distinction and description, the adversarial image constructed in S120 is called the first adversarial image, and the adversarial image constructed in S130 is called the second adversarial image.

[0038] Step 2: Input the second adversarial image into the target detection algorithm of the autonomous driving vehicle to obtain a detection result. The target detection algorithm may be a YOLO model (e.g., YOLOv3) or other target detection models; the detection result may include the prediction confidence and prediction bounding box of the target.

[0039] Step three, update the current patch based on the detection result and the confidence loss of the blank label to obtain a new current patch; and return to the operation of adding the current patch to the clean image in step one, and repeat this cycle until the confidence loss reaches the minimum condition, and use the final current patch as an adversarial patch suitable for the target detection algorithm. Specifically, in the autonomous driving scenario, the type of target in front does not have a significant impact on the autonomous driving strategy. For example, a truck or a car in front has no effect on the driving strategy; in contrast, whether there is a target in front is a key factor affecting the autonomous driving strategy. In order to achieve strong interference with the autonomous driving strategy, this step constructs a blank label to induce the target detection algorithm to identify the target in front as empty, thereby strengthening the interference with the autonomous driving strategy.

[0040] Optionally, blank labels include zero confidence and blank bounding boxes (i.e., no bounding boxes exist). Their blank characteristics are reflected in the impact on traditional confidence loss, and no additional annotation is required in the image. The traditional confidence loss function is:

[0041]

[0042] in, L det1 represents the traditional confidence loss, o i Indicates the test result i The intersection-over-union ratio of the predicted bounding box and the true bounding box, Indicates the test result i The probability that a predicted box contains an object. Specifically in this embodiment, the blank label is used as the true label to induce the detection result to continuously approach the blank label. o i represents the intersection-over-union ratio of the predicted bounding box and the blank bounding box,o i =0, substitute the traditional confidence loss function to get the improved confidence loss function:

[0043]

[0044] in, L det represents the improved confidence loss. Ideally, by minimizing the improved confidence loss, the target detection algorithm can be unable to identify the target ahead, which will strongly interfere with the autonomous driving strategy.

[0045] In a specific implementation, the improved confidence loss function and the printable loss function can be fused to form a total loss function for updating and iterating the pre-trained patch:

[0046]

[0047] in, L represents the total loss, L p Indicates printing loss, Represents a hyperparameter. Printing loss is used to limit the color loss of the patch during the printing process, so that the generated patch can be printed more accurately and improve its performance in real-world attack scenarios. The calculation formula for printing loss is as follows:

[0048]

[0049] in, P Indicates a patch, i patch represents the pixel value in the patch, C Represents a set of printable colors, C display Represents a color from the printable color set.

[0050] S140. When the target detection algorithm changes, the third adversarial image to which the pre-trained patch is added is used to attack the changed target detection algorithm, and the pre-trained patch is iteratively updated by minimizing the confidence loss between the detection result and the blank label to obtain an adversarial patch suitable for the changed target detection algorithm.

[0051] In actual applications, the built-in target detection algorithms of different vehicles may be different, and the built-in target detection algorithm of the same vehicle may also be iteratively updated. Therefore, when the target detection algorithm changes, the operation of S130 can be repeated, and further training can be performed on the basis of the pre-trained patch to obtain an adversarial patch suitable for the new target detection algorithm. The second adversarial image and the third image may be the same or different, and this embodiment does not make specific limitations.

[0052] This embodiment discloses a method for generating adversarial patches for autonomous driving target detection. In view of the specific impact of different detection results on the autonomous driving strategy, a blank label is introduced by improving the confidence loss function to induce the target detection algorithm to approach the detection result of the target in front to be empty, so as to cause strong interference to the autonomous driving strategy. At the same time, the adversarial patch of this embodiment is generated step by step in two stages. In the first stage, the interference effect of the pre-trained patch is ensured by maximizing the feature difference between the clean image and the adversarial image. In the second stage, the pre-trained patch is trained again by minimizing the loss of the detection result and the blank label to ensure the adaptability of the adversarial patch to the specific target detection algorithm. When the target detection algorithm changes, it is only necessary to use the pre-trained patch to re-train again, without re-starting the training from the randomly initialized patch, and the adversarial patch that adapts to the new algorithm can be quickly obtained. The entire staged training process not only improves the training efficiency for different detection algorithms, but also enhances the interpretability and versatility of the overall model.

[0053] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention is shown in FIG. Figure 4 As shown, the device includes a processor 60, a memory 61, an input device 62 and an output device 63; the number of processors 60 in the device can be one or more. Figure 4 A processor 60 is taken as an example; the processor 60, the memory 61, the input device 62 and the output device 63 in the device can be connected by a bus or other means. Figure 4 The example of connecting through bus is taken in the following.

[0054] The memory 61, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the method for generating adversarial patches for autonomous driving target detection in the embodiment of the present invention. The processor 60 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 61, that is, realizing the above-mentioned method for generating adversarial patches for autonomous driving target detection.

[0055] The memory 61 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 61 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 61 may further include a memory remotely arranged relative to the processor 60, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0056] The input device 62 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the device. The output device 63 may include a display device such as a display screen.

[0057] An embodiment of the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the adversarial patch generation method for autonomous driving target detection of any embodiment.

[0058] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0059] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0060] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0061] Computer program code for performing the operation of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as C or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0062] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the technical solutions of the embodiments of the present invention.

Claims

1. A method for generating adversarial patches for autonomous driving target detection, characterized in that: include: Obtaining randomly initialized patches for perturbing the autonomous vehicle's perceived image; Extracting features from a clean image without interference and a first adversarial image to which the random initialization patch is added, and iteratively updating the random initialization patch by maximizing the feature difference between the clean image and the first adversarial image to obtain a pre-trained patch; Attacking the target detection algorithm of the autonomous driving vehicle using the second adversarial image to which the pre-trained patch is added, and iteratively updating the pre-trained patch by minimizing the confidence loss between the detection result and the blank label to obtain an adversarial patch suitable for the target detection algorithm; The detection result includes the prediction confidence and prediction bounding box of the target, and the blank label includes zero confidence and a blank bounding box; wherein the blank bounding box means that there is no bounding box, and the blank characteristic of the blank label is reflected in the impact on the traditional confidence loss, and no additional annotation is required in the image; The method further comprises: extracting features from the clean image without interference and the first adversarial image to which the random initialization patch is added, and iteratively updating the random initialization patch by maximizing the feature difference between the clean image and the first adversarial image to obtain a pre-trained patch, including: Adding the randomly initialized patch as a current patch to a clean image to obtain a first adversarial image; Inputting the first adversarial image and the clean image into a neural network-based feature extraction model to obtain two deep features respectively; Update the current patch according to the root mean square loss of the two depth features to obtain a new current patch; Return to the operation of adding the current patch to the clean image until the RMS loss reaches the maximum condition, and use the final current patch as the pre-training patch.

2. The method according to claim 1, characterized in that The pre-trained patch is iteratively updated by minimizing the confidence loss between the detection result and the blank label, including: According to the blank characteristics of the blank label, determine the first i The intersection of the predicted bounding boxes and the blank bounding box o i is 0; Will o i = 0 Substitute into the traditional confidence loss function , and the improved confidence loss function is obtained: in, The test result is i The probability that a predicted box contains an object.

3. The method according to claim 1, characterized in that The method uses the second adversarial image with the pre-trained patch added thereto to attack the target detection algorithm of the autonomous driving vehicle, and iteratively updates the pre-trained patch by minimizing the confidence loss between the detection result and the blank label to obtain an adversarial patch suitable for the target detection algorithm, including: Adding the pre-trained patch as a current patch to a clean image to obtain a second adversarial image; Inputting the second adversarial image into a target detection algorithm of the autonomous driving vehicle to obtain a detection result; Updating the current patch according to the detection result and the confidence loss of the blank label to obtain a new current patch; Return to the operation of adding the current patch to the clean image until the confidence loss reaches the minimum condition, and use the final current patch as the adversarial patch suitable for the target detection algorithm.

4. The method according to claim 1, characterized in that After obtaining the adversarial patch suitable for the target detection algorithm, the method further includes: When the target detection algorithm changes, the third adversarial image with the pre-trained patch added is used to attack the changed target detection algorithm, and the pre-trained patch is iteratively updated by minimizing the confidence loss between the detection result and the blank label to obtain an adversarial patch suitable for the changed target detection algorithm.

5. The method according to claim 1, characterized in that The pre-trained patch is a printable patch; The attacking the target detection algorithm of the autonomous driving vehicle using the second adversarial image with the pre-trained patch added thereto comprises: Collect clean images; The pre-trained patch is pasted on the adversarial entity plane in the image data to obtain a second adversarial image.

6. The method according to claim 1, characterized in that The countermeasure patch is a printable patch; The pre-trained patch is iteratively updated by minimizing the confidence loss between the detection result and the blank label, including: The pre-trained patches are iteratively updated by minimizing the printing loss of the patches and the confidence loss of the detection results and the blank labels.

7. The method according to claim 1, characterized in that The feature extraction is achieved by using a neural network model after removing some residual blocks, maximum pooling layers and fully connected layers from the ResNet network; and / or The target detection algorithm includes the YOLO model.

8. An electronic device, characterized in that: include: one or more processors; a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the adversarial patch generation method for autonomous driving target detection as described in any one of claims 1-7.

9. A computer-readable storage medium, characterized in that: A computer program is stored thereon, which, when executed by a processor, implements the adversarial patch generation method for autonomous driving target detection as described in any one of claims 1-7.