A steganalysis prediction method, device and computer storage medium based on pseudo twin network
Through the pseudo-twin network architecture and preprocessing technology, the residual features of the image are extracted, which solves the computational complexity and redundancy problems of high-dimensional feature extraction in traditional steganalysis, improves the signal-to-noise ratio and detection accuracy, and is suitable for a variety of applications. Predictions of steganographic algorithms.
Patent Information
- Application Number
- CN202310403450.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-17
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-04-17
AI Technical Summary
Traditional spatial domain steganalysis faces the problems of high-dimensional feature extraction, which results in a large amount of calculation, high redundancy, and the need for professional knowledge to design feature models. It is also difficult to effectively enhance the residual information in the image to improve the signal-to-noise ratio.
A steganalysis prediction method based on pseudo-twin network is used to extract residual features through the encoder and decoder branches, combined with Kaiming initialization and SRM filter kernel preprocessing, and enhanced with 3×3 convolutional layers and 1×1 convolutional layers. The correlation of feature descriptors is combined with the Transformer structure for feature extraction and classification.
It improves the signal-to-noise ratio, enhances detection accuracy, reduces feature dimensions, reduces the amount of calculation, and eliminates the need to manually design feature models, and is suitable for prediction of different steganography algorithms.
Smart Images

Figure CN116389653B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a steganalysis method, a device and a computer storage medium, and in particular to a steganalysis prediction method, a device and a computer storage medium based on a pseudo twin network. Background Art
[0002] When communicating data on the Internet, a key issue is to securely transmit data from the sender to the receiver without being eavesdropped, illegally accessed, or tampered with. Steganography is a technique for hiding secret messages in appropriate multimedia carriers (including text, images, audio, or video), and provides a large number of effective solutions. In contrast to steganography, steganalysis is to reveal the presence or absence of secret messages embedded in digital media.
[0003] Traditional spatial domain steganalysis is generally divided into two main steps, namely feature extraction and feature classification. When extracting features, the relevant statistics are directly calculated for the pixel values of the spatial image. When extracting the noise residual of the embedded information, the image content is equivalent to a kind of interference. Therefore, traditional steganalysis will perform a high-pass filter on the input image before feature extraction to compress the image content as much as possible and amplify the noise residual to achieve the purpose of improving the signal-to-noise ratio (SNR) and facilitate subsequent statistical modeling. Traditional spatial domain steganalysis also faces several problems. The first is that the extracted feature dimensions are too high, and some even reach tens of thousands of dimensions, which increases the amount of calculation, and there is redundancy between the extracted features. On the other hand, the extraction of high-dimensional features requires certain professional knowledge to manually design feature models, which is not very difficult. The use of convolutional neural networks (CNN) to implement steganalysis classification tasks has a natural advantage in extracting features. It can integrate the two tasks of traditional feature extraction and feature classification to achieve end-to-end steganalysis. Since the steganalysis task is different from the general visual task, the steganalysis task pays more attention to the residual information of the image and compresses the content information as much as possible. Therefore, how to enhance the steganalytic residual information and improve the signal-to-noise ratio is a problem to be solved. Summary of the invention
[0004] In view of the defects of the above-mentioned prior art, the present invention provides a steganalysis prediction method based on a pseudo twin network, which achieves the purpose of enhancing residual information, improving signal-to-noise ratio, and improving detection accuracy. The present invention provides a steganalysis prediction device based on a pseudo twin network and a computer storage medium.
[0005] The technical solution of the present invention is as follows: A steganalysis prediction method based on a pseudo twin network comprises the following steps:
[0006] After image preprocessing, the image is sent to the feature extraction layer for residual feature extraction, and the extracted residual features are sent to the feature classification layer for classification of whether there is steganography.
[0007] The feature extraction layer includes an encoder branch and a decoder branch, the encoder branch is used to extract the embedding probability map of the preprocessed input image, and the decoder branch is used to extract the residual features of the preprocessed input image according to the embedding probability map extracted by the encoder branch.
[0008] Furthermore, the encoder branch includes a first module and a second module connected in sequence, wherein the first module contains a residual connection and includes a 3×3 convolution layer, a 1×1 convolution layer, a batch normalization layer, a ReLU layer, a 3×3 convolution layer and a batch normalization layer in sequence, and the second module includes a 3×3 convolution layer, a batch normalization layer, a Concat layer, a 3×3 convolution layer, a 1×1 convolution layer, a batch normalization layer and a ReLU layer in sequence.
[0009] Furthermore, the decoder branch includes a third module and a fourth module connected in sequence, the third module contains a residual connection and includes a 3×3 convolution layer, a 1×1 convolution layer, a batch normalization layer, a ReLU layer, a 3×3 convolution layer and a batch normalization layer in sequence, the output of the third module and the output of the first module are Concat to form the input of the fourth module, the fourth module contains a residual connection and includes a 3×3 convolution layer, a 1×1 convolution layer, a batch normalization layer, a 3×3 convolution layer, a batch normalization layer, a Concat layer, a 3×3 convolution layer, a 1×1 convolution layer, a batch normalization layer and a ReLU layer in sequence.
[0010] Furthermore, the image preprocessing includes Kaiming initialization and SRM filter core initialization preprocessing, the SRM filter core initialization uses 30 SRM filter cores of size 5×5, the input image preprocessed by the Kaiming initialization is used as the input of the encoder branch, and the input image preprocessed by the SRM filter core initialization is used as the input of the decoder branch.
[0011] Furthermore, the feature classification layer includes a 3×3 convolutional layer, a 1×1 convolutional layer, a batch normalization layer, a ReLU layer, an average pooling layer, a 3×3 convolutional layer, a batch normalization layer, a ReLU layer, a spatial pyramid pooling layer and a fully connected layer, which are connected in sequence.
[0012] Furthermore, the fully connected layer includes three linear layers and a Softmax activation layer.
[0013] The present invention also provides a steganalysis prediction device based on a pseudo twin network, comprising:
[0014] Preprocessing module, used for preprocessing of input images;
[0015] A feature extraction module, used to extract residual features from the preprocessed input image; the feature extraction module includes an encoder branch and a decoder branch, the encoder branch is used to extract an embedding probability map of the preprocessed input image, and the decoder branch is used to extract residual features of the preprocessed input image according to the embedding probability map extracted by the encoder branch;
[0016] and a feature classification module for classifying the extracted residual features to determine whether steganography exists.
[0017] The present invention also provides a computer storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned steganalysis prediction method based on the pseudo-twin network is implemented.
[0018] The advantages of the technical solution provided by the present invention are:
[0019] The method of the present invention uses a pseudo twin network architecture based on collaborative learning. Through two preprocessing methods, it not only achieves the diversity of features in feature expression ability, but also retains the existence of original information to a greater extent. The use of a 3×3 convolution layer followed by a 1×1 convolution layer in the network strengthens the correlation between feature descriptors between different channels, further enhancing the network's expression ability.
[0020] In the process of feature extraction, the advantages of the encoder and decoder in the pseudo-twin network framework and the Transformer structure are utilized. The two branches of the network complete different tasks. The encoder branch is responsible for extracting the texture structure in the image content information, which is used to guide the decoder to better identify which areas are more likely to have residual information, while strengthening the feature sets with the most discriminative characteristics.
[0021] The method of the present invention does not need to determine which positions of an image are suspected of embedding, nor does it need to determine whether a specific embedding algorithm is used for image content embedding prediction, and the prediction accuracy for different steganography algorithms is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 This is a schematic diagram of the module of the steganalysis prediction device based on the pseudo-twin network of the present invention.
[0023] Figure 2 Schematic diagram of the network structure of the feature extraction module.
[0024] Figure 3 This is a schematic diagram of the structure of the preprocessing module.
[0025] Figure 4 Schematic diagram of the network structure of the feature classification module. DETAILED DESCRIPTION
[0026] The present invention is further described below in conjunction with examples. It should be understood that these examples are only used to illustrate the present invention and are not used to limit the scope of the present invention. After reading this description, various equivalent modifications to this description by those skilled in the art fall within the scope defined by the claims attached to this application.
[0027] Please combine Figure 1 As shown, another embodiment of the present invention is a steganalysis prediction device based on a pseudo twin network, comprising:
[0028] A preprocessing module 100 is used for preprocessing input images;
[0029] A feature extraction module 200 is used to extract residual features from the preprocessed input image; the feature extraction module includes an encoder branch and a decoder branch, the encoder branch is used to extract an embedding probability map of the preprocessed input image, and the decoder branch is used to extract residual features of the preprocessed input image according to the embedding probability map extracted by the encoder branch;
[0030] And a feature classification module 300 is used to classify whether the extracted residual features contain steganography.
[0031] The steganalysis prediction method based on the pseudo-twin network performed based on the above-mentioned steganalysis prediction device is to input the image to be predicted into the trained steganalysis prediction model based on the pseudo-twin network to analyze and predict whether the output contains embedded secret information.
[0032] The steganalysis prediction model F based on the pseudo-twin network can be defined as the following function form:
[0033] F(x,E,D):E*x+D*x→R
[0034] Among them, E represents the state of the learned residual information model, D represents the model state of extracting the embedding probability map, and x represents the input image; F(x,E,D) is called the analysis prediction model, which represents the prediction score of the input image x under the guidance of model E through model d to extract features and make further discrimination.
[0035] The Transformer module is the main body of the pseudo-twin network, such as Figure 2The feature extraction layer (feature extraction module 200) is a variant of the basic Transformer structure. The Multi-Head Attention layer is removed and replaced with a convolutional layer that is more suitable for image calculation to obtain a more discriminative feature extractor. The feature extraction layer includes an encoder branch (pseudo-twin network branch B) that acts as an encoder to extract the embedding probability map of the input image (learning the visual features of each input image and obtaining the possible position of the image's steganographic embedding); a decoder branch (pseudo-twin network branch A) is a decoder that uses the embedding probability map extracted by branch B to guide the extraction of residual features that are conducive to steganography.
[0036] By studying the existing steganalysis algorithms, most algorithms will use a unique filter kernel to fill the first layer of the network convolution kernel. This unique filter kernel is 30 manually designed SRM filter kernels with a size of 5×5. Using the manually designed filter kernel completely will cause the loss of some residual information. Therefore, the present invention uses two preprocessing methods, such as Figure 3 As shown, under the framework of the pseudo twin network, more diverse steganalytic features can be obtained by using different preprocessing convolution kernels. Specifically, the preprocessing module 100 uses 30 5×5 SRM filter kernels for preprocessing convolution as the input of the decoder branch in the feature extraction layer, and uses Kaiming initialization processing as the input of the encoder branch in the feature extraction layer.
[0037] The encoder and decoder are optimized in the feature extraction layer. The encoder first uses a convolution kernel with a 3×3 receptive field to extract features, followed by a convolution kernel with a 1×1 receptive field. This not only deepens the expression ability of the network, but also increases the linear operations of the network as the number of convolution layers increases.
[0038] Since the stego information is very weak compared to the image content information, and the downsampling layer will cause a certain amount of information loss during use, the pooling operation is disabled in the first half of the network of the present invention, and a 3×3 convolution layer is used instead of the downsampling layer to fuse the feature information between channels. Compared with the traditional pooling layer, the 3×3 convolution kernel can not only reduce the feature dimension by setting the stride to 2, but also fuse the information between different channels and strengthen the correlation between the feature descriptors of different channels. Because it contains learnable parameters, the network's expression ability is further enhanced when reducing the dimensionality of the feature.
[0039] In both branches, the present invention uses the Concat operation to fuse the image embedding probability map learned by the sub-network and the residual features that are conducive to steganalysis to form a new intermediate feature x. The feature x continues to extract deeper features with more representation capabilities through the encoder-decoder of the linearly stacked Transformer network structure.
[0040] Specifically, in the feature extraction layer, the encoder branch includes a first module and a second module connected in sequence, wherein the first module contains a residual connection, and the first module includes a 3×3 convolution layer, a 1×1 convolution layer, a batch normalization layer, a ReLU layer, a 3×3 convolution layer, and a batch normalization layer in sequence. The second module includes a 3×3 convolution layer, a batch normalization layer, a Concat layer, a 3×3 convolution layer, a 1×1 convolution layer, a batch normalization layer, and a ReLU layer in sequence.
[0041] The decoder branch includes a third module and a fourth module connected in sequence. The third module is the same as the first module, contains a residual connection and includes a 3×3 convolution layer, a 1×1 convolution layer, a batch normalization layer, a ReLU layer, a 3×3 convolution layer and a batch normalization layer in sequence. The output of the third module and the output of the first module are concat to form the input of the fourth module. The fourth module contains a residual connection and includes a 3×3 convolution layer, a 1×1 convolution layer, a batch normalization layer, a 3×3 convolution layer, a batch normalization layer, a Concat layer, a 3×3 convolution layer, a 1×1 convolution layer, a batch normalization layer and a ReLU layer in sequence.
[0042] The present invention adopts the fully connected layer and the pyramid pooling layer technology to reduce the dimension in the feature classification layer. In order to fully obtain the residual information contained in the image, a pyramid pooling layer is introduced after the feature extraction layer and before the fully connected layer. The pyramid pooling layer has two major advantages: on the one hand, it can improve the expression ability of the intermediate in the spatial range and further improve the robustness of the feature; on the other hand, the pyramid pooling layer does not care about the size of the input feature. If and only if the number of channels of the feature is fixed, the output after passing through the pyramid pooling layer is consistent, and the steganalysis of images of different sizes can be well realized.
[0043] Specifically, before the classification layer, the feature descriptors from different channels of the previous neural network layer are downsampled using a fixed pooling method to obtain three groups of feature descriptors of different sizes. The spatial pyramid layer is defined as:
[0044] f:X i-1 *W n →X i
[0045] Where: X i-1 represents the feature descriptor group of the i-1th convolutional layer, X iRepresents the feature descriptor group of the i-th convolutional layer, that is, the output feature after the current pyramid pooling layer. n It represents the convolution kernel for downsampling the original feature descriptor group, because the pyramid pooling operation uses several fixed global pooling layers, and the features of the pooling results are expanded in one dimension and concatenated, and the average pooling operation can be regarded as a convolution operation with all convolution kernels being 1. Finally, the fully connected layer is used to fuse these groups of feature descriptors. This layer is called the classification layer. Since the classification layer has too many feature dimensions, the dropout technology is used to inactivate a certain number of neurons in each forward propagation process to achieve the purpose of accelerating the calculation.
[0046] Specific as Figure 4 As shown, the feature classification layer (feature classification module 300) includes a 3×3 convolutional layer, a 1×1 convolutional layer, a batch normalization layer, a ReLU layer, an average pooling layer, a 3×3 convolutional layer, a batch normalization layer, a ReLU layer, a spatial pyramid pooling layer and a fully connected layer, which are connected in sequence. The fully connected layer includes three linear layers and a Softmax activation layer.
[0047] The data set used for training, verifying and testing the steganalysis prediction model based on the pseudo-twin network in the above embodiment is obtained through the following process:
[0048] Step 1: Data Collection
[0049] Prepare the most commonly used spatial grayscale image data for steganalysis - the public dataset BOSSbase1.01.
[0050] Step 2: Data preprocessing
[0051] In order to make the image data suitable for the input of the network structure, the source dataset is resampled and the image size is adjusted. First, the BOSSbase1.01 dataset is taken by seven different cameras and contains 10,000 uncompressed grayscale images of size 512×512. Due to the limitation of the computing power of the hardware device, we adjusted the size of the original dataset, and the original image was reduced from 512×512 to 256×256, and all sub-experiments used the same size dataset. Then, in order to simulate the embedding process of real secret messages, the three most commonly used adaptive spatial steganography embedding algorithms are selected, namely SUNIWARD, WOW, and HILL. When embedding secret information, a random embedding key is used. Finally, the 10,000 pairs of embedded images are divided into 7,000 pairs of training sets, 1,500 pairs of validation sets, and 1,500 pairs of test sets.
[0052] The method of the present invention was tested using a test set, and the results are shown in Table 1. At the same time, a control test was conducted with other prior art methods, and the results are shown in Table 2.
[0053] Table 1. The accuracy results of steganalysis performed by the method of the present invention for different steganalysis embedding algorithms
[0054]
[0055] Table 2 Steganalysis accuracy results of different methods
[0056]
[0057] This method can extract residual information for different image guidance learning by using feature-guided extraction strategies. When the distribution of training images and test images is uneven, one branch of the pseudo-twin network focuses on learning the texture structure of the image, and hands it over to another branch for feature fusion. Before feature fusion, channel splicing is used to retain the original feature information on the one hand, and on the other hand, the autonomous network can learn the weight parameters of steganalysis. Finally, this embodiment obtains the best performance.
[0058] It should be noted that the specific methods of the above embodiments can form a computer program product. Therefore, the computer program product implemented in this application can be stored on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.).
Claims
1. A steganalysis prediction method based on pseudo-twin network, It is characterized in that The following steps are involved: After image preprocessing, the image is sent to the feature extraction layer for residual feature extraction, and the extracted residual features are sent to the feature classification layer for classification of whether there is steganography. The feature extraction layer includes an encoder branch and a decoder branch, the encoder branch is used to extract an embedding probability map of the preprocessed input image, and the decoder branch is used to extract residual features of the preprocessed input image according to the embedding probability map extracted by the encoder branch; The encoder branch includes a first module and a second module connected in sequence, wherein the first module has a residual connection and includes Convolutional layer, Convolutional layer, batch normalization layer, ReLU layer, The second module includes convolutional layer and batch normalization layer. Convolution layer, batch normalization layer, Concat layer, Convolutional layer, Convolutional layers, batch normalization layers, and ReLU layers; The decoder branch includes a third module and a fourth module connected in sequence, the third module has a residual connection and includes Convolutional layer, Convolutional layer, batch normalization layer, ReLU layer, The output of the third module and the output of the first module are processed by the convolution layer and the batch normalization layer. The operation forms the input of the fourth module, which contains a residual connection and includes Convolutional layer, Convolutional layer, batch normalization layer, Convolution layer, batch normalization layer, Concat layer, Convolutional layer, Convolutional layer, batch normalization layer and ReLU layer, the The operation is used to fuse the image embedding probability map and the residual features; The preprocessing includes Kaiming initialization preprocessing and SRM filter kernel initialization preprocessing. The SRM filter kernel initialization preprocessing uses 30 SRM filter core, the input image preprocessed by Kaiming initialization is used as the input of the encoder branch, and the input image preprocessed by the SRM filter core initialization is used as the input of the decoder branch; The feature classification layer includes sequentially connected Convolutional layer, Convolutional layer, batch normalization layer, ReLU layer, average pooling layer, Convolutional layer, batch normalization layer, ReLU layer, spatial pyramid pooling layer and fully connected layer; the fully connected layer includes three linear layers and a Softmax activation layer.
2. A steganalysis prediction device based on pseudo-twin network, It is characterized in that include: The preprocessing module is used for preprocessing the input image. The preprocessing includes Kaiming initialization preprocessing and SRM filter kernel initialization preprocessing. The SRM filter kernel initialization preprocessing uses 30 sizes of SRM filter core, the input image preprocessed by Kaiming initialization is used as the input of the encoder branch, and the input image preprocessed by the SRM filter core initialization is used as the input of the decoder branch; A feature extraction module is used to extract residual features from the preprocessed input image; The feature extraction module includes an encoder branch and a decoder branch, the encoder branch is used to extract the embedding probability map of the preprocessed input image, and the decoder branch is used to extract the residual feature of the preprocessed input image according to the embedding probability map extracted by the encoder branch; and a feature classification module for classifying whether the extracted residual features contain steganography; The encoder branch includes a first module and a second module connected in sequence, wherein the first module has a residual connection and includes Convolutional layer, Convolutional layer, batch normalization layer, ReLU layer, The second module includes convolutional layer and batch normalization layer. Convolution layer, batch normalization layer, Concat layer, Convolutional layer, Convolutional layer, batch normalization layer and ReLU layer; the decoder branch includes a third module and a fourth module connected in sequence, the third module contains a residual connection and includes Convolutional layer, Convolutional layer, batch normalization layer, ReLU layer, The output of the third module and the output of the first module are processed by the convolution layer and the batch normalization layer. The operation forms the input of the fourth module, which contains a residual connection and includes Convolutional layer, Convolutional layer, batch normalization layer, Convolution layer, batch normalization layer, Concat layer, Convolutional layer, Convolutional layer, batch normalization layer and ReLU layer, the The operation is used to fuse the image embedding probability map and the residual features; The feature classification module includes sequentially connected Convolutional layer, Convolutional layer, batch normalization layer, ReLU layer, average pooling layer, Convolutional layer, batch normalization layer, ReLU layer, spatial pyramid pooling layer and fully connected layer, the fully connected layer includes three linear layers and a Softmax activation layer.
3. A computer storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steganalysis prediction method based on a pseudo-twin network described in claim 1 is implemented.
Citation Information
Patent Citations
Hidden information detection method and system based on generation of embedded probability graph
CN112785478A
Image steganalysis method
CN114972886A
