A large-capacity controllable carrier-free image steganography method

By selecting semantic images and style reference images, using domain alignment networks and hidden networks to generate confidential images, and combining multi-scale discriminators with generative adversarial networks, the problem of difficult-to-achieve image quality and capacity balance in the existing technology is solved, and the image quality is improved. safety and practicality.

CN113947512BActive Publication Date: 2024-10-15GUANGZHOU JINGWEI HUICHENG INFORMATION SYST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111130695.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-26
Publication Date
2024-10-15
Estimated Expiration
2041-09-26

AI Technical Summary

Technical Problem

Existing image information hiding methods are difficult to achieve a balance between ensuring image quality and capacity, and rely on expert experience and professional knowledge, which limits their application. Moreover, the quality of the confidential images generated by the carrier-free steganography method is insufficient and cannot effectively resist steganography. Detection of analytical tools.

Method used

Using a large-capacity controllable carrier-free image steganography method, preprocessing is performed by selecting semantic images and style reference images, using domain alignment networks and hidden networks to generate cryptic images, and combined with the multi-scale discriminator of the generative adversarial network, using specific The loss function is trained to generate high-quality, high-capacity dense images.

Benefits of technology

It achieves a good balance between image quality and secret message transmission, improves image security, and can generate high-quality confidential images without relying on carriers, significantly improving security and practicality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113947512B_ABST
    Figure CN113947512B_ABST
Patent Text Reader

Abstract

The present invention discloses a large-capacity controllable carrier-free image steganography method, which is characterized by comprising the following steps: S1, selecting a semantic image as needed; S2, selecting an image with a certain correlation as a style reference image according to the semantic image; S3, inputting the semantic image and the style reference image into an image preprocessing tool for preprocessing; S4, inputting the preprocessed image into a domain alignment network for processing, and generating an intermediate result during the processing; S5, merging the intermediate result and the secret image and then inputting the hidden network to output a secret image; S6, the message sender sends the secret image to the message receiver holding a trained secret message extraction network, and the message receiver uses the secret message extraction network to re-extract the secret image. The present invention utilizes a carrier-free steganography framework, does not need to use a specified carrier image to embed secret data, fundamentally resists the detection of steganalysis tools, and significantly improves the security of the image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of image information hiding, and in particular relates to a large-capacity controllable carrier-free image steganography method. Background Art

[0002] Traditional image information hiding methods require complex human interaction and prior knowledge. For example, the most primitive spatial domain steganography methods include the least significant bit (LSB) algorithm and the ±1 embedding algorithm. At the same time, the secret images obtained by these algorithms have problems and defects such as quality degradation and changes in statistical characteristics. Later, researchers improved the defect and proposed an adaptive steganography algorithm. Although it can reduce the distortion of the statistical characteristics of the carrier image caused by the secret information, it still fails to eliminate the traces of changes to the carrier image caused by the artificially designed steganography algorithm during the embedding process of the secret information. The existing methods rely on expert experience and professional knowledge, which limits further application. With the application of deep learning in the field of image information hiding, more and more steganography methods based on deep learning knowledge have emerged. However, most of these methods continue the idea of ​​adaptive steganography of images based on the "embedding distortion + stego coding" architecture, and it is difficult to achieve a balance between image quality and embedding capacity. In recent years, carrier-free steganography methods have emerged in this field, using image synthesis technology to achieve information hiding. However, the secret images generated by the current carrier-free steganography methods can only carry a small amount of secret messages, or the image quality cannot meet the requirements. Summary of the invention

[0003] The main purpose of the present invention is to overcome the shortcomings and deficiencies of the prior art and to propose a large-capacity controllable carrierless image steganography method, which fully utilizes the role of the carrierless steganography framework, does not require the use of a specified carrier image to embed secret data, fundamentally resists the detection of steganalysis tools, and significantly improves the security of the image.

[0004] In order to achieve the above object, the present invention adopts the following technical solutions:

[0005] A large-capacity controllable carrier-free image steganography method comprises the following steps:

[0006] S1. Selecting a semantic image according to the user's transmission environment needs;

[0007] S2, according to the selected semantic image, select a certain related image as the style reference image;

[0008] S3, inputting the semantic image and the style reference image into an image preprocessing tool for preprocessing, wherein the image preprocessing tool includes an image cropping tool and an image scaling tool, firstly cropping the image according to the desired size input by the user, and then scaling the cropped image to 256x256 pixels uniformly to obtain the corresponding image to be input;

[0009] S4, inputting the preprocessed corresponding image into the domain alignment network for processing, and generating intermediate results in the process for subsequent use;

[0010] S5, after merging the intermediate result and the secret image, input them into the hidden network and output the required secret image; the domain alignment network and the hidden network are both components of the secret image generation network;

[0011] S6. The message sender holds the secret image and sends it to the message receiver who holds the trained secret message extraction network. The message receiver uses the secret message extraction network to re-extract the secret image to obtain the extracted secret image.

[0012] Furthermore, step S2 is specifically as follows:

[0013] The user selects an appropriate style reference image based on the communication context, and then manually draws or selects a corresponding semantic image from public data;

[0014] In order to obtain a sufficient amount of training data, a pre-trained VGG19 network is used to extract features of the adopted dataset, and then pairwise correlation calculations are performed. The correlation is calculated using cosine distance to establish a collection of style reference images corresponding to each image.

[0015] Furthermore, in the domain alignment network, two independent feature extractors are used to establish semantic associations between the semantic image and the style reference image;

[0016] Among them, the domain alignment network includes a feature extraction part and a similarity calculation part;

[0017] The feature extraction part is used to extract abstract features from the input image and provide them to the similarity calculation part for similarity calculation;

[0018] The feature extraction part specifically includes the following steps: first, the semantic image and the style reference image are input into two independent feature extractors. The first calculation group of the feature extractor includes a convolution layer with a convolution kernel size of 3 and a step size of 1, an Instance Normalization layer and a LeakyReLU activation function layer. The calculation group accepts a 3x256x256 image input and outputs a 64x256x256 feature output. The second calculation group includes a convolution layer with a convolution kernel size of 3 and a step size of 2, an Instance Normalization layer and a LeakyReLU activation function layer. Normalization layer and a LeakyReLU activation function layer. The calculation group accepts 64x256x256 image input and outputs 128x256x256 feature output. The third calculation group has the same structure as the first calculation group. The calculation group accepts 128x256x256 feature input and outputs 256x256x256 feature output. The fourth calculation group has the same structure as the second calculation group, and the fifth calculation group has the same structure as the first calculation group. After the fourth and fifth calculation groups, 512x64x64 features are obtained, and then the features are input into three consecutive SPADE Resnet Block modules for calculation. After calculation by these three modules, the features are converted from a size of 512x64x64 to a feature map of the same size of 512x64x64, and then converted to 256x64x64; Among them, the network structure of the two feature extractors is the same, but the parameters learned after the model training stage are different; SPADE Resnet The Block module is a Resnet network module combined with SPADE technology;

[0019] The similarity calculation part is used to calculate the two image features input by the feature extraction part to obtain a relationship matrix, which describes the semantic correspondence between the semantic image input at the front end and the style reference image;

[0020] The similarity calculation part specifically includes the following steps: first, the features extracted from the semantic image and the features extracted from the style reference image are input into three consecutive Residual Block modules respectively, and the feature shape size is kept at 256x64x64. Then, the two 256x64x64 features are respectively passed through a convolution calculation layer with a convolution kernel size of 1 and a step size of 1. Finally, the two 256x64x64 image features F x and F y Put it into the relationship matrix calculation layer and perform the following calculation to obtain the relationship matrix:

[0021]

[0022] Among them, F x and Fy They are the features obtained from the semantic image and the style reference image respectively. and F x and F y The mean is calculated at the feature channel level; the Residual Block module is a submodule of the residual network.

[0023] Furthermore, step S4 specifically includes the following sub-steps:

[0024] S41, inputting the semantic image and the style reference image into a feature extractor respectively to extract corresponding feature maps;

[0025] S42, normalizing the two feature maps extracted in step S41 by channel and calculating the similarity between each feature point to obtain a relationship matrix;

[0026]

[0027] S43. Using the relationship matrix obtained in step S42 as coefficients and the original style reference image as a basis, an intermediate result is generated.

[0028] Furthermore, step S5 is specifically as follows:

[0029] The style reference image is semantically transformed through the correlation matrix, merged with the three-channel secret image, and then input into the hidden network to generate a secret image that can be put into the channel for transmission;

[0030] The cryptic image not only includes the secret image but also has controllable semantic and style content information.

[0031] Furthermore, the hidden network specifically includes a downsampling part and an upsampling part. The downsampling part is used to convert the input image combination from a large resolution to a small resolution feature map, so as to increase the receptive field, so that the same 3x3 convolution can perform feature extraction on a larger image range, and facilitate the subsequent upsampling part to perform feature fusion. The upsampling part uses the small-size feature map obtained by the downsampling part to synthesize the dense image;

[0032] Specifically, the downsampling part first accepts a 6x256x256 image combination, which is composed of the secret image and the intermediate result obtained in step S43, generates a 64x256x256 feature map after a convolution calculation group ConvolutionBlock operation, and then reduces the size of the feature map by half to 64x128x128 through a MaxPool maximum pooling calculation group.

[0033] Among them, the ConvolutionBlock convolution calculation group contains two consecutive convolution layers with a kernel size of 3 and a stride of 1, and each convolution layer is followed by a Batch Normalization layer and a ReLU activation function layer;

[0034] The kernel size of the MaxPool maximum pooling calculation group is 3, and the step size is set to 2; the MaxPool maximum pooling calculation group is followed by three combinations consisting of a ConvolutionBlock convolution calculation group and a MaxPool maximum pooling calculation group. The structure and function of the three combinations are exactly the same as the first combination of the ConvolutionBlock convolution calculation group and the MaxPool maximum pooling calculation group, and the feature map is changed from 64x128x128 to 512x16x16. Finally, the 512x16x16 feature map is input into a ConvolutionBlock convolution calculation group to generate a 1024x16x16 feature map;

[0035] Specifically, the upsampling part first converts the 1024x16x16 feature map obtained by the downsampling part into a 256x32x32 feature map through a ConvTranspose deconvolution layer with a kernel size of 2 and a stride of 2. In addition, the 1024x16x16 feature map obtained by the downsampling part also undergoes an Upsample upsampling calculation with a kernel size of 2 to double the size, and then passes through a SPADE Resnet Block module, at this time the feature map becomes 256x32x32, then a ConvolutionBlock convolution calculation group receives the 256x32x32 feature maps obtained by the two paths at the same time, and obtains a 512x32x32 feature map from the ConvolutionBlock convolution calculation group of the downsampling part of the same depth, that is, the ConvolutionBlock convolution calculation group accepts the input of the feature maps under three different paths at the same time, and generates a 512x32x32 feature map; perform the same operation three times, that is, a ConvolutionBlock convolution calculation group will accept the feature map calculated from the ConvTranspose deconvolution layer, the feature map from the SPADE Resnet The feature map calculated by the Block module and the feature map output by the ConvolutionBlock convolution calculation group at the same depth in the downsampling part. After the operation is completed, the 512x32x32 feature map becomes a 64x256x256 feature map. Finally, a convolution calculation with a convolution kernel size of 3 and a step size of 1 is used to change the number of channels from 64 to 3, that is, a 3x256x256 encrypted image is generated;

[0036] The SPADE Resnet Block module is introduced to introduce the intermediate result obtained in step S43 in the upsampling part, and the semantic features of the intermediate result are used to better control the semantic structure of the final synthesized encrypted image.

[0037] Furthermore, the specific structure of the secret message extraction network is:

[0038] The secret message extraction network accepts the input of the 3x256x256 secret image obtained by the hidden network, and generates a 64x256x256 feature map after passing through an operation group including a convolution layer with a kernel size of 3 and a stride of 1, a Batch Normalization layer, and a ReLU activation function layer. Then, it passes through 4 operation groups with the same structure. Each operation group does not change the size of the feature map, but only doubles or halves the number of channels of the feature map. After 4 operation groups, a 64x256x256 feature map is generated. Finally, it passes through a convolution calculation layer with a kernel size of 3 and a stride of 1 and a Tanh activation function layer to convert the 64x256x256 feature map into a 3x256x256 output, which is the extracted secret image.

[0039] Furthermore, when training the secret image generation network, the multi-scale discriminator of the generative adversarial network is used. The multi-scale discriminator receives the input of the generated secret image and the real image, performs true and false binary judgment, and together with the secret image generation network, constitutes a generative adversarial network to help the training of the secret image generation network. The function in the training process will use Hinge loss:

[0040]

[0041] Among them, o and o′ are the synthesized encrypted image and the real image respectively.

[0042] Furthermore, the secret image generation network synthesizes a secret image using the input semantic image, style reference image and secret image;

[0043] In the training process of the encrypted image generation network, five kinds of losses are used as loss functions for constraints. The five kinds of losses include the semantic perceptual loss between the encrypted image and the original semantic image, the style contextual loss between the generated encrypted image and the original style reference image, the discriminative loss from the multi-scale discriminator in the generative adversarial network, the domain alignment loss, and the cycle consistency loss.

[0044] During the training process, the Adam optimizer is used to update the network parameters;

[0045] Among them, the semantic perceptual loss between the generated encrypted image and the original semantic image is calculated using the high-level features of the pre-trained VGG19 for L2 distance calculation:

[0046]

[0047] Among them, o and x are the generated encrypted image and the original semantic image respectively. It represents the j-th layer high-level features extracted using the pre-trained VGG19;

[0048] The contextual loss of style between the generated encrypted image and the original style reference image uses the low-level features of the pre-trained VGG19 to calculate the cosine distance, and measures the similarity of these features instead of measuring the spatial position of the image. Since this texture loss is not completely global and there will be feature calculations, it is constrained to the content of the synthesized encrypted image:

[0049]

[0050] Among them, o and y are the generated encrypted image and style reference image respectively. N represents the j-th low-level features extracted using the pre-trained VGG19. L represents the number of features in layer L, w L Indicates the importance of different layers themselves;

[0051] The discriminative loss from the multi-scale discriminator in the generative adversarial network is specifically:

[0052]

[0053] Where D represents the discriminator in the generative adversarial network;

[0054] Domain alignment loss, which is used to constrain the two feature extractors in the domain alignment network so that they align the input semantic image and style reference image into a unified feature space:

[0055]

[0056] Among them, o′ is the real image corresponding to the semantic image, F1 and F2 are two feature extractors in the constrained domain alignment network;

[0057] Cycle consistency loss, which is used to convert the style reference map into a distorted image after the relationship matrix generated by the domain alignment network is converted, and to ensure that it can be returned to the original style reference map, so as to avoid the distorted style reference map becoming completely unrelated to the original one; directly calculate the L1 loss of the returned style reference map and the original style reference map:

[0058]

[0059] Among them, x and y are the input semantic image and style reference image respectively, C represents the domain alignment network, and θ C are the parameters that the network needs to learn.

[0060] Further, the secret image extraction loss:

[0061]

[0062] Among them, s′ and s are the extracted secret image and the original input secret image respectively;

[0063] Training of multi-scale discriminators in generative adversarial networks:

[0064] L D =E(max(0,1-D(o′)))+E(max(0,1+D(G(x,y,s))))

[0065] Where D represents the multi-scale discriminator, G represents the encrypted image generation network that forms a generative adversarial network with the multi-scale discriminator, x, y and s are the semantic image, style reference image and secret image input into the encrypted image generation network respectively, and o′ is the real image corresponding to the semantic image x.

[0066] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0067] 1. The invention can generate high-quality and high-capacity confidential images, which is brought about by the overall network framework and loss function designed by the invention. It consists of three networks: a confidential image generation network, a secret message extraction network, and a multi-scale discriminator of a generative adversarial network. The confidential image generation network is further divided into a domain alignment network and a hidden network.

[0068] 2. The invention can control the generation process of the secret image according to the needs of the secret message transmission scenario, and has higher practicality. This effect is due to the use of a domain alignment network in the invention, which can align the input semantic image with the style reference image, and because of the addition of the regularization loss in the loss function list, the two are better adapted to the same feature space.

[0069] 3. The invention can strike a good balance between generation quality and reliable transmission of secret messages. This is because we designed a spatially-adaptive normalization technology based on Unet, thereby obtaining an image synthesis network suitable for steganography.

[0070] 4. The invention can improve the security of secret images because we adopt the idea of ​​carrier-free steganography and break away from the general steganography strategy of "embedded carrier". BRIEF DESCRIPTION OF THE DRAWINGS

[0071] Figure 1 It is an overall flow chart of the implementation of the present invention;

[0072] Figure 2 It is the structure diagram of SPADEResnetBlock of the present invention;

[0073] Figure 3 It is the structure diagram of ResidualBlock of the present invention;

[0074] Figure 4 This is the encrypted image generation process of the present invention. DETAILED DESCRIPTION

[0075] The present invention is further described in detail below in conjunction with embodiments and drawings, but the embodiments of the present invention are not limited thereto.

[0076] Example

[0077] like Figure 1 As shown, the present invention, a large-capacity controllable carrier-free image steganography method, comprises the following steps:

[0078] S1. Select a suitable semantic image according to the user's transmission environment requirements. The semantic image can be obtained by drawing with conventional drawing tools or obtained from the Internet.

[0079] S2. According to the selected semantic image, select images with certain correlation from the gallery as style reference images; in order to obtain a sufficient amount of training data, use a pre-trained VGG19 network to extract features of the adopted dataset, and then perform pairwise correlation calculations. The correlation is calculated using cosine distance, so as to establish a collection of style reference images corresponding to each image.

[0080] S3, inputting the semantic image and the style reference image into an image preprocessing tool to obtain a corresponding image (C×H×W) to be input;

[0081] Among them, the image preprocessing tools include image cropping tools and image scaling tools. The image is first cropped according to the desired size (greater than 256x256 pixels) input by the user, and then the cropped image is uniformly scaled to 256x256 pixels to obtain the corresponding image to be input (C×H×W).

[0082] S4: Input the preprocessed image into the domain alignment network to generate an intermediate result for subsequent use; specifically, it includes the following sub-steps:

[0083] S41, inputting the semantic image and the style reference image into a feature extractor respectively to extract corresponding feature maps;

[0084] S42, normalizing the two feature maps extracted in step S41 by channel and calculating the similarity between each pixel to obtain a relationship matrix;

[0085] The calculation process in step 4-2 is expressed as follows:

[0086]

[0087] in, and Represent the two features F x and F x The mean vector of Represents the obtained relationship matrix.

[0088] S43. Using the relationship matrix obtained in step S42 as coefficients and the original style reference image as a basis, an intermediate result is generated.

[0089] In this embodiment, the domain alignment network and the hidden network are both part of the secret image generation network, which plays the role of an encoder in traditional steganography to generate a secret image carrying a secret message;

[0090] In the domain alignment network, two independent feature extractors are used to establish semantic associations between the semantic image and the style reference image;

[0091] Among them, the domain alignment network includes a feature extraction part and a similarity calculation part;

[0092] The feature extraction part is used to extract abstract features from the input image and provide them to the similarity calculation part for similarity calculation; specifically, the semantic image and style reference image are first input into two independent feature extractors. The first calculation group of the feature extractor includes a convolution layer with a convolution kernel size of 3 and a step size of 1, an InstanceNormalization normalization layer and a LeakyReLU activation function layer. The calculation group accepts 3x256x256 image input and outputs 64x256x256 feature output. The second calculation group includes a convolution layer with a convolution kernel size of 3 and a step size of 2, an InstanceNormalization normalization layer and a LeakyReLU activation function layer. Normalization layer and a LeakyReLU activation function layer. The calculation group accepts 64x256x256 image input and outputs 128x256x256 feature output. The third calculation group has the same structure as the first calculation group. The calculation group accepts 128x256x256 feature input and outputs 256x256x256 feature output. The fourth calculation group has the same structure as the second calculation group, and the fifth calculation group has the same structure as the first calculation group. After the fourth and fifth calculation groups, 512x64x64 features are obtained, and then this part of the features is input into three consecutive SPADE Resnet Block modules for calculation. After calculation by these three modules, the features are converted from a size of 512x64x64 to a feature map of the same size of 512x64x64, and then converted to 256x64x64; Among them, the network structure of the two feature extractors is the same, but the parameters learned after the model training stage are different; SPADE Resnet The Block module is a Resnet network module combined with SPADE technology;

[0093] The similarity calculation part is used to calculate the two image features input by the feature extraction part to obtain a relationship matrix, which describes the semantic correspondence between the semantic image input at the front end and the style reference image. Specifically, the similarity calculation part first inputs the features extracted by the semantic image and the features extracted by the style reference image input by the feature extraction part into three consecutive Residual Block modules, and the feature shape size is kept at 256x64x64. Then, the two 256x64x64 features are respectively passed through a convolution calculation layer with a convolution kernel size of 1 and a step size of 1. Finally, the two 256x64x64 image features F x and F y Put it into the relationship matrix calculation layer and perform the following calculation to obtain the relationship matrix:

[0094]

[0095] Among them, F x and Fy They are the features obtained from the semantic image and the style reference image respectively. and F x and F y The mean is calculated at the feature channel level; the Residual Block module is a submodule of the residual network.

[0096] As shown in Table 1 below, the structure of the domain alignment network is:

[0097]

[0098] Table 1

[0099] "Conv2d / k3s1" indicates a two-dimensional convolution calculation layer with kernel size of 3 and stride of 1. Other symbols with the same structure have similar meanings, except that the kernel size or stride size is different. "IN" indicates an instance normalization calculation layer. "LeakyReLU" indicates an activation function called LeakyReLU.

[0100] "SPADEResnetBlock" represents a common custom small module SPADE resnet block. It includes the two layers of SPADE->ReLU->3x3 conv structure that always exists, and also includes an optional branch, which is also a SPADE->ReLU->3x3 conv structure. In the optional branch, when the number of input and output channels of SPADE is the same, the branch is retained, otherwise the branch is removed to form a straight-through structure. SPADE resnet block can accept segmentationmap and perform SPADE operations. For example Figure 2 As shown, this is its structural diagram.

[0101] "ResidualBlock" represents a small module "residual network basic module" customized in the residual network ResNet, and its structure is as follows Figure 3 shown.

[0102] The domain alignment network uses two independent feature extractors to accept the input of semantic images and style reference images and establishes semantic associations between them.

[0103] S5, after combining the intermediate result and the secret image, input them into the hidden network and output the secret image, such as Figure 4 As shown, specifically:

[0104] The style reference image is semantically transformed through the correlation matrix, merged with the three-channel secret image, and then input into the hidden network, thereby generating a secret image that can be put into the channel for transmission;

[0105] The cryptic image not only contains the secret image but also has controllable semantic and style content information.

[0106] The hidden network specifically includes a downsampling part and an upsampling part. The downsampling part is used to convert the input image combination from a large resolution to a small resolution feature map to achieve the purpose of increasing the receptive field, so that the same 3x3 convolution can perform feature extraction on a larger image range and facilitate the subsequent upsampling part to perform feature fusion. The upsampling part uses the small-size feature map obtained by the downsampling part to synthesize a real and fine dense image;

[0107] Specifically, the downsampling part first accepts a 6x256x256 image combination, which is composed of the secret image and the intermediate result obtained in step S43, generates a 64x256x256 feature map after a convolution calculation group ConvolutionBlock operation, and then reduces the size of the feature map by half to 64x128x128 through a MaxPool maximum pooling calculation group.

[0108] Among them, the ConvolutionBlock convolution calculation group contains two consecutive convolution layers with a kernel size of 3 and a stride of 1, and each convolution layer is followed by a Batch Normalization layer and a ReLU activation function layer;

[0109] The kernel size of the MaxPool maximum pooling calculation group is 3, and the step size is set to 2; the MaxPool maximum pooling calculation group is followed by three combinations consisting of a ConvolutionBlock convolution calculation and a MaxPool maximum pooling calculation group, where their structure and function are exactly the same as the first combination of the ConvolutionBlock convolution calculation group and the MaxPool maximum pooling calculation group, and the feature map is changed from 64x128x128 to 512x16x16, and finally the 512x16x16 feature map is input into a ConvolutionBlock convolution calculation group to generate a 1024x16x16 feature map;

[0110] Specifically, the upsampling part first converts the 1024x16x16 feature map obtained by the downsampling part into a 256x32x32 feature map through a ConvTranspose deconvolution layer with a kernel size of 2 and a stride of 2. At the same time, the 1024x16x16 feature map obtained by the downsampling part also undergoes an Upsample upsampling calculation with a kernel size of 2 to double the size, and then passes through a SPADE Resnet Block module, at this time the feature map becomes 256x32x32, then a ConvolutionBlock convolution calculation group will simultaneously receive the 256x32x32 feature maps obtained by the two paths respectively, and obtain a 512x32x32 feature map from the ConvolutionBlock convolution calculation group of the downsampling part of the same depth, that is, the ConvolutionBlock convolution calculation group simultaneously accepts the input of the feature maps under three different paths and generates a 512x32x32 feature map; perform the same operation three times, that is, a ConvolutionBlock convolution calculation group will accept the feature map calculated from the ConvTranspose deconvolution layer, the feature map from the SPADE Resnet The feature map calculated by the Block module and the feature map output by the ConvolutionBlock convolution calculation group at the same depth in the downsampling part. After the operation is completed, the 512x32x32 feature map becomes a 64x256x256 feature map. Finally, a convolution calculation with a convolution kernel size of 3 and a step size of 1 is used to change the number of channels from 64 to 3, that is, a 3x256x256 encrypted image is generated;

[0111] The SPADE Resnet Block module is introduced to introduce the intermediate result obtained in step S43 in the upsampling part, and the semantic features of the intermediate result are used to better control the semantic structure of the final synthesized encrypted image.

[0112] As shown in Table 2 below, the structure of the hidden network is:

[0113]

[0114] Table 2

[0115] Among them, "ConvolutionBlock / k3s1" represents the custom module of the present invention, which includes two convolutional layers, each of which is followed by a Batch Normalization layer and a ReLU activation function layer, and the kernel size of the convolutional layer is 3 and the step size is 1.

[0116] “MaxPool / k2s2” represents a maximum pooling calculation layer with a kernel size of 2 and a stride of 2.

[0117] “ConvTranspose / k2s2” represents a deconvolution layer with a kernel size of 2 and a stride of 2.

[0118] "Upsample / s2" indicates an upsampling calculation layer with a scale_factor of 2.

[0119] S6. The message sender holds the secret image and sends it to the receiver who holds the trained secret message extraction network; the receiver re-extracts the secret image according to the secret message extraction network to obtain the extracted secret image.

[0120] The secret message extraction network accepts the input of the 3x256x256 secret image obtained by the hidden network, and generates a 64x256x256 feature map after passing through an operation group including a convolution layer with a kernel size of 3 and a stride of 1, a Batch Normalization layer, and a ReLU activation function layer. Then, it passes through 4 operation groups with the same structure. Each operation group does not change the size of the feature map, but only doubles or halves the number of channels of the feature map. After 4 operation groups, a 64x256x256 feature map is generated. Finally, it passes through a convolution calculation layer with a kernel size of 3 and a stride of 1 and a Tanh activation function layer to convert the 64x256x256 feature map into a 3x256x256 output, which is the extracted secret image.

[0121] When training the secret image generation network, the multi-scale discriminator of the generative adversarial network is used. The multi-scale discriminator receives the input of the generated secret image and the real image, and performs true and false binary judgment. Together with the secret image generation network, it constitutes a generative adversarial network to help the training of the secret image generation network. The function in the training process will use Hinge loss:

[0122]

[0123] Among them, o and o′ are the synthesized encrypted image and the real image respectively.

[0124] The secret image generation network synthesizes a secret image using the input semantic image, style reference image, and secret image.

[0125] In the training process of the encrypted image generation network, five kinds of losses are used as loss functions for constraints. The five kinds of losses include the semantic perceptual loss between the encrypted image and the original semantic image, the style contextual loss between the generated encrypted image and the original style reference image, the discriminative loss from the multi-scale discriminator in the generative adversarial network, the domain alignment loss, and the cycle consistency loss.

[0126] During the training process, the Adam optimizer is used to update the network parameters;

[0127] The semantic perceptual loss between the generated encrypted image and the original semantic image is calculated using the high-level features of the pre-trained VGG19 for L2 distance calculation;

[0128]

[0129] Among them, o and x are the generated encrypted image and the original semantic image respectively. It represents the j-th layer high-level features extracted using the pre-trained VGG19;

[0130] The contextual loss of style between the generated encrypted image and the original style reference image uses the low-level features of the pre-trained VGG19 to calculate the cosine distance, and measures the similarity of these features instead of measuring the spatial position of the image. Since this texture loss is not completely global and there will be feature calculations, it is constrained to the content of the synthesized encrypted image.

[0131]

[0132] Among them, o and y are the generated encrypted image and style reference image respectively. N represents the j-th low-level features extracted using the pre-trained VGG19. L represents the number of features in layer L, w L Indicates the importance of different layers themselves;

[0133] The discriminative loss from the multi-scale discriminator in the generative adversarial network is specifically:

[0134]

[0135] Where D represents the discriminator in the generative adversarial network;

[0136] Domain alignment loss, which is used to constrain the two feature extractors in the domain alignment network so that they align the input semantic image and style reference image into a unified feature space:

[0137]

[0138] Among them, o′ is the real image corresponding to the semantic image, F1 and F2 are two feature extractors in the constrained domain alignment network;

[0139] Cycle consistency loss, which is used to convert the style reference map into a distorted image after the relationship matrix generated by the domain alignment network is converted, and to ensure that it can be returned to the original style reference map, so as to avoid the distorted style reference map becoming completely unrelated to the original one; directly calculate the L1 loss of the returned style reference map and the original style reference map:

[0140]

[0141] Among them, x and y are the input semantic image and style reference image respectively. C represents the domain alignment network, θ C are the parameters that the network needs to learn.

[0142] As shown in Table 3 below, the structure of the secret message extraction network is:

[0143]

[0144] Table 3

[0145] Among them, "BN" represents the Batch Normalization normalization calculation layer, and "ReLU" and "Tanh" represent two different activation functions.

[0146] Secret Image Extraction Loss:

[0147]

[0148] Among them, s′ and s are the extracted secret image and the original input secret image respectively;

[0149] It is also necessary to train the multi-scale discriminator in the generated adversarial network:

[0150] L D =E(max(0,1-D(o′)))+E(max(0,1+D(G(x,y,s))))

[0151] Where D represents the multi-scale discriminator, G represents the encrypted image generation network that forms a generative adversarial network with the multi-scale discriminator, x, y and s are the semantic image, style reference image and secret image input into the encrypted image generation network respectively, and o′ is the real image corresponding to the semantic image x.

[0152] Compared with traditional steganography technology, the invention does not require the user to have domain knowledge, and can directly use packaged tools to secretly transmit the secret image that needs to be sent to the recipient. Compared with the existing widespread image information hiding methods based on deep learning technology, the invention makes full use of the role of the carrier-free steganography framework and does not need to use a specified carrier image to embed secret data. Therefore, it can fundamentally resist the detection of steganalysis tools and significantly improve the security of the image. In the same carrier-free image information hiding field, the invention can solve the problem that most carrier-free steganography methods are overly dependent on the mapping relationship between synthetic images and secret messages, thereby being able to carry large-capacity secret messages and being superior to similar methods in terms of image quality. In particular, due to the original reference to technologies in other image fields, a unique overall network framework is built and the loss function is improved, so that the generation process of the secret image can be controlled according to the needs of the secret message transmission scenario, further improving the practicality.

[0153] It should also be noted that in this specification, terms such as "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0154] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A large-capacity controllable carrier-free image steganography method, characterized in that: The following steps are involved: S1. Selecting a semantic image according to the user's transmission environment needs; S2, according to the selected semantic image, select a certain related image as the style reference image; S3, inputting the semantic image and the style reference image into an image preprocessing tool for preprocessing, wherein the image preprocessing tool includes an image cropping tool and an image scaling tool, firstly cropping the image according to the desired size input by the user, and then scaling the cropped image to 256x256 pixels uniformly to obtain the corresponding image to be input; S4, inputting the preprocessed corresponding image into the domain alignment network for processing, and generating intermediate results in the process for subsequent use; S5, after merging the intermediate result and the secret image, input them into the hidden network and output the required secret image; the secret image generation network includes a domain alignment network and a hidden network; In the domain alignment network, two independent feature extractors are used to establish semantic associations between the semantic image and the style reference image; Among them, the domain alignment network includes a feature extraction part and a similarity calculation part; The feature extraction part is used to extract abstract features from the input image and provide them to the similarity calculation part for similarity calculation; The similarity calculation part is used to calculate the two image features input by the feature extraction part to obtain a relationship matrix, which describes the semantic correspondence between the semantic image input at the front end and the style reference image; The hidden network specifically includes a downsampling part and an upsampling part. The downsampling part is used to convert the input image combination from a large resolution to a small resolution feature map to achieve the purpose of increasing the receptive field, so that the same 3x3 convolution can perform feature extraction on a larger image range and facilitate the subsequent upsampling part to perform feature fusion. The upsampling part uses the small-size feature map obtained by the downsampling part to synthesize the dense image; S6, the message sender holds the secret image and sends it to the message receiver who holds the trained secret message extraction network. The message receiver uses the secret message extraction network to re-extract the secret image to obtain an extracted secret image. The specific structure of the secret message extraction network is: The secret message extraction network accepts the input of the 3x256x256 secret image obtained by the hidden network, and generates a 64x256x256 feature map after passing through an operation group including a convolution layer with a kernel size of 3 and a stride of 1, a Batch Normalization layer, and a ReLU activation function layer. Then, it passes through 4 operation groups with the same structure. Each operation group does not change the size of the feature map, but only doubles or halves the number of channels of the feature map. After 4 operation groups, a 64x256x256 feature map is generated. Finally, it passes through a convolution calculation layer with a kernel size of 3 and a stride of 1 and a Tanh activation function layer to convert the 64x256x256 feature map into a 3x256x256 output, which is the extracted secret image.

2. According to claim 1, a large-capacity controllable carrier-free image steganography method is characterized in that: Step S2 is specifically as follows: The user selects an appropriate style reference image based on the communication context, and then manually draws or selects a corresponding semantic image from public data; In order to obtain a sufficient amount of training data, a pre-trained VGG19 network is used to extract features of the adopted dataset, and then pairwise correlation calculations are performed. The correlation is calculated using cosine distance to establish a collection of style reference images corresponding to each image.

3. A large-capacity controllable carrier-free image steganography method according to claim 1, characterized in that: The feature extraction part specifically includes the following steps: first, the semantic image and the style reference image are input into two independent feature extractors. The first calculation group of the feature extractor includes a convolution layer with a convolution kernel size of 3 and a step size of 1, an InstanceNormalization normalization layer and a LeakyReLU activation function layer. The calculation group accepts a 3x256x256 image input and outputs a 64x256x256 feature output. The second calculation group includes a convolution layer with a convolution kernel size of 3 and a step size of 2, an InstanceNormalization normalization layer and a LeakyReLU activation function layer. Normalization layer and a LeakyReLU activation function layer. The calculation group accepts 64x256x256 image input and outputs 128x256x256 feature output. The third calculation group has the same structure as the first calculation group. The calculation group accepts 128x256x256 feature input and outputs 256x256x256 feature output. The fourth calculation group has the same structure as the second calculation group, and the fifth calculation group has the same structure as the first calculation group. After the fourth and fifth calculation groups, 512x64x64 features are obtained, and then the features are input into three consecutive SPADE Resnet Block modules for calculation. After calculation by these three modules, the features are converted from a size of 512x64x64 to a feature map of the same size of 512x64x64, and then converted to 256x64x64; Among them, the network structure of the two feature extractors is the same, but the parameters learned after the model training stage are different; SPADE Resnet The Block module is a Resnet network module combined with SPADE technology; The similarity calculation part specifically includes the following steps: first, the features extracted from the semantic image and the features extracted from the style reference image are input into three consecutive Residual Block modules respectively, and the feature shape size is kept at 256x64x64. Then, the two 256x64x64 features are respectively passed through a convolution calculation layer with a convolution kernel size of 1 and a step size of 1. Finally, the two 256x64x64 image features F x and F y Put it into the relationship matrix calculation layer and perform the following calculation to obtain the relationship matrix: Among them, F x and F y They are the features obtained from the semantic image and the style reference image respectively. and F x and F y The mean is calculated at the feature channel level; the Residual Block module is a submodule of the residual network.

4. A large-capacity controllable carrier-free image steganography method according to claim 3, characterized in that: Step S4 specifically includes the following sub-steps: S41, inputting the semantic image and the style reference image into a feature extractor respectively to extract corresponding feature maps; S42, normalizing the two feature maps extracted in step S41 by channel and calculating the similarity between each feature point to obtain a relationship matrix; S43. Using the relationship matrix obtained in step S42 as coefficients and the original style reference image as a basis, an intermediate result is generated.

5. A large-capacity controllable carrier-free image steganography method according to claim 4, characterized in that: Step S5 is specifically as follows: The style reference image is semantically transformed through the correlation matrix, merged with the three-channel secret image, and then input into the hidden network to generate a secret image that can be put into the channel for transmission; The cryptic image not only includes the secret image but also has controllable semantic and style content information.

6. A large-capacity controllable carrier-free image steganography method according to claim 5, characterized in that: Specifically, the downsampling part first accepts a 6x256x256 image combination, which is composed of the secret image and the intermediate result obtained in step S43, generates a 64x256x256 feature map after a convolution calculation group ConvolutionBlock operation, and then reduces the size of the feature map by half to 64x128x128 through a MaxPool maximum pooling calculation group. Among them, the ConvolutionBlock convolution calculation group contains two consecutive convolution layers with a kernel size of 3 and a stride of 1, and each convolution layer is followed by a Batch Normalization layer and a ReLU activation function layer; The kernel size of the MaxPool maximum pooling calculation group is 3, and the step size is set to 2; the MaxPool maximum pooling calculation group is followed by three combinations consisting of a ConvolutionBlock convolution calculation group and a MaxPool maximum pooling calculation group. The structure and function of the three combinations are exactly the same as the first combination of the ConvolutionBlock convolution calculation group and the MaxPool maximum pooling calculation group, and the feature map is changed from 64x128x128 to 512x16x16. Finally, the 512x16x16 feature map is input into a ConvolutionBlock convolution calculation group to generate a 1024x16x16 feature map; Specifically, the upsampling part first converts the 1024x16x16 feature map obtained by the downsampling part into a 256x32x32 feature map through a ConvTranspose deconvolution layer with a kernel size of 2 and a stride of 2. In addition, the 1024x16x16 feature map obtained by the downsampling part also undergoes an Upsample upsampling calculation with a kernel size of 2 to double the size, and then passes through a SPADE Resnet Block module, at this time the feature map becomes 256x32x32, then a ConvolutionBlock convolution calculation group receives the 256x32x32 feature maps obtained by the two paths at the same time, and obtains a 512x32x32 feature map from the ConvolutionBlock convolution calculation group of the downsampling part of the same depth, that is, the ConvolutionBlock convolution calculation group accepts the input of the feature maps under three different paths at the same time, and generates a 512x32x32 feature map; perform the same operation three times, that is, a ConvolutionBlock convolution calculation group will accept the feature map calculated from the ConvTranspose deconvolution layer, the feature map from the SPADE Resnet The feature map calculated by the Block module and the feature map output by the ConvolutionBlock convolution calculation group at the same depth in the downsampling part. After the operation is completed, the 512x32x32 feature map becomes a 64x256x256 feature map. Finally, a convolution calculation with a convolution kernel size of 3 and a step size of 1 is used to change the number of channels from 64 to 3, that is, a 3x256x256 encrypted image is generated; The SPADE Resnet Block module is introduced to introduce the intermediate result obtained in step S43 in the upsampling part, and the semantic features of the intermediate result are used to better control the semantic structure of the final synthesized encrypted image.

7. A large-capacity controllable carrier-free image steganography method according to claim 1, characterized in that: When training the secret image generation network, the multi-scale discriminator of the generative adversarial network is used. The multi-scale discriminator receives the input of the generated secret image and the real image, and performs true and false binary judgment. Together with the secret image generation network, it constitutes a generative adversarial network to help the training of the secret image generation network. The function in the training process will use Hinge loss: Among them, o and o ′ They are the synthesized encrypted image and the real image respectively.

8. A large-capacity controllable carrier-free image steganography method according to claim 7, characterized in that: The secret image generation network synthesizes a secret image using the input semantic image, style reference image, and secret image. In the training process of the encrypted image generation network, five kinds of losses are used as loss functions for constraints. The five kinds of losses include the semantic perceptual loss between the encrypted image and the original semantic image, the style contextual loss between the generated encrypted image and the original style reference image, the discriminative loss from the multi-scale discriminator in the generative adversarial network, the domain alignment loss, and the cycle consistency loss. During the training process, the Adam optimizer is used to update the network parameters; Among them, the semantic perceptual loss between the generated encrypted image and the original semantic image is calculated using the high-level features of the pre-trained VGG19 for L2 distance calculation: Among them, o and x are the generated encrypted image and the original semantic image respectively. It represents the j-th layer high-level features extracted using the pre-trained VGG19; The contextual loss of style between the generated encrypted image and the original style reference image uses the low-level features of the pre-trained VGG19 to calculate the cosine distance, and measures the similarity of these features instead of measuring the spatial position of the image. Since this texture loss is not completely global and there will be feature calculations, it is constrained to the content of the synthesized encrypted image: Among them, o and y are the generated encrypted image and style reference image respectively. N represents the j-th low-level features extracted using the pre-trained VGG19. L represents the number of features in layer L, w L Indicates the importance of different layers themselves; The discriminative loss from the multi-scale discriminator in the generative adversarial network is specifically: Where D represents the discriminator in the generative adversarial network; Domain alignment loss, which is used to constrain the two feature extractors in the domain alignment network so that they align the input semantic image and style reference image into a unified feature space: Among them, o′ is the real image corresponding to the semantic image, F1 and F2 are two feature extractors in the constrained domain alignment network; Cycle consistency loss, which is used to convert the style reference map into a distorted image after the relationship matrix generated by the domain alignment network is converted, and to ensure that it can be returned to the original style reference map, so as to avoid the distorted style reference map becoming completely unrelated to the original one; directly calculate the L1 loss of the returned style reference map and the original style reference map: Among them, x and y are the input semantic image and style reference image respectively, C represents the domain alignment network, and θ C are the parameters that the network needs to learn.

9. A large-capacity controllable carrier-free image steganography method according to claim 7, characterized in that: Secret Image Extraction Loss: Among them, s′ and s are the extracted secret image and the original input secret image respectively; Training of multi-scale discriminators in generative adversarial networks: L D =E(max(0,1-D(o′)))+E(max(0,1+D(G(x,y,s)))) Where D represents the multi-scale discriminator, G represents the encrypted image generation network that forms a generative adversarial network with the multi-scale discriminator, x, y and s are the semantic image, style reference image and secret image input into the encrypted image generation network respectively, and o′ is the real image corresponding to the semantic image x.