A twin convolutional network steganalysis device based on inverted residual structure
By using the twin convolutional network with inverted residual structure in steganalysis, combined with high-pass filtering and depth-separable neural network for pre-processing and feature extraction, the problem of low detection accuracy of images of different sizes is solved and higher accuracy is achieved. Detection accuracy and feature extraction effect.
Patent Information
- Application Number
- CN202210189812.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-28
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-02-28
AI Technical Summary
Existing steganalysis methods have low detection accuracy in images of different sizes, especially the performance of large data sets decreases, and the detection accuracy cannot be effectively improved.
The twin convolutional network steganalysis framework based on the inverted residual structure is adopted, combined with high-pass filtering and depth separable neural network for image preprocessing, the inverted residual network is introduced for feature extraction, and the detection accuracy is improved through the shared weight mechanism of the twin network Rate.
It effectively improves the detection accuracy of images of different sizes, alleviates the feature degradation problem, maintains the parameter magnitude, and significantly improves the detection accuracy.
Smart Images

Figure CN114581645B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of steganalysis, and in particular to a twin convolutional network steganalysis framework based on an inverted residual structure. Background Art
[0002] With the development of smart devices, multimedia files mainly based on images are growing explosively. Using images as carriers to transmit important information on the Internet has become one of the most important ways to communicate. Due to the development of steganographic algorithms and software, criminals use this technology to hide illegal information in images to transmit information without being easily discovered. Such behavior threatens social security. Moreover, these secret images are not only of the same size, but also contain images of different sizes. Therefore, researchers need to study corresponding steganalysis methods to deal with this threat.
[0003] To this end, Tsang and Fridrich (Reference 1: Tsang CF, Fridrich J. Steganalyzing images of arbitrary size with CNNs. Electron. Imag, 2018, 2018 (7): 1–8) designed a detector based on different sizes (SID). However, the network structure is not perfect enough. For different and large data sets, its performance accuracy is slightly reduced, and the detection accuracy still needs to be improved. Summary of the invention
[0004] In view of the current problem of low accuracy in steganalysis detection of images of different sizes, the present invention provides a twin convolutional network steganalysis framework based on an inverted residual structure.
[0005] The present invention provides a twin convolutional network steganalysis framework based on an inverted residual structure, which comprises an image preprocessing module, an image feature extraction module and an image classification module in sequence;
[0006] The image preprocessing module is used to preprocess the image by combining high-pass filtering with a deep separable neural network to obtain the correlation of the residual errors between channels of the image; the image preprocessing module includes two preprocessing branches with the same structure; each of the preprocessing branches includes a filter layer, two deep separable neural network layers and three first Block blocks in sequence;
[0007] The image feature extraction module is used to extract image features; the image feature extraction module includes two feature extraction branches with the same structure; each of the feature extraction branches includes an inverted residual network layer and two Block groups in sequence; each of the Block groups includes a second Block and a first Block in sequence;
[0008] The image classification module is used to fuse the features extracted by the two feature extraction branches, and classify the image into a carrier image and a dense image according to the fused features; the image classification module includes two global average pooling layers respectively connected to the two feature extraction branches, a loss function connecting the two global average pooling layers, and a final fully connected layer;
[0009] The two preprocessing branches and the two feature extraction branches share weight values respectively.
[0010] Furthermore, the filter layer includes 30 SRM linear filter kernels.
[0011] Furthermore, the deep separable neural network layer includes a first Specon block, a Relu function and a second Specon block in sequence; the first Specon block includes a 3×3 deep convolution, an absolute value layer, a point-by-point convolution and a BN layer in sequence; the second Specon block includes a 3×3 deep convolution, a point-by-point convolution and a BN layer in sequence.
[0012] Furthermore, the inverted residual network layer includes a first part, a second part and a third part in sequence; the first part includes a 1×1 convolution layer, a BN layer and a Relu6 activation function in sequence; the second part includes a 3×3 depth convolution, a BN layer and a Relu6 activation function in sequence; the third part includes a 1×1 convolution layer and a BN layer in sequence; the output of the first part and the output of the third part after the ⊕ operation is the output of the inverted residual network layer.
[0013] Furthermore, the first Block includes a first part and a second part in sequence; the first part includes a 3×3 convolution layer, a BN layer and a Relu function in sequence; the second part includes a 3×3 convolution layer and a BN layer in sequence; the input of the first part and the output of the second part are subjected to the ⊕ operation and then input into the Relu function, and the output of the first Block is the output of the first Block.
[0014] Furthermore, the second Block includes a first part, a second part and a third part; the first part and the third part have the same input; the output of the first part is used as the input of the second part; the output of the second part and the output of the third part are input to the Relu function after the ⊕ operation, and the output is the output of the second Block; the first part includes a 3×3 convolution layer, a BN layer and a Relu6 activation function in sequence; the second part includes a 3×3 convolution layer and a BN layer in sequence; the third part includes a 1×1 convolution layer and a BN layer in sequence.
[0015] Beneficial effects of the present invention:
[0016] (1) The present invention innovatively proposes a preprocessing layer that integrates high-pass filtering and deep separable neural network. When preprocessing the image, the high-pass filtering combined with the deep separable network can effectively obtain the channel correlation and the spatial correlation of the residual, which is conducive to improving the detection accuracy.
[0017] (2) This invention innovatively proposes an inverted residual network model suitable for the feature extraction layer. Convolution will discard some features while extracting image features, and obtain more features during feature extraction to prepare for subsequent classification. The inverted residual network can reuse features in the extraction stage, alleviate feature degradation, and effectively improve the detection accuracy of the model.
[0018] (3) The present invention innovatively adopts a twin convolutional neural network. By leveraging the shared weight characteristics of the twin network's two branches, the detection accuracy is effectively improved on images of different sizes while maintaining the order of magnitude of the number of parameters. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A schematic diagram of the structure of a twin convolutional network steganalysis framework based on an inverted residual structure provided by an embodiment of the present invention;
[0020] Figure 2 A schematic diagram of the structure of a deep separable neural network layer provided in an embodiment of the present invention;
[0021] Figure 3 A schematic diagram of the structure of the Block provided in the embodiment of the present invention: (a) is the first Block; (b) is the second Block;
[0022] Figure 4 A schematic diagram of the structure of an inverted residual network layer provided in an embodiment of the present invention;
[0023] Figure 5 The training accuracy, training loss change and AUC curve of the WOW steganography algorithm at an embedding rate of 0.4 using the method of the present invention provided in an embodiment of the present invention;
[0024] Figure 6 The detection accuracy of the method of the present invention and the comparative method provided in the embodiment of the present invention under different embedding rates of three adaptive steganography algorithms;
[0025] Figure 7 A schematic diagram of training accuracy and training loss provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all 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.
[0027] like Figure 1 As shown, an embodiment of the present invention provides a twin convolutional network steganalysis framework based on an inverted residual structure, which includes an image preprocessing module, an image feature extraction module and an image classification module in sequence;
[0028] The image preprocessing module is used to preprocess the image by combining high-pass filtering with a deep separable neural network to obtain the correlation of the residual errors between channels of the image; the image preprocessing module includes two preprocessing branches with the same structure; each of the preprocessing branches includes a filter layer, two deep separable neural network layers and three first Block blocks (also called Block1 blocks) in sequence;
[0029] As an implementable method, in order to enrich the expression of steganographic features, the filter layer uses 30 SRM linear filter kernels, and the output after filtering is 30 feature maps; the selected filter size is 5×5. It should be noted that the embodiment of the present invention uses a full learning model, and the characteristic point of the model is that the weight changes with the change of training.
[0030] Embedded messages based on adaptive steganography algorithms are generally embedded in areas with complex textures and are difficult to detect. Obtaining the correlation between channels is the key to improving detection. This embodiment introduces two deep separable neural network layers, which are composed of depthwise convolution (DW) and pointwise convolution (PW). The function of deep convolution is filtering, while the function of pointwise convolution is channel conversion. Therefore, obtaining the residual between channels through the image preprocessing module can effectively extract the detection accuracy of steganalysis.
[0031] As an implementation method, Figure 2 As shown, the deep separable neural network layer includes a first Specon block, a Relu function and a second Specon block in sequence; the first Specon block includes a 3×3 deep convolution (DW), an absolute value layer (Absolute Activation, ABS), a point-by-point convolution (PW) and a BN layer in sequence; the second Specon block includes a 3×3 deep convolution (DW), a point-by-point convolution (PW) and a BN layer in sequence.
[0032] Specifically, the channel fusion of PW is used to extract the residual correlation between channels, and the detection accuracy is improved by improving the network depth, but it also increases the amount of calculation. The calculation of DW is simple, and a convolution kernel is used for each channel of the input feature map, which reduces the amount of calculation.
[0033] The image feature extraction module is used to extract image features; the image feature extraction module includes two feature extraction branches with the same structure; each of the feature extraction branches includes an inverted residual network layer and two Block groups in sequence; each of the Block groups includes a second Block and a first Block in sequence;
[0034] This embodiment includes two types of Blocks: a first Block (also called Block 1) and a second Block (also called Block 2). As an implementation method, Figure 3 As shown in (a), the first Block includes the first part and the second part in sequence; the first part includes a 3×3 convolution layer, a BN layer and a Relu function in sequence; the second part includes a 3×3 convolution layer and a BN layer in sequence; the input of the first part and the output of the second part are input to the Relu function after the ⊕ operation, and the output is the output of the first Block. As an implementation method, Figure 3 As shown in (b), the second Block includes the first part, the second part and the third part (this part is also called the Shortcut layer); the first part and the third part have the same input; the output of the first part is used as the input of the second part; the output of the second part and the output of the third part are input to the Relu function after the ⊕ operation, and the output is the output of the second Block; the first part includes a 3×3 convolution layer, a BN layer and a Relu6 activation function in sequence; the second part includes a 3×3 convolution layer and a BN layer in sequence; the third part includes a 1×1 convolution layer and a BN layer in sequence. Among them, the stride of the convolution layer in the third part is 2; the number of feature channels of Block1 input is 30, and the number of feature channels of output is 30.
[0035] In order to allow the network to learn more features, the features of the acquired image are further increased in the feature extraction layer of the network, which will help improve the detection accuracy. Based on this idea, in order to learn more features, feature reuse is the key. Therefore, the image feature extraction module in this embodiment introduces an inverted residual network layer, which achieves the purpose of maximizing feature extraction by increasing the number of channels of image features.
[0036] As an implementation method, Figure 4As shown, the inverted residual network layer includes a first part, a second part and a third part in sequence; the first part includes a 1×1 convolution layer, a BN layer and a Relu6 activation function in sequence; the second part includes a 3×3 depth convolution (DW), a BN layer and a Relu6 activation function in sequence; the third part includes a 1×1 convolution layer and a BN layer in sequence; the output of the first part and the output of the third part after the ⊕ operation is the output of the inverted residual network layer.
[0037] Specifically, in the first part, the number of channels is increased to 60 through a 1×1 convolution kernel, which can extract more features, thus increasing the features input to the BN layer. Since many features are extracted in the first part, in the second part, the DW layer is used to extract richer features; and since the second part is dimensionality reduction, and the nonlinear activation function will destroy the low-dimensional features, the nonlinear activation function is not used here, but the Relu6 activation function is used. In general, the role of the inverted residual network layer can be summarized as: "expansion" → "convolution to extract features" → "compression", that is: first use 1×1 convolution to complete the channel expansion of the image, then use DW to extract image features, and finally use 1×1 convolution to reduce the number of image channels.
[0038] The image classification module is used to fuse the features extracted by the two feature extraction branches, and divide the image into a carrier image and a dense image according to the fused features; the image classification module includes two global average pooling layers respectively connected to the two feature extraction branches, a loss function connecting the two global average pooling layers, and a final fully connected layer.
[0039] The two preprocessing branches and the two feature extraction branches share weight values respectively.
[0040] Specifically, in order to better obtain the difference between the image before and after steganography, enrich the image features as much as possible, and improve the detection efficiency, in this embodiment, the maximum value, minimum value, average value and variance of the matrix can be calculated using formula (1) in document 1; the loss function is calculated using formula (2) and formula (3) therein, and then the extracted features are classified using full connection.
[0041] It should be noted that the reason why "average pooling" is used in this embodiment is that the signal of the steganalysis task is relatively weak, which requires as many features as possible to be extracted during pooling. Maximum pooling focuses on extracting important features, which is not conducive to steganalysis. Average pooling can not only extract the background information of the image, but also reduce parameters and prevent overfitting. Therefore, this embodiment uses the average pooling layer.
[0042] In this embodiment, two activation functions are used in total. The reason is that the non-saturated activation function ReLU can solve the "gradient disappearance" problem and accelerate the convergence speed; and ReLU6 is a deformation of ReLU, which can prevent the feature from losing important information.
[0043] In order to verify the effectiveness of the twin convolutional network steganalysis framework based on the inverted residual structure provided by the present invention, the present invention also provides the following experimental data.
[0044] (1) Experimental equipment parameters: Ubuntu operating system, graphics cards: NVIDIA TelsaV100 (32G), NVIDIATitan RTX (24 GB) and NVIDIA TelsaK80;
[0045] (2) Datasets: Three public datasets were used, namely BossBase-1.01, Bows, and ALASKA#2. Bossbase-1.01 contains 10,000 512×512 images, and Bows contains 10,000 512×512 images. ALASKA #2 dataset We use ALASKA_512 and ALASKA_VAR, where ALASKA_512 contains 80005 512 × 512 images, ALASKA_VAR contains: 5044 512 × 512 images, 4933 512 × 640 images, 5078 512 × 720 images, 4971 512 × 1024 images, 5070 640 × 512 images, 4899 640 × 640 images, 4927 640 × 720 images, 4991 640 × 1024 images, 4954 720 × 512 images, 4972 720 × 640 images, 5059 720 × 720 images, 5019 720 × 1024 images, 5057 1024 × 512 images, 5007 1024 × 640 images, 5082 1024 × 720 images, and 4942 1024 × 1024 images.
[0046] (3) Network parameter setting: The learning rate initialization parameter used is 0.001. When Epoch is greater than 300, the learning rate is divided by 10. The Admax optimizer is used to solve the minimum value of the loss function. The weight decay is 0.0001. The L2 regularization method is used to prevent overfitting. Here is the steganalysis detection accuracy, loss change and AUC curve of the WOW algorithm at an embedding rate of 0.4 on the BossBase+Bows data. Figure 5(a) It can be seen that the accuracy has jumped at 300 Epochs because of the change in learning rate
[0047] (4) Image library construction
[0048] The BossBase-1.01 and Bows databases were used to generate 20,000 256×256 image libraries using the Imresize function in Matlab. WOW, S-UNIWARD, and HILL adaptive steganography algorithms were used to generate 20,000 cryptanalyst images at three embedding rates: 0.1 bpp, 0.2 bpp, 0.3 bpp, and 0.4 bpp. The training set, validation set, and test set were set as follows:
[0049] The carrier image training set is 12000, the validation set is 2000, and the test set is 6000. The corresponding encrypted image training set is 12000, the validation set is 2000, and the test set is 6000.
[0050] When detecting steganalysis of images of different sizes, the ALASKA set is set as follows: 50,000 images from the ALASKA_512 set are randomly selected as carrier images, and the corresponding steganalysis images are generated to form the training set. The validation set contains 10,000 carrier images and the corresponding 10,000 steganalysis images. The test set uses images from the ALASKA_VAR set. We use all images of different sizes as carrier images and generate corresponding steganalysis images to form the test set. In order to allow images of different sizes to have embedded information, the embedding rate used in this experiment is the same as that used in SiaStegNet (Reference 2: You W, Zhang H, Zhao X. ASiamese CNN for image steganalysis. IEEE Transactions on InformationForensics and Security, 2020, 16: 291-306).
[0051] (5) Fixed size image detection
[0052] exist Figure 6 We further compare the detection accuracy of the proposed algorithm and the SiaStegNet algorithm under four embedding rates of the WOW adaptive algorithm. When detecting the WOW algorithm at an embedding rate of 0.1, the accuracy of the proposed method is improved by 2.5%; when detecting the WOW algorithm at an embedding rate of 0.2, the accuracy of the proposed method is 1.03%, and the proposed method is slightly better than the comparison method at embedding rates of 0.3 and 0.4.
[0053] (6) Image detection of different sizes
[0054] During the training of this set of experiments, the images were not randomly cropped, and 512×512 images were directly input for training.
[0055] like Figure 7 As shown in the figure, from the training accuracy point of view, the proposed method has a rapid improvement in detection accuracy before 50 Epochs. This change is also due to the faster calculation speed of the deep separable neural network and the acquisition of more features. It can also be reflected from the change of Loss. At 50 Epochs, the Loss of the proposed method drops quickly and the fluctuation is also small. The Loss of SiaStegNet and SID methods drops slowly.
[0056] This paper analyzes the low efficiency of existing steganalysis methods in detecting steganalysis in various data sets and images of different sizes, and proposes a steganalysis scheme based on an improved twin network. The deep separable neural network is introduced to extract the correlation of residual channels, and the inverted residual network is introduced to maximize the use of features and alleviate feature degradation. The combination of the two effectively improves the detection accuracy. This paper analyzes the advantages of introducing two structures, and gives a feature change diagram that visualizes the detection accuracy under the WOW algorithm. In order to further verify the effectiveness of the proposed method, the detection accuracy and AUC of three adaptive algorithms at four embedding rates are given, and more than ten groups of test results are given for images of different sizes in the ALASKA image set. The experimental results show that, on the BossBase and Bows datasets, compared with SiaStegNet, while ensuring that the number of parameters does not increase by an order of magnitude, the detection accuracy of the network framework proposed in the present invention for WOW at 0.1, 0.2 and 0.3 embedding rates is improved by more than 1% on average; in the ALASKA image library of different sizes, compared with SID, the accuracy of the network framework proposed in the present invention is improved by more than 10% on average; compared with SiaStegNet, the accuracy of the network framework proposed in the present invention is improved by more than 5% on average; in terms of model loss change, compared with the SID and SiaStegNet methods, the loss of the network designed by the present invention decreases rapidly and steadily before the first 50 rounds. It can be seen that compared with the SiaStegNet method, while ensuring that the number of parameters is not increased by an order of magnitude, the network framework proposed in the present invention has advantages in detecting both WOW and HILL adaptive algorithms. Compared with the SID and SiaStegNet algorithms, the detection accuracy at different sizes is greatly improved.
[0057] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A twin convolutional network steganalysis device based on an inverted residual structure, characterized in that: It includes an image preprocessing module, an image feature extraction module and an image classification module in sequence; The image preprocessing module is used to preprocess the image by using a high-pass filter combined with a deep separable neural network to obtain the correlation of the residual errors between the channels of the image; the image preprocessing module includes two preprocessing branches with the same structure; Each of the preprocessing branches sequentially includes a filter layer, two depth-separable neural network layers and three first Block blocks; The image feature extraction module is used to extract image features based on the output of the image preprocessing module; the image feature extraction module includes two feature extraction branches with the same structure; each of the feature extraction branches includes an inverted residual network layer and two Block groups in sequence; each of the Block groups includes a second Block and a first Block in sequence; The image classification module is used to fuse the features extracted by the two feature extraction branches, and classify the image into a carrier image and a dense image according to the fused features; the image classification module includes two global average pooling layers respectively connected to the two feature extraction branches, a loss function connecting the two global average pooling layers, and a final fully connected layer; The two preprocessing branches and the two feature extraction branches share weight values respectively.
2. According to the twin convolutional network steganalysis device based on the inverted residual structure of claim 1, it is characterized in that: The filter layer includes 30 SRM linear filter kernels.
3. The twin convolutional network steganalysis device based on the inverted residual structure according to claim 1 is characterized in that: The deep separable neural network layer includes a first Specon block, a Relu function, and a second Specon block in sequence; the first Specon block includes a 3×3 deep convolution, an absolute value layer, a point-by-point convolution, and a BN layer in sequence; the second Specon block includes a 3×3 deep convolution, a point-by-point convolution, and a BN layer in sequence.
4. The twin convolutional network steganalysis device based on the inverted residual structure according to claim 1, characterized in that: The inverted residual network layer includes a first part, a second part and a third part in sequence; the first part includes a 1×1 convolution layer, a BN layer and a Relu6 activation function in sequence; the second part includes a 3×3 depth convolution, a BN layer and a Relu6 activation function in sequence; the third part includes a 1×1 convolution layer and a BN layer in sequence; the output of the first part and the output of the third part after the ⊕ operation is the output of the inverted residual network layer.
5. The twin convolutional network steganalysis device based on inverted residual structure according to claim 1, characterized in that: The first Block includes a first part and a second part in sequence; the first part includes a 3×3 convolution layer, a BN layer and a Relu function in sequence; the second part includes a 3×3 convolution layer and a BN layer in sequence; the input of the first part and the output of the second part are subjected to the ⊕ operation and then input into the Relu function, which is the output of the first Block.
6. The twin convolutional network steganalysis device based on inverted residual structure according to claim 1, characterized in that: The second Block includes a first part, a second part and a third part; the first part and the third part have the same input; the output of the first part is used as the input of the second part; the output of the second part and the output of the third part are input to the Relu function after the ⊕ operation, and the output is the output of the second Block; the first part includes a 3×3 convolution layer, a BN layer and a Relu6 activation function in sequence; the second part includes a 3×3 convolution layer and a BN layer in sequence; the third part includes a 1×1 convolution layer and a BN layer in sequence.
Citation Information
Patent Citations
Face recognition method, device and apparatus based on two-way attention mechanism
CN110781784A
Medical waste classification detection method based on improved SSD
CN112270347A
