A single image super-resolution method and system based on deep neural network ensemble model based on online knowledge transfer
By introducing a differential upsampling module and an online knowledge transfer module into the deep neural network ensemble model, the problems of insufficient differentiation and training difficulties between base learners are solved, the reconstruction effect of single image super-resolution is improved, and a more accurate image is achieved. Good high-resolution image detail recovery.
Patent Information
- Application Number
- CN202011531087.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-22
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-12-22
AI Technical Summary
The single-image super-resolution ensemble model based on deep neural networks has problems such as insufficient differentiation between base learners and difficulty in training, which affects the reconstruction effect of the model.
A deep neural network integration model based on online knowledge transfer is designed. By introducing a differential upsampling module and an extended Cross-stitch unit, the differences between base learners are enhanced, and a learnable weight merging mechanism is adopted to improve Model training effect and performance.
It effectively improves the difference between base learners, improves the reconstruction effect of the integrated model, reduces the training difficulty, and finds the overall optimal solution through end-to-end training, significantly improving the detail recovery performance of high-resolution images.
Smart Images

Figure CN112508792B
Abstract
Description
Technical Field
[0001] The present invention relates to a single image super-resolution method and system of a deep neural network integrated model based on online knowledge transfer, which is particularly suitable for scenarios with high requirements on the details of the reconstructed high-resolution image. Background Art
[0002] Single Image Super Resolution (SISR) is a classic problem in the field of computer vision. Its purpose is to reconstruct a high-resolution (HR) image with larger size and richer details based on a given single low-resolution (LR) image. This technology has been widely used in remote sensing image imaging, video security, and medical image imaging. A large number of SISR methods have been proposed, which can be specifically divided into interpolation methods, reconstruction methods, and learning methods. Among them, interpolation methods use domain-based interpolation methods to reconstruct HR images from LR images, such as nearest neighbor interpolation and bicubic interpolation. These methods are very fast and direct, but lack accuracy. Reconstruction-based methods constrain the possible solution space of reconstructed HR images by defining detailed explicit prior information (in the form of distribution, energy function, etc.). However, as the upsampling factor increases, the performance of these methods drops rapidly. Learning-based methods use paired LR images and corresponding HR images to learn the mapping function from LR to HR images. Among the current SISR methods, learning-based methods, especially SISR models based on deep neural networks (DNN), are widely used and outperform models based on interpolation or reconstruction.
[0003] Since SISR is a process of restoring a large amount of missing information based on limited information, it is an ill-posed problem with no unique solution, that is, for the same low-resolution image, SISR methods using different restoration mechanisms will generate high-resolution images containing different details. Combining the high-resolution images generated by these different SISR methods using an integrated model can provide high-resolution images with finer details. The key to the excellent performance of the integrated model is that the individual base learners must perform well and there is sufficient difference between the base learners. The present invention proposes an integrated model framework for end-to-end training of SISR methods. The framework innovatively designs a "difference introduction module" and an "online knowledge transfer module". The former can actively enhance the differences between base learners, while the latter improves the performance of all base learners during training, thereby improving the performance of the integrated model.
[0004] Ensemble models have been applied to SISR problems and have shown better performance than single learners, such as ESCN and MSCN. These methods first randomly initialize multiple DNNs with the same structure, train them separately using the training set, and use these DNNs as base learners to build an ensemble model. In the process of reconstructing HR images, such as Figure 1 As shown in Figure 2, the model first uses an upsampling module (Up, usually bicubic interpolation) to convert the LR image I LR Enlarge it to the target size, and then use the enlarged image as the input of each base learner to obtain a set of outputs Finally, this set of outputs is combined into the final HR image I in an equally weighted manner HR However, the DNN-based ensemble model has the following problems: 1) The learning of the individual base learners of the DNN ensemble model is a highly complex non-convex optimization problem. The base learners learned by the gradient descent method are prone to fall into bad local minima, thus affecting the effect of the entire ensemble model; 2) Even if each base learner is well learned, the powerful learning ability of the DNN will reduce the differences between different base learners, and differences are the guarantee for the ensemble model to achieve good performance. Therefore, these problems restrict the ensemble model from making significant breakthroughs in the effect of SISR. Summary of the invention
[0005] The purpose of the present invention is to provide a new integrated model framework based on DNN for solving the SISR problem. The framework can solve the problems existing in the traditional DNN integrated model for solving SISR, namely, insufficient differences between base learners and difficulty in training base learners, and improve the effect of the model in reconstructing HR images.
[0006] The technical solution of the present invention is as follows:
[0007] The present invention first discloses a single image super-resolution method of a deep neural network integrated model based on online knowledge transfer, which comprises the following steps:
[0008] 1) Constructing an integrated model based on DNN, wherein the integrated model includes multiple base learners based on DNN, each base learner has an upsampling module and a refinement network; and the upsampling modules of different base learners use different upsampling methods; the base learners are connected by using an extended Cross-stitch unit, and the activation maps {x 1 …x N}Get the input of the next layer of these base learners The outputs of the base learners are combined into a final output HR image through learnable weights;
[0009] 2) Using the training set containing LR images and their corresponding HR images as labels to train the integrated model, an integrated model capable of super-resolving low-resolution images to high-resolution images is obtained through training;
[0010] 3) Use the trained integrated model to perform super-resolution processing on the low-resolution images in the test dataset.
[0011] The present invention also discloses a deep neural network integration system based on online knowledge transfer for single image super-resolution processing, which comprises:
[0012] A plurality of base learners based on DNN; each base learner has an upsampling module and a refinement network; and the upsampling modules of different base learners use different upsampling methods to upsample the input LR image; the refinement network is composed of a feature extraction network, a plurality of residual blocks, a reconstruction network and a skip layer connection from a coarse input to an output, wherein the feature extraction network uses a convolutional layer to extract features from the coarse input; each residual block includes a convolutional layer with a Leaky ReLU activation function and a convolutional layer without an activation function; the reconstruction network uses two convolutional layers to reconstruct the residual image;
[0013] The extended Cross-stitch unit is constructed by linearly combining the activation maps {x 1 …x N}Get the input of the next layer of these base learners
[0014] A learnable base learner output merging unit combines the outputs of each base learner into a final output HR image through learnable weights.
[0015] Compared with the prior art, the present invention has the following beneficial effects:
[0016] (1) The present invention adds an upsampling module to each base learner. Each upsampling module uses a different upsampling method to generate different reconstructed image details, which can actively introduce differences into the base learners, that is, actively enhance the differences between the base learners, ensuring that the integrated model can obtain good performance; and through the upsampling method, rather than the traditional interpolation method, as an upsampling module, the refined network can obtain a higher quality coarse input, thereby reducing its training difficulty.
[0017] (2) The present invention extends the Cross-stitch unit as an online knowledge transfer module; the extended Cross-stitch unit linearly combines the activation maps {x 1 …x N}Get the input of the next layer of these DNNs The present invention can strengthen the beneficial input from other base learners and weaken the unfavorable input through this method.
[0018] (3) The present invention adopts a learnable base learner output merging mechanism. Compared with the traditional equal weight method, the learnable weight w can be adaptively combined according to the outputs of different base learners, thereby achieving better results. At the same time, the entire integrated model can be trained in an end-to-end manner, which is more conducive to finding the overall optimal solution. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a traditional DNN-based integrated model framework;
[0020] Figure 2 The integrated model framework of DNN proposed in the present invention;
[0021] Figure 3 It is a DNN integration model based on online knowledge transfer;
[0022] Figure 4 is the network structure of the base learner;
[0023] Figure 5 For the extended Cross-stitch unit;
[0024] Figure 6 Building processes for integrated models;
[0025] Figure 7 The performance comparison between KTDE and KTDE-VDSR, KTDE-DRRN, and KTDE-MS-LapSRN;
[0026] Figure 8 The changes of KTDE and KTDE-w / o KT training loss during training;
[0027] Fig. 9 The changes of PSNR of KTDE and KTDE-w / o KT on Set5 after adding different degrees of Gaussian noise to the model;
[0028] Fig.10 Comparison of image recovery details between KTDE and KTDE-w / o KT after adding different degrees of Gaussian noise to the model. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0030] like Figure 1 and 2 As shown in Figure 2, compared with the traditional DNN-based integrated model framework ( Figure 1 ), the integrated model framework designed by the present invention ( Figure 2 ) adds "difference upsampling module" and "online knowledge transfer module". The former gives each base learner a different upsampling module This provides each base learner with input with different details, that is, actively enhances the differences between base learners; the latter connects different base learners in pairs, so that during the training process, the error gradient signal can be transmitted from one base learner to different base learners, thereby helping to improve the overall performance.
[0031] Based on this framework, the present invention designs a DNN integration model KTDE ( Figure 3 , Knowledge Transfer powered Deep Ensemble) to verify the effectiveness of the framework. The model contains three base learners with "difference upsampling modules", and the base learners are connected by "online knowledge transfer modules". Each base learner is combined into the final output, i.e., the reconstructed HR image, through a learnable weight w.
[0032] The present invention uses three DNN-based base learners to construct our ensemble model KTDE. In the proposed framework, each base learner has an upsampling module and a refinement network. Figure 4 The network structure of the base learner we designed is shown. When given an input LR image I LR , the base learner first uses a unique upsampling module Up k Enlarge it to the target size and input coarsely I′ LR . Since different upsampling methods can produce different reconstructed image details, this module can actively introduce differences into the base learners. In this invention, the three base learners respectively use pre-trained DNN-based SISR models, namely VDSR, DRRN and MS-LapSRN as upsampling modules. By using these advanced upsampling methods, rather than traditional interpolation methods, as upsampling modules, the refined network can obtain higher quality coarse input, thereby reducing its training difficulty.
[0033] The next refined network (such as Figure 4 ) consists of a feature extraction network (FENet), three residual blocks (ResBlock), a reconstruction network (RecNet), and a skip connection from coarse input to output. Specifically, FENet uses a convolutional layer (Conv) to extract features from the coarse input. Each residual block consists of a convolutional layer with a Leaky ReLU activation function and a convolutional layer without an activation function. Finally, the model uses two convolutional layers to reconstruct the residual image. The skip connection not only reduces the difficulty of training, but also retains the diversity introduced by the "difference upsampling module". All convolutional layers have 64 channels (except the last convolutional layer has only one channel for reconstruction), the filter size is set to 3*3, and the stride is set to 1 to ensure that the input and output sizes are the same.
[0034] In order to perform online knowledge transfer between multiple base learners, we extend the Cross-stitch unit (I. Misra, A. Shrivastava, A. Gupta, and M. Hebert, "Cross-stitch networks for multi-task learning," in Computer Vision and Pattern Recognition, 2016, pp. 3994–4003) to enable it to be applied to more than two DNNs. Figure 5 ) By linearly combining the activation maps {x 1 …x N}Get the input of the next layer of these DNNs As shown in formula (1). In the process of training these DNNs, each DNN can obtain information from different DNNs during forward propagation or back propagation, thereby helping each other to obtain a better solution.
[0035]
[0036] By learning the matrix A through the back-propagation algorithm, the cross-stitch unit can adaptively determine to what extent the output of a hidden layer of each base learner is transmitted to other base learners. In this way, for a base learner, the beneficial input from other base learners will be strengthened, while the unfavorable input will be weakened.
[0037] For the input LR image I LR , the output of all base learners By combining them in a linear weighted manner, as shown in formula (2), the weight w can be updated using the back propagation algorithm during training. Compared with the traditional equal weight method, learning w can be adaptively combined according to the outputs of different base learners to achieve better results. At the same time, the entire integrated model can be trained in an end-to-end manner, which is more conducive to finding the overall optimal solution.
[0038]
[0039] The following will be combined Figure 6 The present invention is further described in detail with the implementation example. This example introduces how to build an integrated model and perform training. The specific steps of the method are as follows:
[0040] Step 1: Construct a training data set. The model KTDE designed in the present invention is a supervised learning model, so it is necessary to construct a data set containing LR images and their corresponding HR images as labels. Since such paired LR images and HR images are difficult to obtain directly, this example collects a large number of high-quality natural images as HR images, and downsamples them m times to obtain LR images through bicubic interpolation to form a training data set. At the same time, in order to improve the generalization ability of the model, this example uses the following method to augment the training data: 1) Rotate each pair of images 90, 180, and 270 degrees at the same time, so that the data volume is expanded to 4 times; 2) Flip the data expanded in the previous step horizontally, and further expand the data volume to 8 times. This example also collects images that are not repeated in the training data set (from the public data sets Set5, Set14, BSDS100 and Urban100), and constructs a test set in the same way (but without data augmentation) to test the performance of the trained model.
[0041] Step 2: Build and initialize the integrated model. The algorithm first obtains the pre-trained models of VDSR, DRRN and MS-LapSRN through the open source community, and then builds Figure 2 The integrated model shown. At the same time, since the model designed by the present invention adopts the Leaky ReLU activation function, this example uses the model parameter initialization method suitable for the activation function to initialize the model parameters of each base learner. For the matrix A, in order to make the training process more stable, this example initializes its diagonal parameters to 0.8 and the remaining parameters to 0.1. For the integrated weight w, this example regards each base learner as equally important during initialization, that is, they are all initialized to 1 / 3.
[0042] Step 3: Model training. This example uses MAE as the loss function and trains the model using a stochastic gradient descent optimization algorithm called Adam. The learning rate of the Adam algorithm is set to 10 for the model parameters. -3 , set to 10 for matrix A -2To accelerate convergence. At the same time, the momentum term β of the Adam algorithm 1 and β 2 Set to 0.9 and 0.999 respectively. The model is trained 4×10 5 Steps, the batch size of training data in each step is 32. The pre-trained model does not participate in the training of the model.
[0043] Step 4: Model testing. After the model training is completed, this example uses the trained model to reconstruct the LR images in the test set to obtain HR images, and evaluates their similarity to the real HR images through the two indicators of PSNR and SSIM. The PSNR (Peak Signal to Noise Ratio) formula is shown in (3). The range of this indicator is (0, +∞). The larger the value, the closer the reconstructed image quality is to the real HR image; the SSIM (Structural Similarity) formula is shown in (4). The range of this indicator is [0, 1]. The closer the value is to 1, the closer the reconstructed image quality is to the real HR image.
[0044]
[0045]
[0046] Where n is the number of pixel bits, usually 8, MSE is the mean square error between the current image x and the reference image y; μ x and μ y represents the mean of images x and y, σ x and σ y Represents the variance of images x and y, σ xy Represents the covariance of images x and y. c 1 =(k 1 L) 2 ,c 2 =(k 2 L) 2 is a constant used to maintain stability, L is the dynamic range of pixel values, generally 255, k 1 =0.01,k 2 =0.03.
[0047] The importance of the difference upsampling module of the present invention is described below:
[0048] This experiment designs three additional ensemble models KTDE-VDSR, KTDE-DRRN, and KTDE-MS-LapSRN for comparison. These three ensemble models are consistent with the model designed by the present invention, except that they each use the same upsampling module (VDSR, DRRN, and MS-LapSRN). This experiment uses the Chi-square distance to calculate the output of different base learners of the same ensemble model for the same test set when the upsampling factor is 2. The average difference between them is formula (5).
[0049]
[0050] The experimental results are shown in Table 1. The difference between the model outputs of each base learner using different upsampling modules is significantly higher than that of the integrated model using the same upsampling model.
[0051] Furthermore, this experiment compares the performance changes of the four models on the Set5 dataset during training. Figure 7 As shown in the figure, the curves in the figure represent the changes in PSNR values with ×2 as the upsampling multiple on the Set5 dataset during the training process of each model. Figure 7 It can be seen that KTDE outperforms other ensemble models that use the same upsampling module. This experiment verifies the importance of the "difference upsampling module". Table 1 Average chi-square distance between the outputs of each base learner on different test sets for KTDE and KTDE-VDSR, KTDE-DRRN, and KTDE-MS-LapSRN
[0052] KTDE-VDSR KTDE-DRRN KTDE-MS-LapSRN KDJ Set5 <![CDATA[2.07×10 -6 ]]> <![CDATA[2.44×10 -6 ]]> <![CDATA[2.43×10 -6 ]]> <![CDATA[1.89×10 -2 ]]> Set14 <![CDATA[8.27×10 -6 ]]> <![CDATA[9.63×10 -6 ]]> <![CDATA[9.53×10 -6 ]]> <![CDATA[2.07×10 -2 ]]> BSDS100 <![CDATA[2.37×10 -6 ]]> <![CDATA[2.63×10 -6 ]]> <![CDATA[2.57×10 -6 ]]> <![CDATA[1.95×10 -2 ]]> Urban100 <![CDATA[1.79×10 -5 ]]> <![CDATA[2.01×10 -5 ]]> <![CDATA[4.90×10 -5 ]]> <![CDATA[1.20×10 -2 ]]>
[0053] The following illustrates the importance of the online knowledge transfer module:
[0054] Secondly, this experiment will verify the importance of the "online knowledge transfer module". Specifically, this experiment verifies the effectiveness of this module by comparing the performance of KTDE and the model KTDE-w / o KT without the "online knowledge transfer module" in training and testing. Figure 8 It can be seen that KTDE with "online knowledge transfer module" can converge faster than KTDE-w / o KT during training.
[0055] At the same time, this experiment verifies the robustness of the model by adding Gaussian noise with a standard deviation σ of 0 to 0.01 to the trained KTDE and KTDE-w / o KT, and testing its impact on the PSNR index of the model on the test set Set5. Fig. 9As shown in Figure 2, as the noise level increases, the performance of KTDE-w / o KT decreases significantly; on the contrary, the performance of KTDE decreases slowly. This experiment also demonstrates the model's ability to resist Gaussian noise through visualization. Fig.10 As shown in the figure, as the noise level increases, obvious ring-like ghosting appears at the edge of the HR image reconstructed by KTDE-w / o KT; on the contrary, the reconstruction effect of the KTDE model does not change significantly. These experiments prove the importance of the "online knowledge transfer module".
[0056] The following is a comparison between the method of the present invention and the existing advanced methods:
[0057] Finally, this experiment compares the model with other SISR models (including SISR ensemble model and single learner model) under different magnifications of 4 test sets. The comparison results are shown in Table 2. The model designed by the present invention is ahead of other models in both PSNR and SSIM indicators, which proves its effectiveness.
[0058] Table 2 PSNR / SSIM comparison of KTDE with existing SISR ensemble model or single learner model under different test sets and different upsampling multiples
[0059]
[0060] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A single image super-resolution method based on a deep neural network ensemble model based on online knowledge transfer, characterized in that The steps include: 1) Constructing a DNN-based integrated model, wherein the integrated model includes multiple DNN-based base learners, each of which has an upsampling module and a refinement network; for a given input LR image I LR , each base learner’s upsampling module uses different upsampling methods to obtain different target size coarse input images I′ LR , as the input of its refined network; each base learner is connected by an extended Cross-stitch unit, and the activation map {x1…x N }Get the input of the next hidden layer of these base learners As shown in formula (1); By learning the matrix A through the back-propagation algorithm, the extended Cross-stitch unit can adaptively determine to what extent the output of a hidden layer of each base learner is passed to other base learners; the outputs of the base learners are combined into the final output HR image through learnable weights; for the input LR image I LR , the output of all base learners By combining them in a linear weighted manner, as shown in formula (2), the weight w can be updated using the back propagation algorithm during training; 2) Using the training set containing LR images and their corresponding HR images as labels to train the integrated model, an integrated model capable of super-resolving low-resolution images to high-resolution images is obtained through training; 3) Use the trained integrated model to perform super-resolution processing on the low-resolution images in the test dataset.
2. The single image super-resolution method of the deep neural network integrated model based on online knowledge transfer as claimed in claim 1, characterized in that: The refinement network consists of a feature extraction network, multiple residual blocks, a reconstruction network and a skip layer connection from coarse input to output; the feature extraction network uses a convolutional layer to extract features from the coarse input; each residual block includes a convolutional layer with a Leaky ReLU activation function and a convolutional layer without an activation function; finally, the reconstruction network uses two convolutional layers to reconstruct the residual image.
3. The single image super-resolution method of the deep neural network integrated model based on online knowledge transfer as claimed in claim 1, characterized in that: The upsampling module uses a pre-trained model, and the pre-trained model does not participate in the integrated model training.
4. A deep neural network integration system based on online knowledge transfer for single image super-resolution processing, the system is used to implement the deep neural network integration model single image super-resolution method according to claim 1, characterized in that The system comprises: A plurality of base learners based on DNN; each base learner has an upsampling module and a refinement network; and the upsampling modules of different base learners use different upsampling methods to upsample the input LR image; the refinement network is composed of a feature extraction network, a plurality of residual blocks, a reconstruction network and a skip layer connection from a coarse input to an output, wherein the feature extraction network uses a convolutional layer to extract features from the coarse input; each residual block includes a convolutional layer with a Leaky ReLU activation function and a convolutional layer without an activation function; the reconstruction network uses two convolutional layers to reconstruct the residual image; The extended Cross-stitch unit is constructed by linearly combining the activation maps {x1…x N }Get the input of the next layer of these base learners A learnable base learner output merging unit combines the outputs of each base learner into a final output HR image through learnable weights.
