A no-reference stereo image quality assessment method based on multi-dimensional attention mechanism
By using a convolutional neural network with a multi-dimensional attention mechanism in stereoscopic image quality evaluation, it simulates the binocular competition and visual attention mechanism of the human visual system, solves the problem of the inability of existing technology to accurately evaluate stereoscopic image quality, and achieves the same goal as the human visual system. Efficient image quality evaluation with consistent eye subjective evaluation results.
Patent Information
- Application Number
- CN202111507792.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-12-07
- Filing Date
- 2021-12-10
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-12-10
AI Technical Summary
Existing reference-free stereoscopic image quality evaluation algorithms cannot accurately evaluate stereoscopic image quality, especially due to the failure to consider the binocular competition and visual attention mechanism of the human visual system, resulting in unsatisfactory performance.
Using a convolutional neural network based on a multi-dimensional attention mechanism, through feature extraction and fusion of left and right views, combined with channel and spatial attention modules, the binocular fusion and visual attention mechanism of the human visual system is simulated and performed on multiple scales. Feature augmentation to predict image quality scores.
It achieves image quality evaluation that is highly consistent with the subjective evaluation results of the human eye. It is suitable for the transmission performance evaluation of new media such as 3D TV and 3D movies, and has important value.
Smart Images

Figure CN114187261B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of stereoscopic image quality evaluation, and in particular to a reference-free evaluation algorithm for simulating binocular competition and visual attention mechanisms. Background Art
[0002] According to the different evaluation subjects, the stereo image quality evaluation algorithm can be divided into subjective evaluation and objective evaluation. The subjective evaluation algorithm requires the person being tested to score the image quality according to the given indicators under a certain experimental environment, and then calculate the average score of the image. Usually, subjective evaluation will obtain two types: Mean Opinion Score (MOS) and Differential Mean Opinion Score (DMOS). The objective evaluation algorithm simulates the human visual system with the help of mathematical models to evaluate the image quality. Since people are the final recipients of the image, the subjective evaluation algorithm usually has higher accuracy. However, subjective evaluation has the disadvantages of being time-consuming, unable to evaluate in real time, and high cost, and is easily affected by the person being tested. Compared with subjective evaluation, objective quality evaluation based on algorithms does not require a lot of manual participation. It only needs to design a corresponding prediction model. After stereo image feature extraction and model training, the image quality score can be obtained. Therefore, objective quality evaluation methods have become the focus of research.
[0003] According to the degree of reliance on reference images when evaluating image quality, objective stereo image quality assessment (SIQA) methods can be divided into three types: Full Reference (FR), Reduced Reference (RR), and No Reference (NR). In practical environments, since reference images may not be available or difficult to obtain, NR-SIQA that does not rely on reference images has a wider range of application scenarios and has gradually become a mainstream research direction.
[0004] Early NR-SIQA directly applied mature planar image quality assessment algorithms to a single view of a stereoscopic image, and then used the average of the left and right views to represent the quality score of the stereoscopic image. However, these algorithms did not take into account the characteristics of binocular vision, and therefore could not accurately evaluate the quality of stereoscopic images. With the in-depth understanding of the visual mechanism of the human brain, some methods based on disparity response and binocular vision characteristics have been proposed. Some methods also combine visual saliency models to further simulate the human visual information processing mechanism. However, due to the hierarchical structure and complexity of the human visual system (HVS), the performance of SIQA methods based on manual feature extraction is not ideal.
[0005] With the rise of deep learning, people have tried to use deep learning to solve the problem of image quality assessment in recent years. Unlike manual feature extraction, deep learning methods generally use convolutional neural network (CNN) models to automatically extract features. Thanks to the large number of parameters and self-learning ability in the network, the CNN-based SIQA method has achieved accurate evaluation performance. Summary of the invention
[0006] The present invention proposes a reference-free stereo image quality evaluation algorithm based on a multi-dimensional attention mechanism, which can better simulate the binocular competition and visual attention mechanism of the human visual system. The technical solution is as follows:
[0007] A method for evaluating the quality of a no-reference stereoscopic image based on a multi-dimensional attention mechanism, comprising the following steps:
[0008] The first step is to preprocess the original stereo images used for training, convert them into grayscale images and divide them into small non-overlapping image blocks, assign a true quality score to each image block, and randomly select several of them as input to the network model;
[0009] The second step is to train a convolutional neural network based on multi-dimensional attention as follows:
[0010] (1) A set of CCP modules with convolution and pooling operations are used to extract primary features from the left and right views. After processing the left and right views, primary feature maps are obtained.
[0011] (2) The primary feature maps of the left and right views are sent to the view fusion subnetwork to calculate the fused feature map: The view fusion subnetwork contains a multi-dimensional attention module, which consists of a channel attention module and a spatial attention module. In the channel attention module, the input primary feature map passes through two identical branches, and channel dimension reduction is performed in each branch. Then, after global average pooling, the weight of each channel is obtained through a fully connected layer and a Sigmoid activation function. The feature map of each channel is weighted to obtain a channel attention weighted feature map. In the spatial attention module, the two parallel channel attention weighted feature maps are transformed in dimension and matrix multiplication is performed. After the Softmax activation function, the weight of each view combining channel and spatial attention is obtained. The weight is used to weight the primary feature maps of the left and right views to obtain a fused feature map.
[0012] (3) The fused feature map is input into a multi-scale feature enhancement sub-network based on multi-dimensional attention to predict the quality score of the image: The multi-scale feature enhancement sub-network based on multi-dimensional attention extracts the feature maps of the fused feature map after dimension transformation at three different scales through three sets of CCP modules of convolution and pooling operations. The feature map at the smallest scale is called the original deep fusion feature map; the feature map at each scale is input into a multi-dimensional attention module, and after channel dimension reduction, three reduced dimension feature maps are obtained; two of the reduced dimension feature maps are channel-weighted by the channel attention module, and then dimensionally transformed, and matrix multiplication and So The multi-dimensional attention weight is obtained by processing with the ftmax activation function, and the third feature map of the three feature maps after dimensionality reduction is weighted by the weight to obtain a feature map based on the multi-dimensional attention mechanism; the feature maps based on the multi-dimensional attention mechanism obtained at three scales are fused by an upsampling method, and three CCP modules are used to extract features on the fused feature maps to obtain a deep multi-scale feature enhancement feature map based on multi-dimensional attention; the deep multi-scale feature enhancement feature map based on multi-dimensional attention is added to the original deep fusion feature map to obtain an enhanced feature map, which is sent to the fully connected layer for image quality score prediction;
[0013] (4) Calculate the network loss function and perform iterative training: After obtaining the predicted image quality score, calculate the network loss function. The loss function uses the root mean square error (RMSE) and adds L2 regularization to prevent overfitting. This is used to measure the difference between the image quality score predicted by the network and the actual image quality score. Through multiple iterations during the training process, the network parameters are continuously updated to minimize the loss function, so that the image quality score predicted by the network is closer to the actual score, thereby obtaining a trained network model.
[0014] The third step is to use the trained network to evaluate image quality.
[0015] The CCP module includes two 3×3 convolutional layers and one pooling layer.
[0016] Furthermore, in step (2) of the second step, channel dimension reduction is performed in each branch through a 1×1 convolution kernel, and then global average pooling is performed, and the weight of each channel is obtained through a fully connected layer and a Sigmoid activation function. The feature map of each channel is weighted using the Scale operation to obtain a channel attention weighted feature map.
[0017] Furthermore, in step (3) of the second step, the feature maps at each scale are input into a multi-dimensional attention module, and channel dimension reduction is performed through three parallel 1×1 convolution operations to obtain three reduced-dimensional feature maps.
[0018] Furthermore, the method of the third step is: pre-process the stereo image to be evaluated and then input it into the network, and average the quality scores of the image blocks output by the network to obtain the quality score of the entire image.
[0019] The beneficial effects of the technical solution provided by the present invention are as follows: the present invention makes full use of HVS, calculates the weights of the left and right views through a multi-dimensional attention mechanism, and performs weighted processing on the left and right views to obtain a fused view, which can simulate the binocular fusion and binocular competition mechanism of HVS. By performing multi-scale feature extraction on the fused view, and using multi-dimensional attention to enhance the features of different scales to assign weights to information of different scales, the visual attention mechanism of HVS can be simulated. These features ensure that it can be used in technical practice, such as in the transmission performance evaluation of new media such as 3D TVs and 3D movies, the algorithm evaluation results are highly consistent with the subjective evaluation results of the human eye, and are of great value. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 Overall block diagram of the algorithm
[0021] Figure 2 Multi-dimensional attention module block diagram DETAILED DESCRIPTION
[0022] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention are described in further detail below.
[0023] Example 1
[0024] The embodiment of the present invention provides a reference-free stereo image quality assessment algorithm based on a multi-dimensional attention mechanism, and the present invention is further described below in conjunction with the accompanying drawings. The present invention is specifically implemented in the following steps:
[0025] In the first step, the original stereo images for training are preprocessed.
[0026] The original stereo images used for training are converted into grayscale images, and the left and right views are divided into 220 32×32 image blocks. The true quality score of the image is assigned to each image block, and 30% (66 image blocks) are selected as the input of the network. This random selection method can reduce the time complexity of image preprocessing and improve the generalization ability of the network.
[0027] The second step is to train a convolutional neural network based on multidimensional attention, which includes a view fusion subnetwork based on multidimensional attention and a multiscale feature enhancement subnetwork. The view fusion subnetwork based on multidimensional attention includes a multidimensional attention module for calculating the weights of the left and right views, and weighting the left and right views to obtain a fused view. The fused feature map is passed through a multiscale feature enhancement subnetwork based on multidimensional attention, and after multi-scale and attention weighting, an enhanced feature map is obtained. Finally, a fully connected layer is used to obtain the image quality score.
[0028] (1) A set of convolution and pooling operations are used to extract primary features from the left and right views of the CCP module.
[0029] The left and right views are preliminarily processed using the CCP module to obtain a 16×16×32 primary feature map. The CCP module contains two 3×3 convolutional layers and one pooling layer.
[0030] (2) The primary feature maps of the left and right views are sent to the view fusion subnetwork to calculate the fused feature map.
[0031] The network structure of the view fusion sub-network based on multi-dimensional attention is as follows Figure 1 As shown. This subnetwork consists of two parts: the channel attention module and the spatial attention module. In the channel attention module, the input primary feature map passes through two identical branches. In each branch, a 1×1 convolution kernel is used to reduce the channel dimension of the feature map. A 1×1×16 feature map is obtained by global average pooling. The weight of each channel is obtained through two fully connected layers and a Sigmoid activation function. The feature map of each channel is weighted by the Scale operation to obtain a 16×16×16 feature map weighted by the channel attention. In the spatial attention module, the feature maps of the two parallel channel attention weights are transformed in dimension and matrix multiplication is performed. The weights of the left and right views combined with the channel and spatial attention are obtained by the Softmax activation function. The primary feature maps of the left and right views are weighted and fused with the weights to simulate the binocular fusion and binocular competition mechanism of HVS. The calculation formula is as follows:
[0032]
[0033] HereFM C ,FM L and FM R They represent the fusion feature map, the primary feature map of the left view, and the primary feature map of the right view, respectively. L and W R They are the left and right view weights calculated based on the multi-dimensional attention mechanism, and represent matrix addition and matrix multiplication respectively.
[0034] (3) The fused feature map is input into a multi-scale feature enhancement sub-network based on multi-dimensional attention to predict the image quality score.
[0035] The network structure of the multi-scale feature enhancement sub-network based on multi-dimensional attention is as follows: Figure 1 As shown in Figure 1. This subnetwork extracts the feature maps of the 16×16×32 fusion feature map at three scales after the dimension change through three sets of convolution and pooling operations (CCP), which are 8×8×64, 4×4×128, and 2×2×256 respectively; among them, the 2×2×256 feature map is called the original deep feature map. The feature map at each scale passes through a multi-dimensional attention module, and the module structure is as follows Figure 2 shown.
[0036] In this module, the input feature map is subjected to three parallel 1×1 convolution operations for channel dimension reduction to obtain three reduced-dimensional feature maps. Two of the feature maps are channel-weighted by the channel attention module, and after dimension transformation, matrix multiplication and Softmax activation function are performed to obtain multi-dimensional attention weights. The weights are used to weight the third feature map of the three reduced-dimensional feature maps and perform 1×1 convolution operations to obtain feature maps based on the multi-dimensional attention mechanism.
[0037] At three scales, 8×8×64, 4×4×128, and 2×2×256 feature maps based on the multi-dimensional attention mechanism are obtained respectively. These three feature maps are fused by upsampling to obtain a 16×16×32 feature map after attention weighting. This operation can assign corresponding weights to feature maps of different scales, thereby simulating the degree of attention paid by HVS to objects of different sizes in the image. Three CCP modules are used to extract deep features on the feature map after attention weighting, and the enhanced 2×2×256 feature map is obtained by adding it to the original deep feature map. The predicted value of the image quality score is obtained through the fully connected layer.
[0038] (4) Calculate the network’s loss function.
[0039] During the network training process, the loss function of the network model uses the root mean square error (RMSE) and adds L2 regularization to prevent overfitting. The loss function is calculated as follows:
[0040]
[0041] Here, N represents the number of image blocks, q i represents the true differential mean opinion score (DMOS) of the image, q irepresents the predicted value of the network model. The second part of the formula is the L2 regularization term, α represents the regularization coefficient, and ω is the weight vector in network training. The calculated loss function can reflect the difference between the predicted result and the true value. Through multiple iterations during the training process, the network parameters are continuously updated to minimize the loss function, so that the image quality score predicted by the network is closer to the true score, that is, the network performance is better.
[0042] The third step is to use the trained network to evaluate image quality.
[0043] (1) Preprocess the stereo images to be evaluated.
[0044] The stereo image to be evaluated is converted into a grayscale image, and the left and right views are divided into 220 32×32 image blocks, from which 30% (66 image blocks) are selected as the input of the network.
[0045] (2) Calculate the quality score of the stereo image to be evaluated.
[0046] The image block quality scores of the same stereo image output by the network are averaged to obtain the quality score of the entire stereo image. The calculation formula is as follows:
[0047]
[0048] Where Q represents the quality score of the entire stereo image. Using the final prediction result and the real DMOS value of the stereo image, SROCC and PLCC can be obtained to evaluate the network performance.
[0049] The parameters of the entire network are detailed in Table 1.
[0050] Table 1 Network structure parameters
[0051]
[0052]
[0053] Example 3
[0054] The feasibility of the solution in Example 1 is verified by combining specific experiments, as described below:
[0055] This experiment uses two public 3D image databases, LIVE 3D and Waterloo IVC 3D, to test the performance. Each database contains many images with different types of distortion. The quality of the image is described by the mean opinion score (MOS) or the difference mean opinion score (DMOS), where the larger the MOS value and the lower the DMOS value, the better the image quality.
[0056] In the process of measuring whether the objective evaluation algorithm has accuracy, monotonicity and consistency, the following two more common indicators are usually used: Spearman rank order correlation coefficient SROCC and Pearson linear correlation coefficient PLCC. SROCC describes the monotonicity of an image quality assessment algorithm, and the expression is as follows:
[0057]
[0058] In formula 4, parameter d i It represents the difference between the objective score of the i-th image and its subjective quality score ranking. I represents the total number of images contained in the database. PLCC is the linear correlation coefficient between the objective score obtained by the algorithm after nonlinear regression processing and the subjective quality score of the image. The calculation formula is:
[0059]
[0060] In formula 5, q i and S Fi Represent the subjective score and predicted value of the i-th image, μ q and The values of the two correlation coefficients are both in the range of -1 to 1, and the larger the value, the better the network performance.
[0061] The present invention uses the Spearman rank order correlation coefficient and the Pearson linear correlation coefficient to measure the consistency between the score of the objective quality assessment algorithm and the subjective score DMOS in the database. The higher the correlation between the subjective score and the objective score, the better the performance of the algorithm.
[0062] In order to verify the performance of the present invention, we selected 7 mainstream no-reference stereo image quality evaluation algorithms for comparison on the LIVE 3D database. These algorithms include 4 traditional evaluation algorithms (3D-AdaBoost, BVCDP, BSFML and SA) and 3 CNN-based evaluation algorithms (DCNN, RM-CNN and VSM-CNN). On the Waterloo IVC 3D database, since few people have experimented with deep learning-based evaluation algorithms, we selected 4 traditional evaluation algorithms for comparison, including SINQ, DBN, BSIQE and BVCDP. The results are shown in Tables 2 and 3.
[0063] Table 2 Comparison of algorithm performance based on LIVE 3D image database
[0064]
[0065] Table 3 Algorithm performance comparison based on Waterloo IVC 3D image database
[0066]
[0067] Table 4 Performance comparison of specific distortion types based on LIVE 3D Phase I image database
[0068]
[0069] Table 5 Performance comparison of specific distortion types based on LIVE 3D Phase II image database
[0070]
[0071] Tables 4 and 5 list the results of the present invention on specific distortion types of the LIVE 3D Phase I and LIVE 3D Phase II databases. In each column, the best performance result is shown in bold. It can be seen from Tables 4 and 5 that the present invention outperforms all compared methods in SROCC and PLCC on images with multiple distortion types, and the mean values of SROCC and PLCC on these specific distortion types exceed 0.9. In general, compared with other networks, the present invention can adapt to a variety of different distortion conditions and is highly consistent with human subjective evaluation.
[0072] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A no-reference stereo image quality assessment method based on a multi-dimensional attention mechanism, characterized in that: The following steps are involved: The first step is to preprocess the original stereo images used for training, convert them into grayscale images and divide them into small non-overlapping image blocks, assign a true quality score to each image block, and randomly select several of them as input to the network model; The second step is to train a convolutional neural network based on multi-dimensional attention. The method is as follows: (1) A set of CCP modules with convolution and pooling operations are used to extract primary features from the left and right views. After processing the left and right views, primary feature maps are obtained. (2) The primary feature maps of the left and right views are sent to the view fusion subnetwork to calculate the fused feature map: The view fusion subnetwork contains a multi-dimensional attention module, which consists of a channel attention module and a spatial attention module. In the channel attention module, the input primary feature map passes through two identical branches, and channel dimension reduction is performed in each branch. Then, the input primary feature map is subjected to global average pooling, and the weight of each channel is obtained through a fully connected layer and a sigmoid activation function. The feature map of each channel is weighted to obtain a channel attention weighted feature map. In the spatial attention module, the feature maps of the two parallel channel attention weights are transformed in dimension and matrix multiplication is performed. The weight of each view combining the channel and spatial attention is obtained through the Softmax activation function. The primary feature maps of the left and right views are weighted with this weight to obtain the fused feature map. (3) Inputting the fused feature map into the multi-scale feature enhancement sub-network based on multi-dimensional attention to predict the quality score of the image: the multi-scale feature enhancement sub-network based on multi-dimensional attention extracts the feature maps of the fused feature map after dimension transformation at three different scales through three sets of CCP modules of convolution and pooling operations, wherein the feature map at the smallest scale is called the original deep fused feature map; the feature map at each scale is input into a multi-dimensional attention module, and after channel dimension reduction, three reduced-dimensional feature maps are obtained; two of the reduced-dimensional feature maps are channel-weighted by the channel attention module, and then transformed in dimension, and matrix multiplication and Softmax activation function are performed to obtain multi-dimensional attention weights, and the weights are used to weight the third feature map of the three reduced-dimensional feature maps to obtain a feature map based on the multi-dimensional attention mechanism; the feature maps based on the multi-dimensional attention mechanism obtained at the three scales are fused by upsampling method, and three CCP modules are used to extract features on the fused feature maps to obtain a deep multi-scale feature enhancement feature map based on multi-dimensional attention; The enhanced feature map is obtained by adding the deep multi-scale feature enhancement map based on multi-dimensional attention to the original deep fusion feature map, and then sent to the fully connected layer to predict the image quality score; (4) Calculate the network loss function and perform iterative training: After obtaining the predicted image quality score, calculate the network loss function. The loss function uses the root mean square error (RMSE) and adds L2 regularization to prevent overfitting. This is used to measure the difference between the image quality score predicted by the network and the actual image quality score. Through multiple iterations in the training process, the network parameters are continuously updated to minimize the loss function, so that the image quality score predicted by the network is closer to the actual score, thereby obtaining a trained network model. The third step is to use the trained network to evaluate image quality.
2. The method for evaluating quality of a non-reference stereoscopic image according to claim 1, wherein: The CCP module includes two 3×3 convolutional layers and one pooling layer.
3. The method for evaluating quality of a non-reference stereoscopic image according to claim 1, wherein: In step (2) of the second step, channel dimension reduction is performed in each branch through a 1×1 convolution kernel, and then global average pooling is performed. The weight of each channel is obtained through a fully connected layer and a Sigmoid activation function. The feature map of each channel is weighted using the Scale operation to obtain a channel attention weighted feature map.
4. The method for evaluating quality of a non-reference stereoscopic image according to claim 1, wherein: In step (3) of the second step, the feature maps at each scale are input into a multi-dimensional attention module, and channel dimension reduction is performed through three parallel 1×1 convolution operations to obtain three reduced-dimensional feature maps.
5. The method for evaluating quality of a non-reference stereoscopic image according to claim 1, wherein: The method of the third step is: pre-process the stereo image to be evaluated and input it into the network, and average the quality scores of the image blocks output by the network to obtain the quality score of the entire image.
