Image privacy protection device and method based on erasable adversarial attack

Through the image privacy protection method of adversarial attacks, two generators are used to generate selective perturbations, which solves the problem in the existing technology that adversarial attacks cannot distinguish authorization models, and achieves selective protection of adversarial images and normal reasoning of authorization models.

CN118573785APending Publication Date: 2024-08-30BEIHANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410598774.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-15
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The adversarial attack images generated in the existing technology cannot be selective about whether the model is authorized, cannot effectively prevent the inference of malicious unauthorized models, and at the same time have an impact on the authorized model.

Method used

An image privacy protection method based on erasable adversarial attacks is adopted. By separating and dimensionally transforming the input image, two generators are used to generate adversarial perturbations on different parts of the image respectively, and are reorganized to generate privacy-preserving images, ensuring Unauthorized models are rejected while authorized models reason normally.

Benefits of technology

It achieves selective protection of image content, prevents the identification of unauthorized models, while ensuring the normal reasoning ability of authorized models, improves the efficiency of adversarial sample generation and the feasibility of restoring original images, and enhances application value and versatility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118573785A
    Figure CN118573785A
Patent Text Reader

Abstract

The invention relates to the technical field of computer vision adversarial attack and privacy protection, in particular to an image privacy protection device and method based on erasable adversarial attack, and the method comprises the following steps: separating an input image, and obtaining a down-sampled first output image and a down-sampled second output image, the first output image and the second output image respectively contain different information of the input image; processing the first output graph and the second output graph by adopting a first generator to obtain a disturbed second output graph; processing the first output graph and the disturbed second output graph by adopting a second generator to obtain a disturbed first output graph; recombining the disturbed first output image and the disturbed second output image to obtain a privacy protection image; according to the method, the recognition of the unauthorized model on the image content can be rejected by generating the antagonistic disturbance, and meanwhile, the normal recognition capability on the authorized model is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer vision counterattack and privacy protection, and in particular to an image privacy protection device and method based on erasable counterattack. Background Art

[0002] The development of deep learning technology has significantly improved the performance of many visual application tasks, including image classification, face recognition, object detection, and semantic segmentation. These related technologies have brought many conveniences to our lives, but at the same time have also caused concerns about the abuse of these powerful tools, especially in terms of privacy. For example, AI models can be used to collect and automatically and massively analyze photos and videos uploaded by users on social media or cloud platforms to extract private information about users. These photos often contain users' personal identity information, gender, appearance characteristics, social habits, and preference biases. Some attackers can use deep learning technology to automatically detect and analyze these images to obtain personal portraits of users. In addition, these uploaded images may be collected by people without the consent of the owner to build data sets for training some tasks. Therefore, image privacy protection on the Internet has become an urgent problem to be solved. Due to the fragility of deep learning models, adversarial attack methods have been explored and studied in image privacy. For classification tasks, adversarial attacks are to add visually invisible perturbations to the original image to generate adversarial samples, so that the human eye cannot perceive the difference between the two, and the neural network will misclassify them with a high probability. However, the adversarial nature of this attack is indiscriminate and does not take into account the availability of images to authorized models. An ideal scenario is that generating adversarial image samples can prevent malicious unauthorized models from performing normal reasoning without affecting authorized models. Summary of the invention

[0003] In view of the above problems, the present invention provides an image privacy protection device and method based on erasable adversarial attack, which solves the problem that the adversarial attack images generated in the prior art cannot be selective as to whether the model is authorized.

[0004] In a first aspect, the present invention provides an image privacy protection method based on erasable adversarial attack, comprising the following steps:

[0005] Step S1, separating an input image to obtain a downsampled first output image and a second output image, wherein the first output image and the second output image respectively contain different information of the input image;

[0006] Step S2: using a first generator to process the first output graph and the second output graph to obtain a disturbed second output graph; using a second generator to process the first output graph and the disturbed second output graph to obtain a disturbed first output graph;

[0007] Step S3: reorganize the disturbed first output image and the disturbed second output image to obtain a privacy-preserving image.

[0008] Preferably, step S1 specifically includes: step S1-1, performing a reversible dimensional transformation operation on the input image, reducing the height and width of the input image to half of the input image, and expanding the number of channels to four times of the input image; step S1-2, performing average separation on the input image after dimensional transformation in the channel dimension to obtain a first output image and a second output image, wherein the height and width of the first output image and the second output image are respectively half of the input image, and the number of channels is twice the input image.

[0009] Preferably, step S2 specifically includes: for the first generator Receive the first output image x 1 , generate the second output graph x 2 The perturbation of , superimposes the restricted perturbation on the second output graph x 2 The second output graph after perturbation is generated For the second generator The second output image after receiving the disturbance Generate the first output graph x 1 The perturbation of , superimposes the restricted perturbation on the first output graph x 1 The first output graph after perturbation is generated The calculation method is:

[0010]

[0011]

[0012] Among them clip ∈ (·) is the clipping function, which means limiting its absolute value to no more than ∈.

[0013] Preferably, step S3 specifically includes: step S3-1, splicing the perturbed first output image and the perturbed second output image in the channel dimension; step S3-2, performing a reversible dimensional transformation operation on the spliced ​​image to restore it to the same height, width and number of channels as the input image, and finally outputting a privacy-preserving image.

[0014] Preferably, training the dual generator and applying it in step S2 comprises the following steps:

[0015] Step S4, constructing a training image data set;

[0016] Step S5: pre-training the proxy model based on the image data set to obtain a third generator, where the third generator is used to add disturbance to the input image;

[0017] Step S6: Based on the image data set and the third generator, train a dual generator, and apply the trained dual generator to step S2.

[0018] Preferably, step S5 specifically includes: pre-training the proxy model f based on the image samples in the image data set to obtain a third generator The third generator The training adopts the intermediate feature layer attack strategy. The third generator superimposes the generated perturbations on the input image samples to form coupled perturbation adversarial samples:

[0019]

[0020] where x ori is the input image sample, x adv_t It is a coupled perturbation adversarial sample;

[0021] Preferably, step S6 specifically includes: executing steps S1-S3 based on the image samples in the image data set to generate a privacy-preserving image sample x adv ; Freeze the weight parameters of the pre-trained third generator; Generator and Each of them includes 3 downsampling layers, 6 residual connection blocks and 4 upsampling layers, and sets the loss function L for training the dual generator all :

[0022]

[0023] Among them, f l (·) represents the feature map output of the proxy model f at layer l, λ 1 and λ 2 is the balance coefficient of the loss term, Indicates l 2 Norm.

[0024] On the other hand, the present invention provides a method for restoring the privacy-preserving image, comprising the following steps:

[0025] Step S7, separating the input privacy protection image to obtain the first output image after disturbance and the second output image after disturbance;

[0026] Step S8, using the first generator and the second generator in step S2 to process the disturbed first output graph and the disturbed second output graph to obtain the first output graph and the second output graph;

[0027] Step S9: recombining the first output image and the second output image to obtain an original clean image.

[0028] Preferably, step S8 specifically includes: for the second generator The second output image after receiving the disturbance Generate the first output graph x 1 The disturbance, from the first output graph after the disturbance Remove the restricted perturbation and generate the first output graph x 1 ; For the first generator Receive the first output image x 1 , generate the second output graph x 2 The disturbance, from the first output graph after the disturbance Remove the restricted perturbation and generate the second output graph x 2 , calculated as:

[0029]

[0030]

[0031] Among them clip ∈ (·) is the clipping function, which means limiting its absolute value to no more than ∈.

[0032] On the other hand, the present invention provides an image privacy protection device based on erasable adversarial attack, comprising the following modules:

[0033] An input image division module is used to separate the input image to obtain a downsampled first output image and a second output image, wherein the first output image and the second output image respectively contain different information of the input image;

[0034] A decoupled disturbance generation module, configured to process the first output graph and the second output graph using a first generator to obtain a disturbed second output graph; and process the first output graph and the disturbed second output graph using a second generator to obtain a disturbed first output graph;

[0035] The privacy image reorganization module is used to reorganize the first output image after disturbance and the second output image after disturbance to obtain a privacy protection image.

[0036] On the other hand, the present invention provides a device for restoring a privacy-preserving image, comprising the following modules:

[0037] A privacy image segmentation module, used to separate the input privacy protection image to obtain the first output image after disturbance and the second output image after disturbance;

[0038] a decoupled disturbance recovery module, configured to process the first output graph after disturbance and the second output graph after disturbance by using the first generator and the second generator to obtain the first output graph and the second output graph;

[0039] The original image recombining module is used to recombine the first output image and the second output image to obtain an original clean image.

[0040] Compared with the prior art, the present invention has at least the following beneficial effects:

[0041] (1) The present invention provides a simple and effective method to protect image privacy by generating adversarial perturbations to reject the recognition of image content by unauthorized models while ensuring the normal reasoning ability of authorized models, effectively balancing the relationship between privacy protection and data availability.

[0042] (2) The present invention achieves decoupling of the original image perturbation by using two generators to generate adversarial perturbations to different parts of the image respectively. This design not only improves the efficiency of generating adversarial samples, but also enhances the feasibility of restoring the original image, and is more efficient in form.

[0043] (3) Based on the generation of guided loss strategy and intermediate feature layer, the adversarial samples generated by the present invention can be effectively migrated to different unknown black box models, which improves the application value and versatility of adversarial samples in the real world, enabling the present invention to better cope with various attack scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The drawings are only for the purpose of illustrating particular embodiments and are not to be construed as limiting the invention.

[0045] Figure 1 A flowchart of an image privacy protection method based on erasable adversarial attacks provided by an embodiment of the present invention;

[0046] Figure 2 A flowchart of a dual generator training method provided by an embodiment of the present invention;

[0047] Figure 3 A flowchart of a method for restoring a privacy-protected image provided by an embodiment of the present invention;

[0048] Figure 4 A schematic diagram of an image privacy protection device based on erasable adversarial attacks provided by an embodiment of the present invention;

[0049] Figure 5A schematic diagram of a device for restoring a privacy-protected image provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0050] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. In addition, the present invention can also be implemented in other ways different from those described herein, and therefore, the protection scope of the present invention is not limited by the specific embodiments disclosed below.

[0051] In order to solve the current shortcomings, this paper designs an image privacy protection framework based on erasable adversarial attacks. In this framework, the generated adversarial protection images have a strong rejection ability for unknown black box models, while authorized benign models can be restored to clean samples to ensure normal reasoning.

[0052] In order to illustrate the effectiveness of the method proposed by the present invention, the above technical solution of the present invention is described in detail below through a specific embodiment. Figure 1 As shown, the present invention discloses an image privacy protection method based on erasable adversarial attack, comprising the following steps:

[0053] Step S1, separating an input image to obtain a downsampled first output image and a second output image, wherein the first output image and the second output image respectively contain different information of the input image;

[0054] In some embodiments, the image is partitioned by a dimensionality transformation operation.

[0055] The present invention performs an operation on an image x having an input size of (H, W, C). ori For processing, H represents the height of the image, W represents the width of the image, and C represents the number of channels of the image. In the field of computer vision, the number of channels usually corresponds to the color depth of the image. For example, the common number of channels for color images is 3, corresponding to the three primary color components of red, green, and blue.

[0056] The input image x is transformed by dimension transformation operation ori The decomposition is transformed into a new output image, whose size and number of channels are optimized. Specifically, the dimension transformation operation reduces the height H and width W of the original image to half of the original, while increasing the number of channels to four times the original. The size of the output image is (H / 2, W / 2, 4C). This process is a reversible dimension transformation with no information loss.

[0057] In some embodiments, the dimensional transformation of the present invention may specifically change the dimensional size of the original image by using convolution operations, deconvolution operations, pooling operations, or dimensional expansion and compression.

[0058] The present invention separates the output image in the channel dimension, and divides the output image with 4C channels into two equal parts, each part containing 2C channels, forming two new images x 1 and x 2 , their sizes are (H / 2, W / 2, 2C), respectively and The two new images have the same spatial size, but contain different information subsets of the original image, which can be used for subsequent decoupled perturbation generation.

[0059] Step S2: using a first generator to process the first output graph and the second output graph to obtain a disturbed second output graph; using a second generator to process the first output graph and the disturbed second output graph to obtain a disturbed first output graph;

[0060] In some embodiments, two generator networks are constructed.

[0061] In order to provide erasable privacy-preserving images, the present invention constructs two generator networks and The generator network is a special kind of neural network, which is mainly used to generate data, such as images, videos, etc. It can learn the distribution of input data and generate new samples similar to real data.

[0062] Specifically in the present invention, the generator network and The perturbation is used to generate another image based on one of the two new images divided in step S1. The perturbation is visually invisible and superimposed on the other image so that the human eye cannot perceive the difference before and after the perturbation. The neural network will misclassify the perturbed image with a high probability. Image privacy protection can be achieved based on this adversarial attack.

[0063] Generator network of the present invention and A specific structural design is adopted, including 3 downsampling layers, 6 residual connection blocks and 4 upsampling layers.

[0064] In some embodiments, the downsampling layer may use operations such as convolution or pooling to reduce the image size by increasing the step size. The downsampling layer is mainly used to reduce the spatial dimension of the image, that is, to reduce the height and width of the image, in this way, high-level abstract features in the image can be extracted.

[0065] In some embodiments, the residual connection block can be implemented by a basic residual connection block, a bottleneck residual connection block, a pre-activated residual connection block, or a wide residual connection block. The residual connection block can handle the gradient vanishing or gradient exploding problems that may occur during the training of a deep neural network, and helps the network learn more complex and deep feature representations while maintaining the stability of the training.

[0066] In some embodiments, the upsampling layer can use operations such as deconvolution or pixel rearrangement to achieve image size enlargement. The upsampling layer is used to increase the spatial dimension of the image, that is, to increase the height and width of the image, so that the network can reconstruct a high-resolution image from an abstract, low-dimensional feature representation.

[0067] Generator network of the present invention Receive input image x 1 , and based on this, generate x 2 The corresponding disturbance In order to ensure that the generated disturbance is within a reasonable range, the present invention adopts a strategy to limit the disturbance amplitude by applying a clipping function ∈ (·), the perturbation δ 2 The clipping function ensures that the absolute value of each element of the perturbation does not exceed ∈. By adding this restricted perturbation to the original image x 2 On the top, generate its adversarial version in Represents x 2 The perturbed image will It is expressed as:

[0068]

[0069] Similarly, the generator network Accept the perturbed image As input, and generate the corresponding perturbation Similarly, in order to control the disturbance δ 1 The present invention uses clip ∈ (·) function constrains it to be within the range ∈. Finally, by adding this constrained perturbation to the original image x 1 On the top, generate its adversarial version in Represents the perturbed image, It is expressed as:

[0070]

[0071] Generator network of the present invention and Based on the divided image, the perturbation of another image is generated and superimposed and embedded on the other image. Since the two images after division contain different information of the original image, for example, superimposed on x 2 The perturbation on the image does not depend on the original image x 2 , which can achieve the decoupling of the generation process. The design of the decoupled perturbation attack can significantly improve the recoverability of the original clean image without affecting the attack capability.

[0072] Step S3: reorganize the disturbed first output image and the disturbed second output image to obtain a privacy-preserving image.

[0073] In this step, the present invention processes the disturbed image and Perform the opposite dimension transformation operation to step S1, and Reorganize to generate an image x of size (H, W, C) adv .

[0074] Step S3 specifically includes: step S3-1, splicing the first output image after disturbance and the second output image after disturbance in the channel dimension; step S3-2, performing a reversible dimensional transformation operation on the spliced ​​image to restore it to the same height, width and number of channels as the input image, and finally outputting a privacy-preserving image.

[0075] Through this image reconstruction operation, the present invention can generate a privacy-preserving image with high security and erasable adversarial attack. The image is visually indistinguishable from the original input image, and the neural network will misclassify the perturbed image with a high probability, so image privacy protection can be achieved based on this adversarial attack; and because the generation process of the privacy-preserving image is decoupled, the present invention can restore the original clean image without disturbance without affecting the attack capability, that is, it has the effect of erasable disturbance, and can prevent malicious unauthorized models from performing normal reasoning, while not affecting the authorized model.

[0076] In some embodiments, Figure 2 As shown, the present invention also includes a generator network and The training method of the generator network and The training method includes the following steps:

[0077] Step S4, constructing a training image data set;

[0078] In some embodiments, raw image data is collected from multiple sources, which may include public image databases, professionally shot pictures, and user-contributed content. To ensure the diversity and richness of the dataset, the raw images may contain a variety of scenes, themes, and lighting conditions.

[0079] In some embodiments, the collected raw images are preprocessed, including cleaning and screening of the images to remove images of poor quality, such as blurred, overexposed or unclear images, to improve the quality of the image data set.

[0080] In some embodiments, the images in the data set are annotated, and the annotation process can be implemented manually or by a combination of manual and semi-automatic tools to achieve an accurate description of the image content. The annotation content can include multi-dimensional information such as objects in the image, scene types, action states, etc.

[0081] In some embodiments, the image data in the data set is enhanced, and the diversity of the data set is artificially expanded by applying image transformation techniques, such as rotation, scaling, cropping, color adjustment, etc. The enhancement process can increase the size of the data set, and by simulating various transformation conditions, the performance of the data set in terms of real-world changes can be improved.

[0082] Step S5: pre-training the proxy model based on the image data set to obtain a third generator, where the third generator is used to add disturbance to the input image;

[0083] In this step, the present invention performs training based on the images in the image dataset, specifies the proxy model f used for attack training, and trains to obtain a single generator The generator can directly process the entire image and generate corresponding adversarial perturbations.

[0084] Generator The training of adopts the intermediate feature layer attack strategy. This strategy focuses on the intermediate layers of the model and can deeply explore the feature representation inside the model to generate more sophisticated and difficult to detect adversarial perturbations. By learning the responses of the intermediate feature layers of the proxy model f, it is possible to generate highly adaptive perturbations that, when superimposed on the original image, form adversarial samples. Used to interfere with the recognition ability of the target model.

[0085] Step S6: Based on the image data set and the third generator, train a dual generator, and apply the trained dual generator to step S2.

[0086] In this step, the present invention performs steps S1 to S3 based on the images in the image dataset to generate a privacy-preserving image sample x that can be erasable against adversarial attacks. adv ;

[0087] When training the dual generators, the present invention trains the single generator pre-trained in step S5 The weight parameters of are frozen to maintain the adversarial perturbation generation capability of a single generator.

[0088] Set the loss function for training the dual generator:

[0089]

[0090] Among them, f l (·) represents the feature map output of the proxy model at layer l, λ 1 and λ 2 is the balance coefficient of the loss term, Indicates l 2 Norm.

[0091] Loss function L all It consists of two parts: intermediate feature layer attack loss and generation guidance loss. The intermediate feature layer attack loss is implemented by calculating the difference between the feature map outputs of the proxy model at layer l. This loss aims to minimize the privacy-preserving image sample x adv With the original sample x ori The difference in the intermediate feature layer of the proxy model ensures that the adversarial sample can effectively interfere with the recognition process of the target model. The generated guided loss is calculated by calculating the privacy-preserving image sample x adv Adversarial samples x generated by a single generator adv_t This loss aims to guide the images generated by the dual generators to be close to the output of the single generator in order to exploit the adversarial ability of the single generator.

[0092] By setting the loss function in the above manner, the present invention can effectively train a dual generator network to generate reliable erasable adversarial samples.

[0093] In some embodiments, Figure 3 As shown, the present invention also includes the step of restoring the privacy-preserving image to the original clean image:

[0094] Step S7, separating the input privacy protection image to obtain the first output image after disturbance and the second output image after disturbance;

[0095] Step S8, using the first generator and the second generator in step S2 to process the disturbed first output graph and the disturbed second output graph to obtain the first output graph and the second output graph;

[0096] Step S9: recombining the first output image and the second output image to obtain an original clean image.

[0097] Based on the process of generating the perturbed image in step S2, the original clean image can be restored by reverse processing. First, the generated privacy-preserving image x adv Perform dimension transformation and convert x adv Divide into and Then based on the generator network used in step S2 and Predict the adversarial perturbations added to the two parts of the image and remove these perturbations from the image content to obtain x 1 and x 2 The process is as follows:

[0098]

[0099]

[0100] Then x 1 and x 2 After reorganization, the restored clean image can be obtained.

[0101] Through the above methods, the present invention can be based on the generator network and The original unperturbed clean image is restored and then used for further recognition by the authorized neural network model. For the unauthorized model, only the input privacy protection image x adv Identification can be performed, so unauthorized models can be effectively blocked.

[0102] like Figure 4 As shown, an embodiment of the present invention provides an image privacy protection device based on erasable adversarial attack, the device comprising:

[0103] An input image segmentation module 101 is used to separate the input image to obtain a downsampled first output image and a second output image, wherein the first output image and the second output image respectively contain different information of the input image;

[0104] The decoupled disturbance generation module 102 is used to process the first output graph and the second output graph using a first generator to obtain a second output graph after disturbance; and process the first output graph and the second output graph after disturbance using a second generator to obtain the first output graph after disturbance;

[0105] The privacy image reorganization module 103 is used to reorganize the first output image after disturbance and the second output image after disturbance to obtain a privacy protection image.

[0106] like Figure 5 As shown, an embodiment of the present invention provides a device for restoring a privacy-protected image, the device comprising:

[0107] The privacy image segmentation module 201 is used to separate the input privacy protection image to obtain the first output image after disturbance and the second output image after disturbance;

[0108] A decoupled disturbance recovery module 202, configured to process the first output graph after disturbance and the second output graph after disturbance by using the first generator and the second generator to obtain the first output graph and the second output graph;

[0109] The original image recombining module 203 is used to recombine the first output image and the second output image to obtain an original clean image.

[0110] Although the specific embodiments of the present invention have been described in a specific order, each action or step should be understood to require that such action or step be performed in the specific order shown or in a sequential order, or require that all illustrated actions or steps should be performed to obtain the desired result. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Certain features described in the context of a separate embodiment can also be implemented in a single implementation in combination. On the contrary, the various features described in the context of a single implementation can also be implemented in multiple implementations individually or in any suitable sub-combination.

[0111] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.

Claims

1. An image privacy protection method based on erasable adversarial attack, characterized in that: The following steps are involved: Step S1, separating an input image to obtain a downsampled first output image and a second output image, wherein the first output image and the second output image respectively contain different information of the input image; Step S2: using a first generator to process the first output graph and the second output graph to obtain a disturbed second output graph; Using a second generator to process the first output graph and the perturbed second output graph to obtain the perturbed first output graph; Step S3: reorganize the disturbed first output image and the disturbed second output image to obtain a privacy-preserving image.

2. The image privacy protection method based on erasable adversarial attack according to claim 1 is characterized in that: Step S1 specifically includes: Step S1-1, performing a reversible dimensionality transformation operation on the input image, reducing the height and width of the input image to half of the input image respectively, and increasing the number of channels to four times of the input image; Step S1-2, perform average separation on the input image after dimension transformation in the channel dimension to obtain a first output image and a second output image, wherein the height and width of the first output image and the second output image are respectively half of the input image, and the number of channels is twice that of the input image.

3. The image privacy protection method based on erasable adversarial attack according to claim 1 is characterized in that: Step S2 specifically includes: For the first generator Receive the first output graph x1, generate the perturbation of the second output graph x2, superimpose the restricted perturbation on the second output graph x2, and generate the perturbed second output graph For the second generator The second output image after receiving the disturbance Generate a perturbation of the first output graph x1, superimpose the restricted perturbation on the first output graph x1, and generate the perturbed first output graph The calculation method is: Among them clip ∈ (·) is the clipping function, which means limiting its absolute value to no more than ∈.

4. The image privacy protection method based on erasable adversarial attack according to claim 2 is characterized in that: Step S3 specifically includes: Step S3-1, splicing the perturbed first output image and the perturbed second output image in the channel dimension; Step S3-2: Perform a reversible dimensional transformation operation on the spliced ​​image to restore it to the same height, width and number of channels as the input image, and finally output a privacy-preserving image.

5. The image privacy protection method based on erasable adversarial attack according to any one of claims 1 to 4, characterized in that: Training the dual generator, which is used in step S2, includes the following steps: Step S4, constructing a training image data set; Step S5: pre-training the proxy model based on the image data set to obtain a third generator, where the third generator is used to add disturbance to the input image; Step S6: Based on the image data set and the third generator, train a dual generator, and apply the trained dual generator to step S2.

6. The image privacy protection method based on erasable adversarial attack according to claim 5 is characterized in that: Step S5 specifically includes: Based on the image samples in the image dataset, the proxy model f is pre-trained to obtain the third generator The third generator The training adopts the intermediate feature layer attack strategy. The third generator superimposes the generated perturbations on the input image samples to form coupled perturbation adversarial samples: where x ori is the input image sample, x adv_t It is a coupled perturbation adversarial sample; Step S6 specifically includes: Based on the image samples in the image dataset, steps S1-S3 are performed to generate a privacy-preserving image sample x adv ; Freeze the weight parameters of the pre-trained third generator; Set both generators to include 3 downsampling layers, 6 residual connection blocks and 4 upsampling layers, and set the loss function L for training the dual generators all : Among them, f l (·) represents the feature map output of the proxy model f at layer l, λ1 and λ2 are the balance coefficients of the loss term, express Norm.

7. A method for restoring a privacy-preserving image according to any one of claims 1 to 4, characterized in that: The following steps are involved: Step S7, separating the input privacy protection image to obtain the first output image after disturbance and the second output image after disturbance; Step S8, using the first generator and the second generator in step S2 to process the disturbed first output graph and the disturbed second output graph to obtain the first output graph and the second output graph; Step S9: recombining the first output image and the second output image to obtain an original clean image.

8. The method for restoring a privacy-preserving image according to claim 7, characterized in that: Step S8 specifically includes: For the second generator The second output image after receiving the disturbance Generate the perturbation of the first output graph x1, from the first output graph after perturbation Remove the restricted perturbation and generate the first output graph x1; for the first generator Receive the first output graph x1, generate the perturbation of the second output graph x2, and Removing the restricted perturbation, the second output graph x2 is generated, which is calculated as: Among them clip ∈ (·) is the clipping function, which means limiting its absolute value to no more than ∈.

9. An image privacy protection device based on erasable adversarial attack, characterized in that: include: An input image division module is used to separate the input image to obtain a downsampled first output image and a second output image, wherein the first output image and the second output image respectively contain different information of the input image; A decoupled disturbance generation module, configured to process the first output graph and the second output graph using a first generator to obtain a disturbed second output graph; Using a second generator to process the first output graph and the perturbed second output graph to obtain the perturbed first output graph; The privacy image reorganization module is used to reorganize the first output image after disturbance and the second output image after disturbance to obtain a privacy protection image.

10. A privacy protection image restoration device according to claim 9, characterized in that: include: A privacy image segmentation module, used to separate the input privacy protection image to obtain the first output image after disturbance and the second output image after disturbance; a decoupled disturbance recovery module, configured to process the first output graph after disturbance and the second output graph after disturbance by using the first generator and the second generator to obtain the first output graph and the second output graph; The original image recombining module is used to recombine the first output image and the second output image to obtain an original clean image.