Deep forgery active evidence obtaining method based on separable perceptual hash enhancement

By adopting an active forensics method based on separable perceptual hashing in deep fake image detection, the problem of insufficient robustness and source detection capabilities in the existing technology is solved, and reliable detection of image sources and identification of fake images are achieved.

CN118587568AActive Publication Date: 2024-09-03QILU UNIVERSITY OF TECHNOLOGY (SHANDONG ACADEMY OF SCIENCES)

Patent Information

Application Number
CN202411060517.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-09-03
Estimated Expiration
2044-08-05

AI Technical Summary

Technical Problem

Existing technology lacks robustness in detecting deep fake images, making it difficult to distinguish real images from fake images. It has insufficient generalization capabilities especially in the face of new forgery strategies, and cannot effectively track the source of the image. The original face is not fully protected.

Method used

A deep forgery active forensics method based on separable perceptual hash enhancement is adopted. By constructing a deep forgery active forensics model, using a secret network, a decoder and a discriminator, the watermark is embedded and remains robust in the content retention operation to ensure that the watermark is Stability and reliability during image transmission.

Benefits of technology

It implements a unified framework for image source detection, enhances the accuracy and reliability of forensics, ensures that watermarks remain stable during content preservation operations, can effectively distinguish real images from forged images, and determine whether the image has been tampered with.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587568A
    Figure CN118587568A
Patent Text Reader

Abstract

The invention relates to the technical field of deep forgery, and particularly provides a deep forgery active evidence obtaining method based on separable perceptual hash enhancement. The method comprises the following steps: embedding a first watermark corresponding to an original face image into a face image containing identity information to obtain a secret-carrying image; the secret-carrying image is input into the content keeping operation module to simulate the environment of the image transmitted in the network, the Hash cross-correlation similarity is obtained through the trained discriminator, the face deep counterfeiting active evidence obtaining system is perfected, a unified frame is provided for image source detection and deep counterfeiting active evidence obtaining, and the method has the advantages of being high in practicability and easy to popularize. The robustness of the watermark in the content keeping operation is ensured, and the evidence obtaining accuracy and reliability are enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of deep fake technology, and in particular to a deep fake active evidence collection method based on separable perceptual hash enhancement. Background Art

[0002] With the rapid development of deep learning and computer vision technology, artificial intelligence has made significant progress in the field of image generation and processing. However, this progress has also brought severe security challenges. In particular, the emergence of a large number of image editing software has continuously reduced the cost of image modification, and everyone can become a master of manipulation and create seemingly real content with one click. In recent years, the promotion of deep learning technology has pushed the deep fake technology of facial images to the forefront, making it difficult to distinguish fake images from real images. This has attracted the attention of a large number of researchers. The source and authenticity of images currently circulated on the Internet have never been so important, which has far-reaching implications for personal privacy, public safety and social stability.

[0003] Deepfakes originate from the combination of "deep learning" and "fakes". In order to solve the problems caused by deepfakes, researchers have proposed various methods to distinguish deepfake images in a passive detection manner. Manual features such as blinking, head posture, and color inconsistency are very suitable for detecting them at an early stage. However, adversarial training can easily fix these shallow operations. At present, in order to capture the difference between true and false, the existing technology uses continuous facial landmarks to model five senses and facial areas, and constructs facial muscle movement features to solve the problem of compressed deepfake video detection; or considers the high-level semantics of the image to be detected, and detects suspicious faces by finding identity inconsistencies in the inner and outer areas of the face. Although these strategies perform very well on public datasets, these decisions lack sufficient robustness and will be affected by generalization on new forgery strategies. In addition, most detection methods rely heavily on a large amount of training data. More importantly, even if the classification result is false, it is difficult to trace the face, and the original face is not essentially protected.

[0004] Robust watermarking is an important technology for authentication and source detection. Scholars use the technology of robust watermarking to embed watermarks into images through watermark encoders. Even if the watermarked image has suffered severe distortion, the watermark can still be correctly extracted in an invisible way, and the extraction only requires marking the image. Invisible watermarks have increasingly wide applications in modern multimedia ecology, including copyright protection, traceability, content authentication, etc. Since robust watermarking has high requirements for robustness, even if the main part of the marked image is blocked or captured by a screenshot, the embedded watermark can still be extracted after severe distortion. Excessive robustness may also cause the watermark to exist before and after deep forgery, making it difficult to distinguish between real images and forged images. In the existing technology, different robust decoders are used to extract watermarks separately to solve this problem, but only with the joint action of a semi-robust decoder and a robust decoder can the trusted source of the marked face be reliably tracked and whether it has been tampered with. Neither of them can achieve this goal. Summary of the invention

[0005] In view of this, the present invention provides a deep fake active forensics method based on separable perceptual hashing enhancement, which is used to improve the face deep fake active forensics system, provide a unified framework for image source detection and deep fake active forensics, ensure the robustness of watermarks in content preservation operations, and enhance the accuracy and reliability of forensics.

[0006] In a first aspect, the present invention provides a deep fake active forensics method based on separable perceptual hash enhancement, the method comprising: Step 1: Build a deep forgery active forensics model to obtain the secret network, decoder De, content preservation operation module and discriminator; the secret network includes a watermark generator G H , encoder; Step 2: Train the encoder, decoder and discriminator in step 1 to obtain the trained encoder, decoder De and discriminator; Step 3: Use the encoder trained in step 2 to embed the identity information into the original face image I to generate the face image I 1 ; Step 4: Annotate the background and foreground of the original face image I, and input the original face image I into the watermark generator G in step 1. H , extract the facial features in the original face image I, and generate a face-aware hash code corresponding to the original face image I; Step 5: Convert the face-aware hash code in step 4 into binary to obtain the first watermark H FA ; Step 6: Use the encoder trained in step 2 to convert the first watermark H in step 5 FA The face image I embedded in step 31 , get the encrypted image I En ; Step 7: The encrypted image I in step 6 En The content-preserving operation module input to step 1 simulates the environment in which the image is transmitted in the network, and obtains the hash cross-correlation similarity through the discriminator trained in step 2.

[0007] Optionally, the formula for converting to binary in step 5 is: ; in, Represents the i-th binary number in the hash sequence; ; m represents the length of the feature coding sequence, Represents the i-th real feature code of the output.

[0008] Optionally, step 6 includes: Step 61: Use the trained encoder to transform the face image I 1 Convert the RGB image to a YUV image, where Y represents brightness information and U and V represent chrominance information; Step 62: for each block space of the YUV image in step 61, a discrete cosine transform (DCT) is used to transform the image from the spatial domain to the frequency domain to extract frequency domain information; Step 63: extracting the background area low-frequency component from the DCT-transformed YUV image in step 62 according to the information shared by the watermark generator; Step 64: Set the first watermark H FA Adjust the size to match the low-frequency component of the background area extracted in step 63, and add the first watermark H FA Embedded into low-frequency components; Step 65: embed the first watermark H in step 64 FA The DCT coefficients are converted back to YUV space using inverse discrete cosine transform (IDCT) to obtain a time domain image, i.e., a YUV image. Step 66: Convert the YUV image in step 65 back to an RGB image to generate a encrypted image I En .

[0009] Optionally include: Encrypted Image I En Visually similar to the original face image I, the loss function is , whose expression is: ; in, represents the training parameters, H FA is the first watermark of the original face image I; To ensure the confidentiality of the image I En The perceptual quality of the encrypted image I is similar to that of the original face image I. The perceptual loss is designed to measure the En Compared with the original face image I, the loss function is expressed as: ; in, Represents the feature map of the image at layer l; Represents the Euclidean distance between feature maps at the feature map position (h, w); h represents the height index of the feature map; w represents the width index of the feature map; Represents the height of the feature map of the lth layer; Indicates the width of the feature map of the lth layer; The total variation loss is used to encrypt the image I En Regularization is performed, and the expression of the total variation loss function is: ; Where i represents the pixel index of the image in the vertical direction, and j represents the pixel index of the image in the horizontal direction; Indicates a secret image; Represents the pixel value of the encrypted image at position (i+1,j); Represents the pixel value of the encrypted image at position (i, j); Represents the pixel value of the encrypted image at position (i, j+1); Total loss function The expression is: ; in, , and are the weights of the corresponding losses respectively.

[0010] Optionally, step 7 includes: Step 71: The encrypted image I En Input to the content retention operation module to simulate the image transmission environment in the network, and obtain the simulated encrypted image I CO ; Step 72: The encrypted image I simulated in step 71 is CO Input to the watermark generator G H , extract the simulated encrypted image I CO The facial features in the image are used to generate the simulated encrypted image I CO The corresponding face-aware hash code is converted into binary to obtain the corresponding second watermark ; Step 73: Extract the simulated encrypted image I through the trained decoder DeCO The first watermark H FA ; and the first watermark H is transformed into FA and the second watermark Compare and obtain the similarity of hash cross-correlation.

[0011] Optionally, step 7 includes: Step 74: The encrypted image I En Input to the content preservation operation module to simulate the environment in which the image is transmitted in the network, and obtain the tampered image I MD ; Step 75: The image I tampered with in step 74 MD Input to the watermark generator G H , extract the tampered image I MD The facial features in the image are used to generate the tampered image I MD The corresponding face-aware hash code is converted into binary to obtain the corresponding third watermark ; Step 76: Extract the tampered image I through the trained decoder De MD The first watermark H FA ; and the first watermark H is transformed into FA and the third watermark Compare and obtain the similarity of hash cross-correlation.

[0012] Optionally, the first hash cross-correlation similarity The expression is: ; in, Indicates the first watermark H FA With the second watermark The covariance of Indicates the first watermark H FA The standard deviation of each series in ; Indicates the second watermark The standard deviation of each series in .

[0013] Optionally, the similarity of the second hash cross-correlation The expression is: ; in, Indicates the first watermark H FA With the third watermark The covariance of Indicates the first watermark H FA The standard deviation of each series in ; Indicates the third watermark The standard deviation of each series in .

[0014] In a second aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is running, the electronic device where the computer-readable storage medium is located is controlled to execute the deep fake active forensics method based on separable perceptual hash enhancement in the first aspect or any possible implementation of the first aspect.

[0015] In the third aspect, an embodiment of the present invention provides an electronic device, comprising: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the electronic device, enable the device to perform the deep fake active forensics method based on separable perceptual hash enhancement in the first aspect or any possible implementation of the first aspect.

[0016] In the technical solution provided by the present invention, the method includes constructing a deep fake active forensics model, obtaining a secret network, a decoder De, a content preservation operation module and a discriminator; wherein the secret network includes a watermark generator GH and an encoder; and obtaining a trained encoder, a decoder De and a discriminator; embedding identity information into an original face image I through the trained encoder to generate a face image I 1 ; Input the original face image I into the watermark generator G in step 1 H , extract the features in the original face image I, generate the face-aware hash code corresponding to the original face image I; convert the face-aware hash code into binary to obtain the first watermark H FA ; The first watermark H is converted by the trained encoder FA Embedded into face image I 1 , get the encrypted image I En ; The encrypted image I En The input to the content preservation operation module simulates the environment in which the image is transmitted in the network, and the hash cross-correlation similarity is obtained through the trained discriminator. This method improves the active forensics system for deep fake faces, provides a unified framework for image source detection and deep fake active forensics, ensures the robustness of the watermark in the content preservation operation, and enhances the accuracy and reliability of forensics. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0018] Figure 1 A flow chart of a deep fake active evidence collection method provided by an embodiment of the present invention; Figure 2 A schematic diagram of a deep fake active forensics model provided by an embodiment of the present invention; Figure 3 A schematic diagram of a model for obtaining a confidential image provided by an embodiment of the present invention; Figure 4 A schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0019] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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 are within the scope of protection of the present invention.

[0020] It should be clear that 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 are within the scope of protection of the present invention.

[0021] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention are also intended to include plural forms, unless the context clearly indicates other meanings.

[0022] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0023] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0024] Image perceptual hashing is a hashing algorithm that generates fixed-length hash codes based on the visual content features of an image. On the one hand, it inherits the characteristics of the traditional hash function, which is unidirectional, collision-resistant, and abstract. On the other hand, image perceptual hashing also has the following characteristics: (1) Robustness: Unlike the extremely sensitive characteristics of traditional hashing algorithms to the original data, the original image can still generate similar hash sequence codes after content-preserving operations (such as compression, noise addition, rotation, etc.). Any perceptually similar images should have similar hash values, thereby achieving the authentication of images with the same content. (2) Distinguishing: For images with different contents, the perceptual hashing algorithm should generate perceptual hash codes with large differences, thereby achieving the identification of images with different contents. (3) Security: Using different keys should generate completely different perceptual hash codes. Even if the image perceptual hashing generation algorithm is public, an attacker who does not have the key cannot forge a hash code that is consistent with the target perceptual hash. Based on the above characteristics, the image content forensics algorithm based on perceptual hashing has become an ideal choice for image content authentication and copyright protection. The technical solution proposed in the present invention does not require the participation of a complex face parsing model. It uses a perceptual hash code that is robust for recognition of images with the same content and sensitive for differentiation of images with different contents as an embedded watermark, so that the entire EDFF process is end-to-end and a new paradigm of robust watermarking for deep face forgery is created.

[0025] Faced with the increasingly sophisticated threats posed by deep fake technology, the demand for deep fake forensics continues to grow. Here are some related cutting-edge forensics technologies: 1. Passive forensics of deep fakes identifies fake content by analyzing the intrinsic features of images, videos or audios. These methods do not rely on pre-embedded information, but use the features of the content itself for detection. In the existing technology, the new architecture of Gram-Net uses global image texture representation for robust fake image detection; or through the multi-attention deep fake detection network, multiple spatial attention heads, texture feature enhancement blocks and attention map-guided feature aggregation are used to detect deep fakes in a fine-grained manner. At present, by introducing the concept of neighboring pixel relations (NPR), the CNN-based generator architecture is redesigned to capture the generalized structural artifacts caused by upsampling operations, thereby improving the detection of fake images. The researchers proposed the use of small filters that do not require training and randomly initialized convolutional layers as data independent operators (DIO), which can effectively capture generalized artifacts and achieve advanced performance on popular classifiers. Through a systematic study of various image generators, the researchers found that there are significant differences between the generated images and the real images in the Fourier domain, autocorrelation and frequency signal distribution. The researchers used the global and local feature fusion (GLFF) framework to combine global multi-scale features and local fine features to detect synthetic images, and created a challenging dataset called DeepFakeFaceFrensics (DFβ) for evaluation. In general, passive forensics methods do not require pre-embedded information, are applicable to various content types, and can automate large-scale detection, but they are vulnerable to adversarial attacks, lag behind new forgery techniques, have high computing resource requirements, and have limitations that cannot achieve source detection.

[0026] 2. Active forensics of deep fakes By taking defensive measures in advance during the content generation and dissemination process, it effectively prevents forgery and tampering, and enhances the credibility and security of the content. The researchers proposed an active forensics framework that reduces the performance of facial manipulation models by injecting tiny perturbations into facial data. The researchers also proposed a new anti-forgery technique to protect facial images from popular forgery techniques by continuously generating perceptual perturbations. The researchers proposed a new data-driven method to effectively prevent face manipulation by generating specific image perturbations in the original image, replacing the actual operation with predefined operation targets, using differentiable compressible approximation to improve the robustness to ordinary image compression, and introducing an attention-based operation-specific perturbation fusion method. The researchers generated a cross-model universal adversarial watermark (CMUA-Watermark), adopted iterative attacks and a two-level perturbation fusion strategy, solved the model-level conflict and optimization problems, and protected the image from forged models. The researchers designed a set of templates that can be added to real images to more accurately detect image processing operations. These templates make the processed images more distinguishable from the original real images. The researchers proposed an identity-aware watermarking framework that assigns identity semantics to the watermark and combines it with a chaotic encryption system to ensure its confidentiality. The encoder-decoder framework and adversarial image operations are used to encode and recover the watermark to verify and track the authenticity of the image content. The researchers proposed a solution called SepMark, which achieves the survival and disappearance of watermarks under different robustness by utilizing the highly robust Tracer decoder and the Deepfake-sensitive Detector semi-robust detector. However, these methods also face challenges such as technical confrontation, resource requirements, and privacy protection, and need to be continuously optimized and improved.

[0027] 3. Deep Watermarking is an emerging digital watermarking method that combines deep learning technology and traditional watermarking technology, aiming to protect the copyright and integrity of digital media. Benefiting from the powerful capabilities of deep learning, many watermark embedding techniques based on deep neural networks have been proposed. HiDDeN is the first end-to-end learning architecture for robust watermarking. It consists of an encoder, a discriminator, a noise layer, and a decoder. The differential noise layer is used to perform data enhancement on the marked image to ensure robustness. The researchers proposed a three-stage watermarking framework, which ensures that high-quality watermarks can still be extracted after actual distortion through a noise-free initial stage, a mask-guided frequency enhancement stage, and an adversarial training stage. The researchers designed a learning steganography algorithm called StegaStamp, which achieves robust encoding and decoding of arbitrary hyperlink bit strings through deep neural networks, and can cope with image perturbations in a way close to perceptual stealth. The researchers developed light field information transfer (LFM) to embed and transmit hidden information through photographic steganography, and used the camera display transfer function (CDTF) to optimize the embedding and recovery of information. Researchers proposed a new universal deep hiding (UDH) meta-architecture, which achieves efficient steganography by exploiting frequency differences and can maintain robustness under pixel intensity changes, which is suitable for image / video steganography and light field messaging (LFM). Image perceptual hashing is a hashing algorithm that generates fixed-length hash codes based on image visual content features. A good perceptual hashing algorithm should be able to achieve a good balance between the two. The researchers divided the input image into sub-blocks and then applied the Local Linear Embedding (LLE) algorithm to the normalized matrix composed of random sub-blocks to generate perceptual hash codes. The researchers used Locality Preserving Projection (LPP) to extract inherent local structural features from the image after maximum Gabor filtering. The High Level Locality Preserving Projection (HLPP) algorithm can be used to generate perceptual hash codes. The researchers proposed an unsupervised perceptual hashing image content forensics method based on the Bidirectional Generative Adversarial Network (BiGAN). The method generates perceptual hash codes with strong image semantic feature representation through iterative adversarial interactions between the encoder network, the generator network, and the discriminator network. Although deep robust watermarking has been greatly developed, using a single watermark to simultaneously perform forgery detection and source tracking remains largely unexplored in the current research field.

[0028] Figure 1Flow chart of the deep fake active evidence collection method provided by an embodiment of the present invention, such as Figure 1 As shown, the method includes: Step 1: Build a deep forgery active forensics model to obtain the secret network, decoder De, content preservation operation module and discriminator; the secret network includes a watermark generator G H , encoder.

[0029] Step 2: Train the encoder, decoder and discriminator in step 1 to obtain the trained encoder, decoder De and discriminator.

[0030] In the embodiment of the present invention, during the training process, the deep fake active forensics model is trained based on face images, watermarks, encrypted images, and tampered images to obtain an encoder, a decoder, and a discriminator. In practical applications, images are inevitably affected by common post-processing operations and noise during upload and transmission, such as compression, blur, and noise. These operations and noise will have a significant impact on the quality of the image. In this process, the content retention operation of the image transmission environment in reality is simulated, as shown in Table 1: Table 1 ; As shown in Table 1, the operations include contrast adjustment, gamma filtering, median filtering, salt and pepper noise, Gaussian noise, rotation, JPEG compression, circular average filtering, and brightness; the parameters include Photoshop scale, gamma coefficient, Filter size, density, variance, rotation angle, quality factor, Filter size, Photoshop scale; and the corresponding parameter values.

[0031] In the embodiment of the present invention, the training is based on L 2 The norm is: Encrypted Image I En Visually similar to the original face image I, the loss function is , whose expression is: ; in, represents the training parameters, H FA is the first watermark of the original face image I; For two decoders, the decoder De in the robustness verification should be able to achieve the encrypted image I after simulation. CO Extract the first watermark H FA The decoder De in the distinguishing verification can realize the tampered image I MD Extract the first watermark H FA . The loss functions are: ; ; in, and Represents training parameters of content preserving operation and tampering training parameters, CPO represents content preserving operation.

[0032] Step 3: Use the encoder trained in step 2 to embed the identity information into the original face image I to generate the face image I 1 .

[0033] Step 4: Annotate the background and foreground of the original face image I, and input the original face image I into the watermark generator G in step 1. H , extract the facial features in the original face image I, and generate a face-aware hash code corresponding to the original face image I.

[0034] Step 5: Convert the face-aware hash code in step 4 into binary to obtain the first watermark H FA .

[0035] In the embodiment of the present invention, the formula for converting to binary in step 5 is: ; in, Represents the i-th binary number in the hash sequence; ; m represents the length of the feature coding sequence, Represents the i-th real feature code of the output.

[0036] Step 6: Use the encoder trained in step 2 to convert the first watermark H in step 5 FA The face image I embedded in step 3 1 , get the encrypted image I En .

[0037] In the embodiment of the present invention, Figure 2 As shown in the figure, the encrypted network consists of a convolutional layer, a fully connected layer, upsampling and downsampling. It takes the original face image I as input, embeds the identity information into the original face image I, and generates a face-aware hash code to obtain the first watermark H FA Embedded into the background low-frequency area for convolution and upsampling to generate the dense image I En .

[0038] In the embodiment of the present invention, Figure 3 As shown, step 6 includes: Step 61: Use the trained encoder to transform the face image I 1 Convert the RGB image to a YUV image, where Y represents brightness information and U and V represent chrominance information; Step 62: for each block space of the YUV image in step 61, a discrete cosine transform (DCT) is used to transform the image from the spatial domain to the frequency domain to extract frequency domain information; Step 63: extracting the background area low-frequency component from the DCT-transformed YUV image in step 62 according to the information shared by the watermark generator; The original face image I is input into the fusion U-net. In the downsampling stage, conv-in-relu with a step size of 2 is used for dimensionality reduction, and the number of channels is adjusted through Double Conv. In order to enhance the robustness of the embedded watermark, the RGB image is converted to the YUV color space, and the discrete cosine transform (DCT) is performed on the YUV image. The frequency components of each block are calculated to separate the low-frequency and high-frequency components. For the watermark generator, according to the image-aware hashing algorithm, the perceptual robustness, discrimination sensitivity, and key dependence of the hash code are utilized. Since the goal is to detect deep fake face swaps by resolving the inconsistency between the restored watermark of the candidate image and the content matching watermark, it is necessary to ensure that the two different watermarks belong to different facial identities. The perceptual hashing framework of the fusion region recognition and enhanced deep feature network is used to extract the face-aware hash code of length l.

[0039] Step 64: Set the first watermark H FA Adjust the size to match the low-frequency component of the background area extracted in step 63, and add the first watermark H FA Embedded into low-frequency components; The first watermark H is adjusted by linear transformation and nearest neighbor interpolation (F.interpolate) FA Reshape it to a size that matches the low-frequency component and use the foreground and background masks to determine the embedding area. FA Embed the background area of ​​the image and keep the foreground area unchanged; then, embed the first watermark H FA The low-frequency component of is concatenated with the original high-frequency component.

[0040] Step 65: embed the first watermark H in step 64 FA The DCT coefficients are converted back to YUV space using inverse discrete cosine transform (IDCT) to obtain a time domain image, i.e., a YUV image. Step 66: Convert the YUV image in step 65 back to an RGB image to generate a encrypted image I En .

[0041] The first watermark H FA The YUV image is converted back to RGB color space, the color information is restored, and the final image is embedded with the first watermark H FA, and the RGB encrypted image I is visually identical to the original face image I En .

[0042] In the embodiment of the present invention, it includes: The present invention introduces separable image-aware hash codes to generate highly stable and unmodifiable face watermarks, and embeds the watermarks into the low-frequency components of the original face image background through an encoding-decoding network to ensure its invisibility and the robustness of the embedding process. In order to train a unified framework for original face image source detection and deep forgery active forensics, the present invention also designs a loss function based on multi-scale perceptual smoothing joint optimization, introducing L 2 Loss, perceptual loss (Learned Perceptual Image Patch Similarity, LPIPS) and total variation loss (Total Variation Loss, TV Loss), the present invention achieves comprehensive optimization of numerical accuracy, perceptual quality and image smoothness, and the loss function is designed as follows: Encrypted Image I En Visually similar to the original face image I, the loss function is , whose expression is: ; in, represents the training parameters, H FA is the first watermark of the original face image I; To ensure the confidentiality of the image I En The perceptual quality of the encrypted image I is similar to that of the original face image I. The perceptual loss is designed to measure the En Compared with the original face image I, the loss function is expressed as: ; in, Represents the feature map of the image at layer l; Represents the Euclidean distance between feature maps at the feature map position (h, w); h represents the height index of the feature map; w represents the width index of the feature map; Represents the height of the feature map of the lth layer; Indicates the width of the feature map of the lth layer; The total variation loss is used to encrypt the image I En Regularization is performed, and the expression of the total variation loss function is: ; Where i represents the pixel index of the image in the vertical direction, and j represents the pixel index of the image in the horizontal direction; Indicates a secret image; Represents the pixel value of the encrypted image at position (i+1,j); Represents the pixel value of the encrypted image at position (i, j); Represents the pixel value of the encrypted image at position (i, j+1); Total loss function The expression is: ; in, , and are the weights of the corresponding losses respectively.

[0043] Step 7: The encrypted image I in step 6 En The content-preserving operation module input to step 1 simulates the environment in which the image is transmitted in the network, and obtains the hash cross-correlation similarity through the discriminator trained in step 2.

[0044] In the embodiment of the present invention, the cross-correlation coefficient is quantized and mapped to a distribution of 0-1 to represent the similarity of two sequences. The closer the cross-correlation value is to 1, the more similar the sequences are, and the closer it is to 0, the more dissimilar the sequences are.

[0045] In the embodiment of the present invention, step 7 includes: Step 71: The encrypted image I En Input to the content retention operation module to simulate the image transmission environment in the network, and obtain the simulated encrypted image I CO ; Step 72: The encrypted image I simulated in step 71 is CO Input to the watermark generator G H , extract the simulated encrypted image I CO The facial features in the image are used to generate the simulated encrypted image I CO The corresponding face-aware hash code is converted into binary to obtain the corresponding second watermark ; Step 73: Extract the simulated encrypted image I through the trained decoder De CO The first watermark H FA ; and the first watermark H is transformed into FA and the second watermark The comparison is performed to obtain the similarity of the first hash cross-correlation.

[0046] In the first watermark H FA In the extraction process, the U-net structure is first used to downsample the input layer by layer with the first watermark H FARGB images are used to extract multi-scale features. These feature maps are then converted to the YUV color space to separate the brightness and chrominance information. The brightness (Y) component contains the main structural information of the image, while the chrominance U and V components contain color information. Next, the YUV feature map is subjected to a discrete cosine transform (DCT) to convert it into a frequency domain representation. The DCT transform can effectively separate the low-frequency and high-frequency components in the image, where the low-frequency component contains the main energy and structural information of the image. Then, the area to extract the watermark is determined by the background mask, and the watermark is extracted from the low-frequency component. The background mask is used to distinguish between the foreground and background in the image, so that the watermark information is extracted only in the background area. The decoder part of the U-net is used to upsample the low-frequency component feature map layer by layer to restore it to the same spatial size as the original input image. In this way, the decoder is able to gradually recover the embedded watermark information in the image. Finally, the extracted first watermark H is adjusted FA resize to restore it to its original size and format for comparison and verification. The decoder is designed with the same U-net structure as the encoder. During the model training process, in order to evaluate and improve the robustness of the watermark, the robustness detection module receives various distorted and noisy images (ICO) and uses the mean square error (MSE) to optimize the decoded information. In this way, the model is able to maintain high decoding accuracy in the face of different types of image distortion. In addition, in order to verify the performance of the model, a malicious distortion module is introduced. This module contains the Deepfake face swap model, which is used to generate forged images, that is, tampered images I MD The input image is processed through a Deepfake operation to generate a fake image to test the distinguishability of the model in the face of malicious attacks. Through this comprehensive testing method, the present invention aims to ensure that the proposed watermarking framework can show good robustness and reliability in various practical application scenarios.

[0047] As a coding method for representing the essential features of an image, the perceptual hash algorithm provides an effective way to evaluate the content consistency between images. Perceptual hash codes can not only authenticate the content-preserving tampering of an image, but also identify images with different contents. The core of this algorithm is that the hash code it generates can capture the global and local features of the image, so that the recognition accuracy remains high after the image undergoes various transformations (such as scaling, rotation, compression, etc.). By using the perceptual hash algorithm, content consistency verification can be performed in each link of image uploading, distribution, and use to ensure the authenticity and integrity of the image. In addition, this technology can also be used to detect and prevent illegal copying and distribution of images, thereby protecting the copyright and related rights of the image.

[0048] In this embodiment of the present invention, the similarity of the first hash correlation The expression is: ; in, Indicates the first watermark H FA With the second watermark The covariance of Indicates the first watermark H FA The standard deviation of each series in ; Indicates the second watermark The standard deviation of each series in .

[0049] In the embodiment of the present invention, step 7 includes: Step 74: The encrypted image I En Input to the content preservation operation module to simulate the environment in which the image is transmitted in the network, and obtain the tampered image I MD ; Step 75: The image I tampered with in step 74 MD Input to the watermark generator G H , extract the tampered image I MD The facial features in the image are used to generate the tampered image I MD The corresponding face-aware hash code is converted into binary to obtain the corresponding third watermark ; Step 76: Extract the tampered image I through the trained decoder De MD The first watermark H FA ; and the first watermark H is transformed into FA and the third watermark The comparison is performed to obtain the similarity of the second hash cross-correlation.

[0050] In this embodiment of the present invention, the similarity of the second hash correlation The expression is: ; in, Indicates the first watermark H FA With the third watermark The covariance of Indicates the first watermark H FA The standard deviation of each series in ; Indicates the third watermark The standard deviation of each series in .

[0051] In the embodiment of the present invention, the face of a person is maliciously tampered with by a criminal, and the tampered image I MD The same steps are used to input the decoder and watermark generator G H , extract the first watermark H FA and the tampered image I MDCorresponding third watermark Cross-correlation distribution, used to represent the third watermark of tampering with the face The first watermark H of the original face image FA If the watermark is not consistent, it means that the original face image has been maliciously tampered with. The extracted watermark is used to detect the source of the image, thereby protecting the copyright of the image.

[0052] In the embodiment of the present invention, Figure 2 As shown, V H represents the cross-correlation value, T represents the threshold; when the cross-correlation value V H When the cross-correlation value V is greater than the threshold T, it means that the sequence is the same and the image has not been tampered with. H When it is less than the threshold T, it means that the image has been maliciously tampered with.

[0053] In the embodiment of the present invention, through experiments, the discriminator uses error back propagation to correct the model parameters of the fully connected neural network based on the recognition error of the perceptual hash code. This process ensures that the model can effectively learn and adjust, thereby improving the recognition accuracy of the perceptual hash code. In the experiment, the hash correlation coefficient is used to calculate the similarity degree of the perceptual hash code of the image. For images with consistent content, the cross-correlation distribution result should be as close to 1 as possible. This means that the perceptual hash code can maintain a high similarity between the same images, thereby verifying the consistency of their content. On the contrary, for images with inconsistent content, the cross-correlation distribution result should be as close to 0 as possible. This ensures that the perceptual hash code can effectively distinguish between images with different contents, thereby achieving accurate identity authentication and copyright protection. Its goal is to distinguish between untampered images and tampered images. The loss function of the discriminator The design includes the following two aspects: ; The consistency probability is used to measure the consistency between the perceptual hash code extracted from the background and the perceptual hash code of the face.

[0054] ; in, Represents the probability that the discriminator considers the image to be a real image. is the discriminator's simulated encrypted image I CO The discriminant output.

[0055] ; in, and are the weights of the corresponding losses.

[0056] The expression of the overall loss function is: ; in , , , are the weights of the corresponding losses respectively.

[0057] In order to verify the effectiveness of the present invention, the widely used CelebA-HQ dataset was selected in the experiment. The dataset contains 30,000 image samples, and all images are resized to two resolutions of 128×128 and 256×256. For malicious tampering, SimSwap, GANimation and StarGAN models were selected in the experiment as typical Deepfakes, representing face swapping, face reproduction and attribute editing, respectively. Specifically, the target face for swapping is randomly selected from the evaluation set of CelebA, and the set of attribute editing includes gender (Male), straight hair (StraightHair), curly hair (CurlyHair) and black hair (BlackHair). These editing operations are all implemented based on the published pre-trained model to produce convincing Deepfakes. In addition, common content-preserving operations are considered in the experiment, as shown in Table 1. The operation does not include cropping, because cropping does not belong to the common distortion of the complete face, so it is not considered in this experiment. Through these operations, the effectiveness of the deep fake active forensics scheme based on separable perceptual hashing enhancement can be more comprehensively evaluated.

[0058] The goal of this experiment is to systematically test and verify the performance and reliability of the separable perceptual hashing enhancement technology in identifying and extracting different types of deep fake images. Through these experimental data and results, the effectiveness and robustness of the technology in practical applications can be evaluated. This experiment adopts a segmented training method, first using content-preserving operation (CPO) to train the model.

[0059] After sufficient iterations, the model is further trained using malicious modification (MD) to achieve face forgery detection. When the network is trained using content preserving operation (CPO), the weight parameters corresponding to each loss are =1, =5, =5, = 0.02; the learning rate lr is set to 0.0001 to ensure good watermark recovery performance under common operations. =5, =1, =1, =0.02, lr = 0.00001 to fine-tune the network to achieve a balance between the visual quality of the embedded watermarked image and the robustness of the watermark.

[0060] In the experiment, the cross-correlation value is used as an evaluation index to ensure the consistency of the algorithm performance evaluation and verify its effectiveness. The hash cross-correlation value can simultaneously reflect the influence of the numerical values ​​of different elements in the perceptual hash sequence and the weight of their positions, so it is more suitable for the perceptual hash code similarity evaluation and image content forensics of sample images based on large databases. The present invention uses the Receiver Operating Characteristic Curve (ROC) curve to evaluate the performance of the algorithm, and uses the ROC curve to analyze in various state-of-the-art schemes to provide a quantitative comparison of the performance of the evaluation algorithm. The proposed method is designed and implemented based on the PyTorch framework, and the random initialization of the network parameters is guaranteed. All experiments are implemented on a Dell T630 machine equipped with 128GB RAM and an RTX 3090 GPU equipped with 24GB VRAM.

[0061] This experiment further analyzes the visual quality of the watermarked image by evaluating the average Peak Signal-to-Noise Ratio (PSNR), Structural Similarity Index (SSIM), and Learned Perceptual Image Patch Similarity (LPIPS) between the original face image and the embedded watermarked image. To ensure the comprehensiveness and reliability of the results, the experiment tested the visual quality of the embedded image at two different resolutions. Table 2 shows the quantitative visual quality evaluation of the watermarked image with a resolution of 128×128 on CelebA-HQ.

[0062] Table 2 ; As shown in Table 2, the technical solution proposed in this paper is slightly better than CIN in performance, and significantly better than MBRS, SepMark, HiDDeN and ARWGAN in terms of PSNR and SSIM. This shows that the present invention effectively embeds watermark information while ensuring image quality. Although CIN performs well in visual quality, its reversible neural network has poor flexibility and its robustness decreases in the face of quantization noise. In addition, the cross-model universal adversarial watermark (CMUAWatermark) designed by Huang et al. performs well in enhancing the defense capabilities against various facial images and deep fake models. However, CMUAWatermark still has certain deficiencies in model generalization and visual quality. Specifically, although it has a defensive effect on a variety of images and models, in some cases, the embedded watermark may affect the visual quality of the image, and its adaptability to different models needs to be further improved. Overall, the active forensics technology proposed in this study enhances the embedding effect and anti-attack capability of the watermark while ensuring visual quality, showing performance superior to existing methods.

[0063] In the embodiment of the present invention, the combined effect of multiple watermarks is: Enhanced robustness and concealment: Multiple watermarks are embedded in different layers and regions, making it difficult for attackers to destroy all embedded information at the same time, thereby enhancing the robustness and concealment of watermarks. The embedded information is diverse and widely distributed, so attackers need to deal with multiple different types of embedded information at the same time, greatly increasing the difficulty of the attack.

[0064] Multi-level verification: During verification, multi-level verification can be performed based on different types of embedded information. Even if one of the watermarks is destroyed, the other watermarks can still provide strong verification evidence.

[0065] In the embodiment of the present invention, the robustness verification is: by passing the first watermark H FA and the second watermark For comparison, the discriminator calculates the cross-correlation coefficient between the two sequences to evaluate the watermark recovery performance of the separable perceptual hash-enhanced deep fake active forensics algorithm. FA and the third watermark For comparison, the discriminator calculates the cross-correlation coefficient between the two sequences to evaluate the discrimination ability of the deep fake active forensics model based on separable perceptual hashing enhancement on images with various contents.

[0066] The embodiments of the present invention, on the one hand, avoid the possibility of watermark being perceived and attacked by embedding the original face image perceptual hash code in the background in the form of a robust invisible watermark, so that the watermark can still be completely extracted after undergoing a content preservation operation; on the other hand, after the face image is maliciously tampered with, the generated maliciously tampered image face perceptual hash code is different from the embedded image. At this time, the embedded original face perceptual hash code can still be extracted, and by comparing the difference between the extracted original face perceptual hash and the tampered face hash code, it is possible to detect whether the image has been changed, and the uniqueness of the image face perceptual hash code ensures identity source detection.

[0067] The malicious use of deepfakes has triggered an urgent need to distinguish between real faces and forged faces. Although a variety of countermeasures for post-detection of deepfakes have been introduced, there is a clear lack of actions to take preventive measures against original faces before facing foreseen manipulation. In order to improve the active forensics system for deepfakes of faces, the technical solution provided by the present invention provides a unified framework for image source detection and active defense against deepfakes. For the first time, it is proposed to use separable image-aware hash codes for deepfakes of faces. The deep separable perceptual hash code technology is used to generate highly stable and non-modifiable face watermarks, which ensures the robustness of the watermark in content-preserving operations. The generated watermark is efficiently embedded into the background of the original face image through an encoding-decoding network, ensuring the invisibility of the watermark and further enhancing the accuracy and reliability of forensics. In addition, the present invention designs a loss function based on the joint optimization of multi-scale perceptual smoothness, which effectively improves the overall quality of the watermark embedding process by optimizing perceptual similarity, structural smoothness and embedding stability. The face-aware watermark can still exist before and after deep fakes, achieving reliable face source detection and judging whether the image has been tampered with. A large number of experiments have shown the effectiveness of the technical solution proposed in the present invention on classic deep fake strategies, demonstrating its potential and advantages in protecting personal privacy and preventing deep fakes.

[0068] Compared with the prior art, the present invention has the following beneficial effects: 1. This invention proposes for the first time to apply separable perceptual hash codes to active deep fake forensics. By utilizing the interaction between human faces and non-human faces, the encoder embeds the highly stable and non-modifiable face-perceptual hash codes generated by the deep separable perceptual hash code technology into the non-face area. The decoder can still extract the face-perceptual hash codes embedded in the non-face area after the face image has been tampered with, thereby achieving reliable source detection and providing a new solution for active deep fake forensics.

[0069] 2. By constructing an end-to-end deep separable perceptual hash code active forensics framework, the present invention performs robustness testing on the secret image under multiple content-preserving operations. The framework combines the multi-scale perceptual smooth joint optimization loss (MPSO) and achieves comprehensive optimization in terms of numerical accuracy, perceptual quality and image smoothness by jointly weighting the mean squared error loss (MSE), perceptual loss (LPIPS) and total variation loss (TV Loss). This method significantly improves the overall performance of image steganography and recovery algorithms, enhances the robustness of separable face perceptual hashing, and improves the visual quality of generated images. In addition, the framework retains the source information of the original credible image, and achieves the distinction between forged and original images without prior knowledge.

[0070] 3. For a variety of classic face deep fake schemes, a large number of experiments are conducted to verify the effectiveness of separable perceptual hash codes in active face forgery evidence collection, realize the trusted source detection of face images, and make reliable judgments on whether the original face has been maliciously tampered with. The results show that compared with the most advanced methods, the present invention has achieved satisfactory performance.

[0071] Each step of the embodiment of the present invention may be performed by an electronic device, which includes but is not limited to a mobile phone, a tablet computer, a portable PC, a desktop computer, etc.

[0072] In the technical solution provided by the present invention, the method includes constructing a deep fake active forensics model, obtaining a secret network, a decoder De, a content preservation operation module and a discriminator; wherein the secret network includes a watermark generator GH and an encoder; and obtaining a trained encoder, a decoder De and a discriminator; embedding identity information into an original face image I through the trained encoder to generate a face image I 1 ; Input the original face image I into the watermark generator G H , extract the features in the original face image I, generate the face-aware hash code corresponding to the original face image I; convert the face-aware hash code into binary to obtain the first watermark H FA ; The first watermark H is converted by the trained encoder FA Embedded into face image I 1 , get the encrypted image I En ; The encrypted image I EnThe input to the content preservation operation module simulates the environment in which the image is transmitted in the network, and the hash cross-correlation similarity is obtained through the trained discriminator. This method improves the active forensics system for deep fake faces, provides a unified framework for image source detection and deep fake active forensics, ensures the robustness of the watermark in the content preservation operation, and enhances the accuracy and reliability of forensics.

[0073] An embodiment of the present invention provides a computer-readable storage medium, which includes a stored program, wherein when the program is running, the electronic device where the computer-readable storage medium is located is controlled to execute the above-mentioned embodiment of the deep fake active forensics method based on separable perceptual hash enhancement.

[0074] Figure 4 A schematic diagram of an electronic device provided by an embodiment of the present invention, such as Figure 4 As shown, the electronic device 21 includes: a processor 211, a memory 212, and a computer program 213 stored in the memory 212 and executable on the processor 211. When the computer program 213 is executed by the processor 211, the deep fake active forensics method based on separable perceptual hash enhancement in the embodiment is implemented. To avoid repetition, they are not described one by one here.

[0075] The electronic device 21 includes, but is not limited to, a processor 211 and a memory 212. Those skilled in the art will appreciate that Figure 4 It is only an example of the electronic device 21 and does not constitute a limitation of the electronic device 21. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.

[0076] The processor 211 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0077] The memory 212 may be an internal storage unit of the electronic device 21, such as a hard disk or memory of the electronic device 21. The memory 212 may also be an external storage device of the electronic device 21, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card (FlashCard), etc. equipped on the electronic device 21. Further, the memory 212 may also include both an internal storage unit of the electronic device 21 and an external storage device. The memory 212 is used to store computer programs and other programs and data required by network devices. The memory 212 may also be used to temporarily store data that has been output or is to be output.

[0078] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0079] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A deep fake active forensics method based on separable perceptual hash enhancement, It is characterized in that The method comprises: Step 1: Build a deep forgery active forensics model to obtain the secret network, decoder De, content preservation operation module and discriminator; the secret network includes a watermark generator G H , encoder; Step 2: Train the encoder, decoder and discriminator in step 1 to obtain the trained encoder, decoder De and discriminator; Step 3: Use the encoder trained in step 2 to embed the identity information into the original face image I to generate the face image I 1 ; Step 4: Annotate the background and foreground of the original face image I, and input the original face image I into the watermark generator G in step 1. H , extract the facial features in the original face image I, and generate a face-aware hash code corresponding to the original face image I; Step 5: Convert the face-aware hash code in step 4 into binary to obtain the first watermark H FA ; Step 6: Use the encoder trained in step 2 to convert the first watermark H in step 5 FA The face image I embedded in step 3 1 , get the encrypted image I En ; Step 7: The encrypted image I in step 6 En The content-preserving operation module input to step 1 simulates the environment in which the image is transmitted in the network, and obtains the hash cross-correlation similarity through the discriminator trained in step 2.

2. The method according to claim 1, It is characterized in that The formula for converting to binary in step 5 is: ; in, Represents the i-th binary number in the hash sequence; ; m represents the length of the feature coding sequence, Represents the i-th real feature code of the output.

3. The method according to claim 1, It is characterized in that Step 6 includes: Step 61: Use the trained encoder to transform the face image I 1 Convert the RGB image to a YUV image, where Y represents brightness information and U and V represent chrominance information; Step 62: for each block space of the YUV image in step 61, a discrete cosine transform (DCT) is used to transform the image from the spatial domain to the frequency domain to extract frequency domain information; Step 63: extracting the background area low-frequency component from the DCT-transformed YUV image in step 62 according to the information shared by the watermark generator; Step 64: Set the first watermark H FA Adjust the size to match the low-frequency component of the background area extracted in step 63, and add the first watermark H FA Embedded into low-frequency components; Step 65: embed the first watermark H in step 64 FA The DCT coefficients are converted back to YUV space using inverse discrete cosine transform (IDCT) to obtain a time domain image, i.e., a YUV image. Step 66: Convert the YUV image in step 65 back to an RGB image to generate a encrypted image I En .

4. The method according to claim 3, It is characterized in that include: Encrypted Image I En Visually similar to the original face image I, the loss function is , whose expression is: ; in, represents the training parameters, H FA is the first watermark of the original face image I; To ensure the confidentiality of the image I En The perceptual quality of the encrypted image I is similar to that of the original face image I. The perceptual loss is designed to measure the En Compared with the original face image I, the loss function is expressed as: ; in, Represents the feature map of the image at layer l; Represents the Euclidean distance between feature maps at the feature map position (h, w); h represents the height index of the feature map; w represents the width index of the feature map; Represents the height of the feature map of the lth layer; Indicates the width of the feature map of the lth layer; The total variation loss is used to encrypt the image I En Regularization is performed, and the expression of the total variation loss function is: ; Where i represents the pixel index of the image in the vertical direction, and j represents the pixel index of the image in the horizontal direction; Indicates a secret image; Represents the pixel value of the encrypted image at position (i+1,j); Represents the pixel value of the encrypted image at position (i, j); Represents the pixel value of the encrypted image at position (i, j+1); Total loss function The expression is: ; in, , and are the weights of the corresponding losses.

5. The method according to claim 1, It is characterized in that Step 7 includes: Step 71: The encrypted image I En Input to the content retention operation module to simulate the image transmission environment in the network, and obtain the simulated encrypted image I CO ; Step 72: The encrypted image I simulated in step 71 is CO Input to the watermark generator G H , extract the simulated encrypted image I CO The facial features in the image are used to generate the simulated encrypted image I CO The corresponding face-aware hash code is converted into binary to obtain the corresponding second watermark ; Step 73: Extract the simulated encrypted image I through the trained decoder De CO The first watermark H FA ; and the first watermark H is transformed into FA and the second watermark The comparison is performed to obtain the similarity of the first hash cross-correlation.

6. The method according to claim 1, It is characterized in that Step 7 includes: Step 74: The encrypted image I En Input to the content preservation operation module to simulate the environment in which the image is transmitted in the network, and obtain the tampered image I MD ; Step 75: The image I tampered with in step 74 MD Input to the watermark generator G H , extract the tampered image I MD The facial features in the image are used to generate the tampered image I MD The corresponding face-aware hash code is converted into binary to obtain the corresponding third watermark ; Step 76: Extract the tampered image I through the trained decoder De MD The first watermark H FA ; and the first watermark H is transformed into FA and the third watermark The comparison is performed to obtain the similarity of the second hash cross-correlation.

7. The method according to claim 5, It is characterized in that First hash cross-correlation similarity The expression is: ; in, Indicates the first watermark H FA With the second watermark The covariance of Indicates the first watermark H FA The standard deviation of each series in ; Indicates the second watermark The standard deviation of each series in .

8. The method according to claim 6, It is characterized in that Second hash cross-correlation similarity The expression is: ; in, Indicates the first watermark H FA With the third watermark The covariance of Indicates the first watermark H FA The standard deviation of each series in ; Indicates the third watermark The standard deviation of each series in .

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored program, wherein when the program is run, the electronic device where the computer-readable storage medium is located is controlled to execute the deep fake active forensics method based on separable perceptual hash enhancement as described in any one of claims 1 to 8.

10. An electronic device, It is characterized in that include: one or more processors; Memory; And one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the electronic device, enable the device to perform the deep fake active forensics method based on separable perceptual hash enhancement as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Anti-light face recognition method based on transform domain robust watermark under big data

    CN103984932A

  • Deep forgery active detection method based on face features and associated watermarks thereof

    CN117975578A

  • Deep face forgery detection method and system based on active perceptual hash watermark

    CN118212698A

  • Face deep counterfeiting evidence obtaining method, system and device and storage medium

    CN118279995A

  • Deepfake image detection method and system based on active defense

    CN118430076A

Cited By

  • Risk content identification method based on multi-modal large model

    CN119339419A

  • A Risk Content Identification Method Based on Multimodal Large Model

    CN119339419B

  • Deep counterfeiting active detection method based on block chain and robust watermark enhancement

    CN119494764A

  • An Active Detection Method for Deepfakes Based on Blockchain and Robust Watermark Enhancement

    CN119494764B

  • Identity authentication method and device based on face feature hash

    CN119720162A