Image steganography method and system based on U-Net generative probability model

Through the generation probability model based on U-Net, the dual-branch U-Net model and dynamic distortion cost update technology are used to solve the problem of difficult balance between concealment and security in image steganography technology, and achieve high concealment and high security. image steganography effect.

CN118279121BActive Publication Date: 2024-10-18NANJING UNIV OF INFORMATION SCI & TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410714806.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-10-18
Estimated Expiration
2044-06-04

AI Technical Summary

Technical Problem

Existing image steganography technology is difficult to strike a balance between concealment and security. At the same time, the computational complexity is high and pixel distortion is difficult to effectively reduce.

Method used

Using a generative probability model based on U-Net, through the generator and discriminator of the dual-branch U-Net model, using convolution blocks, deconvolution blocks and the overall neural network, combined with LeakyReLU and ReLU activation functions, the embedding position probability is generated and Perform dynamic distortion cost updates, generate secret images, and optimize the model through a hybrid loss function.

Benefits of technology

It achieves high concealment and image quality security, avoids steganalysis, and significantly improves image security and quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118279121B_ABST
    Figure CN118279121B_ABST
Patent Text Reader

Abstract

The present invention discloses an image steganography method and system based on a U‑Net generation probability model, and relates to the field of image processing technology. The method comprises the following steps: receiving a cover image, inputting the cover image into a generator of a pre-established dual-branch U‑Net model, and outputting an embedding position probability; converting the embedding position probability into a distortion cost, and embedding the distortion cost after dynamically updating the distortion cost to generate a secret image; inputting the cover image and the secret image into a discriminator of the dual-branch U‑Net model for steganalysis, and outputting a discrimination result, wherein the discrimination result is the accuracy of the classified image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to an image steganography method and system based on a U-Net generation probability model. Background Art

[0002] Image steganography is a technology that uses an embedding algorithm to hide secret information in a cover image in an imperceptible way, and then the receiver extracts the secret information through an extraction algorithm. Unlike cryptography, image hiding can not only ensure the security of the secret information itself, but also enhance the security of the secret information during transmission. In recent years, image steganography technology has been applied to many fields, such as data confidentiality communication and copyright protection.

[0003] In 2017, Baluja published the first deep learning steganography algorithm for hiding images in images at NIPS [Baluja S. Hiding images in plain sight: Deep steganography [J]. Advances in neural information processing systems, 2017, 30.]. Since then, a large number of steganography models using various deep learning networks for image steganography have emerged. Evaluating good image steganography technology requires overcoming two main challenges: concealment and security. Concealment requires that secret information is not perceived by the human eye and steganalysis models, while security involves ensuring that the information is not detected. However, current technology has difficulty in striking a balance between these two aspects. In addition, reducing the computational complexity of the model and effectively reducing the cost of image pixel distortion are also important issues that need to be urgently addressed in the image field. Summary of the invention

[0004] In order to solve the deficiencies mentioned in the above background technology, the purpose of the present invention is to provide an image steganography method and system based on a U-Net generation probability model, which has high concealment.

[0005] In a first aspect, the purpose of the present invention can be achieved by the following technical solution: an image steganography method based on a U-Net generation probability model, the method comprising the following steps:

[0006] Receive the cover image, input the cover image into the generator of the pre-established two-branch U-Net model, and output the embedding position probability;

[0007] The embedding position probability is converted into a distortion cost, and the distortion cost is dynamically updated and embedded to generate a secret image;

[0008] The cover image and the secret image are input into the discriminator of the dual-branch U-Net model for steganalysis, and the discrimination result is output, wherein the discrimination result is the accuracy of the classified image.

[0009] In combination with the first aspect, in some implementations of the first aspect, the method further includes: the pre-established dual-branch U-Net generator includes an encoder, a decoder, and an output layer;

[0010] It contains: a convolution block, a deconvolution block and an overall neural network.

[0011] In combination with the first aspect, in some implementations of the first aspect, the method further includes: the convolution block sub_conv includes a basic convolution layer and batch normalization, and a convolution layer using a LeakyReLU activation function, the deconvolution block sub_deconv includes a basic convolution layer and batch normalization, and a deconvolution layer using a ReLU activation function, and the overall neural network adopts a U-Net model;

[0012] The encoder consists of two branches with the same structure but different parameters. There are two convolutional layers in each block, and then a batch normalization layer and a LeakyReLU layer are applied. The strides of the first and second layers in the convolutional layer are 1 and 2 respectively. The embedding probability maps generated by these two branches are represented as and , respectively represent pixel values The probability of adding +1 or -1 due to message embedding.

[0013] In combination with the first aspect, in some implementations of the first aspect, the method further includes: the process of inputting the cover image into a generator of a pre-established dual-branch U-Net model and outputting the embedding position probability includes the following steps:

[0014] The cover image is divided by 255.0, normalized, and then downsampled. During the downsampling process, the cover image passes through the first layer sub_conv for preliminary feature extraction. Then the cover image passes through layer2 to layer8 in sequence to gradually reduce the spatial dimension of the cover image. Each layer extracts features of different levels. After the cover image passes through layer8, the high-level features of the cover image are obtained;

[0015] Then upsample the cover image. During the upsampling process, the cover image first starts the upsampling process through sub_deconv of layer9. Dropout is used in each step of upsampling to reduce overfitting. In the upsampling of each layer, the corresponding features in the downsampling process are fused with the features of the current layer through jump connections.

[0016] Finally, the cover image is in the output layer, and the output of the positive path is obtained through layer16. The value is normalized to between 0 and 1 using torch.sigmoid, and then torch.relu is used to ensure that all output values ​​are non-negative. At the same time, in the negative path, the cover image passes through a series of negative paths from layer9m to layer16m, and finally outputs the embedding position probability.

[0017] In combination with the first aspect, in some implementations of the first aspect, the method further includes: the calculation formula for converting the embedding position probability into the distortion cost is as follows:

[0018]

[0019] In formula (1) and Represent the positive embedding probability and negative embedding probability of the pixel point respectively. and Represent the positive embedding distortion cost and negative embedding distortion cost of the pixel respectively;

[0020] In combination with the first aspect, in some implementations of the first aspect, the method further includes: a process of embedding the distortion cost after dynamically updating the distortion cost into generating the secret image:

[0021] Dynamically update the distortion cost:

[0022] Aggregates the eight neighboring pixels of a pixel , which is divided into four pixels horizontally and vertically and four pixels on the main and secondary diagonals , dynamically update the distortion cost, the formula is as follows:

[0023]

[0024]

[0025] in and Represent the positive modification distortion cost and negative modification distortion cost at the pixel respectively. and Respectively represent the positive modification distortion cost and negative modification distortion cost after correction at the pixel point;

[0026] Positive distortion cost and negative distortion cost; simulate STC to obtain the secret image from the positive distortion cost and negative distortion cost, by generating a random noise ,in , and then generate the secret image by simulating embedding.

[0027] In combination with the first aspect, in certain implementations of the first aspect, the method also includes: during the training process of the pre-established two-branch U-Net model, a mixed loss function is designed according to the cover image, the cover image gradient, the cover image high-pass residual, the secret image, and the discrimination result of the discriminator, and the two-branch U-Net model is optimized with the goal of minimizing the total loss function. When the loss decreases and remains stable, the training is considered to be completed.

[0028] In combination with the first aspect, in some implementations of the first aspect, the method further includes: the process of designing the hybrid loss function:

[0029] Two loss functions are used: generator loss and the discriminator loss ;

[0030] Among them, the discriminator loss: calculate the cross entropy of each steganalyst during each iteration, and then update the steganalyst with the highest cross entropy, the discriminator loss function The definition is shown in formula (4):

[0031]

[0032] in and They represent the classification result vectors generated by the i-th steganalysis network for the cover image and the secret image, respectively. , and The true value labels are and , the cross entropy of classification is given by It indicates the quality of classification, where the higher the cross entropy value, the weaker the discriminative performance of the steganalyzer in the iteration;

[0033] Generator loss: Generator loss The definition is shown in formula (5):

[0034]

[0035] in, represents the embedding loss that ensures the embedding of the payload, represents the adversarial loss against the strongest steganalyzer in the discriminator;

[0036] The first component The composition of is shown in formula (6):

[0037]

[0038] in and Represents the input cover image respectively The height and width of , , m means embedded modification value, Indicates embedded payload;

[0039] The second component The composition of is shown in formula (7):

[0040]

[0041] in refers to the pixel position The modified value of is the indicator function.

[0042] In a second aspect, in order to achieve the above-mentioned object, the present invention discloses an image steganography system based on a U-Net generation probability model, comprising:

[0043] A probability generation module is used to receive a cover image, input the cover image into a generator of a pre-established two-branch U-Net model, and output an embedding position probability;

[0044] The conversion and update module is used to convert the embedding position probability into a distortion cost, and then dynamically update the distortion cost and embed it into a secret image.

[0045] The steganalysis module is used to input the cover image and the secret image into the discriminator of the dual-branch U-Net model for steganalysis, and output the discrimination result, wherein the discrimination result is the accuracy of the classified image.

[0046] In conjunction with the second aspect, in certain implementations of the second aspect, the system further includes: a generator of a dual-branch U-Net pre-established in the probability generation module includes an encoder, a decoder, and an output layer;

[0047] It contains: a convolution block, a deconvolution block and an overall neural network;

[0048] Or the convolution block sub_conv in the probability generation module includes a basic convolution layer and batch normalization, and a convolution layer using a LeakyReLU activation function, the deconvolution block sub_deconv includes a basic convolution layer and batch normalization, and a deconvolution layer using a ReLU activation function, and the overall neural network adopts a U-Net model;

[0049] The encoder consists of two branches with the same structure but different parameters. There are two convolutional layers in each block, and then a batch normalization layer and a LeakyReLU layer are applied. The strides of the first and second layers in the convolutional layer are 1 and 2 respectively. The embedding probability maps generated by these two branches are represented as and , respectively represent pixel values The probability of adding +1 or -1 due to message embedding;

[0050] Alternatively, the cover image is input into the generator of the pre-established two-branch U-Net model in the probability generation module, and the process of outputting the embedding position probability includes the following steps:

[0051] The cover image is divided by 255.0, normalized, and then downsampled. During the downsampling process, the cover image passes through the first layer sub_conv for preliminary feature extraction. Then the cover image passes through layer2 to layer8 in sequence to gradually reduce the spatial dimension of the cover image. Each layer extracts features of different levels. After the cover image passes through layer8, the high-level features of the cover image are obtained;

[0052] Then upsample the cover image. During the upsampling process, the cover image first starts the upsampling process through sub_deconv of layer9. Dropout is used in each step of upsampling to reduce overfitting. In the upsampling of each layer, the corresponding features in the downsampling process are fused with the features of the current layer through jump connections.

[0053] Finally, the cover image is in the output layer, and the output of the positive path is obtained through layer16. The value is normalized to between 0 and 1 using torch.sigmoid, and then torch.relu is used to ensure that all output values ​​are non-negative. At the same time, in the negative path, the cover image passes through a series of negative paths from layer9m to layer16m, and finally outputs the embedding position probability;

[0054] Preferably, the calculation formula for converting the embedding position probability into the distortion cost in the conversion update module is as follows:

[0055]

[0056] In formula (1) and Represent the positive embedding probability and negative embedding probability of the pixel point respectively. and Represent the positive embedding distortion cost and negative embedding distortion cost of the pixel respectively;

[0057] Preferably, the distortion cost is dynamically updated in the conversion update module and then embedded into the process of generating the secret image:

[0058] Dynamically update the distortion cost:

[0059] Aggregates the eight neighboring pixels of a pixel , which is divided into four pixels horizontally and vertically and four pixels on the main and secondary diagonals , dynamically update the distortion cost, the formula is as follows:

[0060]

[0061]

[0062] in and Represent the positive modification distortion cost and negative modification distortion cost at the pixel respectively. and Respectively represent the positive modification distortion cost and negative modification distortion cost after correction at the pixel point;

[0063] Positive distortion cost and negative distortion cost; simulate STC to obtain the secret image from the positive distortion cost and negative distortion cost, by generating a random noise ,in , then generate the secret image by simulating embedding;

[0064] Preferably, during the training process of the pre-established dual-branch U-Net model, a mixed loss function is designed according to the cover image, the cover image gradient, the cover image high-pass residual, the secret image and the discrimination result of the discriminator, and the dual-branch U-Net model is optimized with the minimum total loss function as the goal. When the loss decreases and remains stable, the training is considered to be completed;

[0065] Among them, the process of designing a mixed loss function is:

[0066] Two loss functions are used: generator loss and the discriminator loss ;

[0067] Among them, the discriminator loss: calculate the cross entropy of each steganalyst during each iteration, and then update the steganalyst with the highest cross entropy, the discriminator loss function The definition is shown in formula (4):

[0068]

[0069] in and They represent the classification result vectors generated by the i-th steganalysis network for the cover image and the secret image, respectively. , and The true value labels are and , the cross entropy of classification is given by It indicates the quality of classification, where the higher the cross entropy value, the weaker the discriminative performance of the steganalyzer in the iteration;

[0070] Generator loss: Generator loss The definition is shown in formula (5):

[0071]

[0072] in, represents the embedding loss that ensures the embedding of the payload, represents the adversarial loss against the strongest steganalyzer in the discriminator;

[0073] The first component The composition of is shown in formula (6):

[0074]

[0075] in and Represents the input cover image respectively The height and width of , , m means embedded modification value, Indicates embedded payload;

[0076] The second component The composition of is shown in formula (7):

[0077]

[0078] in refers to the pixel position The modified value of is the indicator function.

[0079] Beneficial effects of the present invention:

[0080] The present invention can select an embedding position from a cover image to generate a secret image, thereby effectively avoiding steganalysis and greatly ensuring the security of image quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0081] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0082] Figure 1 It is a schematic flow chart of the method of the present invention;

[0083] Figure 2 The figure is a flowchart of a steganographic algorithm of an embodiment.

[0084] Figure 3 is a schematic diagram of the structure of each high-pass filter of an embodiment;

[0085] Figure 4 It is a schematic diagram of the system structure of the present invention. DETAILED DESCRIPTION

[0086] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0087] Embodiment 1:

[0088] The following is an introduction to the relevant terms involved in the embodiments of the present application:

[0089] Generator: The generator is a network model of GN that receives a random noise as input and generates a fake sample through a series of transformation and mapping operations. The goal of the generator is to convert random noise into a sample similar to the real sample in order to deceive the discriminator as much as possible. The generator continuously adjusts its parameters through back propagation and optimization algorithms (such as gradient descent) so that the generated samples gradually approach the distribution of the real samples. The output of the generator is usually a sample with the same dimensions and features as the real sample.

[0090] Discriminator: The discriminator is another network model of GN. It receives a sample as input and outputs a probability value to indicate the probability that the sample is a real sample. The goal of the discriminator is to accurately distinguish between real samples and generated samples in order to identify fake samples generated by the generator. The discriminator also continuously adjusts its parameters through back-propagation and optimization algorithms, so that its ability to distinguish between real samples and generated samples continues to improve. The output of the discriminator is usually a probability value between 0 and 1, indicating the probability that the input sample is a real sample.

[0091] The generator and the discriminator are optimized through adversarial training. During the training process, the generator generates fake samples and passes them through the discriminator for discrimination. The discriminator classifies samples generated by the generator and real samples. The goal of the generator is to make the generated samples be identified as real samples by the discriminator, while the goal of the discriminator is to distinguish between real samples and generated samples as accurately as possible. By alternately training the generator and the discriminator and continuously iterating and optimizing, GAN can achieve the effect of generating realistic samples.

[0092] like Figure 1 As shown, the image steganography method based on the U-Net generation probability model is characterized in that the method includes the following steps:

[0093] Receive the cover image, input the cover image into the generator of the pre-established two-branch U-Net model, and output the embedding position probability;

[0094] The pre-built two-branch U-Net generator includes an encoder, a decoder, and an output layer; it contains: a convolution block, a deconvolution block, and an overall neural network;

[0095] The convolution block sub_conv includes a basic convolution layer and batch normalization, and a convolution layer using a LeakyReLU activation function. The deconvolution block sub_deconv includes a basic convolution layer and batch normalization, and a deconvolution layer using a ReLU activation function. The overall neural network adopts a U-Net model.

[0096] The encoder consists of two branches with the same structure but different parameters. There are two convolutional layers in each block, and then a batch normalization layer and a LeakyReLU layer are applied. The strides of the first and second layers in the convolutional layer are 1 and 2 respectively. The embedding probability maps generated by these two branches are represented as and , respectively represent pixel values The probability of adding +1 or -1 due to message embedding;

[0097] In the specific implementation process, Figure 2 As shown in the figure, the image (cover) is first divided by 255.0 for normalization. Then, in the downsampling process, the image passes through the first layer sub_conv for preliminary feature extraction. Then, the image passes through layer2 to layer8 in sequence. These layers use different sub_conv instances to continuously extract features in depth while gradually reducing the spatial dimension of the image. Each layer extracts features at different levels. After the image passes through layer8, it reaches the deepest part of the network, where the high-level features of the image are captured.

[0098] Then in the upsampling process, the image first passes through the sub_deconv of layer9 to start the upsampling process. Dropout is used in each step of upsampling to reduce overfitting. In the upsampling of each layer, the corresponding features in the downsampling process are fused with the features of the current layer through jump connections (for example, layer10 fuses the features of layer10 and x7), which helps to preserve the details while reconstructing the image.

[0099] Finally, in the output layer, the output of the positive path is obtained through layer16, and the value is normalized to between 0 and 1 using torch.sigmoid, and then torch.relu is used to ensure that all output values ​​are non-negative. At the same time, in the negative path, the image also passes through a series of negative paths from layer9m to layer16m. This path is similar to the positive path structure but is processed independently, and finally outputs the positive embedding probability and the negative embedding probability.

[0100] The dual-branch U-Net model includes a convolution operation group layer1-layer8 and a deconvolution operation group layer9m-layer16m.

[0101] The convolution operation group module in the generator includes: convolution operation group layer1, convolution operation group layer2, convolution operation group layer3, convolution operation group layer4, convolution operation group layer5, convolution operation group layer6, convolution operation group layer7, convolution operation group layer5, deconvolution operation group layer9m, deconvolution operation group layer10m, deconvolution operation group layer11m, deconvolution operation group layer12m, deconvolution operation group layer13m, deconvolution operation group layer14m, deconvolution operation group layer15m, deconvolution operation group layer16m;

[0102] The outputs of the convolution operation group layer7 and the deconvolution operation group layer9m in the generator are channel-joined and then input into the deconvolution operation group layer10m to form a jump structure;

[0103] The outputs of the convolution operation group layer6 and the deconvolution operation group layer10m in the generator are channel-joined and then input into the deconvolution operation group layer11m to form a jump structure;

[0104] The outputs of the convolution operation group layer5 and the deconvolution operation group layer11m in the generator are channel-joined and then input into the deconvolution operation group layer11m to form a jump structure;

[0105] The outputs of the convolution operation group layer4 and the deconvolution operation group layer12m in the generator are channel-joined and then input into the deconvolution operation group layer13m to form a jump structure;

[0106] The outputs of the convolution operation group layer3 and the deconvolution operation group layer13m in the generator are channel-joined and then input into the deconvolution operation group layer14m to form a jump structure;

[0107] The outputs of the convolution operation group layer2 and the deconvolution operation group layer14m in the generator are channel-joined and then input into the deconvolution operation group layer15m to form a jump structure;

[0108] The outputs of the convolution operation group layer1 and the deconvolution operation group layer15m in the generator are channel-joined and then input into the deconvolution operation group layer16m;

[0109] On the other side, the outputs of the convolution operation group layer7 and the deconvolution operation group layer9 in the generator are channel-joined and input into the deconvolution operation group layer10 to form a jump structure;

[0110] The outputs of the convolution operation group layer6 and the deconvolution operation group layer10 in the generator are channel-joined and then input into the deconvolution operation group layer11 to form a jump structure;

[0111] The outputs of the convolution operation group layer5 and the deconvolution operation group layer11 in the generator are channel-joined and then input into the deconvolution operation group layer11 to form a jump structure;

[0112] The outputs of the convolution operation group layer4 and the deconvolution operation group layer12 in the generator are channel-joined and then input into the deconvolution operation group layer13 to form a jump structure;

[0113] The outputs of the convolution operation group layer3 and the deconvolution operation group layer13 in the generator are channel-joined and then input into the deconvolution operation group layer14 to form a jump structure;

[0114] The outputs of the convolution operation group layer2 and the deconvolution operation group layer14 in the generator are channel-joined and then input into the deconvolution operation group layer15 to form a jump structure;

[0115] The outputs of the convolution operation group layer1 and the deconvolution operation group layer15 in the generator are channel-joined and then input into the deconvolution operation group layer16;

[0116] One of the convolution operation groups includes a convolution layer Conv, a batch normalization layer BN, an activation layer LeakyReLU, a convolution layer Conv, a batch normalization layer BN, and an activation layer LeakyReLU, which are set in sequence; one of the deconvolution operation groups includes a convolution layer Conv, a batch normalization layer BN, an activation layer ReLU, a convolution layer ConvT, a batch normalization layer BN, and an activation layer ReLU, which are set in sequence.

[0117] The generation probability model is expressed as:

[0118]

[0119] in, Indicates The operation of the layer (sub_conv or sub_deconv), represents the Dropout operation, Indicates the channel merge operation, is the Sigmoid activation function, is the ReLU activation function.

[0120] Compared with existing GAN-based steganography methods that adopt a single steganalyzer, our proposed model contains multiple steganalysis networks in the discriminator. In order to achieve a dynamic balance between the generator and the discriminator during the training process, we implement an adaptive model parameter update strategy, which can be summarized as follows: During each training iteration, the steganalysis network in the discriminator evaluates the discriminative performance (quantized by cross entropy) of the steganalysis images generated by the generator. We selectively update the parameters of the steganalysis network with the weakest discriminative performance, thereby enhancing the overall efficacy of the discriminator. For the parameters of the generator, we utilize the gradient information provided by the steganalysis network that exhibits the strongest discriminative performance, as this provides more valuable insights for guiding the generator to generate increasingly secure steganalysis images. Our extensive experiments show that this approach helps to gradually improve the performance of both the generator and the discriminator, while circumventing the problems of unstable model training and difficult convergence.

[0121] The embedding position probability is converted into a distortion cost, and the distortion cost is dynamically updated and embedded to generate a secret image;

[0122] According to the embedding position probability, it is converted into distortion cost, and the distortion cost is dynamically updated and embedded to generate the secret image. The calculation formula is shown in formula (1):

[0123]

[0124] In formula (1) and Represent the positive embedding probability and negative embedding probability of the pixel point respectively. and They represent the positive embedding distortion cost and negative embedding distortion cost of the pixel respectively.

[0125] Next, we dynamically update the pixel distortion cost by aggregating the eight neighboring pixels of a pixel. , which is divided into four pixels horizontally and vertically and four pixels on the main and secondary diagonals , the calculation formula is shown in formula (2):

[0126]

[0127] Then we dynamically update its cost. The updating process is shown in formula (3), where and The two parameters have a significant impact on the distortion cost. Experimental results show that and The distortion after real-time updating produces excellent safety performance.

[0128]

[0129] in and Represent the positive modification distortion cost and negative modification distortion cost at the pixel respectively. and They respectively represent the positive modification distortion cost and negative modification distortion cost after correction at the pixel point.

[0130] The distortion cost after updating includes positive distortion cost and negative distortion cost; the simulated STC obtains the secret image from the positive distortion cost and the negative distortion cost, and generates a random noise ,in , and then generate the secret image by simulating embedding.

[0131] The cover image and the secret image are input into the discriminator of the dual-branch U-Net model for steganalysis, and the discrimination result is output, wherein the discrimination result is the accuracy of the classified image.

[0132] Furthermore, during the training process of the pre-established dual-branch U-Net model, a hybrid loss function is designed according to the cover image, the cover image gradient, the cover image high-pass residual, the secret image, and the discrimination result of the discriminator, and the dual-branch U-Net model is optimized with the goal of minimizing the total loss function. When the loss decreases and remains stable, the training is considered to be completed;

[0133] Among them, the process of designing a hybrid loss function: two loss functions are used: generator loss and the discriminator loss ;

[0134] Among them, the discriminator loss The definition of is shown in formula (4):

[0135]

[0136] in and They represent the classification result vectors generated by the i-th steganalysis network for the cover image and the secret image, respectively. , and The true value labels are and , the cross entropy of classification is given by It indicates the quality of classification, where the higher the cross entropy value, the weaker the discriminative performance of the steganalyzer in the iteration;

[0137] Generator Loss The definition is shown in formula (5):

[0138]

[0139] in, represents the embedding loss that ensures the embedding of the payload, represents the adversarial loss against the strongest steganalyzer in the discriminator;

[0140] The first component The composition of is shown in formula (6):

[0141]

[0142] in and Represents the input cover image The height and width of , , m means embedded modification value, Indicates embedded payload;

[0143] The second component The composition of is shown in formula (7):

[0144]

[0145] in refers to the pixel position The modified value of is the indicator function. We take the pixel position Weight The definition is shown in formula (8):

[0146]

[0147] in ,gradient The loss function is defined as Relative to modification The partial derivative of The definition of is shown in formula (9), The definition of is shown in formula (10):

[0148]

[0149] Assumptions for of Elements representing images All high pass filters The sum of the absolute values ​​of the high-pass residuals obtained, where , The definition of is shown in formula (11):

[0150]

[0151] in is applied to the cover image The kth high-pass filter.

[0152] Based on experimental comparison, we choose to use a single high-pass filter LAP2, such as Figure 3 As shown, when The larger the value of In the experiment, we found that the difference between our method and existing related methods (such as UT-GAN and SPAR-RL) is that we use adversarial loss and make full use of The image residual , the gradient derived from the best steganalyzer in the discriminator , the asymmetric probability generated by the two-branch network in the generator and embed modifications to update the generator.

[0153] In the training phase, the proposed model adopts the above loss function and To calculate the gradient, and update the model parameters of the generator and discriminator respectively.

[0154] In practical applications, the image data set is input into the generator to obtain the positive embedding probability and the negative embedding probability, and the embedding probability is converted into the embedding distortion cost. After the distortion cost is dynamically adjusted, the secret information is embedded to generate a secret image, and finally it is put into the discriminator for steganalysis. The results obtained continuously optimize the network parameters.

[0155] In summary, in the research on the image steganography algorithm based on the U-Net-based generative probability model in the embodiment of the present invention, the cover image data set is input into the generator to obtain the positive embedding probability and the negative embedding probability, the embedding probability is converted into the embedding distortion cost, and the distortion cost is dynamically adjusted to embed the secret information to generate a secret image, and finally put it into the discriminator for steganalysis. The final result has high concealment and high security.

[0156] To verify the effect of the present invention, the proposed GAN model is first trained based on 40,000 images of the public dataset SZUBase. In the test phase, 10,000 images of size 256×256 from the public dataset BOSSBase are input into the generator of the resulting model to obtain the corresponding embedding probability of each image. and Then we use formula (1)

[0157] Calculate the embedding distortion cost of each image, and then dynamically adjust the embedding distortion cost using formula (3)

[0158] To generate secret images using simulated embedding. We randomly selected 4000 cover images and secret images for training the steganalyzer, 1000 cover image and secret image pairs for verification, and the remaining 5000 cover image and secret image pairs for testing. In our experiments, we set the batch size to 24, the number of epochs to 72, the initial learning rate to 0.0001, and decayed to 0.4 every 20 epochs. The experimental results are shown in Table 1.

[0159] Table 1

[0160]

[0161] In the proposed model, multiple steganalyzers are used in the discriminator. In this section, various combinations of four CNN-based steganalyzers, namely Xu-Net, Yedroudj-Net, SRNet, and CovNet, are studied for comparative analysis. Table 2 presents the comparison results, which shows that the choice of steganalyzer has a great impact on the performance of the proposed model. For example, when only one steganalyzer is used, both SRNet and CovNet outperform Xu-Net, which is frequently used in existing GAN-based steganography, thereby improving security by more than 16%. Among all possible combinations, the trio of Xu-Net, Yedroudj-Net, and SRNet provides the highest average security. Therefore, the proposed model combines these three steganalyzers, and the results of steganalyzer combination detection are shown in Table 2.

[0162] Table 2

[0163]

[0164] In this invention, in our adversarial loss design, we use image residuals to guide the model to modify areas with complex textures. In the experiment, we study the impact of residuals generated by different high-pass filter kernels and multiple high-pass filter kernel combinations on the model security performance. We selected and tested eight classic high-pass filter kernels, namely KB3, LAP, LAP2, LAP3, KV5, LoG, HP7 and HP8. Figure 3 As shown in Figure 3, in addition, we tested three combinations of high-pass filters, namely SRM30 in [], SRM6 in [], and 8HPF (i.e., a combination of the eight high-pass filter kernels mentioned above), as well as the case where no image residual is used (i.e., no HPF). Our comparison results are shown in Table 3. The model using the LAP2 high-pass filter achieves the best security performance among all the tested high-pass filters, with a security performance improvement of up to 4.11% compared to the case where no image residual is used. The results show that the loss derived from the image residual is indispensable.

[0165] Table 3

[0166]

[0167] Embodiment 2: In the second aspect, as Figure 4 As shown, the present invention discloses an image steganography system based on a U-Net generation probability model, comprising:

[0168] A probability generation module is used to receive a cover image, input the cover image into a generator of a pre-established two-branch U-Net model, and output an embedding position probability;

[0169] The conversion and update module is used to convert the embedding position probability into a distortion cost, and then dynamically update the distortion cost and embed it into a secret image.

[0170] The steganalysis module is used to input the cover image and the secret image into the discriminator of the dual-branch U-Net model for steganalysis, and output the discrimination result, wherein the discrimination result is the accuracy of the classified image.

[0171] Based on the same inventive concept, the present invention also provides a computer device, which includes: one or more processors, and a memory for storing one or more computer programs; the program includes program instructions, and the processor is used to execute the program instructions stored in the memory. The processor 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 gates or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is used to implement one or more instructions, specifically for loading and executing one or more instructions in a computer storage medium to implement the above method.

[0172] It should be further explained that, based on the same inventive concept, the present invention also provides a computer storage medium, on which a computer program is stored, and the computer program is executed by the processor to execute the above method. The storage medium can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electrical, magnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0173] In the description of this specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0174] The above shows and describes the basic principles, main features and advantages of the present disclosure. Those skilled in the art should understand that the present disclosure is not limited by the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present disclosure. Without departing from the spirit and scope of the present disclosure, the present disclosure may have various changes and improvements, and these changes and improvements fall within the scope of the present disclosure to be protected.

Claims

1. Image steganography method based on U-Net generative probability model, characterized in that: The method comprises the following steps: Receive the cover image, input the cover image into the generator of the pre-established two-branch U-Net model, and output the embedding position probability; The generator of the pre-established dual-branch U-Net model includes an encoder, a decoder and an output layer; It contains: a convolution block, a deconvolution block and an overall neural network; The convolution block sub_conv includes a basic convolution layer and batch normalization, and a convolution layer using a LeakyReLU activation function. The deconvolution block sub_deconv includes a basic convolution layer and batch normalization, and a deconvolution layer using a ReLU activation function. The overall neural network adopts a U-Net model. The encoder consists of two branches with the same structure but different parameters. There are two convolutional layers in each block, and then a batch normalization layer and a LeakyReLU layer are applied. The strides of the first and second layers in the convolutional layer are 1 and 2 respectively. The embedding probability maps generated by these two branches are represented as and , respectively represent pixel values The probability of adding +1 or -1 due to message embedding; The embedding position probability is converted into a distortion cost, and the distortion cost is dynamically updated and embedded to generate a secret image; The calculation formula for converting the embedding position probability into the distortion cost is as follows: In formula (1) and Represent the positive embedding probability and negative embedding probability of the pixel point respectively, and Represent the positive embedding distortion cost and negative embedding distortion cost of the pixel respectively; The process of dynamically updating the distortion cost and embedding it into the generated secret image: Dynamically update the distortion cost: Aggregates the eight neighboring pixels of a pixel , which is divided into four pixels horizontally and vertically and four pixels on the main and secondary diagonals , dynamically update the distortion cost, the formula is as follows: in and Represent the positive modification distortion cost and negative modification distortion cost at the pixel, respectively. and Respectively represent the positive modification distortion cost and negative modification distortion cost after correction at the pixel point; Positive distortion cost and negative distortion cost; simulate STC to obtain the secret image from the positive distortion cost and negative distortion cost, by generating a random noise ,in , then generate the secret image by simulating embedding; The cover image and the secret image are input into the discriminator of the dual-branch U-Net model for steganalysis, and the discrimination result is output, wherein the discrimination result is the accuracy of the classified image.

2. The image steganography method based on the U-Net generation probability model according to claim 1, characterized in that: The process of inputting the cover image into the generator of the pre-established dual-branch U-Net model and outputting the embedding position probability includes the following steps: The cover image is divided by 255.0, normalized, and then downsampled. During the downsampling process, the cover image passes through the first layer sub_conv for preliminary feature extraction. Then the cover image passes through layer2 to layer8 in sequence to gradually reduce the spatial dimension of the cover image. Each layer extracts features of different levels. After the cover image passes through layer8, the high-level features of the cover image are obtained; Then upsample the cover image. During the upsampling process, the cover image first starts the upsampling process through sub_deconv of layer9. Dropout is used in each step of upsampling to reduce overfitting. In the upsampling of each layer, the corresponding features in the downsampling process are fused with the features of the current layer through jump connections. Finally, the cover image is in the output layer, and the output of the positive path is obtained through layer16. The value is normalized to between 0 and 1 using torch.sigmoid, and then torch.relu is used to ensure that all output values ​​are non-negative. At the same time, in the negative path, the cover image passes through a series of negative paths from layer9m to layer16m, and finally outputs the embedding position probability.

3. The image steganography method based on the U-Net generation probability model according to claim 1, characterized in that: During the training process of the pre-established two-branch U-Net model, a mixed loss function is designed according to the cover image, the cover image gradient, the cover image high-pass residual, the secret image and the discrimination result of the discriminator, and the two-branch U-Net model is optimized with the goal of minimizing the total loss function. The training is considered to be completed when the loss decreases and remains stable.

4. The image steganography method based on the U-Net generation probability model according to claim 3, characterized in that: The process of designing a hybrid loss function is as follows: Two loss functions are used: generator loss and the discriminator loss ; Among them, the discriminator loss: calculate the cross entropy of each steganalyst during each iteration, and then update the steganalyst with the highest cross entropy, the discriminator loss function The definition is shown in formula (4): in and They represent the classification result vectors generated by the i-th steganalysis network for the cover image and the secret image, respectively. , and The true value labels are and , the cross entropy of classification is given by It indicates the quality of classification, where the higher the cross entropy value, the weaker the discriminative performance of the steganalyzer in the iteration; Generator loss: Generator loss The definition is shown in formula (5): in, represents the embedding loss that ensures the embedding of the payload, represents the adversarial loss against the strongest steganalyzer in the discriminator; The first component The composition of is shown in formula (6): in and Represents the input cover image The height and width of , , m means embedded modification value, Indicates embedded payload; The second component The composition of is shown in formula (7): in Refers to the pixel position The modified value of is the indicator function.

5. Image steganography system based on U-Net generative probability model, characterized by: include: A probability generation module is used to receive a cover image, input the cover image into a generator of a pre-established two-branch U-Net model, and output an embedding position probability; The generator of the pre-established two-branch U-Net model in the probability generation module includes an encoder, a decoder, and an output layer; It contains: a convolution block, a deconvolution block and an overall neural network; Or the convolution block sub_conv in the probability generation module includes a basic convolution layer and batch normalization, and a convolution layer using a LeakyReLU activation function, the deconvolution block sub_deconv includes a basic convolution layer and batch normalization, and a deconvolution layer using a ReLU activation function, and the overall neural network adopts a U-Net model; The encoder consists of two branches with the same structure but different parameters. There are two convolutional layers in each block, and then a batch normalization layer and a LeakyReLU layer are applied. The strides of the first and second layers in the convolutional layer are 1 and 2 respectively. The embedding probability maps generated by these two branches are represented as and , respectively represent pixel values The probability of adding +1 or -1 due to message embedding; The conversion and update module is used to convert the embedding position probability into a distortion cost, and then dynamically update the distortion cost and embed it into a secret image. The calculation formula for converting the embedding position probability into the distortion cost in the conversion update module is as follows: In formula (1) and Represent the positive embedding probability and negative embedding probability of the pixel point respectively, and Represent the positive embedding distortion cost and negative embedding distortion cost of the pixel respectively; The distortion cost is dynamically updated in the transformation update module and then embedded into the process of generating the secret image: Dynamically update the distortion cost: Aggregates the eight neighboring pixels of a pixel , which is divided into four pixels horizontally and vertically and four pixels on the main and secondary diagonals , dynamically update the distortion cost, the formula is as follows: in and Represent the positive modification distortion cost and negative modification distortion cost at the pixel, respectively. and Respectively represent the positive modification distortion cost and negative modification distortion cost after correction at the pixel point; Positive distortion cost and negative distortion cost; simulate STC to obtain the secret image from the positive distortion cost and negative distortion cost, and generate a random noise ,in , generating secret images by simulating embedding; The steganalysis module is used to input the cover image and the secret image into the discriminator of the dual-branch U-Net model for steganalysis, and output the discrimination result, wherein the discrimination result is the accuracy of the classified image.

6. The image steganography system based on the U-Net generative probability model according to claim 5, characterized in that: The probability generation module inputs the cover image into the generator of the pre-established dual-branch U-Net model, and the process of outputting the embedding position probability includes the following steps: The cover image is divided by 255.0, normalized, and then downsampled. During the downsampling process, the cover image passes through the first layer sub_conv for preliminary feature extraction. Then the cover image passes through layer2 to layer8 in sequence to gradually reduce the spatial dimension of the cover image. Each layer extracts features of different levels. After the cover image passes through layer8, the high-level features of the cover image are obtained; Then upsample the cover image. During the upsampling process, the cover image first starts the upsampling process through sub_deconv of layer9. Dropout is used in each step of upsampling to reduce overfitting. In the upsampling of each layer, the corresponding features in the downsampling process are fused with the features of the current layer through jump connections. Finally, the cover image is in the output layer, and the output of the positive path is obtained through layer16. The value is normalized to between 0 and 1 using torch.sigmoid, and then torch.relu is used to ensure that all output values ​​are non-negative. At the same time, in the negative path, the cover image passes through a series of negative paths from layer9m to layer16m, and finally outputs the embedding position probability; During the training process of the pre-established dual-branch U-Net model, a mixed loss function is designed based on the cover image, the cover image gradient, the cover image high-pass residual, the secret image, and the discrimination result of the discriminator. The dual-branch U-Net model is optimized with the goal of minimizing the total loss function. When the loss decreases and remains stable, the training is considered to be completed. Among them, the process of designing a mixed loss function is: Two loss functions are used: generator loss and the discriminator loss ; Among them, the discriminator loss: calculate the cross entropy of each steganalyst during each iteration, and then update the steganalyst with the highest cross entropy, the discriminator loss function The definition is shown in formula (4): in and They represent the classification result vectors generated by the i-th steganalysis network for the cover image and the secret image, respectively. , and The true value labels are and , the cross entropy of classification is given by It represents the quality of classification, where the higher the cross entropy value, the weaker the discriminative performance of the steganalyzer in iteration; Generator loss: Generator loss The definition is shown in formula (5): in, represents the embedding loss that ensures the embedding of the payload, represents the adversarial loss against the strongest steganalyzer in the discriminator; The first component The composition of is shown in formula (6): in and Represents the input cover image The height and width of , , m means embedded modification value, Indicates embedded payload; The second component The composition of is shown in formula (7): in Refers to the pixel position The modified value of is the indicator function.

Citation Information

Patent Citations

  • High-capacity data protection method based on GAN augmented image foreground object

    CN111768326A

  • Adversarial network image steganography method based on novel U-Net structure generator

    CN113076549A