No-reference image quality evaluation method based on countercurrent shape sorting optimization
By using Transformer for feature extraction and sorting in the reversible manifold space in reference-free image quality evaluation, the problem of insufficient capture of global dependencies of image content and high computational complexity is solved, achieving more efficient and consistent image quality. evaluate.
Patent Information
- Application Number
- CN202410788070.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-10-18
AI Technical Summary
Existing reference-free image quality evaluation methods have shortcomings in capturing the global dependencies of image content, and the computational complexity of the Siamese network is high, which affects the efficiency and consistency of the model.
Transformer is used to extract image features, and the content-aware output is projected into a reversible manifold space, constrained to a smooth isotropic Gaussian distribution, and differentiable rank sorting based on distance measures is performed to reduce the computational complexity of sorting learning and improve image scoring. subjective and objective consistency.
It effectively captures the global dependencies of image content, improves the subjective and objective consistency of image quality evaluation, reduces computational complexity, and improves the accuracy and efficiency of reference-free image quality evaluation.
Smart Images

Figure CN118799277A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of image analysis, and in particular relates to an image quality evaluation method, which can be used in audio-visual entertainment, medical imaging, and aerial remote sensing scenes. Background Art
[0002] BIQA is a necessary means to automatically evaluate the perceived quality of visual signals without reference. It is widely used in the design, optimization and evaluation of image processing, computer vision and computer graphics applications. Since various types of distortion may be introduced at each stage of these image processing systems, resulting in image quality degradation, it is particularly important to develop image quality assessment methods that can automatically predict the perception of human observers.
[0003] At present, no-reference image quality assessment methods are mainly divided into traditional methods based on manual features and deep learning-based methods.
[0004] Image quality assessment models based on manual features usually consist of two parts: a feature extraction unit and a quality regression model. According to different feature extraction methods, quality assessment models based on manual features can be divided into methods based on natural scene statistical characteristics and methods guided by the human visual system. Reference-free image quality assessment based on natural scene statistical characteristics is based on the premise that high-fidelity images follow specific statistical characteristics. However, these statistical characteristics will change due to image quality degradation. The human visual system is the final receiver of visual signals. It is of great significance to utilize the perceptual characteristics of the human visual system in the design of image quality indicators. At present, the two most prominent methods guided by the human visual system are methods based on the free energy principle and methods based on visual sensitivity. However, image quality assessment methods based on manual features have some obvious disadvantages, including dependence on professional knowledge, limited generalization ability, and difficulty in adapting to new image types and degradation patterns. These limitations have prompted researchers to turn to machine learning-based methods to achieve more accurate, flexible and automated image quality assessment.
[0005] Compared with traditional methods, the image quality assessment method based on deep learning has made a qualitative leap in subjective and objective consistency. Researchers found that there is a high correlation between the abstract features learned from the image classification task in the pre-training stage and the no-reference image quality assessment task. The migration from the image classification task to the no-reference image quality assessment task mainly involves the supervised constraint of the image quality label on the abstract features, which enables the model to effectively establish the quality-aware feature manifold and obtain strong generalization ability. At present, many no-reference image quality assessment methods have borrowed the strategies of pre-trained language models and their variants on downstream tasks and achieved remarkable success. However, the projection distance of different distorted images in the manifold space cannot represent the quality-aware distance. That is to say, the regression relationship between the quality label MOS score and the image itself will be affected by the non-uniformity of the quality-aware feature manifold. This semantic-aware pre-training model encourages the representation of images of the same category to have similar representations, while ignoring the changes in perceived image quality.
[0006] Based on this, how to overcome the problem that the regression relationship between the quality label MOS score and the image quality itself is affected by the non-uniformity of the feature manifold has become a key challenge that technicians in this field need to solve urgently.
[0007] Patent document with application number CN202410025201.0 discloses a reference-free image quality assessment method and system based on quaternion convolutional neural network, which converts the original image into quaternion form to obtain at least one pure quaternion matrix, and then uses a preset improved ResNet network to extract features from the quaternion matrix, fuses the extracted features to obtain features of different scales, extracts and aggregates these feature vectors, and inputs them into a fully connected neural network to obtain the image quality score. Although this method makes full use of the global and local features of the image, it is difficult to effectively capture the global dependencies of the image content.
[0008] Patent document with application number 202310165646.4 discloses a method for training a reference-free image quality assessment model. In order to directly optimize the quality assessment model during the training process, the ranking information between image qualities is learned through a twin network. The input of the reference-free image quality assessment model is a pair of images or labels, and then the output and corresponding loss of the network are calculated by forward propagation, and finally optimized by a back-propagation algorithm. This method focuses more on the relative quality between paired images. In addition, a major disadvantage of the twin network is that there are a lot of redundant calculations during the training process. Although the patent optimizes this problem, it increases the complexity of the method.
[0009] Patent document with application number 202310567190.4 discloses a reference-free image quality assessment method combining Transformer and convolutional network, which extracts features of different levels of distorted images through Transformer and fuses them to obtain global features, then inputs the generated pseudo reference image and distorted image into the convolutional neural network to extract convolution features respectively, and connects them to obtain local features of the distorted image; the global features and local features of the distorted image are connected to obtain fused features, which are input into the linear regression network to obtain the quality assessment results of the distorted image. Although this method makes full use of the global and local features of the image, it does not sort the scores between images. Summary of the invention
[0010] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and provide a reference-free image quality evaluation method based on reversible manifold sorting optimization, so as to reduce the computational complexity of sorting learning using a twin network, effectively capture the global dependencies of image content, and improve the subjective and objective consistency of image scoring.
[0011] The technical idea for achieving the purpose of the present invention is: using Transformer to extract image features, and by projecting the content-aware output into a reversible manifold space constrained to a smooth isotropic Gaussian distribution, differentiable rank sorting based on distance metrics can be achieved in the smooth projection space, and feature extraction using Transformer can be performed to effectively capture the global dependencies of image content; by performing differentiable rank sorting in the manifold space, the subjective and objective consistency of image ratings can be effectively improved, and the computational complexity of ranking learning can be reduced.
[0012] According to the above ideas, the technical solution of the present invention includes the following steps:
[0013] (1) Obtain training and test sets:
[0014] Get L RGB images of dimensions W×H×C and each image I i The subjective quality score label S i , and the M RGB images and their corresponding subjective quality score labels form a training sample set T M ={(I m , S m )|1≤m≤M};
[0015] The remaining N RGB images and their corresponding subjective quality score labels form the test sample set T N ={(I n , S n)|1≤n≤N}, where L≥1000, W, H and C represent the width, height and number of channels of the RGB image respectively, W≥224, H≥224, C≥3, M+N=L;
[0016] (2) Constructing a no-reference image quality assessment model:
[0017] (2a) Establish an image feature extraction module R consisting of an image block embedding and position encoding submodule and a Transformer encoder cascade;
[0018] (2b) building a multi-axis MLP module D consisting of a gated multilayer perceptron and a residual channel attention unit connection;
[0019] (2c) establishing a reversible manifold module T comprising a plurality of reversible transformation layers;
[0020] (2d) establishing a sorting optimization module P for sorting in manifold space;
[0021] (2e) Connect the feature extraction module R with the multi-axis MLP module D to form the first branch G 1 ; Cascade the feature extraction module R with the reversible manifold module T and the sorting optimization module P to form the second branch G 2 ; Connect the two branches in parallel to form a reference-free image quality assessment model;
[0022] (2f) The loss function of the image quality assessment model is set as:
[0023] Loss = λ 1 L 1 +λ 2 L rankap +λ 3 L flow
[0024] Among them, λ 1 is the weight of the prediction loss function, L 1 is the absolute value loss function; 2 is the weight of the loss function of the sorting optimization module, L rankap is the constraint loss of the sorting optimization module; 3 is the weight of the reversible manifold transformation loss function, L flow is the constraint loss of the reversible manifold transformation;
[0025] (3) Training the no-reference image quality assessment model constructed in step (2):
[0026] (3a) Set the current network model G k The weight parameter is θ k , the maximum number of iterations is M>32, and the initialization number of iterations is k;
[0027] (3b) Randomly select B images from the training data without replacement as input samples of the current no-reference image quality assessment model, perform forward reasoning, and obtain the quality prediction score of each training sample And measure the sorting relationship of B input images;
[0028] (3c) Predict the quality score of each training sample Calculate the absolute value loss L in the loss function 1 , the loss function value L of the sorting optimization module R rankap , the loss function value L of the reversible manifold module T flow ;
[0029] (3d) Calculate the gradient information of the loss function Loss of the image quality evaluation model and k The weight parameter θ k Update and get the network model G of this iteration k ;
[0030] (3e) Determine whether k=M:
[0031] If it is established, the trained no-reference image quality assessment model G* is obtained;
[0032] Otherwise, set k = k + 1 and return to step (3b);
[0033] (3f) The test sample set T N Input it into the trained no-reference image quality assessment model G*, perform forward reasoning, and obtain the quality prediction score S of each test sample N , complete the quality evaluation of the no-reference image.
[0034] Compared with the prior art, the present invention has the following advantages because it constructs a reference-free image quality evaluation model consisting of a feature extraction module, a multi-axis MLP module connection, a reversible manifold module T and a sorting optimization module P:
[0035] First, the image feature extraction module in this model can effectively capture the global dependencies of image content through its internal attention mechanism.
[0036] Secondly, the multi-axis MLP module in this model can effectively fuse the image features extracted by the Transformer layer by using a gated multi-layer perceptron to obtain the final quality feature representation.
[0037] Third, the reversible manifold module in this model can maintain the integrity and original visual structure of the input data during the data conversion process through the reversible transformation relationship between the latent space and the generated space.
[0038] Fourthly, the sorting optimization module in this model can improve the subjective and objective consistency of the prediction scores by sorting the input batch images in the generated space. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a flow chart of the implementation of the present invention;
[0040] Figure 2 is a structural diagram of a reference-free image quality assessment model constructed in the present invention;
[0041] Figure 3 yes Figure 2 Schematic diagram of the multi-axis MLP module structure. DETAILED DESCRIPTION
[0042] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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, other embodiments obtained by ordinary technicians in this field without creative work should all fall within the scope of protection of the present invention.
[0043] It should be noted that the step numbers in the specification and claims of the present invention are only for a clear description of the implementation scheme of the present invention to facilitate understanding, and the order of the step numbers is not limited.
[0044] Reference Figure 1 , the implementation steps of this example are as follows:
[0045] Step 1: Obtain training sample set and test sample set.
[0046] Get 2000 RGB images of dimensions W×H×C and each image I i The subjective quality score label S i , and the 1600 RGB images and their corresponding subjective quality score labels form a training sample set T M ={(I m , S m )|1≤m≤1600},I i represents the i-th RGB image, S i Represents the subjective quality score label of the i-th RGB image;
[0047] The remaining 400 RGB images and their corresponding subjective quality score labels form the test sample set T N ={(I n , S n)|1≤n≤400};
[0048] In this example, W=224, H=224, C=3.
[0049] Step 2: Construct a no-reference image quality evaluation model based on reversible manifold sorting optimization.
[0050] Reference Figure 2 , the specific implementation of this step is as follows:
[0051] (2.1) Establish image feature extraction module R:
[0052] 2.1.1) Establish an image block embedding and position encoding submodule to process the input image in blocks:
[0053] The image block embedding is performed through a convolutional layer with a 3-channel input, a convolution kernel size of 16×16, and an embedding dimension of 768. The input image of 224×224 pixels is divided into blocks, and each image block is mapped to a low-dimensional data space to obtain a three-dimensional tensor of [14,14,768], which is flattened into a two-dimensional tensor of [196,768].
[0054] The position code is a vector with the same dimension as the image block feature, which is used to assign a position code generated by sine and cosine functions to each image block to ensure that the model can distinguish image blocks at different positions. The calculation formula of the position code is as follows:
[0055]
[0056] Among them, PE(pos,2i) is the encoding result when the dimension index is an even number, PE(pos,2i+1) is the encoding result when the dimension index is an odd number, pos is the position index of the image block in the sequence, and i is the dimension index in the position encoding vector; d model Indicates the embedding dimension of the image block. In this example, it is taken as but not limited to 768;
[0057] 2.1.2) Build a Transformer encoder consisting of 6 stacked layers for feature extraction of input images. Each layer consists of a multi-head attention layer with residual connections and a multi-layer perceptron with residual connections.
[0058] The multi-head attention layer has 8 attention heads, and the dimension of the hidden layer in the multi-layer perceptron is 2048;
[0059] The input dimension and output dimension of the multilayer perceptron are the same, and the input and output of each sublayer are normalized;
[0060] 2.1.3) The image block embedding and position encoding submodule and Transformer encoder are cascaded to form an image feature extraction module.
[0061] (2.2) Establish a multi-axis MLP module D, such as Figure 3 As shown:
[0062] 2.2.1) A gated multilayer perceptron including normalization operation and spatial gating unit layer is established to fuse the features extracted by the image feature extraction module. That is, the features input to the gated multilayer perceptron are first normalized to obtain the features. The characteristic Q 1 The intermediate feature representation Z is obtained after a fully connected layer and nonlinear activation function processing 1 , where C 1 represents the length of the input sequence, C 2 Represents the dimension of the input sequence;
[0063] In order to support the interaction between features, the spatial gating unit layer s(·) must contain a contraction operation in the spatial dimension. Here, a fully connected layer is used to represent the intermediate feature Z 1 Perform linear projection to obtain f used to represent the relationship between different image blocks W,b (Z 1 ):
[0064] f W,b (Z 1 )=WZ 1 +b
[0065] in is a matrix whose size is the same as the sequence length C 1 are equal, b represents the bias term;
[0066] f W,b (Z 1 ) and the intermediate feature representation Z 1 Multiply element by element to get the output s(Z 1 ), then, through a fully connected layer, the output s(Z 1 ) is mapped back to the feature dimension of the input and a residual connection is made with the original input.
[0067] 2.2.2) Establish a residual channel attention unit consisting of a fully connected layer and a global pooling operation to enhance the network's ability to represent useful information. The weights of each channel are learned through the fully connected layer. These weights are determined by the features obtained by the global pooling operation and adjusted using the ReLU activation function. These weights are then used to weight the features of each channel. The weighted features are added to the original input through a residual connection.
[0068] 2.2.3) The gated multilayer perceptron and the residual channel attention unit are cascaded to form a multi-axis MLP module D, which is used to add the features processed by the gated multilayer perceptron to the original input through the residual connection, and then enter the residual channel attention unit for channel attention processing.
[0069] (2.3) A reversible manifold module T is established, which consists of six reversible transformation layers cascaded in sequence. Each reversible transformation layer consists of an activation normalization operation, a 1×1 convolution, and three additive coupling layers cascaded. The reversible transformation layer first normalizes the input activation, then uses a 1×1 convolution to reweight the features in the channel dimension, and then uses multiple additive coupling layers to further transform the data. The specific implementation is as follows:
[0070] The activation normalization is used to normalize the input data using batch normalization to reduce internal covariate shift and accelerate the convergence of the model.
[0071] This 1×1 convolution re-weights the features in the channel dimension through a 1×1 convolution kernel, which helps to mix and compress the feature channels without changing the spatial dimension of the feature map, thereby enhancing the representation ability of the model.
[0072] The additive coupling layer is a component that implements reversible data transformation. It first divides the input vector into two parts: 1 With d 2 , and through a learnable function g ψ For the first part of the vector d 1 Transform to get g ψ (d 1 ), let y 1 =d 1 , g ψ (d 1 ) and d 2 Add together to get y 2 , the final output vector is y=(y 1 ,y 2 ), in this example, function g ψ It is reversible, so the output y of the additive coupling layer can be inversely transformed to get the original input vector.
[0073] (2.4) Establish a sorting optimization module p composed of an embedding matrix U, which is used to embed the output of the reversible manifold module into a matrix U of dimension [B, m], where B is the total number of training images input at a time, m is the embedding dimension of each input image, and each column in the embedding matrix U represents the coordinates of an input image in the Euclidean space; take the encoding vector of the input image as a query set q∈U, and obtain the rank-ordered sequence of the input image with respect to distance by calculating the distance between q and the remaining images in the Euclidean space.
[0074] (2.5) Connect the feature extraction module R with the multi-axis MLP module D to form the first branch G 1 ; Cascade the feature extraction module R with the reversible manifold module T and the sorting optimization module P to form the second branch G 2 ; Connect the two branches in parallel to form a reference-free image quality evaluation model.
[0075] Step 3: Define the loss function Loss of the image quality evaluation model.
[0076] (3.1) The loss function L in the first branch 1 Weight λ 1 Set to 2 to predict the score based on the quality of each training sample And the subjective scores corresponding to the training samples, calculate its loss function L 1 :
[0077]
[0078] Among them, s i represents the subjective score of the i-th input image, represents the predicted score of the i-th input image,||·|| 1 represents the absolute value loss function;
[0079] (3.2) The loss L of the reversible manifold module flow Weight λ 3 Set it to 1.3 and calculate its loss function L flow :
[0080]
[0081] in, represents the original distribution of the data set, Represents a standard Gaussian distribution By inverse transformation Get the logarithmic probability density of embedding u, is the inverse mapping function from the latent space Z to the generated space U, the parameter φ is the parameter of the reversible manifold, is the absolute value of the logarithm of the Jacobian determinant, which is used to ensure that the transformed probability density is consistent with the original probability density.
[0082] (3.3) The loss L of the sorting optimization module rankap Weight λ 2 Set to 1.3, based on the quality prediction score of each training sample And the subjective score corresponding to the training sample, calculate its loss function value L rankap :
[0083]
[0084] Here, L represents the number of bins. In this example, L is set to 10, which means that images within a certain distance are grouped into one bin. The farther the bin is, the higher the score difference with the input image.
[0085] Indicates the predicted score in the j-th box It is manifested as the number of samples with small quality differences.
[0086] N j =Σ k≤j n k represents the number of samples in all intervals up to the jth interval,
[0087] Indicates the scores retrieved and predicted in all intervals up to the jth interval The number of samples with small quality differences,
[0088] B is the number of input images, Representation and subjective ratings i The total number of samples with small quality differences.
[0089] (3.4) Add the above loss functions to get the final loss function:
[0090] Loss = 2L 1 +1.3L rankap +1.3L flow .
[0091] Step 4: evaluate the quality of the no-reference image model G k Conduct training.
[0092] (4.1) Set the current network model G k The weight parameter is θ k , the maximum number of iterations is M, the initialization number of iterations is k, in this example, M is but not limited to 32;
[0093] (4.2) Randomly select B images from the training data without replacement as input samples of the current no-reference image quality assessment model, perform forward reasoning, and obtain the quality prediction score of each training sample and measure the ordering relationship of B input images,
[0094] (4.2.1) The image feature extraction module R divides the input training sample into a series of non-overlapping image blocks. After each image block is embedded and positionally encoded, it is passed through multiple Transformer layers for feature extraction. The token features of each image block and the CLS token representing the global information of the training sample are output.
[0095] (4.2.2) The token features of all image patches are fused through the multi-axis MLP module D to obtain the final quality representation, which is then mapped into the image rating quality prediction score using a linear regressor.
[0096] (4.2.3) The reversible manifold module T projects the CLS token features representing global information into the reversible manifold space, and the output is a smooth and isotropic Gaussian distribution;
[0097] (4.2.4) The sorting optimization module P embeds the output of the reversible manifold module into an m-dimensional Euclidean space and sorts the quality of B input images under the Euclidean metric. In this example, the value of B is but not limited to 32:
[0098] (4.3) Based on the quality prediction score of each training sample Calculate the absolute value loss L in the loss function 1 , the loss function value L of the sorting optimization module R rankap , the loss function value L of the reversible manifold module T flow ;
[0099] (4.4) Using the Adam optimizer, the model G k The weight parameter θ k To optimize:
[0100] (4.4.1) Set the learning rate α to 0.00001, β 1 and β 2 are hyperparameters that control the exponential decay rates of the first-order moment estimate and the second-order moment estimate, β 1 Set to 0.9, β 2 Set to 0.999;
[0101] (4.4.2) According to the calculated loss value L 1 , L flow , L rankap, the current model G is obtained through the loss function Loss k The loss value d k and through d k Calculate model parameters θ k The gradient g k ;
[0102] (4.4.3) Using β 1 As the attenuation factor, according to the gradient g k Compute the first moment estimate of the gradient:
[0103]
[0104] in, is the first-order moment estimate of the kth step;
[0105] (4.4.4) Using β 2 As the attenuation factor, according to the gradient g k Compute the second moment estimate of the gradient:
[0106]
[0107] in is the second-order moment estimate at step k;
[0108] (4.4.5) Estimation of the first-order moment and the second moment estimate Make corrections to obtain the current corrected first-order moment estimate m k and the second moment estimate v k :
[0109]
[0110] (4.4.6) for θ k Update and get the parameters of the current step
[0111]
[0112] Where ε is a value not greater than 10 -8 A constant for numerical stability.
[0113] (4.5) Determine whether k = M:
[0114] If it is established, the trained no-reference image quality assessment model G* is obtained;
[0115] Otherwise, set k=k+1 and return to step (4.2).
[0116] Step 5: Set the test sample set T NInput it into the trained no-reference image quality assessment model G*, perform forward reasoning, and obtain the quality prediction score S of each test sample N .
[0117] The effect of the present invention is further described below in conjunction with experiments:
[0118] 1. Simulation experiment conditions:
[0119] The hardware platform of the simulation experiment of the present invention is: the operating system version is Ubuntu 20.04.6LTS, and the important CPU and graphics card models in the hardware environment are Intel(R)Core(TM)i9-7900X CPU.3.30GHz and NVIDIAGeforce RTX 3090GPU respectively.
[0120] The software environment mainly uses the Pytorch deep learning framework version 11.8 on the NVIDIA Geforce RTX 3090 GPU with CUDA version 11.3 for training and testing.
[0121] The data sets used in the simulation experiments of the present invention are the LIVEC data set, KonIQ data set, LIVE data set, CSIQ data set, TID2013 data set, and KADID data set obtained from public websites, among which:
[0122] The LIVEC dataset consists of 29 reference images and 779 distorted images. The database has five distortion types, each with up to five distortion intensity levels. The image resolution is 480×720 or 768×512.
[0123] The LIVE dataset includes 29 original images and 779 distorted images corrupted by five types of distortion: JPEG compression, JPEG2000 compression, white noise, Gaussian blur, and simulated fast fading Rayleigh channel. Each distortion type contains five or four distortion levels, and most images are 768×512 pixels in size;
[0124] The CSIQ dataset contains 30 original images and 866 distorted images corrupted by JPEG, JP2K, WN, GB, additive pink Gaussian noise, and global contrast decay, with five or four levels for each distortion type.
[0125] The resolution is 512×512;
[0126] TID2013 dataset, consisting of 25 reference images and 3000 distorted images. The database has 24 distortion types, each with 5 distortion levels;
[0127] The KADID dataset contains 140,000 original reference images and 700,000 distorted images. KADID did not conduct subjective test experiments, but instead integrated 11 existing FR-IQA indicators to replace DMOS.
[0128] To verify the performance of the objective IQA method, two indicators are used: Spearman rank correlation coefficient SROCC and Pearson linear correlation coefficient PLCC, where:
[0129] SROCC refers to the ranking correlation between the prediction results of the objective IQA method and the subjective score, and its calculation formula is as follows:
[0130]
[0131] Among them, d i It represents the difference between the ranking numbers of the i-th image in the subjective and objective scores, and N is the number of test images. The value range of SROCC is [-1,1]. The larger the value, the better the performance of the method.
[0132] PLCC refers to the linear correlation between the prediction results of the objective IQA method and the subjective score, and its calculation formula is as follows:
[0133]
[0134] Among them, s i and represents the subjective rating of the i-th image and its predicted quality score, μ y and μ s It represents the mean of the subjective scores of all images in the dataset and the mean of the predicted quality scores. The value range of PLCC is [-1,1]. The larger the value, the better the subjective and objective consistency of the method.
[0135] 2. Simulation content and result analysis:
[0136] In simulation experiment 1, the images of the present invention and 10 prior arts BRISQUE, DIIVINE, NIQE, DBCNN, P2P-BM, HyperIQA, MetaIQA, MUSIQ, TReS, and LPF are scored on six different datasets LIVE, CSIQ, TID2013, KADID, LIVEC, and KonIQ, and the results of the Spearman rank correlation coefficient SROCC are obtained, as shown in Table 1.
[0137] Table 1. SROCC experimental results
[0138]
[0139] As can be seen from Table 1, compared with the existing excellent technology, the present invention is higher than the existing excellent technology in some data sets, and slightly lower than the excellent technology in some data sets, but ranks in the top three in the ranking correlation SROCC index of all data sets, indicating that the present invention has a high subjective and objective consistency in both the synthetic distortion data set and the real distortion data set.
[0140] In simulation experiment 2, the images of the present invention and 10 prior arts BRISQUE, DIIVINE, NIQE, DBCNN, P2P-BM, HyperIQA, MetaIQA, MUSIQ, TReS, and LPF are scored on the six different data sets, and the results of the Pearson linear correlation coefficient PLCC are shown in Table 2.
[0141] Table 2. PLCC experimental results
[0142]
[0143] As can be seen from Table 2, compared with the existing excellent technologies, the method proposed by the present invention can achieve the top three good results in the linear correlation PLCC results on all data sets, proving that the present invention can better obtain the quality perception representation of the image through improvements in image feature constraints and consistency constraints, thereby improving the linear correlation between the prediction score and the subjective score. In addition, it can be seen from Table 2 that the present invention not only performs well on the synthetic distortion data sets LIVE, CSIQ, TID2013, and KADID, but also performs well on the real distortion data sets LIVEC and KonIQ with more extensive content changes.
[0144] The existing methods used in the simulation experiments are as follows:
[0145] BRISQUE refers to the image quality evaluation method proposed by Saad MA et al. in "ADCT Statistics-Based Blind Image Quality Index", abbreviated as BRISQUE.
[0146] DIIVINE refers to the image quality evaluation method proposed by Zhu et al. in "A Quality Assessment Index for Hyperspectral Images", abbreviated as DIIVINE.
[0147] NIQE refers to the image quality evaluation method proposed by Mittal A, et al. in "No-Reference Image Quality Assessment In the Spatial Domain", abbreviated as NIQE.
[0148] DBCNN refers to the image quality assessment method proposed by Zhang et al. in "Blind Image Quality Assessment Using ADeepBilinear Convolutional Neural Network", referred to as DBCNN.
[0149] P2P-BM refers to the image quality evaluation method proposed by Ying et al. in “From Patches to Pictures (Paq-2-Piq): Mapping the Perceptual Space of Picture Quality”, abbreviated as P2P-BM.
[0150] HyperIQA refers to the image quality assessment method proposed by Su et al. in "Blindly Assess Image Quality In the Wild Guided by ASelf-Adaptive Hyper Network", abbreviated as HyperIQA.
[0151] MetaIQA refers to the image quality assessment method proposed by Zhu et al. in "MetaIQA: Deep Meta-Learning for No-Reference Image Quality Assessment", referred to as MetaIQA.
[0152] MUSIQ refers to the image quality evaluation method proposed by Ke J et al. in "Musiq: Multi-Scale Image Quality Transformer", abbreviated as MUSIQ.
[0153] TReS refers to the image quality evaluation method proposed by Golestaneh SA et al. in "No-Reference Image Quality Assessment Via Transformers, Relative Ranking, and Self-Consistency", referred to as TReS
[0154] LPF refers to the image quality evaluation method proposed by Huang et al. in "A Lightweight Parallel Framework for Blind Image Quality Assessment", referred to as LPF.
Claims
1. A no-reference image quality assessment method based on reversible manifold sorting optimization, It is characterized in that These include: (1) Obtain training and test sets: Get L RGB images of dimensions W×H×C and each image I i The subjective quality score label S i , and the M RGB images and their corresponding subjective quality score labels form a training sample set T M ={(I m , S m )|1≤m≤M}; The remaining N RGB images and their corresponding subjective quality score labels form the test sample set T N ={(I n , S n )|1≤n≤N}, where L≥1000, W, H and C represent the width, height and number of channels of the RGB image respectively, W≥224, H≥224, C≥3, M+N=L; (2) Constructing a no-reference image quality assessment model: (2a) Establish an image feature extraction module R consisting of an image block embedding and position encoding submodule and a Transformer encoder cascade; (2b) building a multi-axis MLP module D consisting of a gated multilayer perceptron and a residual channel attention unit connection; (2c) establishing a reversible manifold module T comprising a plurality of reversible transformation layers; (2d) establishing a sorting optimization module P for sorting in manifold space; (2e) Connect the feature extraction module R with the multi-axis MLP module D to form the first branch G 1 ; Cascade the feature extraction module R with the reversible manifold module T and the sorting optimization module P to form the second branch G 2 ; Connect the two branches in parallel to form a reference-free image quality assessment model; (2f) The loss function of the image quality assessment model is set as: Loss=λ 1 L 1 +λ 2 L rankap +λ 3 L flow Among them, λ 1 is the weight of the prediction loss function, L 1 is the absolute value loss function; 2 is the weight of the loss function of the sorting optimization module, L rankap is the constraint loss of the sorting optimization module; 3 is the weight of the reversible manifold transformation loss function, L flow is the constraint loss of the reversible manifold transformation; (3) Training the no-reference image quality assessment model constructed in step (2): (3a) Set the current network model G k The weight parameter is θ k , the maximum number of iterations is M>32, and the initialization number of iterations is k; (3b) Randomly select B images from the training data without replacement as input samples of the current no-reference image quality assessment model, perform forward reasoning, and obtain the quality prediction score of each training sample And measure the sorting relationship of B input images; (3c) Based on the quality prediction score of each training sample Calculate the absolute value loss L in the loss function 1 , the loss function value L of the sorting optimization module R rankap , the loss function value L of the reversible manifold module T flow ; (3d) Calculate the gradient information of the loss function Loss of the image quality evaluation model and k The weight parameter θ k Update and get the network model G of this iteration k ; (3e) Determine whether k=M: If it is established, the trained no-reference image quality assessment model G* is obtained; Otherwise, set k = k + 1 and return to step (3b); (3f) The test sample set T N Input it into the trained no-reference image quality assessment model G*, perform forward reasoning, and obtain the quality prediction score S of each test sample N , complete the quality evaluation of the no-reference image.
2. The method according to claim 1, It is characterized in that Step (2a) constitutes the image block embedding and position encoding submodule and the Transformer encoder in the image feature extraction module R, and its structural parameters are as follows; The image block embedding and position encoding submodule consists of a convolution layer with an input of 3 channels, a convolution kernel size of 16×16, a step size of 16, and an embedding dimension of 768. It is used to block the training image with an input of 224×224 pixels. Its position encoding adopts sine cosine encoding to add position information to each image block. The Transformer encoder consists of 6 stacked layers, each layer includes 8 attention heads, the dimension of the hidden layer is 2048, the activation function type adopts GELU, and a residual connection is used after each sublayer to help the training of deep networks. Layer normalization is applied between the input and output of each sublayer to stabilize the subsequent training process.
3. The method according to claim 1, It is characterized in that Step (2b) constitutes the gated multilayer perceptron and residual channel attention unit in the multi-axis MLP module D, whose structural parameters are as follows: The gated multilayer perceptron includes two fully connected layers, the first fully connected layer is responsible for linearly transforming the features in the channel dimension, providing input for the subsequent nonlinear activation function, and after spatial mapping and layer normalization, the second fully connected layer is used to map its output back to the original dimensional space, and its activation function uses GELU; The residual channel attention unit includes a fully connected layer, through which the weights of each channel are learned. These weights are determined by the features of the global pooling and adjusted using the ReLU activation function. These weights are then used to weight the features of each channel, and the weighted features are added to the original input through the residual connection.
4. The method according to claim 1, It is characterized in that Step (2c) constitutes multiple reversible transformation layers of the reversible manifold module T, each of which is composed of activation normalization, 1×1 convolution and three additive coupling layers cascaded: The activation normalization is used to normalize the input data using batch normalization to reduce internal covariate shift and accelerate the convergence of the model. This 1×1 convolution re-weights the features in the channel dimension through a 1×1 convolution kernel, which helps to mix and compress the feature channels without changing the spatial dimension of the feature map, thereby enhancing the representation ability of the model. The additive coupling layer is a component that implements reversible data transformation. It splits the dimensions of the input data into two parts. The first part is the first d dimensions, and the second part is the remaining Dd dimensions. For the second part of the data after the split, the additive coupling layer transforms the first part of the data through a learnable function, and then adds the transformed data of the first part to the second part. By stacking multiple additive coupling layers, the depth and complexity of the model can be increased, thereby improving the model's ability to express different data distributions. The additive coupling layer ensures that the entire transformation process is reversible.
5. The method according to claim 1, It is characterized in that The sorting optimization module P established in step (2d) includes an embedding matrix U of dimension [B, m], where B is the total number of training images input at one time, m is the embedding dimension of each input image, and each column in the embedding matrix U represents the coordinates of an input image in Euclidean space; The encoding vector of the input image is taken as a query set q∈U, and the rank-ordered sequence of the input image with respect to the distance is obtained by calculating the distance between q and the rest of the images in the Euclidean space.
6. The method according to claim 1, It is characterized in that In step (3b), forward reasoning is performed on the current no-reference image quality assessment model, which is implemented as follows: (3b1) The image feature extraction module R divides the input training sample into a series of non-overlapping image blocks. After each image block is embedded and positionally encoded, it is passed through multiple Transformer layers for feature extraction. The token feature of each image block and the CLS token representing the global information of the training sample are output. (3b2) The token features of all image patches are fused through the multi-axis MLP module D to obtain the final quality representation, which is then mapped into the image rating quality prediction score using a linear regressor. (3b3) The reversible manifold module T projects the CLS token features representing global information into the reversible manifold space, and the output is a smooth and isotropic Gaussian distribution; (3b4) The sorting optimization module P embeds the output of the reversible manifold module into an m-dimensional Euclidean space and ranks the quality of B input images under the Euclidean metric.
7. The method according to claim 1, It is characterized in that In step (3c), the quality prediction score of each training sample is Calculate the absolute value loss L in the loss function 1 , the formula is as follows: Among them, s i represents the subjective score of the i-th input image, represents the predicted score of the i-th input image,||·|| 1 represents the absolute value loss function.
8. The method according to claim 1, It is characterized in that In step (3c), the quality prediction score of each training sample is Calculate the loss L of the reversible manifold module in the loss function flow , the formula is as follows: in, represents the original distribution of the data set, Represents a standard Gaussian distribution By inverse transformation Get the logarithmic probability density of embedding u, is the inverse mapping function from the latent space Z to the generated space U, the parameter φ is the parameter of the reversible manifold, is the absolute value of the logarithm of the Jacobian determinant, which is used to ensure that the transformed probability density is consistent with the original probability density.
9. The method according to claim 1, It is characterized in that In step (3c), the quality prediction score of each training sample is Calculate the loss function value L of the sorting optimization module R rankap , the formula is as follows: Where L represents the number of bins, Indicates the predicted score in the j-th box The number of samples with small quality differences, N j =∑ k≤j n k represents the number of samples in all intervals up to the jth interval, Indicates the scores retrieved and predicted in all intervals up to the jth interval The number of samples with small quality differences, B is the number of input images, Representation and subjective ratings i The total number of samples with small quality differences.
10. The method according to claim 1, It is characterized in that In step (3c), the network model G is evaluated based on the loss function of the image quality evaluation model. k The weight parameter θ k Update and get the network model G of this iteration k , implemented as follows: (3c1) Using the loss function Loss, according to the calculated loss value L 1 , L flow , L rankap Get the current model G k The loss value d k , through d k Calculate model parameters θ k The gradient g k ; (3c2) Using β 1 As the attenuation factor, according to the gradient g k Compute the first moment estimate of the gradient: in, is the first-order moment estimate of the kth step; (3c3) Using β 2 As the attenuation factor, according to the gradient g k Compute the second moment estimate of the gradient: in is the second-order moment estimate at step k; (3c4) Estimation of the first-order moment and the second moment estimate Make corrections to obtain the current corrected first-order moment estimate m k and the second moment estimate v k : (3c5) for θ k Update and get the parameters of the current step Where ε is a value not greater than 10 -8 is a constant for numerical stability; α is the learning rate, β 1 and β 2 are hyperparameters that control the exponential decay rates of the first and second moment estimates, respectively.
Citation Information
Patent Citations
Blind image quality evaluation method based on multi-scale features and long-distance dependence
CN116596915A
Image quality objective evaluation method based on manifold feature similarity
US20170177975A1
Patch selection for neural network based no-reference image quality assessment
US20190362484A1
Fundus image quality evaluation method and device based on multi-source multi-scale feature fusion
WO2023155488A1
Cited By
DR image quality inspection method and device and computer readable storage medium
CN119579615A
