A method, device and equipment for identifying an image poisoning attack, and a storage medium
By compressing and super-resolution restoring images, combined with multi-level recognition result analysis, the security and accuracy of computer vision systems are improved by identifying and preventing adversarial image poisoning attacks.
Patent Information
- Application Number
- CN202410021234.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-04
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-01-04
AI Technical Summary
Existing computer vision systems are vulnerable to adversarial image poisoning attacks, which can lead to erroneous outputs or results, affecting the security and accuracy of practical applications.
By performing image compression, low-resolution recognition, and super-resolution restoration on the image to be identified, and combining a preset image recognition model and a comprehensive analysis model, it is determined whether the image is susceptible to anti-image poisoning attacks.
It improves the robustness of image recognition and the accuracy of adversarial attack detection, and reduces the negative impact of adversarial attacks.
Smart Images

Figure CN117978453B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image recognition, and in particular to a method, apparatus, device, and storage medium for identifying image poisoning attacks. Background Technology
[0002] In recent years, the field of computer vision has developed rapidly and has been widely applied in various practical scenarios, such as autonomous driving, medical image analysis, and security monitoring. These applications place stringent demands on the performance of computer vision systems, especially in scenarios involving property and life safety, where computer vision systems must perform image recognition tasks with high efficiency and accuracy under different environments and conditions.
[0003] With the rise of deep learning technology, computer vision systems have achieved significant breakthroughs in multiple tasks. However, their uninterpretability also makes them more vulnerable to malicious attacks, particularly adversarial image poisoning attacks. This type of attack uses carefully designed image inputs, adding minute perturbations or modifying pixels to deceive deep learning-based computer vision systems, causing them to produce incorrect outputs or results. Such attacks can have serious negative impacts on practical applications, including property damage and threats to personal safety. For example, attackers might attempt to deceive autonomous driving systems into failing to correctly identify traffic signs, or use deceptive poisoning tactics to interfere with surveillance systems, leading to security vulnerabilities. Because these adversarial attacks are intentionally designed to confuse computer vision systems for illicit gains or malicious purposes, accurate identification and effective prevention are crucial. Summary of the Invention
[0004] In view of this, the purpose of this invention is to provide a method, apparatus, device, and storage medium for identifying adversarial image poisoning attacks. This method reduces the scale of malicious data in adversarial attacks by introducing image compression and super-resolution recovery, and improves the robustness of image recognition and the accuracy of adversarial attack detection through comprehensive analysis of the three identification results. The specific solution is as follows:
[0005] Firstly, this application provides a method for identifying image poisoning attacks, including:
[0006] Acquire the image to be identified and identify the image to obtain a first identification result;
[0007] The image to be identified is compressed to obtain a compressed image, and the compressed image is then subjected to low-resolution recognition to obtain a second recognition result.
[0008] The compressed image is subjected to super-resolution restoration to obtain a restored image, and the restored image is then recognized to obtain a third recognition result.
[0009] Based on the first recognition result, the second recognition result, and the third recognition result, a final recognition result corresponding to the image to be recognized is determined to determine whether the image to be recognized is susceptible to anti-image poisoning attacks.
[0010] Optionally, the step of recognizing the image to be recognized to obtain a first recognition result includes:
[0011] The image to be identified is identified using a first preset image recognition model to obtain the first recognition result;
[0012] Accordingly, the step of recognizing the restored image to obtain a third recognition result includes:
[0013] The recovered image is identified using the first preset image recognition model to obtain the third recognition result.
[0014] Optionally, before recognizing the image to be recognized using the first preset image recognition model, the method further includes:
[0015] Obtain several adversarial samples after performing adversarial poisoning attacks on several first historical images;
[0016] A first training set is constructed based on the aforementioned first historical images and the aforementioned first adversarial examples;
[0017] The first initial model based on a neural network is trained using the first training set to obtain the trained first preset image recognition model.
[0018] Optionally, the step of performing low-resolution recognition on the compressed image to obtain a second recognition result includes:
[0019] The compressed image is then subjected to low-resolution recognition using a second preset image recognition model to obtain the second recognition result.
[0020] Optionally, before performing low-resolution recognition on the compressed image using the second preset image recognition model, the method further includes:
[0021] Several adversarial samples are obtained after performing an adversarial poisoning attack on several second historical images; the resolution of the second historical images is lower than that of the first historical images.
[0022] A second training set is constructed based on the aforementioned second historical images and the aforementioned second adversarial examples;
[0023] The second initial model based on the neural network is trained using the second training set to obtain the trained second preset image recognition model; the parameter size of the second initial model is smaller than that of the first initial model.
[0024] Optionally, determining the final recognition result corresponding to the image to be recognized based on the first recognition result, the second recognition result, and the third recognition result includes:
[0025] The first identification result, the second identification result, and the third identification result are input into a preset comprehensive analysis model; the preset comprehensive analysis model is a model built based on a preset rule engine and a neural network;
[0026] The first recognition result, the second recognition result, and the third recognition result are comprehensively analyzed using the preset comprehensive analysis model, and the final recognition result corresponding to the image to be recognized is determined based on the recognition result ratio determined by the first recognition result, the second recognition result, and the third recognition result.
[0027] Secondly, this application provides a device for identifying image poisoning attacks, comprising:
[0028] The image acquisition module is used to acquire the image to be recognized;
[0029] The first image recognition module is used to recognize the image to be recognized in order to obtain a first recognition result;
[0030] The second image recognition module is used to compress the image to be recognized to obtain a compressed image, and to perform low-resolution recognition on the compressed image to obtain a second recognition result.
[0031] The third image recognition module is used to perform super-resolution restoration on the compressed image to obtain the restored image, and to recognize the restored image to obtain a third recognition result;
[0032] The final result determination module is used to determine the final recognition result corresponding to the image to be recognized based on the first recognition result, the second recognition result and the third recognition result, so as to determine whether the image to be recognized is susceptible to anti-image poisoning attacks.
[0033] Optionally, the anti-image poisoning attack identification device further includes:
[0034] An initial recognition device is constructed based on the image acquisition module and the first image recognition module;
[0035] A plug-in device is constructed based on the second image recognition module, the third image recognition module, and the final result determination module;
[0036] The plug-in device is inserted into the initial identification device as a bypass plug-in to obtain the anti-image poisoning attack identification device.
[0037] Thirdly, this application provides an electronic device, comprising:
[0038] Memory, used to store computer programs;
[0039] A processor is used to execute the computer program to implement the aforementioned method for identifying adversarial image poisoning attacks.
[0040] Fourthly, this application provides a computer-readable storage medium for storing a computer program, which, when executed by a processor, implements the aforementioned method for identifying adversarial image poisoning attacks.
[0041] In this application, an image to be identified is acquired and identified to obtain a first identification result; the image to be identified is compressed to obtain a compressed image, and the compressed image is identified at low resolution to obtain a second identification result; the compressed image is restored to super-resolution to obtain a restored image, and the restored image is identified to obtain a third identification result; based on the first identification result, the second identification result, and the third identification result, a final identification result corresponding to the image to be identified is determined to determine whether the image to be identified is susceptible to adversarial image poisoning attacks. Thus, this application reduces the resolution of the image by compressing it, thereby reducing the amount of detail information and filtering out malicious data; secondly, by performing super-resolution restoration on the compressed image, the image can be restored to its original resolution and more detailed information consistent with the actual image scene can be added, which to some extent suppresses the scale of malicious data; and finally, by comprehensively analyzing the first, second, and third identification results, the negative impact of adversarial attacks is reduced, and the accuracy of image recognition and adversarial attack detection is improved. Attached Figure Description
[0042] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0043] Figure 1This is a flowchart of a method for identifying image poisoning attacks disclosed in this application;
[0044] Figure 2 This application discloses a flowchart for identifying counter-image poisoning attacks.
[0045] Figure 3 This is a schematic diagram of the structure of a device for identifying and combating image poisoning attacks disclosed in this application;
[0046] Figure 4 This is a structural diagram of an electronic device disclosed in this application. Detailed Implementation
[0047] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0048] Image poisoning attacks, through carefully designed image inputs, add minute perturbations or modify pixels to deceive deep learning-based computer vision systems, causing them to produce incorrect outputs or results. To address this, this application provides an adversarial image poisoning attack detection method. By introducing image compression and super-resolution recovery, the scale of malicious data in adversarial attacks is reduced. Furthermore, by comprehensively analyzing the three recognition results, the robustness of image recognition and the accuracy of adversarial attack detection can be improved.
[0049] See Figure 1 As shown, this embodiment of the invention discloses a method for identifying image poisoning attacks, including:
[0050] Step S11: Obtain the image to be identified and identify the image to obtain the first identification result.
[0051] In this embodiment, the image to be recognized can be acquired either through real-time image capture using a camera or image sensor, or directly from a storage device, such as from the network or uploaded by a user terminal. Furthermore, after acquiring the image, a first preset image recognition model is used to recognize the image to obtain a corresponding first recognition result.
[0052] It should be noted that the training of the first preset image recognition model specifically includes acquiring several first historical images and performing adversarial poisoning attacks on these images to obtain several first adversarial samples; constructing a first training set based on the first historical images and the first adversarial samples; and training a first initial model based on a neural network using the first training set to obtain the trained first preset image recognition model. The adversarial poisoning attack includes actions such as adding minor interference to the image or modifying image pixels. The determination of whether model training has ended can be based on whether the preset number of training rounds has been reached or whether the model accuracy has reached a preset accuracy threshold; neither is limited here.
[0053] Step S12: Compress the image to be identified to obtain a compressed image, and perform low-resolution recognition on the compressed image to obtain a second recognition result.
[0054] In this embodiment, image compression can be achieved either by using an image compression tool to compress the image to be recognized, or by using a trained image compression model. Specifically, training the image compression model involves acquiring several uncompressed images and their corresponding compressed images to obtain several sets of training data. Compression parameters are then labeled for each set of training data to construct a training set. The training set is then used to train a neural network-based model to obtain a trained image compression model.
[0055] Furthermore, an image compression tool or model is used to compress the image to be identified, resulting in a compressed image. Then, a second preset image recognition model is used to quickly perform low-resolution recognition on the compressed image corresponding to the image to be identified, in order to determine the potential content or category of the compressed image, thereby obtaining the corresponding second recognition result. In this way, by employing image compression, this embodiment can reduce image resolution and blur some details in the image, thereby achieving a filtering effect on malicious data in the image, reducing the scale of malicious data in the image, and improving the accuracy of image recognition and adversarial attack detection.
[0056] It should be noted that the training of the second preset image recognition model specifically includes acquiring several second historical images and performing adversarial poisoning attacks on these images to obtain several second adversarial samples; constructing a second training set based on the second historical images and the second adversarial samples; and training a second initial model based on a neural network using the second training set to obtain the trained second preset image recognition model. It should also be noted that since the second preset image recognition model is designed to recognize compressed images, a neural network with a smaller parameter size can be used. That is, the parameter size of the second initial model built on a neural network is smaller than that of the first initial model built on a neural network. Furthermore, since the second preset image recognition model is used to recognize compressed images, the resolution of the second historical images in the second training set is lower than the resolution of the first historical images in the first training set.
[0057] Step S13: Perform super-resolution restoration on the compressed image to obtain the restored image, and then identify the restored image to obtain a third identification result.
[0058] In this embodiment, for super-resolution restoration of compressed images, either a super-resolution restoration tool can be used to perform super-resolution restoration on the compressed image to obtain the restored image, or a trained super-resolution restoration model can be used to perform super-resolution restoration on the compressed image to obtain the restored image. Specifically, training the super-resolution restoration model includes acquiring several compressed images and their corresponding restored images to obtain several sets of training data. Resolution restoration parameters are labeled for each set of training data to construct a training set based on the several sets of training data and the corresponding labeling information. Then, the training set is used to train the neural network-based model to obtain the trained super-resolution restoration model.
[0059] Furthermore, a super-resolution restoration tool or model is used to perform super-resolution restoration on the compressed image corresponding to the image to be identified, resulting in a restored image. A first preset image recognition model is then used to recognize the restored image to obtain a third recognition result. In this way, by employing super-resolution restoration, this embodiment can restore the image resolution, maintain high image quality, and supplement more detailed information from the actual image scene. This, to a certain extent, suppresses the scale of malicious data, thereby improving the accuracy of image recognition and the accuracy of adversarial attack detection. Additionally, by using the first preset image recognition model used in step S11 to recognize the image to be identified, the time and effort required to retrain a model can be saved.
[0060] Step S14: Based on the first recognition result, the second recognition result, and the third recognition result, determine the final recognition result corresponding to the image to be recognized, so as to determine whether the image to be recognized is susceptible to anti-image poisoning attacks.
[0061] In this embodiment, the first recognition result, the second recognition result, and the third recognition result are input into a preset comprehensive analysis model. This preset comprehensive analysis model is a model built based on a preset rule engine and a neural network. The preset comprehensive analysis model is used to comprehensively analyze the first, second, and third recognition results. The final recognition result corresponding to the image to be recognized is determined based on the proportion of recognition results determined by the first, second, and third recognition results, thereby determining whether the image to be recognized is susceptible to adversarial image poisoning attacks. In this way, by building a preset comprehensive analysis model based on a preset rule engine and a neural network, the intelligence of the preset comprehensive analysis model can be guaranteed, and the accuracy of the recognition results can be better guaranteed compared to using only a preset rule engine.
[0062] It should be noted that for the first preset image recognition model, the second preset image recognition model, and the preset comprehensive analysis model, the system will continuously collect the images to be recognized and the corresponding recognition results to optimize the corresponding training set; or adjust the images according to the newly emerging adversarial poisoning attack methods to obtain new adversarial samples, and optimize the corresponding training set according to the new adversarial samples, so as to continuously optimize and adjust the model with the continuously optimized training set, thereby obtaining the optimized model, and continuously improving the accuracy of image recognition and adversarial attack detection.
[0063] Therefore, this application can reduce the resolution of the image to be identified by compressing it, thereby reducing the amount of detail information in the image and filtering out some malicious data. Secondly, by performing super-resolution restoration on the compressed image, the image can be restored to its original resolution and more detailed information that matches the actual image scene can be added, which can suppress the scale of malicious data to a certain extent. Then, by comprehensively analyzing the first, second, and third recognition results, the negative impact of adversarial attacks is reduced, and the accuracy of image recognition and adversarial attack detection is improved.
[0064] See Figure 2 As shown, this embodiment of the invention discloses a method for identifying image poisoning attacks, including:
[0065] Taking an autonomous driving scenario as an example, the image acquisition module of the autonomous vehicle acquires raw images in real time via its camera. These raw images are then input into a first preset image recognition model to recognize the raw images and obtain the raw image recognition result. Simultaneously, the image compression module of the autonomous vehicle compresses the raw images to obtain a compressed low-resolution image. A second preset image recognition model then recognizes the compressed low-resolution image to obtain a low-resolution recognition result. Simultaneously, the super-resolution recovery module of the autonomous vehicle performs super-resolution recovery on the compressed low-resolution image to obtain a recovered image. The first preset image recognition model then recognizes the recovered image to obtain a high-resolution recognition result. Finally, a preset comprehensive analysis model of the autonomous vehicle comprehensively analyzes the raw image recognition result, the low-resolution recognition result, and the high-resolution recognition result to obtain the final recognition result corresponding to the raw image.
[0066] The system comprises an initial recognition device based on an image acquisition module and a first preset image recognition model; a plug-in device based on an image compression module, a second preset image recognition model, a super-resolution recovery module, the first preset image recognition model, and a preset comprehensive analysis model; and a complete adversarial image poisoning attack recognition device is obtained by inserting the plug-in device as a bypass plug-in into the initial recognition device, thereby achieving the recognition of the original image. It should be noted that while the initial recognition device alone can also recognize the original image, the accuracy of the recognition result is lower compared to the recognition result of the adversarial image poisoning attack recognition device.
[0067] Therefore, this application can reduce the resolution of the image to be identified by compressing it, thereby reducing the amount of detail information in the image and filtering out some malicious data. Secondly, by performing super-resolution restoration on the compressed image, the image can be restored to its original resolution and more detailed information that matches the actual image scene can be added, which can suppress the scale of malicious data to a certain extent. Then, by comprehensively analyzing the first, second, and third recognition results, the negative impact of adversarial attacks is reduced, and the accuracy of image recognition and adversarial attack detection is improved.
[0068] See Figure 3 As shown, this invention discloses an anti-image poisoning attack identification device, comprising:
[0069] Image acquisition module 11 is used to acquire the image to be recognized;
[0070] The first image recognition module 12 is used to recognize the image to be recognized in order to obtain a first recognition result;
[0071] The second image recognition module 13 is used to compress the image to be recognized to obtain a compressed image, and to perform low-resolution recognition on the compressed image to obtain a second recognition result.
[0072] The third image recognition module 14 is used to perform super-resolution restoration on the compressed image to obtain the restored image, and to recognize the restored image to obtain a third recognition result;
[0073] The final result determination module 15 is used to determine the final recognition result corresponding to the image to be recognized based on the first recognition result, the second recognition result and the third recognition result, so as to determine whether the image to be recognized is susceptible to anti-image poisoning attacks.
[0074] Therefore, this application can reduce the resolution of the image to be identified by compressing it, thereby reducing the amount of detail information in the image and filtering out some malicious data. Secondly, by performing super-resolution restoration on the compressed image, the image can be restored to its original resolution and more detailed information that matches the actual image scene can be added, which can suppress the scale of malicious data to a certain extent. Then, by comprehensively analyzing the first, second, and third recognition results, the negative impact of adversarial attacks is reduced, and the accuracy of image recognition and adversarial attack detection is improved.
[0075] In some specific embodiments, the first image recognition module 12 includes:
[0076] The first image recognition unit is used to recognize the image to be recognized using a first preset image recognition model to obtain the first recognition result;
[0077] Accordingly, the third image recognition module 14 includes:
[0078] The second image recognition unit is used to recognize the restored image using the first preset image recognition model to obtain the third recognition result.
[0079] In some specific embodiments, the anti-image poisoning attack identification device further includes:
[0080] The first sample acquisition unit is used to acquire several first adversarial samples obtained after performing adversarial poisoning attacks on several first historical images.
[0081] The first training set construction unit is used to construct a first training set based on the plurality of first historical images and the plurality of first adversarial examples;
[0082] The first model training unit is used to train the first initial model based on the neural network using the first training set to obtain the trained first preset image recognition model.
[0083] In some specific embodiments, the second image recognition module 13 includes:
[0084] The third image recognition unit is used to perform low-resolution recognition on the compressed image using a second preset image recognition model to obtain the second recognition result.
[0085] In some specific embodiments, the anti-image poisoning attack identification device further includes:
[0086] The second sample acquisition unit is used to acquire several second adversarial samples obtained after performing an adversarial poisoning attack on several second historical images; the resolution of the second historical images is lower than the resolution of the first historical images.
[0087] The second training set construction unit is used to construct a second training set based on the plurality of second historical images and the plurality of second adversarial examples;
[0088] The second model training unit is used to train the second initial model based on the neural network using the second training set to obtain the trained second preset image recognition model; the parameter size of the second initial model is smaller than the parameter size of the first initial model.
[0089] In some specific embodiments, the final result determination module 15 includes:
[0090] The recognition result input unit is used to input the first recognition result, the second recognition result, and the third recognition result into a preset comprehensive analysis model; the preset comprehensive analysis model is a model built based on a preset rule engine and a neural network;
[0091] The comprehensive analysis unit is used to perform comprehensive analysis on the first recognition result, the second recognition result and the third recognition result using the preset comprehensive analysis model, and to determine the final recognition result corresponding to the image to be recognized based on the recognition result ratio determined by the first recognition result, the second recognition result and the third recognition result.
[0092] Furthermore, embodiments of this application also disclose an electronic device, Figure 4 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application.
[0093] Figure 4This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of this application. Specifically, the electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the adversarial image poisoning attack identification method disclosed in any of the foregoing embodiments. Alternatively, the electronic device 20 in this embodiment may specifically be a computer.
[0094] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.
[0095] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 221, computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0096] The operating system 221 is used to manage and control the various hardware devices on the electronic device 20 and the computer program 222, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the anti-image poisoning attack identification method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, the computer program 222 may further include computer programs capable of performing other specific tasks.
[0097] Furthermore, this application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned adversarial image poisoning attack identification method. Specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.
[0098] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.
[0099] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0100] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0101] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0102] The technical solutions provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for identifying image poisoning attacks, characterized in that, include: The image to be identified is acquired, and the image to be identified is identified using a first preset image recognition model to obtain a first recognition result; The image to be identified is compressed to obtain a compressed image, and a second preset image recognition model is used to perform low-resolution recognition on the compressed image to obtain a second recognition result. The compressed image is subjected to super-resolution restoration to obtain a restored image, and the restored image is recognized using the first preset image recognition model to obtain a third recognition result; Based on the first recognition result, the second recognition result, and the third recognition result, a final recognition result corresponding to the image to be recognized is determined to determine whether the image to be recognized is susceptible to anti-image poisoning attacks. Before recognizing the image to be recognized using the first preset image recognition model, the method further includes: Several adversarial samples were obtained after performing adversarial poisoning attacks on several first historical images; the adversarial poisoning attacks included adding minor interference to the images or modifying the image pixels; A first training set is constructed based on the aforementioned first historical images and the aforementioned first adversarial examples; The first initial model based on a neural network is trained using the first training set to obtain the trained first preset image recognition model. Before performing low-resolution recognition of the compressed image using the second preset image recognition model, the method further includes: Several adversarial samples are obtained after performing an adversarial poisoning attack on several second historical images; the resolution of the second historical images is lower than that of the first historical images. A second training set is constructed based on the aforementioned second historical images and the aforementioned second adversarial examples; The second initial model based on a neural network is trained using the second training set to obtain the trained second preset image recognition model; the parameter size of the second initial model is smaller than that of the first initial model. The step of determining the final recognition result corresponding to the image to be recognized based on the first recognition result, the second recognition result, and the third recognition result includes: The first identification result, the second identification result, and the third identification result are input into a preset comprehensive analysis model; the preset comprehensive analysis model is a model built based on a preset rule engine and a neural network; The first recognition result, the second recognition result, and the third recognition result are comprehensively analyzed using the preset comprehensive analysis model, and the final recognition result corresponding to the image to be recognized is determined based on the recognition result ratio determined by the first recognition result, the second recognition result, and the third recognition result.
2. A device for identifying and combating image poisoning attacks, characterized in that, The adversarial image poisoning attack identification device is used to implement the adversarial image poisoning attack identification method as described in claim 1, and the adversarial image poisoning attack identification device includes: The image acquisition module is used to acquire the image to be recognized; The first image recognition module is used to recognize the image to be recognized using a first preset image recognition model to obtain a first recognition result; The second image recognition module is used to compress the image to be recognized to obtain a compressed image, and to use a second preset image recognition model to perform low-resolution recognition on the compressed image to obtain a second recognition result. The third image recognition module is used to perform super-resolution restoration on the compressed image to obtain the restored image, and to use the first preset image recognition model to recognize the restored image to obtain a third recognition result. The final result determination module is used to determine the final recognition result corresponding to the image to be recognized based on the first recognition result, the second recognition result and the third recognition result, so as to determine whether the image to be recognized is susceptible to anti-image poisoning attacks.
3. The anti-image poisoning attack identification device according to claim 2, characterized in that, Also includes: An initial recognition device is constructed based on the image acquisition module and the first image recognition module; A plug-in device is constructed based on the second image recognition module, the third image recognition module, and the final result determination module; The plug-in device is inserted into the initial identification device as a bypass plug-in to obtain the anti-image poisoning attack identification device.
4. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor is configured to execute the computer program to implement the method for identifying anti-image poisoning attacks as described in claim 1.
5. A computer-readable storage medium, characterized in that, Used to store computer programs, which, when executed by a processor, implement the anti-image poisoning attack identification method as described in claim 1.
Citation Information
Patent Citations
Face image super-resolution restoration and reconstruction method and system based on generative adversarial network
CN113723174A
Deep learning model backdoor construction method based on lossy image compression
CN115147647A
