Image quality evaluation method for simulating subjective visual sense of human eyes
Features are extracted through differential excitation, gradient and convolutional neural networks, and combined with the attention mechanism and ResNet-101 network, it solves the problem that traditional methods are difficult to capture human visual perception, achieves more accurate image quality assessment, and improves the accuracy of assessment. sensitivity and reliability.
Patent Information
- Application Number
- CN202410766334.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-14
AI Technical Summary
Traditional image quality evaluation methods are difficult to capture the perception of images by the human visual system, especially small features and rapidly changing scenes, resulting in insufficient image quality evaluation levels and the inability to accurately evaluate images captured by automotive camera systems from a human subjective perspective.
Differential excitation, gradient and convolutional neural networks are used to extract features, and the features are fused through the attention mechanism. Combined with the Weber descriptor and Prewitt operator, the ResNet-101 network is used for feature extraction and fusion, and finally the image quality score is calculated through MLP.
It achieves more accurate image quality assessment, can better simulate human visual perception, and improves the sensitivity and reliability of image quality assessment.
Smart Images

Figure CN118735865A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to an image quality evaluation method that simulates subjective human vision. Background Art
[0002] The images captured by the car camera system have different gaps between the camera imaging and the subjective perception of the human eye under various complex conditions such as different times and weather. However, the traditional methods for evaluating image quality often fail to fully consider the perception of the human visual system on the image, and it is difficult to capture small but important features in the image, such as detailed textures and rapidly changing scenes, which affects the level of image quality evaluation. Taking the CIE 188-2010 standard as an example, the traditional evaluation of automobile headlights is mainly based on illumination, lacking evaluation from the subjective aspect of the human eye. Although there are some methods for evaluating the quality of images captured by car camera systems in the prior art, they generally only focus on low-level features of the image, such as brightness and contrast. These methods are difficult to reflect the complex differences in human eye perception. Therefore, there is a need for a method that can more accurately evaluate the quality of images captured by cameras from a subjective perspective, and evaluate the similarity between images and subjective perception of the human eye, so as to improve the effect of image monitoring and data analysis. Summary of the invention
[0003] The purpose of the present invention is to propose an image quality evaluation method simulating the subjective vision of human eyes in view of the problems existing in the prior art.
[0004] The technical solution of the present invention is: the image quality evaluation method simulating the subjective vision of human eyes of the present invention comprises the following steps:
[0005] The first step is to use differential excitation, gradient and convolutional neural network to differentially excite the input image feature F de , the gradient feature is recorded as F g And the basic feature F of the convolutional neural network ain Extraction of
[0006] In the second step, the three features of the image obtained in the first step are fused to obtain the fused feature F fusion2 ;
[0007] The third step is to use the fusion feature F obtained in the second step fusion2 Through the attention mechanism, the fusion features are more biased towards important information, thereby obtaining the feature Y processed by the attention mechanism;
[0008] The fourth step is to pass the feature Y processed by the attention mechanism through a convolutional network with a convolution kernel size of 1 to reduce the number of channels to 1, and add a BatchNorm normalization layer and a Relu activation layer to enhance the nonlinear characteristics of the entire network and prevent the explosion or attenuation of the gradient, and finally obtain a 24×24 two-dimensional feature C′;
[0009] The fifth step is to flatten the two-dimensional feature C′ to obtain a one-dimensional feature vector N;
[0010] In the sixth step, the one-dimensional feature vector N is input into the three-layer MLP for full connection calculation to obtain the image quality evaluation score.
[0011] A further solution is that the specific method of the first step includes:
[0012] ① The specific method for extracting differential excitation features from images is:
[0013] First, Weber differential excitation calculation is performed through three layers of local windows of different sizes, 3×3, 5×5, and 7×7, to obtain features of different scales. The calculation formula of the Weber local description operator is shown in equations (1-1) and (1-2):
[0014]
[0015]
[0016] Then the calculated difference is added as a scalar, and the ratio between the sum of the grayscale differences and the grayscale value of the central pixel is calculated. Then the inverse tangent is solved, and finally the Weber differential excitation feature is obtained. The calculation process is shown in formula (1-3):
[0017]
[0018] In formula (1-1) to formula (1-3), x c is the center pixel of the window, x i The remaining pixels outside the center, w represents windows of different sizes, and the window function and Calculate the differential excitation characteristic ξ w (x c ); Based on three windows of different sizes, a three-layer pyramid feature map can be obtained, and the three-layer feature sizes are adjusted to the same by setting the padding of the window calculation, thereby obtaining the edge with obvious grayscale changes in the image, and then simulating the visual observation mechanism of the human eye to obtain the differential excitation feature of the image, which is recorded as F de , F de The size is 512×512×3, which contains three layers of features f1, f2, f3;
[0019] ②The specific method for extracting gradient features from images is:
[0020] The image gradient feature is extracted by the Prewitt operator. The calculation process is shown in formula (1-4):
[0021]
[0022] The size of the Prewitt operator used is 3×3, and the positions in the operator are encoded from P1 to P9 in the order of row first and column second from the upper left corner. Formula g x That is, the sum of the eigenvalues of the first row and the sum of the eigenvalues of the third row in the operator are subtracted to obtain the gradient features in the vertical direction of the image; formula g y That is, the sum of the first column eigenvalues and the sum of the third column eigenvalues in the operator are subtracted to obtain the horizontal gradient feature of the image. x With g y The gradient feature of the image obtained by adding is recorded as F g ;
[0023] ③The specific method of using convolutional neural network to extract basic features of input images is:
[0024] The ResNet-101 classic convolutional neural network is used as the backbone network for CNN feature extraction, and the basic features of the middle layer of the backbone network are recorded as F ain , its output size is C×H×W, where C is the number of channels, H is the feature map height, and W is the feature map width.
[0025] A further solution is that the specific method of the second step includes:
[0026] ①Use formula (1-5) to convert the basic feature F ain With the gradient feature F g Fusion is performed to obtain the fused feature F fusion1 :
[0027]
[0028] Where α and β are feature weighting coefficients, α ranges from (0,1), and β = 1-α; F fusion1 It is the feature fusion process, and the specific process is the feature F extracted by the convolutional neural network. ain Multiply by the weight coefficient β, the gradient feature is multiplied by the weight coefficient α, and then the two parts of the feature are added together and passed through the ResNet-101 network to obtain a feature map with a final size of 14×14×512;
[0029] ② Then use formula (1-6) to convert the feature F fusion1 With the differential excitation characteristic F de Fusion is performed to obtain the fused feature Ffusion1 :
[0030] F fusion2 =γF fusion1 +ξf de ∈R (H×W)×C (1-6)
[0031] In the formula, γ and ξ are feature weighting coefficients, the value range of γ is (0,1), and ξ=1-γ; the specific process is the feature F extracted in the previous step ain Multiply by the weight coefficient Y, the gradient feature is multiplied by the weight coefficient ξ, and then the two parts of the feature are added together to obtain a feature map with a final size of 14×14×512.
[0032] A further solution is that the specific method of the third step includes:
[0033] ①Use formula (1-7) to fusion feature F fusion2 Dimensionality reduction is performed through convolutional neural networks to reduce the amount of computation in the attention mechanism:
[0034] F0=Conv(F fusion2 )∈ H×W×C (1-7)
[0035] ② Use formula (1-8) to perform the Reshape operation to change the feature map into the form required for attention calculation. After the Reshape operation, the X feature size obtained is (H×W) rows and C columns, where each column represents the information of all channels at a pixel position in the fused and compressed feature map F0;
[0036] X=Reshape(F0)∈ (H×W)×C (1-8)
[0037] ③ The attention mechanism is used to improve the performance of image quality evaluation. The X feature is input into the self-attention layer to calculate the attention matrix. The formula is as follows:
[0038] Q=W Q ∈ (x)x (1-9)
[0039] K=W Q ∈ (x)x (1-10)
[0040] V=W V ∈ (x)x (1-11)
[0041] Where Q is the query matrix, K is the key matrix, and V is the value matrix. All three matrices are obtained by linear transformation of the X feature and are special mappings of the X feature to represent the relevant information at a specific position in the feature map; the weight matrix WQ , W K , W V The attention is dynamically adjusted, and then the overall attention H is calculated as shown in formula (1-12):
[0042]
[0043] The process of calculating the overall attention H is as follows: the transpose of the key matrix K is multiplied by the query matrix Q to obtain the correlation matrix between the features at each position in the feature map; then the correlation matrix is normalized by dividing it by the square root of the dimension d to obtain the attention weight matrix, and then the obtained attention weight matrix is normalized by a softmax operation to normalize the attention weights so that it satisfies the properties of the probability distribution and converts the input vector into a probability distribution form, so that each weight becomes a value between 0 and 1, and the sum of all weights is 1, ensuring that the model will not be biased towards a specific part when performing information fusion, and obtains information from different features in a balanced manner; finally, the value matrix V is multiplied by the attention weight matrix to obtain the overall attention H;
[0044] ④ Reshape the obtained overall attention H using formula (1-13) to obtain feature Y:
[0045] Y=Reshape(H)∈ H×W×C (1-13).
[0046] A further solution is that the specific method of the fourth step is:
[0047] The two-dimensional feature C′ is calculated using formula (1-14):
[0048] C'=Relu(BN(Conv 1×1 (Y)))∈ H×W×1 (1-14).
[0049] In the formula, Conv 1×1 (·) represents a convolution operation with a convolution kernel size of 1, which compresses the acquired H×W×C features from C to 1 in the channel dimension. BN represents the BatchNorm layer, which aims to keep the input of each layer of the neural network in the same distribution to prevent the gradient of the underlying neural network from disappearing during back propagation. Relu is an activation function, which reduces the number of parameters and increases the nonlinear relationship, thereby enhancing the expressive power of the network.
[0050] A further solution is that the specific method of the fifth step is:
[0051] Use formula (1-15) to flatten the acquired two-dimensional feature C′ to obtain a one-dimensional feature vector N of 1×(H×W):
[0052] N=flatten(C′)∈ 1×(H×W) (1-15)
[0053] Where flatten(·) represents the flattening operation, which expands the feature C′ of size H×W×1 into a feature N of size 1×(H×W).
[0054] The present invention has positive effects: the present invention comprehensively uses Weber descriptors, differential excitation feature extraction, gradient direction and other technologies, and integrates the attention mechanism of deep learning to achieve more accurate image quality evaluation; wherein, by introducing Weber descriptors to capture the structure and texture information of the image, the image quality can be better measured; the differential excitation feature extraction module can effectively capture rapidly changing scenes in the image such as traffic moments and sudden braking, thereby improving the sensitivity of image quality evaluation; the introduction of gradient directions enhances the diversity of image features, making the evaluation more comprehensive; and the attention mechanism of deep learning enables the convolutional neural network to focus on key areas related to human visual perception such as key objects, light sources, texture features, etc. when evaluating image quality, which helps to more accurately simulate the perception process of the human eye, thereby greatly improving the reliability of image quality evaluation results compared to the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION
[0056] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0057] (Example 1)
[0058] The image quality evaluation method of this embodiment simulates the subjective vision of the human eye. Through multi-scale Weber excitation, differential excitation feature extraction, gradient feature extraction, and integration of deep learning neural networks, it evaluates the gap between the image taken by the camera and the visual perception of the human eye, and finally evaluates whether the image conforms to the subjective vision of the human eye.
[0059] See also Figure 1 The image quality evaluation method simulating subjective human visual perception of this embodiment is implemented according to the following steps:
[0060] In the first step, differential excitation, gradient and convolutional neural network are used to extract three features of the input image, as follows:
[0061] ① The specific method for extracting differential excitation features from images is:
[0062] First, Weber differential excitation calculation is performed through three layers of local windows of different sizes to obtain features of different scales. The windows of different sizes used are 3×3, 5×5, and 7×7. The calculation formula of the Weber local description operator is shown in equations (1-1) and (1-2):
[0063]
[0064]
[0065] Then the calculated difference is added as a scalar, and the ratio between the sum of the grayscale differences and the grayscale value of the central pixel is calculated. Then the inverse tangent is solved, and finally the Weber differential excitation feature is obtained. The calculation process is shown in formula (1-3):
[0066]
[0067] In formula (1-1) to formula (1-3), x c is the center pixel of the window, x i The remaining pixels outside the center, w represents windows of different sizes, and the window function and Calculate the differential excitation characteristic ξ w (x c ); Based on three windows of different sizes, a three-layer pyramid feature map can be obtained, and the three-layer feature sizes are adjusted to the same by setting the padding of the window calculation, thereby obtaining the edge with obvious grayscale changes in the image, and then simulating the visual observation mechanism of the human eye, so as to obtain the differential excitation feature of the image, which is recorded as F de , F de The size is 512×512×3, which contains three layers of features f1, f2, and f3.
[0068] ②The specific method for extracting gradient features from images is:
[0069] The image gradient feature is extracted by the Prewitt operator. The calculation process is shown in formula (1-4).
[0070]
[0071] The size of the Prewitt operator used is 3×3, and the positions in the operator are encoded from P1 to P9 in the order of row first and column second from the upper left corner. Formula g x That is, the sum of the eigenvalues of the first row and the sum of the eigenvalues of the third row in the operator are subtracted to obtain the gradient features in the vertical direction of the image; formula g y That is, the sum of the first column eigenvalues and the sum of the third column eigenvalues in the operator are subtracted to obtain the horizontal gradient feature of the image. x With g yAdd up to get the gradient feature of the image, denoted as F g .
[0072] ③The specific method of using convolutional neural network to extract basic features of input images is:
[0073] The ResNet-101 classic convolutional neural network is used as the backbone network for CNN (convolutional neural network) feature extraction. The basic features of the middle layer of the backbone network are denoted as F ain , its output size is C×H×W, where C is the number of channels, H is the feature map height, and W is the feature map width.
[0074] In the second step, the three features of the image obtained in the first step are fused as follows:
[0075] ①Use formula (1-5) to convert the basic feature F ain With the gradient feature F g Fusion is performed to obtain the fused feature F fusion1 :
[0076]
[0077] Where α and β are feature weighting coefficients, α ranges from (0,1), and β = 1-α; F fusio1 It is the feature fusion process, and the specific process is the feature F extracted by the convolutional neural network. ain Multiply by the weight coefficient β, the gradient feature is multiplied by the weight coefficient α, and then the two parts of the feature are added together and passed through the ResNet-101 network to obtain a feature map with a final size of 14×14×512.
[0078] ②Use formula (1-6) to transform the feature F fusion1 With the differential excitation characteristic F de Fusion is performed to obtain the fused feature F fusion2 :
[0079] F fusion2 =γF fusion1 +ξf de ∈R (H×W)×C (1-6)
[0080] In the formula, γ and ξ are feature weighting coefficients, the value range of γ is (0,1), and ξ=1-γ; the specific process is the feature F extracted in the previous step ain Multiply by the weight coefficient Y, the gradient feature is multiplied by the weight coefficient ξ, and then the two parts of the feature are added together to obtain a feature map with a final size of 14×14×512.
[0081] The third step is to obtain the fusion feature F fusion2The attention mechanism is used to make the features more biased towards important information, so as to obtain the feature Y processed by the attention mechanism; the specific method is:
[0082] ①Use formula (1-7) to fusion feature F fusion2 Dimensionality reduction is performed through convolutional neural networks to reduce the amount of computation in the attention mechanism:
[0083] F0=Conv(F fsion2 )∈ H×W×C (1-7)
[0084] ② Use formula (1-8) to perform the Reshape operation to change the feature map into the form required for attention calculation. After the Reshape operation, the X feature size obtained is (H×W) rows and C columns, where each column represents the information of all channels at a pixel position in the fused and compressed feature map F0;
[0085] X=Reshape(F0)∈ (H×W)×C (1-8)
[0086] ③ The attention mechanism is used to improve the performance of image quality evaluation. The fused feature X is input into the self-attention layer to calculate the attention matrix. The formula is as follows:
[0087] Q=W Q ∈ (x)x (1-9)
[0088] K=W Q ∈ (x)x (1-10)
[0089] V=W V ∈ (x)x (1-11)
[0090] Where Q, K, and V are all obtained by linear transformation of X, and are special mappings of feature X to characterize the relevant information of a specific position in the feature map. The query matrix Q is used to guide the model to focus on a specific part of the image. Through the query vector obtained by linear transformation of the input data, the model can determine which positions or feature points to pay more attention to. The key matrix K corresponds to the query and represents the source of information that the model pays attention to. In the attention mechanism, the key vector is obtained by linear transformation of the input data and matched with the query vector to calculate the attention weight. The value matrix V provides data containing actual information, which will be weighted and summed according to the attention weight to generate the final output result. The weight matrix W Q , W K , W VIt can be dynamically adjusted through attention, and then the overall attention H related calculation is performed as shown in formula (1-12):
[0091]
[0092] The overall attention mechanism calculation process is as follows: the transpose of the key matrix K is multiplied by the query matrix Q to obtain the relationship matrix between the features at each position in the feature map; then the relationship matrix is normalized by dividing it by the square root of the dimension d to obtain the attention weight matrix. The purpose of this operation is to prevent model overfitting and accelerate the training process, making the attention mechanism more stable and avoiding numerical problems caused by excessive feature dimensions; then the obtained attention weight matrix is subjected to a softmax operation. The main function of the softmax function is to normalize the attention weights so that they meet the properties of the probability distribution and convert the input vector into the form of a probability distribution, so that each weight becomes a value between 0 and 1, and the sum of all weights is 1, ensuring that the model will not be biased towards a specific part when performing information fusion, and will obtain information from different features in a balanced manner; finally, the value matrix V is multiplied by the attention weight matrix to obtain the output H.
[0093] ④ Reshape the output H using formula (1-13) to obtain feature Y:
[0094] Y=Reshape(H)∈ H×W×C (1-13)
[0095] In the fourth step, the obtained feature Y is passed through a convolutional network with a convolution kernel size of 1 to reduce the number of channels to 1, and a BatchNorm normalization layer and a Relu activation layer are added to enhance the nonlinear characteristics of the entire network and prevent the explosion or attenuation of the gradient. Finally, a 24×24 two-dimensional feature C′ is obtained, as shown in formula (1-14):
[0096] C'=Relu(BN(Conv 1×1 (Y)))∈ H×W×1 (1-14)
[0097] In the formula, Conv 1×1 (·) represents a convolution operation with a convolution kernel size of 1, which compresses the acquired H×W×C features from C to 1 in the channel dimension. BN represents the BatchNorm layer, which aims to keep the input of each layer of the neural network in the same distribution to prevent the gradient of the underlying neural network from disappearing during back propagation. Relu is an activation function, which reduces the number of parameters and increases the nonlinear relationship, thereby enhancing the expressive power of the network.
[0098] The fifth step is to flatten the two-dimensional feature C′ to obtain a one-dimensional feature vector, specifically:
[0099] Use formula (1-15) to flatten the acquired two-dimensional feature C′ to obtain a one-dimensional feature vector N of 1×(H×W):
[0100] N=flatten(C′)∈ 1×(H×W) (1-15)
[0101] Where flatten(·) represents the flattening operation, which expands the feature C′ of size H×W×1 into a feature N of size 1×(H×W);
[0102] In the sixth step, the one-dimensional feature vector N is input into the three-layer MLP for full connection calculation to obtain the image quality evaluation score.
[0103] In this step, MLP is a multilayer perceptron (Multilayer Perceptron), that is, an MLP algorithm, also known as a feedforward neural network or an artificial neural network, which is a prior art and will not be described in detail.
[0104] The above embodiments are descriptions of specific implementation methods of the present invention rather than limitations of the present invention. Technical personnel in the relevant technical field can make various changes and modifications to obtain corresponding equivalent technical solutions without departing from the spirit and scope of the present invention. Therefore, all equivalent technical solutions should be included in the patent protection scope of the present invention.
Claims
1. A method for evaluating image quality by simulating subjective human visual perception, characterized in that: The following steps are involved: The first step is to use differential excitation, gradient and convolutional neural network to differentially excite the input image feature F de , the gradient feature is recorded as F g And the basic feature F of the convolutional neural network ain Extraction of In the second step, the three features of the image obtained in the first step are fused to obtain the fused feature F fusion2 ; The third step is to use the fusion feature F obtained in the second step fusion2 Through the attention mechanism, the fusion features are more biased towards important information, thereby obtaining the feature Y processed by the attention mechanism; The fourth step is to pass the feature Y processed by the attention mechanism through a convolutional network with a convolution kernel size of 1 to reduce the number of channels to 1, and add a BatchNorm normalization layer and a Relu activation layer to enhance the nonlinear characteristics of the entire network and prevent the explosion or attenuation of the gradient, and finally obtain a 24×24 two-dimensional feature C′; The fifth step is to flatten the two-dimensional feature C′ to obtain a one-dimensional feature vector N; In the sixth step, the one-dimensional feature vector N is input into the three-layer MLP for full connection calculation to obtain the image quality evaluation score.
2. The image quality evaluation method simulating subjective human vision according to claim 1, characterized in that: The specific method of the first step includes: ① The specific method for extracting differential excitation features from images is: First, Weber differential excitation calculation is performed through three layers of local windows of different sizes, 3×3, 5×5, and 7×7, to obtain features of different scales. The calculation formula of the Weber local description operator is shown in equations (1-1) and (1-2): Then the calculated difference is added as a scalar, and the ratio between the sum of the grayscale differences and the grayscale value of the central pixel is calculated. Then the inverse tangent is solved, and finally the Weber differential excitation feature is obtained. The calculation process is shown in formula (1-3): In formula (1-1) to formula (1-3), x c is the center pixel of the window, x i The remaining pixels outside the center, w represents windows of different sizes, and the window function and Calculate the differential excitation characteristic ξ w (x c ); Based on three windows of different sizes, a three-layer pyramid feature map can be obtained, and the three-layer feature sizes are adjusted to the same by setting the padding of the window calculation, thereby obtaining the edge with obvious grayscale changes in the image, and then simulating the visual observation mechanism of the human eye to obtain the differential excitation feature of the image, which is recorded as F de , F de The size is 512×512×3, which contains three layers of features f1, f2, f3; ②The specific method for extracting gradient features from images is: The image gradient feature is extracted by the Prewitt operator. The calculation process is shown in formula (1-4): The size of the Prewitt operator used is 3×3, and the positions in the operator are encoded from P1 to P9 in the order of row first and column second from the upper left corner. Formula g x That is, the sum of the eigenvalues of the first row and the sum of the eigenvalues of the third row in the operator are subtracted to obtain the gradient features in the vertical direction of the image; formula g y That is, the sum of the first column eigenvalues and the sum of the third column eigenvalues in the operator are subtracted to obtain the horizontal gradient feature of the image. x With g y The gradient feature of the image obtained by adding is recorded as F g ; ③The specific method of using convolutional neural network to extract basic features of input images is: The ResNet-101 classic convolutional neural network is used as the backbone network for CNN feature extraction, and the basic features of the middle layer of the backbone network are recorded as F ain , its output size is C×H×W, where C is the number of channels, H is the feature map height, and W is the feature map width.
3. The image quality evaluation method simulating subjective human visual perception according to claim 1, characterized in that: The specific method of the second step includes: ①Use formula (1-5) to convert the basic feature F ain With the gradient feature F g Fusion is performed to obtain the fused feature F fusion1 : Where α and β are feature weighting coefficients, α ranges from (0, 1), and β = 1-α; F fusion1 It is the feature fusion process, and the specific process is the feature F extracted by the convolutional neural network. ain Multiply by the weight coefficient β, the gradient feature is multiplied by the weight coefficient α, and then the two parts of the feature are added together and passed through the ResNet-101 network to obtain a feature map with a final size of 14×14×512; ② Then use formula (1-6) to convert the feature F fusion1 With the differential excitation characteristic F de Fusion is performed to obtain the fused feature F fusion2 : F fusion2 =γF fusion1 +ξf de ∈R (H×W)×C (1-6) In the formula, γ and ξ are feature weighting coefficients, the value range of γ is (0, 1), and ξ = 1-γ; the specific process is the feature F extracted in the previous step ain Multiply by the weight coefficient γ, the gradient feature is multiplied by the weight coefficient ξ, and then the two parts of the feature are added together to obtain a feature map with a final size of 14×14×512.
4. The image quality evaluation method simulating subjective human visual perception according to claim 1, characterized in that: The specific method of the third step includes: ①Use formula (1-7) to fusion feature F fusion2 Dimensionality reduction is performed through convolutional neural networks to reduce the amount of computation in the attention mechanism: F0=Conv(F fusion2 )∈ H×W×C (1-7) ② Use formula (1-8) to perform the Reshape operation to change the feature map into the form required for attention calculation. After the Reshape operation, the X feature size obtained is (H×W) rows and C columns, where each column represents the information of all channels at a pixel position in the fused and compressed feature map F0; X=Reshape(F0)∈ (H×W)×C (1-8) ③ The attention mechanism is used to improve the performance of image quality evaluation. The X feature is input into the self-attention layer to calculate the attention matrix. The formula is as follows: Q=W Q ∈ (X)X (1-9) K=W Q ∈ (X)X (1-10) V=W V ∈ (X)X (1-11) Where Q is the query matrix, K is the key matrix, and V is the value matrix. All three matrices are obtained by linear transformation of the X feature and are special mappings of the X feature to represent the relevant information at a specific position in the feature map; the weight matrix W Q , W K , W V The attention is dynamically adjusted, and then the overall attention H is calculated as shown in formula (1-12): The process of calculating the overall attention H is as follows: the transpose of the key matrix K is multiplied by the query matrix Q to obtain the correlation matrix between the features at each position in the feature map; then the correlation matrix is normalized by dividing it by the square root of the dimension d to obtain the attention weight matrix, and then the obtained attention weight matrix is normalized by a softmax operation to normalize the attention weights so that it satisfies the properties of the probability distribution, converting the input vector into the form of a probability distribution so that each weight becomes a value between 0 and 1, and the sum of all weights is 1, ensuring that the model will not be biased towards a specific part when performing information fusion, and evenly obtain information from different features; finally, the value matrix V is multiplied by the attention weight matrix to obtain the overall attention H; ④ Reshape the obtained overall attention H using formula (1-13) to obtain feature Y: Y=Reshape(H)∈ H×W×C (1-13)。 5. The image quality evaluation method simulating subjective human visual perception according to claim 1, characterized in that: The specific method of the fourth step is: The two-dimensional feature C′ is calculated using formula (1-14): C′=Relu(BN(Conv 1×1 (Y)))∈ H×W×1 (1-14) In the formula, Conv 1×1 (·) represents a convolution operation with a convolution kernel size of 1, which compresses the acquired H×W×C features from C to 1 in the channel dimension. BN represents the BatchNorm layer, which aims to keep the input of each layer of the neural network in the same distribution to prevent the gradient of the underlying neural network from disappearing during back propagation. Relu is an activation function, which reduces the number of parameters and increases the nonlinear relationship, thereby enhancing the expressive power of the network.
6. The image quality evaluation method simulating subjective human vision according to claim 1, characterized in that: The specific method of the fifth step is: Use formula (1-15) to flatten the acquired two-dimensional feature C′ to obtain a one-dimensional feature vector N of 1×(H×W): N=flatten(C′)∈ 1×(H×W) (1-15) Where flatten(·) represents the flattening operation, which expands the feature C′ of size H×W×1 into a feature N of size 1×(H×W).
Citation Information
Patent Citations
Attention module-based image quality evaluation method
CN112634238A
Underwater image quality evaluation method based on multi-stream convolutional neural network
CN117372352A
No-reference stereo image quality evaluation method based on one-eye features
CN117893886A
Medical image data classification method and system based on bilinear attention network
WO2022198808A1
