A method for image restoration quality evaluation based on multi-level difference learning

Through the multi-level difference learning method, the image quality data set is constructed and the multi-level difference generation sub-network and the perceptual difference regression sub-network are used to solve the problem that the existing technology cannot be applied to various restoration scenarios and accurately quantify the image quality changes, and achieve Accurate assessment and generalizability of image restoration quality.

CN114841887BActive Publication Date: 2024-09-06CHONGQING UNIV OF POSTS & TELECOMM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210515284.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-12
Publication Date
2024-09-06
Estimated Expiration
2042-05-12

AI Technical Summary

Technical Problem

Existing image restoration quality evaluation methods cannot be applied to a variety of restoration scenarios, and cannot accurately quantify quality changes between distorted restored images.

Method used

Using an image restoration quality evaluation method based on multi-level difference learning, by constructing a large-scale image quality data set, using a multi-layer difference generation sub-network and a perceptual difference regression sub-network, the quality perception features of the image are generated and the relative quality difference score is calculated and quantified The perceived difference between the image to be restored and the restored image.

Benefits of technology

It achieves a wide range of capabilities for a variety of recovery scenarios, can accurately quantify image quality changes, and provides more reliable image recovery algorithm performance ranking and quality analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114841887B
    Figure CN114841887B
Patent Text Reader

Abstract

The present invention belongs to the field of computer vision, and specifically relates to an image restoration quality evaluation method based on multi-level difference learning, the method comprising: obtaining a restored image to be evaluated, inputting the restored image into a trained image restoration quality evaluation model based on multi-level difference learning, and obtaining a quality evaluation result; classifying and saving the image according to the quality evaluation result; wherein the image restoration quality evaluation model based on multi-level difference learning comprises a multi-layer difference generation subnetwork and a perceptual difference regression subnetwork; the method proposed in the present invention does not only perform quality evaluation on the restored image, but can quantify the perceptual difference value between a pair of distorted restored images, so that the prediction of the restored image is more reliable and effective.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of computer vision, and in particular relates to an image restoration quality evaluation method based on multi-level difference learning. Background Art

[0002] Image restoration (IR) technology refers to restoring low-quality images to clear images. However, there is little research on how to objectively benchmark these algorithms, which is a challenging problem that may hinder the rapid development of image restoration technology. Image quality evaluation technology designed for image restoration scenarios can be used to rank the performance of image restoration algorithms, select parameters, and guide the design of image restoration algorithms, which can solve this problem well.

[0003] At present, most of the neural network-based no-reference image quality evaluation methods are designed for traditional distortion types. Although they have achieved good prediction results on the CSIQ, LIVE and TID2013 datasets, these methods are difficult to accurately evaluate the quality of restored images because the distortion of the restored images is multidimensional and complex; for example, Zhu et al. proposed a MetricQ quality evaluation method for image denoising scenarios to optimize the parameter selection of image denoising algorithms. Wu et al. established an image deraining dataset and then designed a model specifically for image deraining scenarios to evaluate the quality of derained images. These methods have promoted the development of image restoration quality evaluation for specific scenarios to a certain extent, but because they are designed for specific restoration scenarios, their generalization ability is relatively limited and cannot be applied to a variety of image restoration scenarios.

[0004] In summary, the existing technologies have the following problems: 1. The existing image restoration quality evaluation methods cannot be applied to all restoration scenarios and have weak generalization capabilities; 2. The existing image restoration quality evaluation methods cannot quantify the quality changes between distorted and restored image pairs. Summary of the invention

[0005] In order to solve the problems existing in the above prior art, the present invention proposes an image restoration quality evaluation method based on multi-level difference learning, which comprises: obtaining a restored image to be evaluated, inputting the restored image into a trained image restoration quality evaluation model based on multi-level difference learning, and obtaining a quality evaluation result; marking the image according to the quality evaluation result, and selecting an image restoration method of the marked image to restore other images to be restored; wherein the image restoration quality evaluation model based on multi-level difference learning comprises a multi-layer difference generation subnetwork and a perceptual difference regression subnetwork;

[0006] The process of training the image restoration quality assessment model based on multi-level difference learning includes:

[0007] S1: Build a large-scale image quality dataset, use the FR-IQA method to generate labels for the images in the dataset, and pair the distorted images and restored images in the same visual scene to form DRI image pairs; collect all DRI image pairs to obtain a training set;

[0008] S2: Input the DRI image pairs in the training set into the multi-layer difference generation sub-network to obtain the quality perception features of the image;

[0009] S3: Input the quality perception features into the perceptual difference regression sub-network to obtain the RPD value of the input DRI image pair;

[0010] S4: Calculate the loss function of the model based on the RPD value of the input DRI image pair;

[0011] S5: Continuously adjust the model parameters and complete the model training when the loss function is minimized.

[0012] Preferably, the process of using a multi-layer difference generation subnetwork to process the input image includes: the multi-layer difference generation subnetwork is composed of three convolution blocks, each convolution block includes three convolution layers; the DRI image pair is input into the first convolution block for feature extraction to obtain a first feature map; the first feature map is input into the attention-guided difference fusion module to obtain a first feature coding vector; the first feature map is input into the second convolution block after the maximum pooling operation to obtain a second feature map, and the second feature map is input into the attention-guided difference fusion module to obtain a second feature coding vector; the second feature map is input into the third convolution block after the maximum pooling operation to obtain a third feature map, and the third feature map is input into the attention-guided difference fusion module to obtain a third feature coding vector; after the first feature coding vector, the second feature coding vector and the third feature coding vector are subjected to the maximum pooling operation, three quality perception features are obtained.

[0013] Furthermore, the process of processing the input features by the attention-guided difference fusion module includes: obtaining the restored image feature map And distorted image feature map according to and Calculate the spatial difference characteristics of DRI on feature maps Will as well as The splicing is performed on the channel dimension, and the spliced ​​fusion features are input into the spatial attention and channel attention modules for weighting. The weighted fusion features are processed using the spatial pyramid pooling module to obtain the difference features, which are the feature encoding vectors.

[0014] Preferably, the process of processing the quality perception features using the perceptual difference regression subnetwork includes: inputting the three quality perception features generated by the multi-level difference generation subnetwork into the fully connected layer for feature mapping to obtain relative difference scores in the restored image and the distorted image.

[0015] Preferably, the calculation expression of the relative difference score between the restored image and the distorted image is:

[0016]

[0017] Among them, Q d and represent the quality scores of the image to be restored and the restored image generated by the i-th image restoration algorithm, respectively. represents the relative quality difference score of the i-th image pair.

[0018] Preferably, the loss function expression of the model is:

[0019]

[0020] Where N represents the number of training images, F represents, r represents the restored image, I d represents a distorted image, Represents the restored image I r and distorted image I d The relative quality difference of the true label value.

[0021] To achieve the above objectives, the present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, it implements any of the above-mentioned image restoration quality evaluation methods based on multi-level difference learning.

[0022] To achieve the above-mentioned objectives, the present invention also provides an image restoration quality evaluation device based on multi-level difference learning, comprising a processor and a memory; the memory is used to store computer programs; the processor is connected to the memory, and is used to execute the computer programs stored in the memory, so that the image restoration quality evaluation device based on multi-level difference learning can perform any of the above-mentioned image restoration quality evaluation methods based on multi-level difference learning.

[0023] Beneficial effects of the present invention:

[0024] The method proposed in the present disclosure does not only evaluate the quality of the restored image, but can quantify the perceived difference between the distorted restored image pairs. This is more reliable and effective than prediction based solely on the restored image, because the predicted relative perceived difference value can not only be used for the performance ranking of the image restoration algorithm, but also can be used to analyze from the relative perceived difference value whether the quality of the image to be restored increases or decreases after being processed by the image restoration algorithm. And because there is difference information between the image to be restored and the restored image in any restoration scenario, the present disclosure effectively utilizes this difference information, which makes the present invention more generalizable than other image restoration quality evaluation methods and can be applied to a variety of restoration scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a structural diagram of the image restoration quality evaluation model based on multi-level difference learning of the present invention;

[0026] Figure 2 This is a structural diagram of the attention-guided difference fusion module of the present invention;

[0027] Figure 3 This is a structural diagram of the attention module of the present invention. DETAILED DESCRIPTION

[0028] 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.

[0029] A method for evaluating image restoration quality based on multi-level difference learning, the method comprising: obtaining a restored image to be evaluated, inputting the restored image into a trained image restoration quality evaluation model based on multi-level difference learning, and obtaining a quality evaluation result; classifying and saving the image according to the quality evaluation result; wherein the image restoration quality evaluation model based on multi-level difference learning comprises a multi-layer difference generation subnetwork and a perceptual difference regression subnetwork.

[0030] The process of training the image restoration quality assessment model based on multi-level difference learning includes:

[0031] S1: Build a large-scale image quality dataset, use the FR-IQA method to generate labels for the images in the dataset, and pair the distorted images and restored images in the same visual scene to form DRI image pairs; collect all DRI image pairs to obtain a training set;

[0032] S2: Input the DRI image pairs in the training set into the multi-layer difference generation sub-network to obtain the quality perception features of the image;

[0033] S3: Input the quality perception features into the perceptual difference regression sub-network to obtain the RPD value of the input DRI image pair;

[0034] S4: Calculate the loss function of the model based on the RPD value of the input DRI image pair;

[0035] S5: Continuously adjust the model parameters and complete the model training when the loss function is minimized.

[0036] Using sufficient data is very important for data-driven CNN-based quality assessment methods, which can better train the model in the method and obtain more accurate results; however, the existing databases are relatively small, and the number of images is not enough to train a CNN-based quality model. For example, the real motion deblurring MDRID database contains only 1,300 deblurred images with quality labels. This data scale cannot even train a shallow neural network. To solve this problem, a large-scale image quality dataset is first established, and then the images of the same visual content in 36,000 distorted images are paired one by one to obtain 630,000 pairs of images. These images do not need to be manually labeled to generate quality labels, but use a reliable FR-IQA method to generate weak annotation labels. Then, the distorted images are paired with their corresponding restored images to form DRI pairs. The two types of data preparation are described in detail below.

[0037] In order to solve the shortage of training data, a large-scale image quality database is first established for pre-training models. The database contains 1000 reference images and 36000 simulated distorted images. Specifically, 1000 images collected from existing image quality databases (such as CSIQ data) and the Internet are used as reference images; to ensure the diversity of visual content, these reference images cover a variety of visual content such as people, animals, vehicles, buildings, and natural landscapes. According to the characteristics of the distortion type, the present disclosure adds three common traditional distortion types to each reference image to generate distorted images. Specifically, these three types of distortion types include image blur (Gaussian blur and motion blur), image noise (Gaussian noise and salt and pepper noise), and image compression distortion (JPEG compression distortion and JPEG2K compression distortion). In order to simulate the widely distributed distortion degree in real situations, the present disclosure sets 6 different levels of distortion for each distortion. In this way, 36000 distorted images with different visual content, different distortion types, and different distortion degrees can be obtained.

[0038] After the simulated distorted images are generated, the present disclosure generates quality scores as subjective scores of these distorted images using a full-reference image quality assessment method.

[0039] Use a single image to construct a simulated distorted image pair. Since each pair of DRI images comes from the same scene, the principle of constructing a simulated distorted image pair is: use the same reference image to construct a simulated distorted image pair, and all distorted images from the same reference image are called an image group. For each image group, construct Image pairs:

[0040] A={(I i ,I j ),i=1,2...,35,i <j≤36}

[0041] Among them, A represents the image pair, I i represents the i-th image, I j represents the jth image. The quality label set of each image pair is:

[0042] D={D i,j =Q i -Q j ,i=1,2,...,35,i<j≤36}

[0043] Among them, D i,j represents the quality score difference between the i-th image and the j-th image, Q i and Q j Represent the quality scores of the i-th image and the j-th image respectively. According to the above formula, we can get the image pairs and corresponding quality labels of all image groups:

[0044]

[0045]

[0046] Among them, A i and D i They represent the image pair set and quality label set of the i-th reference image respectively. Finally, we can get To the image.

[0047] The process of generating labels for images in the dataset using the FR-IQA method includes: assuming that there are m×n restored images, where m is the number of images to be restored and n is the number of image restoration algorithms; each image to be restored and its set of restored images is called a data group. For each data group, the image to be restored and the n restored images are paired to generate n DRI pairs:

[0048]

[0049] Among them, I d and Denote the image to be restored and the restored image generated by the i-th image restoration algorithm respectively. The quality label set of the DRI pair is the relative difference score between the restored image and the distorted image, which is expressed as:

[0050]

[0051] Among them, Q d and represent the quality scores of the image to be restored and the restored image generated by the i-th image restoration algorithm, respectively. Represents the relative quality difference score of the i-th image pair. Through this method, we can finally obtain m×n image pairs:

[0052]

[0053]

[0054] Among them, A i and D i They are represented as the image pair set and quality label set of the i-th data group respectively.

[0055] Pair the n restored images of the image to be restored to obtain more training samples. For each data set, a Therefore, this method can further obtain Image pairs, which can eventually be constructed image pairs.

[0056] The image restoration quality evaluation model based on multi-level difference learning mainly includes two sub-networks, namely the multi-layer difference generation sub-network and the perceptual difference regression sub-network. The overall structure of the network is shown in the figure Figure 1 As shown in Figure 2, a multi-level difference generation sub-network is used to generate quality-aware features, which are then fed into the perceptual difference regression sub-network to generate the RPD of the two input images.

[0057] Specifically, the process of using a multi-layer difference generation subnetwork to process an input image includes: the multi-layer difference generation subnetwork is composed of three convolution blocks, each convolution block includes three convolution layers; the DRI image pair is input into the first convolution block for feature extraction to obtain a first feature map; the first feature map is input into the attention-guided difference fusion module to obtain a first feature coding vector; the first feature map is input into the second convolution block after a maximum pooling operation to obtain a second feature map, and the second feature map is input into the attention-guided difference fusion module to obtain a second feature coding vector; the second feature map is input into the third convolution block after a maximum pooling operation to obtain a third feature map, and the third feature map is input into the attention-guided difference fusion module to obtain a third feature coding vector; after the first feature coding vector, the second feature coding vector and the third feature coding vector are subjected to a maximum pooling operation, three quality perception features are obtained.

[0058] The multi-level difference generation subnetwork consists of two branches with the same structure and shared weights. In this method, a simple stack of multiple convolutional layers and multiple pooling layers is used to build the branches. The network is divided into three stages, each of which is followed by a maximum pooling layer. Each branch network generates a set of feature maps of different sizes. In order to extract more effective difference features, an attention guided discrepancy fusion module (ADF) is proposed, such as Figure 2 In the ADF module, the spatial difference characteristics of the DRI feature map are obtained by the following method:

[0059]

[0060] in and are the feature maps of the restored image and the distorted image respectively, and i (i=1,2…,c) is the channel value of different depths. r ,M d and M f The fused features are concatenated together in the channel dimension, and then input into the spatial attention and channel attention modules. For details about the attention module, see Figure 3 As shown in the figure. The attention module can weight the features from the spatial dimension and channel dimension of the features. This allows the model to pay more attention to the areas where the features are more important, so that the model can process different types of information more flexibly and enhance the representation ability of image distortion. Finally, the spatial pyramid pooling (SPP) module is used to obtain the difference features. In order to obtain multi-level difference features, the above operations are performed in each ADF module.

[0061] The perceptual difference regression subnetwork consists of two fully connected layers, and a BatchNorm layer and a ReLU activation function are added after the first linear layer. To prevent overfitting, the Dropout Ratio is set to 0.5. The last linear layer directly predicts the RPD values ​​of the two input images.

[0062] The model predicts the RPD value can be regarded as a regression problem, so the mean square error is used as the loss function to measure the distance between the predicted RPD value and the label:

[0063]

[0064] N in the above formula is the number of training image pairs. To restore image I r and distorted image I d The true label value of the relative quality difference, function F is the network model, F(I r ,I d )The output value of the network model F, that is, the predicted value RPD. When the loss function value is the minimum, model F is the optimal model.

[0065] The model is first pre-trained on simulated distorted image pairs to obtain a prior model, and then fine-tuned on distortion-restored image pairs (DRI). Specifically, the batch size is set to 3. The initial learning rate of the pre-training of the prior model is 1e-4. During the fine-tuning stage, the initial learning rates of the multi-layer difference generation subnetwork and the perceptual difference regression subnetwork are set to 1e-5 and 1e-3, respectively. In addition, the model is optimized using the Adaptive Moment Estimation (Adam) optimization function.

[0066] The process of multi-data prediction includes: first preparing DRI pairs, then using the trained model to predict the RPD values ​​of these distorted and restored image pairs in the model prediction stage; assuming that n image restoration algorithms and k distorted images are given, k×n restored images can be generated and k×n DRI pairs can be constructed; and the trained model is used to predict these DRI pairs. Prediction result matrix:

[0067]

[0068] Where V(i,j)=V ij ,i=1,2,…,k,j=1,2,…,n are the prediction results of the DRI pair consisting of the i-th distorted image and the j-th restored image. The performance ranking of these algorithms is determined by comparing these predicted RPD scores. Specifically, for the performance of the j-th algorithm, the predicted RPD scores of all DRI pairs containing the image restored by the j-th algorithm are first added, which can be expressed as:

[0069]

[0070] The performance rankings of these algorithms are obtained through simple comparison. For an algorithm, the larger the R value, the better the performance.

[0071] In one embodiment of the present invention, the present invention also includes a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, any of the above-mentioned image restoration quality evaluation methods based on multi-level difference learning is implemented.

[0072] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to the computer program. The aforementioned computer program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.

[0073] A device for evaluating the quality of image restoration based on multi-level difference learning comprises a processor and a memory; the memory is used to store a computer program; the processor is connected to the memory and is used to execute the computer program stored in the memory, so that the device for evaluating the quality of image restoration based on multi-level difference learning can execute any of the above-mentioned nutrition management methods of food image recognition models based on deep learning.

[0074] Specifically, the memory includes: ROM, RAM, magnetic disk, USB flash drive, memory card or optical disk, etc., which can store program codes.

[0075] Preferably, the processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0076] The above embodiments further illustrate the purpose, technical solutions and advantages of the present invention in detail. It should be understood that the above embodiments are only preferred implementation modes of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made to the present invention within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for evaluating image restoration quality based on multi-level difference learning, characterized in that: include: Obtain a restored image to be evaluated, input the restored image into a trained image restoration quality evaluation model based on multi-level difference learning, and obtain a quality evaluation result; mark the image according to the quality evaluation result, and use the image restoration method of the marked image to restore other images to be restored; wherein the image restoration quality evaluation model based on multi-level difference learning includes a multi-layer difference generation subnetwork and a perceptual difference regression subnetwork; The process of training the image restoration quality assessment model based on multi-level difference learning includes: S1: Build a large-scale image quality dataset, use the FR-IQA method to generate labels for the images in the dataset, and pair the distorted images and restored images in the same visual scene to form DRI image pairs; collect all DRI image pairs to obtain a training set; S2: Input the DRI image pairs in the training set into the multi-layer difference generation subnetwork to obtain the quality perception features of the image; the process of using the multi-layer difference generation subnetwork to process the input image includes: the multi-layer difference generation subnetwork is composed of three convolution blocks, each convolution block includes three convolution layers; input the DRI image pair into the first convolution block for feature extraction to obtain a first feature map; input the first feature map into the attention-guided difference fusion module to obtain a first feature encoding vector; input the first feature map into the second convolution block after the maximum pooling operation to obtain a second feature map, input the second feature map into the attention-guided difference fusion module to obtain a second feature encoding vector; input the second feature map into the third convolution block after the maximum pooling operation to obtain a third feature map, input the third feature map into the attention-guided difference fusion module to obtain a third feature encoding vector; after the first feature encoding vector, the second feature encoding vector and the third feature encoding vector are subjected to the maximum pooling operation, three quality perception features are obtained; The process of processing the input features by the attention-guided difference fusion module includes: obtaining the restored image feature map And distorted image feature map according to and Calculate the spatial difference characteristics of DRI on feature maps Will as well as Splicing is performed on the channel dimension, and the spliced ​​fusion features are input into the spatial attention and channel attention modules for weighting; the weighted fusion features are processed using the spatial pyramid pooling module to obtain the difference features, which are feature encoding vectors; S3: Input the quality-aware features into the perceptual difference regression subnetwork to obtain the RPD value of the input DRI image pair; the process of processing the quality-aware features using the perceptual difference regression subnetwork includes: inputting the three quality-aware features generated by the multi-level difference generation subnetwork into the fully connected layer for feature mapping to obtain the relative difference scores in the restored image and the distorted image; S4: Calculate the loss function of the model based on the RPD value of the input DRI image pair; S5: Continuously adjust the model parameters and complete the model training when the loss function is minimized.

2. The image restoration quality evaluation method based on multi-level difference learning according to claim 1 is characterized in that: The calculation expression of the relative difference score between the restored image and the distorted image is: Among them, Q d and represent the quality scores of the image to be restored and the restored image generated by the i-th image restoration algorithm, respectively. represents the relative quality difference score of the i-th image pair.

3. The image restoration quality evaluation method based on multi-level difference learning according to claim 1 is characterized in that: The loss function expression of the model is: Where N represents the number of training images, F(I r ,I d ) i represents the relative perceptual difference score of the i-th image pair, I r represents the restored image, I d represents a distorted image, Represents the restored image I r and distorted image I d The relative quality difference of the true label value.

4. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer program is executed by a processor to implement the image restoration quality assessment method based on multi-level difference learning according to any one of claims 1 to 3.

5. An image restoration quality evaluation device based on multi-level difference learning, characterized in that: It comprises a processor and a memory; the memory is used to store a computer program; the processor is connected to the memory and is used to execute the computer program stored in the memory, so that the image restoration quality evaluation device based on multi-level difference learning executes any one of the image restoration quality evaluation methods based on multi-level difference learning in claims 1 to 3.