Migratable image confrontation steganography method based on neuron attribution
Destroy the key features of steganalyzers through neuron attribution and integral gradient methods, improve the transferability of adversarial steganography, and solve the performance and security shortcomings of adversarial steganography methods in the existing technology on non-target steganalyzers. problem, achieving efficient anti-detection capabilities in blind steganalysis scenarios.
Patent Information
- Application Number
- CN202410845574.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-29
AI Technical Summary
Existing adversarial steganography methods have deficiencies in portability and cannot effectively deceive non-target steganalyzers, resulting in poor performance and security in blind steganalysis scenarios, and facing potential security risks.
A transferable image adversarial steganography method based on neuron attribution is adopted. By destroying key features in different steganalyzers, the integral gradient method is used to calculate the attribution results of neurons, construct the overall loss and gradient map, and perform carrier enhancement, Distortion adjustment and encryption post-processing improve the transferability against steganography.
It effectively improves the transferability of anti-steganography, making image steganography more resistant to detection in black-box scenarios, and meets the security requirements of information steganography and extraction during communication transmission.
Smart Images

Figure CN118869889A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of adversarial steganography, and in particular is a transferable image adversarial steganography method based on neuron attribution. Background Art
[0002] Image steganography, as a technology that hides secret messages in images without attracting the attention of the adversary, has attracted widespread attention in the academic community in recent years. We usually call clean images without secret messages carrier images, and images containing secret messages are called secret images. Currently, the most effective steganography framework is the distortion minimization framework, which formalizes the steganography problem into a source coding problem with fidelity constraints: first, a stego-distortion function is designed and a suitable distortion is assigned to each pixel or frequency domain coefficient, and then the message is embedded using stego-coding under the premise of minimizing the distortion. Because STC and SPC codes have achieved performance close to the rate-distortion theory, current steganography research is devoted to designing a suitable stego-distortion function. At present, under the distortion minimization framework, researchers have proposed many effective steganography methods. In spatial domain image steganography, WOW and SUNIWARD use some directional high-pass filters to predict image content to obtain directional residuals, and then assign higher steganalytic distortion to areas where pixel values are more easily predicted; HILL uses a high-pass filter to locate the position of predictable pixels, and then uses two low-pass filters to cluster pixels with lower steganalytic distortion; MiPOD uses a multivariate Gaussian model to predict the variance of local pixels and assigns lower steganalytic distortion to pixels with higher variance. In JPEG domain image steganography, UED diffuses the embedding modification uniformly to the quantized discrete cosine transform (DCT) coefficients; UERD is an improved version of UED that implements generalized uniform diffusion; JUNIWARD is the version of SUNIWARD on JPEG domain images.
[0003] As the other party in the game, steganalysis is to detect whether there is a secret message in the image. Early steganalysis methods extract pre-designed manual features from the image, and then use machine learning methods to classify them to determine whether the image contains a secret message, such as SRM, DCTR, GFR, etc. These methods first use some high-pass filters to calculate the image residual, and then obtain the steganalysis statistical features based on the residuals, and finally use an integrated classifier to classify these features. In recent years, with the rapid development of deep learning, a number of deep learning steganalysis methods based on convolutional neural networks (CNN) have emerged, such as SRNet, SiaStegNet, CovNet, etc. The combination with deep learning makes it no longer necessary to manually design features for such methods, but can use CNN to automatically complete feature extraction and classification, thereby effectively improving the accuracy of steganalysis, but also posing greater challenges to the steganography task.
[0004] In the field of computer vision, many studies have pointed out that deep learning models are very vulnerable to adversarial attacks, which can lead to errors in classification results. Inspired by this, researchers have proposed some adversarial methods to improve the ability of steganography to deceive deep learning steganalysis methods. Among them, the ADS and SPS-ENH methods attempt to construct an enhanced carrier based on the adversarial method, and then embed messages on the enhanced carrier; the ADV-EMB and AEN methods iteratively adjust the initial steganalysis distortion according to the gradient returned by the steganalyzer, and then embed the secret message according to the adjusted steganalysis distortion; the Min-max method iteratively selects the optimal steganalysis image according to the maximum and minimum strategy; USGS uses traditional adversarial steganography methods to generate multiple steganalysis images and then selects the optimal one based on statistical features; JS-IAE integrates the distortion modification information in the previous iterations to guide the update of the current steganalysis distortion; and some other methods such as Backpack and AMP use the idea of adversarial samples to deceive deep learning steganalyzers and improve steganalysis security.
[0005] However, in practical applications, we often cannot assume that steganalysts will use a specific steganalyzer for detection. Therefore, adversarial steganography methods need to have good transferability, that is, they can well deceive various unknown steganalyzers that are different from the attack target classifiers. Even though the various existing adversarial steganography methods can achieve a high attack success rate on the target steganalyzer, they do not consider how to improve the transferability of adversarial steganography so as to deceive non-target steganalyzers. In practical applications, these adversarial steganography methods with poor transferability often cannot achieve good performance and steganalysis security in blind steganalysis scenarios, which makes steganalyzers face the security risks of being discovered to a great extent. Summary of the invention
[0006] The present invention aims to address the deficiencies of the above-mentioned prior art and proposes a transferable image adversarial steganography method based on neuron attribution, in order to improve the portability of adversarial steganography by destroying the key features in different steganalyzers, thereby improving the anti-detection ability of image steganography in black box scenarios, so as to meet the security requirements of information steganography and extraction during communication transmission.
[0007] In order to achieve the above-mentioned purpose, the present invention adopts the following technical scheme:
[0008] The invention discloses a method for resisting steganography of a transferable image based on neuron attribution, which comprises the following steps:
[0009] Step 1: Select an original grayscale carrier image c = {c1, c2, ..., c i ,…,c n}, where c i represents the i-th pixel of the original grayscale carrier image c, and n represents the total number of pixels;
[0010] Step 2, determine the target steganalysis network F to be attacked and the target layer L to be attacked in F;
[0011] Step 3: Calculate the initial distortion of c using the basic distortion function in, represents the i-th pixel c of c i The distortion after adding one, represents the i-th pixel c of c i The distortion after minus one;
[0012] Step 4: embed the secret message into c according to the initial distortion ρ to obtain the secret image y; input the secret image y into the target steganalysis network F for processing to obtain a classification result. If the classification result is the carrier category, y is used as the final secret image s and the process ends; otherwise, it indicates that the classification result is the secret category and executes step 5;
[0013] Step 5: Use the integral gradient method to obtain the attribution result of the jth neuron in the target layer L at the tth iteration
[0014] Step 6: Construct the overall loss L of the tth iteration based on key feature destruction t and its gradient map G t ;
[0015] Step 7: If carrier enhancement is performed on c, then execute step 7.1; if distortion adjustment is performed on ρ, then execute step 7.2; if y is performed ont To perform post-encryption processing, execute step 7.3;
[0016] Step 7.1: Using the gradient map G t Carrier enhancement for c:
[0017] Step 7.1.1, initialize a mask matrix mask = {mask1, mask2, ..., mask i ,...,mask n}=0, where mask i Represents the i-th element of mask;
[0018] Step 7.1.2: Calculate the updated gradient graph G′ at the tth iteration t =G t ·(1-mask), and G′ t The k elements with the largest absolute values in the mask are assigned a value of 1.
[0019] Step 7.1.3: Construct the enhanced vector e for the t+1th iteration t+1 =e t +G' t , where e t represents the enhanced vector of the tth iteration. When t=1, let e t =c;
[0020] Step 7.1.4, test the enhanced carrier:
[0021] Embed the secret message into the enhanced vector e of the t+1th iteration according to the initial distortion ρ t+1 In the t+1th iteration, we get the encrypted image y t+1 ;
[0022] y t+1 Input it into F for processing, and obtain the classification result at the t+1th iteration. If the classification result at the t+1th iteration is the carrier category, then y t+1 As the final secret image s, and end the process. Otherwise, assign t+1 to t, and return to step 5 to step 7.1 until t reaches the maximum number of iterations, and use the secret image y in step 4 as the final secret image s, and end the process.
[0023] Step 7.2: Using the gradient map G t Distortion adjustment for ρ:
[0024] Step 7.2.1: Use equations (11) and (12) to get the i-th pixel c in c: i The distortion after adding one at the tth iteration and the distortion minus one at the tth iteration
[0025]
[0026]
[0027] In formula (11) and formula (12), Represents G t The i-th element of t is the distortion adjustment factor at the tth iteration;
[0028] Step 7.2.3, according to and Embed the secret message into the carrier image c and obtain the intermediate secret image z at the tth iteration. t ;
[0029] Step 7.2.4: z t Input it into F for processing to obtain the classification result of the tth iteration. If the classification result of the tth iteration is 0, z t As the final encrypted image s, the process ends, otherwise α t +Δ is assigned to α t After that, return to step 5 to step 7.2 and execute until the maximum number of iterations is reached, and then use the secret image y in step 4 as the final secret image s, where Δ represents the step length, and end the process;
[0030] Step 7.3: Using the gradient map G t For t Perform post-encryption processing:
[0031] Step 7.3.1: Determine the kth region R to be modified in c according to formula (14): k :
[0032]
[0033] In formula (14), p k is the kth gradient threshold parameter, q k is the kth distortion threshold parameter, Indicates the p with the largest absolute value of gradient in c k % of pixels, Bottom ρ (q k ) represents the q with the smallest distortion in c k % of pixels; k∈[1,K], K represents the total number of threshold parameters;
[0034] Step 7.3.3: Calculate the kth region to be modified R according to equations (15) and (16):k Adjusted distortion:
[0035]
[0036]
[0037] In formula (15) and formula (16), Represents G t The i-th element of and Respectively expressed in p k and q k The i-th pixel c in the next c i The distortion after adding one and the distortion after subtracting one, γ represents the distortion adjustment factor;
[0038] Step 7.3.4: embed the secret message into the carrier image c according to the adjusted distortion, obtain K candidate secret images, and form K+1 candidate secret images together with the secret image y;
[0039] Step 7.3.5, input all candidate secret images into F for processing, and filter out candidate secret images whose classification results are carrier categories, thereby obtaining V secret images to be compared;
[0040] Step 7.3.6: Use high pass filter H c The transpose of c and c is processed respectively, and the filtered carrier image is obtained accordingly. and filter the transposed image
[0041] Step 7.3.7: Use the high-pass filter H c Calculate the carrier image c and V encrypted images to be compared respectively, and get the residual r of c c and V images to be compared with the residual {r1,r2,...,r v ,...,r V}, where r v represents the residual of the vth encrypted image to be compared;
[0042] Step 7.3.8. Calculate r v The residual distance d between the carrier image c v =||r v -r c ||1, so that the encrypted image to be compared with the smallest residual distance is selected as the final encrypted image s.
[0043] The feature of the transferable image anti-steganography method based on neuron attribution described in the present invention is that the step 5 includes the following steps:
[0044] Step 5.1, use y t represents the encrypted image of the tth iteration, and y t All pixel values of y are reduced by one to form the first baseline image y′ t , y t All pixel values of y are added by 1 to form the second baseline image y″ t ;
[0045] Step 5.2: Connect y′ t and y″ t The line segment containing the endpoint is divided into M-1 equal parts, and M endpoints are obtained. The image corresponding to the mth endpoint is recorded as Thus, we get M images of the tth iteration.
[0046] Step 5.3: Input into the target steganalysis network F, and after being processed by the target layer L, the intermediate result of the tth iteration of L output is obtained. in, Represents the jth neuron pair in the target layer L After processing, the intermediate result of the tth iteration is output, where N represents the number of neurons in the target layer L;
[0047] Step 5.4: Calculate the attribution result of the jth neuron in the target layer L at the tth iteration according to formula (1):
[0048]
[0049] In formula (1), Represents the jth neuron pair y in the target layer L t After processing, the intermediate result of the tth iteration is output;
[0050] The step 6 comprises the following steps:
[0051] Step 6.1: Calculate the attribution loss of the tth iteration according to formula (2):
[0052]
[0053] In formula (2), T represents the selected threshold parameter; express The absolute value of
[0054] Step 6.3: Calculate the feature loss of the tth iteration according to formula (3)
[0055]
[0056] In formula (3), A t Represents the matrix composed of the attribution results of all neurons in the target layer L at the tth iteration, Represents all neurons in the target layer L for y t After processing, the output is a matrix composed of the intermediate results of the tth iteration. Sum represents the sum of all elements of the matrix. Represents element-wise multiplication;
[0057] Step 6.4: Calculate the overall loss L of the tth iteration according to formula (4): t :
[0058]
[0059] In formula (4), λ is the weight parameter;
[0060] Step 6.5: Calculate the gradient graph G of the tth iteration according to formula (5): t :
[0061]
[0062] The electronic device of the present invention includes a memory and a processor, wherein the memory is used to store a program that supports the processor to execute the migratable image anti-steganography method, and the processor is configured to execute the program stored in the memory.
[0063] The present invention provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and the computer program executes the steps of the migratable image anti-steganography method when the computer program is executed by a processor.
[0064] Compared with the prior art, the present invention has the following beneficial effects:
[0065] 1. The present invention adopts the integral gradient attribution method, which calculates the attribution of the output of the steganalysis network to the output of the intermediate layer neurons, characterizes the influence of different neurons on the decision of the steganalysis network, and ensures the criticality of the screening features.
[0066] 2. The present invention makes full use of the selected important neuron attribution results and intermediate layer output features, so that the steganalysis modification can occur in the common dependent areas when different steganalysis models are classified, thereby effectively improving the portability of adversarial steganography and making adversarial steganography more adaptable to the black box requirements of the real world.
[0067] 3. The present invention suppresses positive attribution features and amplifies negative attribution features by optimizing the target loss function, so that the present invention can be closely integrated with the three existing adversarial steganography frameworks, effectively improving the flexibility and usability of the present method. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 A schematic diagram of the transferable adversarial steganography method based on neuron attribution provided by the present invention. DETAILED DESCRIPTION
[0069] In this embodiment, see Figure 1 In order to solve the problem of poor transferability of current adversarial steganography methods and combine them with existing adversarial steganography methods to adapt them to black-box scenarios in the real world, a transferable image adversarial steganography method based on neuron attribution is proposed. The neuron attribution characterizes the key features of the intermediate layer that different steganalyzers rely on when classifying images. Then, the intermediate layer of the target steganalysis network is attacked to destroy these key features to improve the transferability of adversarial steganography. Specifically, the method includes the following steps:
[0070] Step 1: Select an original grayscale carrier image c = {c1, c2, ..., c i ,…,c n}, where c i represents the i-th pixel of the original grayscale carrier image c, and n represents the total number of pixels;
[0071] Step 2, determine the target steganalysis network F to be attacked and the target layer L to be attacked in F;
[0072] Step 3: Calculate the initial distortion of c using the basic distortion function in, represents the i-th pixel c of c i The distortion after adding one, represents the i-th pixel c of c i The distortion after minus one; in a specific embodiment, SUNIWARD is used as the basic distortion function.
[0073] Step 4: According to the initial distortion ρ, embed the secret message into c to obtain the secret image y; input the secret image y into the target steganalysis network F for processing to obtain the classification result. If the classification result is the carrier category, y is used as the final secret image s and the process ends. Otherwise, it means that the classification result is the secret category and execute step 5.
[0074] Step 5: Use the integral gradient method to obtain the neuron attribution result of the target layer L:
[0075] Step 5.1, use y trepresents the encrypted image of the tth iteration, and y t All pixel values of y are reduced by one to form the first baseline image y′ t , y t All pixel values of y are added by 1 to form the second baseline image y″ t ;
[0076] Step 5.2: Connect y′ t and y″ t The line segment containing the endpoint is divided into M-1 equal parts, and M endpoints are obtained. The image corresponding to the mth endpoint is recorded as Thus, we get M images of the tth iteration.
[0077] This segmentation method covers the entire space from all pixels of the secret image minus one to all pixels of the secret image plus one, which can effectively take into account the impact of all potential steganographic modifications.
[0078] Step 5.3: Input into the target steganalysis network F, and after being processed by the target layer L, the intermediate result of the tth iteration of L output is obtained. in, Represents the jth neuron pair in the target layer L After processing, the intermediate result of the tth iteration is output, where N represents the number of neurons in the target layer L;
[0079] Step 5.4: Calculate the attribution result of the jth neuron in the target layer L at the tth iteration according to formula (1):
[0080]
[0081] In formula (1), Represents the jth neuron pair y in the target layer L t After processing, the intermediate result of the tth iteration is output;
[0082] Step 6: Construct the overall loss based on the destruction of key features:
[0083] Step 6.1: Calculate the attribution loss of the tth iteration according to formula (2):
[0084]
[0085] In formula (2), T represents the selected threshold parameter; express The attribution loss is to constrain the attribution results of all neurons, thereby misleading the target steganalysis model to make wrong judgments.
[0086] Step 6.3: Calculate the feature loss of the tth iteration according to formula (3)
[0087]
[0088] In formula (3), A t Represents the matrix composed of the attribution results of all neurons in the target layer L at the tth iteration, Represents all neurons in the target layer L for y t After processing, the output is a matrix composed of the intermediate results of the tth iteration. Sum represents the sum of all elements of the matrix. It represents element-by-element multiplication. Feature loss uses the attribution results to weight the relevant features, thereby suppressing positive attribution features, amplifying negative attribution features, and misleading the target steganalysis model to make wrong judgments.
[0089] Step 6.4: Calculate the overall loss L of the tth iteration according to formula (4): t :
[0090]
[0091] In formula (4), λ is a weight parameter; in a specific embodiment, λ=1.
[0092] Step 6.5: Calculate the gradient graph G of the tth iteration according to formula (5): t :
[0093]
[0094] Step 7: If carrier enhancement is performed on c, then execute step 7.1; if distortion adjustment is performed on ρ, then execute step 7.2; if y is performed on t To perform post-encryption processing, execute step 7.3;
[0095] Step 7.1: Using the gradient map G t Carrier enhancement for c:
[0096] Step 7.1.1, initialize a mask matrix mask = {mask1, mask2, ..., mask i ,...,mask n}=0, where mask i Represents the i-th element of mask;
[0097] Step 7.1.2: Calculate the updated gradient graph G′ at the tth iteration t =G t ·(1-mask), and G′ tThe elements in the mask corresponding to the k elements with the largest absolute values are assigned a value of 1; the mask is modified to prevent the same element in the carrier image from being modified multiple times, which affects security;
[0098] Step 7.1.3: Construct the enhanced vector e for the t+1th iteration t+1 =e t +G' t , where e t represents the enhanced vector of the tth iteration. When t=1, let e t =c;
[0099] Step 7.1.4, test the enhanced carrier:
[0100] Embed the secret message into the enhanced vector e of the t+1th iteration according to the initial distortion ρ t+1 In the t+1th iteration, we get the encrypted image y t+1 ;
[0101] y t+1 Input it into F for processing, and obtain the classification result at the t+1th iteration. If the classification result at the t+1th iteration is the carrier category, then y t+1 As the final secret image s, and end the process. Otherwise, after assigning t+1 to t, return to step 5 to step 7.1 and execute until t reaches the maximum number of iterations. Then, take the secret image y in step 4 as the final secret image s and end the process.
[0102] Step 7.2: Using the gradient map G t Distortion adjustment for ρ:
[0103] Step 7.2.1: Use equations (11) and (12) to get the i-th pixel c in c: i The distortion after adding one at the tth iteration and the distortion minus one at the tth iteration
[0104]
[0105]
[0106] In formula (11) and formula (12), Represents G t The i-th element of t is the distortion adjustment factor at the tth iteration;
[0107] Step 7.2.3, according to and Embed the secret message into the carrier image c and obtain the intermediate secret image z at the tth iteration. t ;
[0108] Step 7.2.4: z t Input it into F for processing to obtain the classification result of the tth iteration. If the classification result of the tth iteration is 0, z t As the final encrypted image s, the process ends, otherwise α t +Δ is assigned to α t Then, return to step 5 to step 7.2 and execute until the maximum number of iterations is reached, and use the secret image y in step 4 as the final secret image s, where Δ represents the step size, and end the process; in the specific embodiment, Δ=0.1.
[0109] Step 7.3: Using the gradient map G t For t Perform post-encryption processing:
[0110] Step 7.3.1: Determine the kth region R to be modified in c according to formula (14): k :
[0111]
[0112] In formula (14), p k is the kth gradient threshold parameter, q k is the kth distortion threshold parameter, Indicates the p with the largest absolute value of gradient in c k % of pixels, Bottom ρ (q k ) represents the q with the smallest distortion in c k % of pixels; k∈[1,K], K represents the total number of threshold parameters; in a specific embodiment, K=100.
[0113] Step 7.3.3: Calculate the kth region to be modified R according to equations (15) and (16): k Adjusted distortion:
[0114]
[0115]
[0116] In formula (15) and formula (16), Represents G t The i-th element of and Respectively expressed in p k and q k The i-th pixel c in the next c iThe distortion after adding one and the distortion after subtracting one, γ represents the distortion adjustment factor; in a specific embodiment, γ=2.
[0117] Step 7.3.4: embed the secret message into the carrier image c according to the adjusted distortion, obtain K candidate secret images, and form K+1 candidate secret images together with the secret image y;
[0118] Step 7.3.5, input all candidate secret images into F for processing, and filter out candidate secret images whose classification results are carrier categories, thereby obtaining V secret images to be compared;
[0119] Step 7.3.6: Use high pass filter H c The transpose of c and c is processed respectively, and the filtered carrier image is obtained accordingly. and filter the transposed image
[0120] Step 7.3.7: Use the high-pass filter H c Calculate the carrier image c and V encrypted images to be compared respectively, and get the residual r of c c and V images to be compared with the residual {r1,r2,...,r v ,...,r V}, where r v represents the residual of the vth encrypted image to be compared;
[0121] Step 7.3.8. Calculate r v The residual distance d between the carrier image c v =||r v -r c ||1, so that the encrypted image to be compared with the smallest residual distance is selected as the final encrypted image s.
[0122] In this embodiment, an electronic device includes a memory and a processor, wherein the memory is used to store a program that supports the processor to execute the above method, and the processor is configured to execute the program stored in the memory.
[0123] In this embodiment, a computer-readable storage medium stores a computer program on the computer-readable storage medium, and the computer program executes the steps of the above method when executed by a processor.
Claims
1. A transferable image adversarial steganography method based on neuron attribution, characterized in that: The steps include: Step 1: Select an original grayscale carrier image c = {c1, c2, ..., c i ,…,c n }, where c i represents the i-th pixel of the original grayscale carrier image c, and n represents the total number of pixels; Step 2, determine the target steganalysis network F to be attacked and the target layer L to be attacked in F; Step 3: Calculate the initial distortion of c using the basic distortion function in, represents the i-th pixel c of c i The distortion after adding one, represents the i-th pixel c of c i The distortion after minus one; Step 4: embed the secret message into c according to the initial distortion ρ to obtain the secret image y; input the secret image y into the target steganalysis network F for processing to obtain a classification result. If the classification result is the carrier category, y is used as the final secret image s and the process ends; otherwise, it indicates that the classification result is the secret category and executes step 5; Step 5: Use the integral gradient method to obtain the attribution result of the jth neuron in the target layer L at the tth iteration Step 6: Construct the overall loss L of the tth iteration based on key feature destruction t and its gradient map G t ; Step 7: If carrier enhancement is performed on c, then execute step 7.1; if distortion adjustment is performed on ρ, then execute step 7.2; if y is performed on t To perform post-encryption processing, execute step 7.3; Step 7.1: Using the gradient map G t Carrier enhancement for c: Step 7.1.1, initialize a mask matrix mask = {mask1, mask2, ..., mask i ,...,mask n }=0, where mask i Represents the i-th element of mask; Step 7.1.2: Calculate the updated gradient graph G′ at the tth iteration t =G t ·(1-mask), and G′ t The k elements with the largest absolute values in the mask are assigned a value of 1. Step 7.1.3: Construct the enhanced vector e for the t+1th iteration t+1 =e t +G' t , where e t represents the enhanced vector of the tth iteration. When t=1, let e t =c; Step 7.1.4, test the enhanced carrier: Embed the secret message into the enhanced vector e of the t+1th iteration according to the initial distortion ρ t+1 In the t+1th iteration, we get the encrypted image y t+1 ; y t+1 Input it into F for processing, and obtain the classification result at the t+1th iteration. If the classification result at the t+1th iteration is the carrier category, then y t+1 As the final secret image s, and end the process. Otherwise, assign t+1 to t, and return to step 5 to step 7.1 until t reaches the maximum number of iterations, and use the secret image y in step 4 as the final secret image s, and end the process. Step 7.2: Using the gradient map G t Distortion adjustment for ρ: Step 7.2.1: Use equations (11) and (12) to get the i-th pixel c in c: i The distortion after adding one at the tth iteration and the distortion minus one at the tth iteration In formula (11) and formula (12), g t i Represents G t The i-th element of t is the distortion adjustment factor at the tth iteration; Step 7.2.3, according to and Embed the secret message into the carrier image c and obtain the intermediate secret image z at the tth iteration. t ; Step 7.2.4: z t Input it into F for processing to obtain the classification result of the tth iteration. If the classification result of the tth iteration is 0, z t As the final encrypted image s, the process ends, otherwise α t +Δ is assigned to α t After that, return to step 5 to step 7.2 and execute until the maximum number of iterations is reached, and then use the secret image y in step 4 as the final secret image s, where Δ represents the step length, and end the process; Step 7.3: Using the gradient map G t For t Perform post-encryption processing: Step 7.3.1: Determine the kth region R to be modified in c according to formula (14): k : R k ={c i |c i ∈Top |Gt| (p k )∩Bottom ρ (q k )} (14) In formula (14), p k is the kth gradient threshold parameter, q k is the kth distortion threshold parameter, Indicates the p with the largest absolute value of gradient in c k % of pixels, Bottom ρ (q k ) represents the q with the smallest distortion in c k % of pixels; k∈[1,K], K represents the total number of threshold parameters; Step 7.3.3: Calculate the kth region to be modified R according to equations (15) and (16): k Adjusted distortion: In formula (15) and formula (16), g t i Represents G t The i-th element of and Respectively expressed in p k and q k The i-th pixel c in the next c i The distortion after adding one and the distortion after subtracting one, γ represents the distortion adjustment factor; Step 7.3.4: embed the secret message into the carrier image c according to the adjusted distortion, obtain K candidate secret images, and form K+1 candidate secret images together with the secret image y; Step 7.3.5, input all candidate secret images into F for processing, and filter out candidate secret images whose classification results are carrier categories, thereby obtaining V secret images to be compared; Step 7.3.6: Use high pass filter H c The transpose of c and c is processed respectively, and the filtered carrier image is obtained accordingly. and filter the transposed image Step 7.3.7: Use the high-pass filter H c Calculate the carrier image c and V encrypted images to be compared respectively, and get the residual r of c c and V images to be compared with the residual {r1,r2,...,r v ,...,r V }, where r v represents the residual of the vth encrypted image to be compared; Step 7.3.
8. Calculate r v The residual distance d between the carrier image c v =||r v -r c ||1, so that the encrypted image to be compared with the smallest residual distance is selected as the final encrypted image s.
2. According to the method of claim 1, the transferable image adversarial steganography method based on neuron attribution is characterized in that: The step 5 comprises the following steps: Step 5.1, use y t represents the encrypted image of the tth iteration, and y t All pixel values of y are reduced by one to form the first baseline image y′ t , y t All pixel values of y are added by 1 to form the second baseline image y″ t ; Step 5.2: Connect y′ t and y″ t The line segment containing the endpoint is divided into M-1 equal parts, and M endpoints are obtained. The image corresponding to the mth endpoint is recorded as Thus, we get M images of the tth iteration. Step 5.3: Input into the target steganalysis network F, and after being processed by the target layer L, the intermediate result of the tth iteration of L output is obtained. in, Represents the jth neuron pair in the target layer L After processing, the intermediate result of the tth iteration is output, where N represents the number of neurons in the target layer L; Step 5.4: Calculate the attribution result of the jth neuron in the target layer L at the tth iteration according to formula (1): In formula (1), Represents the jth neuron pair y in the target layer L t After processing, the intermediate result of the tth iteration is output.
3. According to claim 2, a transferable image anti-steganography method based on neuron attribution is characterized in that: The step 6 comprises the following steps: Step 6.1: Calculate the attribution loss of the tth iteration according to formula (2): In formula (2), T represents the selected threshold parameter; express The absolute value of Step 6.3: Calculate the feature loss of the tth iteration according to formula (3) In formula (3), A t Represents the matrix composed of the attribution results of all neurons in the target layer L at the tth iteration, Represents all neurons in the target layer L for y t After processing, the output is a matrix composed of the intermediate results of the tth iteration. Sum represents the sum of all elements of the matrix. Represents element-wise multiplication; Step 6.4: Calculate the overall loss L of the tth iteration according to formula (4): t : In formula (4), λ is the weight parameter; Step 6.5: Calculate the gradient graph G of the tth iteration according to formula (5): t :
4. An electronic device, comprising a memory and a processor, characterized in that: The memory is used to store a program that supports the processor to execute any of the transferable image anti-steganography methods described in claims 1-3, and the processor is configured to execute the program stored in the memory.
5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the transferable image anti-steganography method described in any one of claims 1 to 3 are executed.
Citation Information
Cited By
Image confrontation steganography method based on latent layer feature domain self-adaption
CN120318056A
