Image quality evaluation method based on deep feature reorganization self-attention mechanism under meta-learning framework

By employing a meta-learning framework and a deep feature reorganization self-attention mechanism, this study addresses the issues of computational cost and generalization performance in image quality assessment methods, achieving efficient and accurate quality assessment across image types and making it suitable for quality assessment tasks of various image types.

CN118396945BActive Publication Date: 2026-11-20NANJING NORMAL UNIVERSITY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410480792.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-22
Publication Date
2026-11-20
Estimated Expiration
2044-04-22

AI Technical Summary

Technical Problem

Existing image quality assessment methods suffer from high computational costs, large memory consumption, and poor generalization performance when processing different types of images. Furthermore, traditional methods neglect semantic analysis of multi-region features, leading to inaccurate evaluation results.

Method used

We employ a deep feature recombination self-attention mechanism within a meta-learning framework. This method filters salient and non-salient regions using local gradient features, designs random recombination and random selection strategies to adjust feature sizes, combines self-attention mechanisms for semantic analysis, and utilizes the meta-learning framework to optimize parameters, thereby achieving quality assessment across image types.

Benefits of technology

It improves the accuracy and efficiency of image quality assessment, reduces computational costs, enhances the model's generalization ability, adapts to quality assessment tasks for multiple types of images, reduces memory usage, and achieves fast and accurate image quality prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118396945B_ABST
    Figure CN118396945B_ABST
Patent Text Reader

Abstract

This invention discloses an image quality assessment method based on a deep feature reorganization self-attention mechanism within a meta-learning framework. The method includes: preprocessing the image's regional information; simultaneously inputting salient region images, non-salient region images, and the original image into a multi-path feature extraction network; designing a random selection strategy to obtain deep features suitable for a semantic analysis network; designing a random sampling strategy to filter and randomly crop feature information; inputting the multi-path features into the semantic analysis network; designing a meta-learning framework to learn and simulate the network's parameter update pattern, and saving the learned prior knowledge; importing the prior knowledge obtained from the meta-learning framework to rapidly fine-tune the training process, obtaining a prediction score for images of unknown types. This invention can accurately evaluate the quality of multiple image types and has the ability to evaluate image quality across image types, offering advantages such as objectivity, speed, and ease of use.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of image quality assessment, specifically relating to an image quality assessment method based on a deep feature reorganization self-attention mechanism within a meta-learning framework. Background Technology

[0002] With the development of the times, related technologies in the field of computer vision have gradually matured, and the requirements for image quality in computer vision tasks are becoming increasingly stringent. Images are also affected by different technologies during acquisition, transmission, processing, and storage. Therefore, research on image quality assessment has become one of the fundamental technologies in image information engineering, aiming to reasonably evaluate image quality. The rise of deep learning has promoted the application of deep neural networks in image quality assessment methods, and many mainstream image quality assessment methods have achieved significant results, confirming the effectiveness of deep neural networks. These methods reveal an important point during the learning process: the semantic analysis stage of the image greatly affects the assessment results. Some image quality assessment methods improve the accuracy of the semantic analysis stage by deepening the network, promoting feature fusion, and increasing the frequency of feature interactions. The rise of Transformers has elevated the semantic analysis stage of images to a new level, and many image quality assessment methods based on attention mechanism networks have emerged. While these methods have achieved high accuracy, they have also brought new problems. The operation of Transformer networks requires a large amount of expensive resources such as data, computing power, and memory, and obtaining the expected convergence model also requires more time. Therefore, how to reduce the memory and computing power problems caused by such networks is a crucial issue that needs attention. Some image quality assessment methods utilize traditional convolutional networks to extract shallow features and then employ Transformer networks for semantic analysis, achieving some success. However, the issue of different feature sizes resulting from the two different networks still needs optimization. Adjusting features using traditional convolution and pooling operations incurs higher computational costs and includes more redundant information.

[0003] Deep feature processing typically enhances the representation of important information, providing the network with more valuable feature information and reducing the burden on the network to process data. Common deep feature processing techniques such as feature selection, feature transformation, and feature reconstruction can adjust the size and scope of features. Strategies like random selection and random recombination are often used in the preprocessing of samples or data. If these strategies are flexibly applied to deep feature processing, they can not only address the issue of different feature sizes caused by different networks and alleviate the burden of attention-based networks analyzing complex semantics, but also improve the accuracy and efficiency of the model.

[0004] Many image quality assessment methods focus on improving performance in a single task. While these methods show high accuracy, they neglect the generalization performance of the model in complex tasks. However, the use of real-world scenarios requires the model to be able to flexibly handle various types of image data with different distortions. Summary of the Invention

[0005] Objective: To overcome the shortcomings of existing technologies, this invention provides an image quality assessment method based on a deep feature recombination self-attention mechanism within a meta-learning framework. To enable semantic analysis of multi-region features and improve the model's accuracy in evaluating distorted images under quality fluctuations, a semantic analysis network based on a self-attention mechanism is designed. A random recombination strategy is implemented to adjust the deep feature size, reducing the parameter burden of the self-attention mechanism and providing data support for the network in the semantic analysis stage. Furthermore, to adapt to the needs of real-world tasks and improve the model's generalization ability in multi-type quality assessment tasks, a parameter optimization scheme for a cross-image type quality model within the meta-learning framework is designed. This scheme can accurately evaluate the quality of multiple image types and possesses the ability to perform image quality assessment across different image types. It offers advantages such as objectivity, speed, and usability, providing a scientific basis for multi-type image quality assessment methods.

[0006] Technical Solution: To achieve the above objectives, this invention provides an image quality assessment method based on a deep feature reorganization self-attention mechanism within a meta-learning framework, comprising the following steps:

[0007] S1: Perform preprocessing operations on the regional information of the image, and use the relationship between the local gradient features of each region in the horizontal and vertical directions and the global information to filter out the salient and non-salient regions of the image.

[0008] S2: Construct a multi-path feature extraction network based on inter-layer interaction, and simultaneously use the salient region image, the non-salient region image and the original image as input to the multi-path feature extraction network to extract shallow features;

[0009] S3: Design a random selection strategy to perform a random selection strategy on the features extracted in step S2 to obtain deep features suitable for semantic analysis networks;

[0010] S4: Design a random sampling strategy, starting from the two-dimensional feature size of each channel, to filter and randomly crop out the feature information as a whole;

[0011] S5: Input the randomly sampled multi-path features into the constructed attention-based semantic analysis network;

[0012] S6: Design a meta-learning framework to learn and simulate the parameter update pattern of the network. Select an optimization-based meta-learning method. During the training process, the meta-learning framework periodically learns the experience of the unit task according to the learning step size and saves the learned prior knowledge.

[0013] S7: The unknown type image to be evaluated is preprocessed in step S1 to obtain three different inputs to the multi-path feature extraction network. The multi-path feature extraction network and semantic analysis network are used for training. Prior knowledge obtained from the meta-learning framework is imported, and the training process is quickly fine-tuned using the prior knowledge to obtain the prediction score of the unknown type image.

[0014] Further, the method for filtering salient and non-salient regions in step S1 is as follows: A sliding window with a size of 224*224 and a step size of 112 is designed to extract small blocks of the image; the Sobel operator is used to calculate the gray-level gradient of each image block in the x and y directions; combining the gradient information of local image blocks and the overall image, the pixel gradient information of each image block is processed by Gaussian filtering and generalized Pareto distribution to obtain the overall salient information distribution; the mean of the salient information of all image blocks is calculated, and the saliency score of each image block is calculated based on the mean; the image block with the highest score is designated as a salient region, and the image block with the lowest score is designated as a non-salient region. The saliency score is calculated using the following formula:

[0015]

[0016] Where, x i Let E represent the gradient feature matrix of the i-th image patch, and let E represent the identity matrix.

[0017] Furthermore, in step S2, the multi-path feature extraction network is used for shallow feature extraction and consists of multiple branch networks with the same structure. Each branch network is composed of three dense blocks and three transition blocks. Each dense block is composed of multiple feature reuse layers, where each feature reuse layer consists of two convolutional layers, two normalization layers, and two ReLU activation functions alternately. Each feature reuse layer concatenates the input and output features of this layer as the input of the next layer, completing feature reuse between layers and realizing the sharing of feature information between layers. This makes the semantic information sources in the feature extraction process richer, while retaining feature information from different layers with a high probability. The first dense block consists of 6 feature reuse layers, and the number of layers in the second and third dense blocks doubles sequentially. Each transition block is used to integrate the shallow features obtained from the previous dense block, while compressing feature information and highlighting the role of key features, providing a more refined input for the next dense block. This design helps prevent overfitting as the network gradually deepens and plays a role in compressing the model throughout the network.

[0018] Furthermore, in step S3, the random selection strategy includes random recombination and random selection of overall feature information, used to adjust the size of deep features and reduce the computational memory occupied by the semantic analysis network based on the self-attention mechanism. The specific process is as follows:

[0019] Perform random recombination: Compress the two-dimensional feature tensor in each channel of the branch features obtained in step S2 into a one-dimensional tensor, and randomly shuffle the arrangement order of the channel features. Then, divide every 4 channel features into a group according to the random order and randomly combine them into several new groups of features.

[0020] Perform random filtering: Randomly filter the feature points in each group of features, using the channel feature length as the number of traversals, and simultaneously traverse 4 channel features. Each time, visit the feature points of 4 channel features and randomly select one of them. After the traversal is completed, combine all feature points into a one-dimensional tensor feature according to the traversal order. The overall feature channel is reduced to one-quarter, completing the random filtering from the perspective of feature points and forming a new overall channel feature.

[0021] The features obtained through the above process have been adjusted in terms of the number of channels, and the different feature points between channels have been re-selected and combined to obtain deep features suitable for semantic analysis networks. This not only accelerates the convergence efficiency of the network, but also reduces the memory usage of the semantic analysis network.

[0022] Furthermore, in step S4, the random sampling strategy starts with the two-dimensional feature size of each channel, comprehensively filtering and randomly cropping feature information. The random sampling strategy aims to randomly crop features to a specified size. It adjusts the one-dimensional channel features obtained in step S3 by first recompressing all one-dimensional feature tensors in the channel features into two-dimensional feature tensors, removing the feature combination from step S3, and then randomly locating the cropping position from each two-dimensional channel feature without exceeding the feature size range, cropping smaller two-dimensional features, thus completing the random cropping from the feature plane perspective. The features obtained in the above way are adjusted in two-dimensional feature size, meeting the feature input requirements of the semantic analysis network while reducing the memory occupied by the semantic analysis stage, alleviating the burden of the semantic analysis stage, and improving the overall efficiency of the algorithm.

[0023] Furthermore, in step S5, leveraging the advantages of self-attention mechanisms in semantic analysis, a semantic analysis network based on self-attention is constructed. Multiple features obtained through deep feature processing strategies are used as input. The block segmentation process in the network is removed, and positional information is directly added to the feature blocks. Semantic information is obtained through an encoder, and then a quality score is obtained after passing through a linear regression layer. This process aims to obtain semantic relationships in the image, extract deep semantic information from the overall features, reduce attention to shallow features, and improve the network's ability to analyze distorted information.

[0024] Furthermore, in step S6, the meta-learning framework periodically learns the network's parameter update pattern. Specifically, during training on each batch of image data, the meta-learning framework analyzes some parameters in the network according to the learning step size. When a certain number of tasks are met or the current training ends, the meta-learning updates the accumulated prior knowledge into the parameter dictionary. In this process, the meta-learning completes the learning of different distortion information, providing unit-based information for the formation of prior knowledge. When all training tasks are completed, the meta-learning framework completes the learning of the network model and summarizes the regional connections and semantic information of all types of images, forming prior knowledge with generalization and stability. This is the qualitative change result of the periodic learning of meta-learning.

[0025] Furthermore, in step S7, different types of images are preprocessed according to the method in step S1 to obtain three different inputs; these three inputs are put into the multi-path feature extraction network in step S2, and the resulting multi-path features are processed by the deep feature processing strategies in steps S3 and S4, and then used as inputs to the semantic analysis network; the prior knowledge learned by the meta-learning framework in step S6 is imported into the network. During the testing of different types of images, the meta-learning framework fine-tunes the model based on the prior knowledge and learns the connections and semantic information between different regions in the new type of image. The prior knowledge is integrated with the feature information in the current fine-tuning task to stably and quickly predict the quality scores of other types of images, forming a network model suitable for new types of images, demonstrating the good generalization and strong adaptability of the network under the meta-learning framework.

[0026] Meta-learning is a research direction in machine learning that aims to learn how a model learns. The core idea of ​​meta-learning is to use learned knowledge or methods to enable models to fine-tune adaptive models more quickly and efficiently when faced with new tasks. Due to its unique learning method and smaller data requirements, meta-learning can be applied to image quality assessment tasks, achieving efficient and accurate quality prediction and model optimization across image types, thus providing a method for multi-type image quality assessment.

[0027] This invention utilizes attention mechanism networks to analyze semantic information in images, designs a random recombination strategy to flexibly adjust the size of deep features, reduces the computational cost of the semantic analysis stage, and formulates a meta-learning framework and image quality evaluation technology to meet the practical needs of various tasks.

[0028] This invention utilizes the relationship between local gradient features and global information in different regions of an image (horizontal and vertical) to extract salient and non-salient regions. A multi-path feature extraction network is designed, using the salient and non-salient regions and the original image as input to capture feature information from multiple regions. A deep feature random selection strategy is designed to randomly reorganize and select feature information from multiple dimensions of deep features, adjusting the deep feature size according to the needs of the deep network to reduce computational load and memory usage. A semantic analysis network based on a self-attention mechanism is used to learn the relationship between distortion changes and quality fluctuations, strengthening semantic expression. A meta-learning framework is employed to optimize the parameter update mode, meeting the task requirements of multiple image types, thereby training a quality assessment model applicable to multiple image types.

[0029] The semantic analysis network designed in this invention utilizes the characteristics of the self-attention mechanism to accurately obtain image quality scores. The random recombination strategy can flexibly adapt to the feature size requirements of the semantic analysis network, greatly reducing computational costs. Under the optimization of the meta-learning framework, this invention has the characteristics of high accuracy and strong adaptability, providing a feasible solution and theoretical basis for the research of a general quality assessment method across image types.

[0030] Beneficial effects: Compared with the prior art, the present invention has the following advantages:

[0031] 1. Compared with subjective image quality evaluation methods that are time-consuming, unstable, and dependent on human experience, this invention has the advantages of high efficiency and real-time performance.

[0032] 2. Compared with full-reference image quality assessment methods and half-reference image quality assessment methods, this invention does not require a reference image, which reduces the cost of acquiring a reference image and has a wider range of applications.

[0033] 3. Compared with existing no-reference image quality assessment methods that select a single region for feature extraction, this invention considers the feature information of multiple different regions, mines semantic characteristics from different angles, strengthens the influence of specific regions on the algorithm, and can obtain more accurate evaluation results.

[0034] 4. Compared with existing traditional network models, this invention separates the shallow feature extraction part from the semantic analysis part, and designs a deep feature processing strategy to randomly recombine and filter feature information to obtain data suitable for semantic analysis networks. This enables efficient learning of both processes and improves the accuracy of model analysis.

[0035] 5. Compared with traditional image preprocessing methods, this invention also focuses on the processing of features during the network learning process. In this invention, a random selection strategy is used to process deep features, which compresses the number of parameters in the Transformer network learning process and reduces the use of memory space.

[0036] 6. Compared with existing deep feature processing methods based on convolution and pooling, this invention uses random recombination and random selection strategies to process deep features, reducing the depth of the network, improving the network learning efficiency, greatly accelerating the model convergence speed, and saving the space cost of network computation.

[0037] 7. Compared with existing image quality assessment methods across image types, this invention fully integrates prior knowledge acquired through meta-learning when training the network across different image types. It requires only a small amount of time for fine-tuning and makes extensive use of the common relationships between different types of images, thus enabling it to complete the cross-image type assessment task efficiently and accurately. Attached Figure Description

[0038] Figure 1 This is a flowchart of the method of the present invention;

[0039] Figure 2 The three input images obtained by preprocessing in this embodiment of the invention are shown in the figure, wherein: (a) is the original image, with red and green borders highlighting the positions of the salient and non-salient areas respectively; (b) is the downsampled image; (c) is the salient area of ​​the embodiment; and (d) is the non-salient area of ​​the embodiment.

[0040] Figure 3 This is a structural diagram of one branch in a multi-path feature extraction network;

[0041] Figure 4 This is a structural diagram of multi-head attention mechanisms in semantic analysis networks;

[0042] Figure 5 The following is a scatter plot showing the correlation between the predicted value and the true value in an embodiment of the present invention, wherein: (a) is a scatter plot showing the correlation after removing the random selection strategy in the present invention; and (b) is a scatter plot showing the correlation obtained after the complete algorithm processing of the present invention. Detailed Implementation

[0043] The present invention will be further illustrated below with reference to the accompanying drawings and specific embodiments. It should be understood that these embodiments are for illustrative purposes only and are not intended to limit the scope of the invention. After reading this invention, any modifications of the invention in various equivalent forms by those skilled in the art will fall within the scope defined by the appended claims.

[0044] This invention provides an image quality assessment method based on a deep feature reorganization self-attention mechanism within a meta-learning framework, such as... Figure 1 As shown, it includes the following steps:

[0045] S1: Perform preprocessing operations on the regional information of the image, and use the relationship between the local gradient features of each region in the horizontal and vertical directions and the global information to filter out the salient and non-salient regions of the image.

[0046] S2: Construct a multi-path feature extraction network based on inter-layer interaction. Simultaneously input the salient region image, the non-salient region image, and the original image into the multi-path feature extraction network to extract shallow features. Each branch uses a dense network to achieve high-frequency feature reuse.

[0047] S3: Design a random selection strategy to perform a random selection strategy on the features extracted in step S2 to obtain deep features suitable for semantic analysis networks;

[0048] By fully leveraging the plasticity of multidimensional feature tensors, feature information is randomly reorganized and filtered from different dimensions, adjusting the size of features in the channel dimension, thus reducing the parameter burden and computational cost of the self-attention mechanism. Simultaneously, the diverse arrangement of semantic information enriches the input of semantic information and improves the robustness of the semantic analysis process.

[0049] S4: Design a random sampling strategy to filter from the perspective of the overall features. Randomly crop the two-dimensional features of each channel to preserve the characteristics and semantic information of the overall features. This can adjust the feature size according to the needs of the semantic analysis network, while reducing the computational burden of the semantic analysis network and providing data support for the semantic analysis network.

[0050] S5: Design an attention-based semantic analysis network to focus on learning and extracting image semantics, strengthen the connection between multi-level semantics in different regions of the image, and promote the fusion of features between the overall image, salient regions and non-salient regions.

[0051] The multi-path features, after random sampling, are input into the constructed attention-based semantic analysis network;

[0052] S6: Design a meta-learning framework to learn and simulate the parameter update pattern of the network. Select an optimization-based meta-learning method. During the training process, the meta-learning framework periodically learns the experience of the unit task according to the learning step size and saves the learned prior knowledge.

[0053] S7: The unknown type image to be evaluated is preprocessed in step S1 to obtain three different inputs to the multi-path feature extraction network. The multi-path feature extraction network and semantic analysis network are used for training. Prior knowledge obtained from the meta-learning framework is imported, and the training process is quickly fine-tuned using the prior knowledge to obtain the prediction score of the unknown type image.

[0054] In step S1:

[0055] The method for selecting salient and insignificant regions is as follows: A sliding window with a size of 224*224 and a step size of 112 is designed to extract small blocks from the image; the Sobel operator is used to calculate the gray-level gradient of each image block in the x and y directions; combining the gradient information of local image blocks and the overall image, the Euclidean norm is used to calculate the overall gradient magnitude of each pixel, obtaining the gradient information of each pixel in the image block; the pixel gradient information of each image block is processed by Gaussian filtering and generalized Pareto distribution to obtain the overall salient information distribution; the mean of the salient information of all image blocks is calculated, and the saliency score of each image block is calculated based on the mean; the image block with the highest score is designated as a salient region, and the image block with the lowest score is designated as an insignificant region. The saliency score is calculated using the following formula.

[0056]

[0057] Where, x i Let E represent the gradient feature matrix of the i-th image patch, and let E represent the identity matrix.

[0058] In step S2:

[0059] like Figure 3 As shown, the multi-path feature extraction network is used for shallow feature extraction and consists of multiple branch networks with the same structure. Each branch network is composed of three dense blocks and three transition blocks. Each dense block consists of multiple feature reuse layers, each of which alternates between two convolutional layers, two normalization layers, and two ReLU activation functions. Each feature reuse layer concatenates its input and output features as the input to the next layer, achieving feature reuse between layers. This allows for the sharing of feature information between layers, enriching the semantic information sources during feature extraction while preserving feature information from different levels with a high probability. The network can obtain richer semantic relationships while extracting feature information. The feature processing method of the i-th acquisition layer of the j-th module uses... Represented as:

[0060]

[0061] in, This represents the input feature representation of the (i-1)th acquisition layer.

[0062] The first dense block consists of 6 feature reuse layers, and the number of layers in the second and third dense blocks doubles in turn. Each transition block is used to integrate the shallow features obtained from the previous dense block, while compressing the feature information, highlighting the role of key features, and providing a more refined input for the next dense block. This design helps to prevent overfitting as the network gradually deepens and plays the role of compressing the model throughout the network.

[0063] In step S3:

[0064] The random selection strategy includes random recombination and random selection of overall feature information, used to adjust the size of deep features and reduce the computational memory occupied by semantic analysis networks based on self-attention mechanisms. The specific process is as follows:

[0065] Perform random recombination: Compress the two-dimensional feature tensor in each channel of the branch features obtained in step S2 into a one-dimensional tensor, and randomly shuffle the arrangement order of the channel features. Then, divide every 4 channel features into a group according to the random order and randomly combine them into several new groups of features.

[0066] Perform random filtering: Randomly filter the feature points in each group of features, using the channel feature length as the number of traversals, and simultaneously traverse 4 channel features. Each time, visit the feature points of 4 channel features and randomly select one of them. After the traversal is completed, combine all feature points into a one-dimensional tensor feature according to the traversal order. The overall feature channel is reduced to one-quarter, completing the random filtering from the perspective of feature points and forming a new overall channel feature.

[0067] The features obtained through the above process have been adjusted in terms of the number of channels, and the different feature points between channels have been re-selected and combined to obtain deep features suitable for semantic analysis networks. This not only accelerates the convergence efficiency of the network, but also reduces the memory usage of the semantic analysis network.

[0068] In step S4:

[0069] The random sampling strategy starts with the two-dimensional feature size of each channel, filtering and randomly cropping feature information. The strategy aims to randomly crop features to a specified size. It adjusts the one-dimensional channel features obtained in step S3 by first compressing all one-dimensional feature tensors into two-dimensional feature tensors, removing the feature combination from step S3, and then randomly locating cropping positions from each two-dimensional channel feature without exceeding the feature size range, cropping smaller two-dimensional features. This completes the random cropping from the feature plane perspective. The resulting features are adjusted in two-dimensional feature size, meeting the feature input requirements of the semantic analysis network while reducing the memory usage of the semantic analysis stage, alleviating its burden, and improving the overall efficiency of the algorithm.

[0070] In step S5:

[0071] like Figure 4 As shown, leveraging the advantages of self-attention mechanisms in semantic analysis, a semantic analysis network based on self-attention is constructed. Multiple features obtained through deep feature processing strategies are used as input. The block segmentation process in the network is removed, and positional information is directly added to the feature blocks. Semantic information is obtained after passing through an encoder, and then a quality score is obtained after passing through a linear regression layer. The entire semantic analysis network removes the block segmentation part of the Vision Transformer, only marking the randomly selected features before feeding them into the encoder for semantic analysis. It mainly utilizes the multi-head attention mechanism in the encoder to learn information from multi-region, multi-level features. The multi-head attention mechanism uses different feature representations: query(Q), key(K), and value(V) to reflect the weight relationship of feature information. Semantic information is expressed through the mapping between Q, K, and V. The process of multi-head attention mechanism processing features can be represented as follows:

[0072]

[0073] This process aims to obtain semantic relationships in images, extract deep semantic information from overall features, reduce focus on shallow features, and improve the network's ability to analyze distortion information. To obtain the quality score corresponding to image distortion information, this invention designs a quality regression layer to integrate and predict the data stream. The linear regression layer is composed of linear channels of 1000, 1024, 512, and 1. At each linear channel transition, the mapped data is normalized to ensure the rationality and accuracy of the quality prediction.

[0074] In step S6:

[0075] The meta-learning framework periodically learns the network's parameter update patterns. Specifically, during training with each batch of image data, the framework analyzes some parameters according to the learning step size. When a certain number of tasks are met or the current training ends, the meta-learning updates the parameter dictionary with the accumulated prior knowledge. In this process, the meta-learning learns different distortion information, providing unit-based information for the formation of prior knowledge. When all training tasks are completed, the meta-learning framework completes the learning of the network model and summarizes the regional connections and semantic information of all types of images, forming prior knowledge with generalization and stability. This is the qualitative result of the periodic learning of meta-learning. Simultaneously, because multi-path feature extraction networks and inter-layer fusion networks are more complex, while the parameters of the linear regression part are relatively simple, this invention applies different learning rates ∈ [missing information] to the two parts during the meta-training process. fnet ,∈ Linear This reduces data mismatch issues during network updates. Based on the above approach, the parameter update process for the multi-path feature extraction network and the inter-layer fusion network during network training for the i-th sub-task is as follows:

[0076]

[0077] Where, θ i and θ i-1 These represent the parameter update results for the i-th task and the (i-1)-th task, respectively. The value of ε is 10. -8 Its function here is to avoid division by zero. and Let these represent the first-order moment estimate and the second-order moment estimate after bias correction at time t, respectively. and The specific calculation process is as follows:

[0078]

[0079]

[0080] The parameter update process for the linear regression part is the same as described above; simply change ∈ fnet The corresponding learning rate is replaced with ∈ Linear This allows us to obtain the corresponding parameters. The update frequency of meta-learning is closely related to the number of subtasks, which is related to simulating the human habit of periodic learning. Following this idea, we control the learning method of meta-learning within the step size σ of the cycle, and the memory capacity of meta-learning also changes with the training batch b of each subtask. When training each subtask, the change in prior knowledge P in the meta-learning process can be defined as:

[0081]

[0082] In step S7:

[0083] Different types of images are preprocessed according to the method described in step S1 to obtain three different inputs. These three inputs are then fed into the multi-path feature extraction network in step S2. The resulting multi-path features, after undergoing deep feature processing strategies in steps S3 and S4, are used as inputs to the semantic analysis network. Prior knowledge learned by the meta-learning framework in step S6 is imported into the network. During the testing of different types of images, the meta-learning framework fine-tunes the model based on the prior knowledge. The fine-tuning process divides the task images into training tasks M at a 4:1 ratio. tra_i and test task M t_i Furthermore, gradient descent is performed only on the training set. Additionally, due to the fine-tuning process, the network parameters no longer decrease drastically, and the model converges on a few tasks; therefore, the learning rate ∈ [value missing] of the entire network is adjusted to the same value. The update process of the network parameters during fine-tuning is as follows:

[0084]

[0085] Furthermore, it learns the connections and semantic information between different regions in new types of images, integrates prior knowledge with feature information in the current fine-tuning task, and uses the network to stably and quickly predict the quality scores of other types of images, forming a network model suitable for new types of images, demonstrating the network's good generalization and strong adaptability under the meta-learning framework.

[0086] Based on the above steps, in order to verify the effectiveness and practical effect of the method of the present invention, this embodiment applies the method of the present invention and other methods to the LIVEC dataset. The specific comparison results are shown in Table 1. The optimal performance value corresponding to different evaluation indicators is highlighted in bold:

[0087] Table 1 - Performance comparison results on the LiveC database

[0088]

[0089] The experimental data above show that the method of the present invention can accurately evaluate distorted images and has a high degree of consistency with the subjective evaluation results of the human eye.

[0090] In this embodiment, to verify the effect of the random selection strategy provided by the present invention, Figure 2 The three inputs obtained from preprocessing are: (a) the original image, with red and green borders highlighting the positions of salient and non-salient areas respectively; (b) the downsampled image; (c) the salient area of ​​the example; and (d) the non-salient area of ​​the example.

[0091] By executing the method of the present invention with the random selection strategy removed and the complete method of the present invention respectively, the following results are obtained: Figure 5The scatter plots showing the correlation between predicted and true values ​​are shown below. (a) is the scatter plot after removing the random selection strategy in this invention; (b) is the scatter plot obtained after processing with the complete algorithm of this invention. It can be seen that the complete algorithm performs much better on SRCC and PLCC distorted image datasets. It can be intuitively observed that the quality prediction results of the complete algorithm are more consistent with the subjective evaluation results, the gap between the sample points and the ideal fitted line is smaller, and there are fewer outliers. This indicates that the random selection strategy in this invention can improve accuracy and stability, and the predicted scores are strongly correlated with the subjective evaluation results, demonstrating high consistency between subjective and objective factors.

[0092] In this embodiment, to verify the effectiveness of "cross-image type evaluation," the present invention was trained on different datasets (or combinations of datasets), and its performance on the LIVEC and AGIQA datasets was tested. The relevant performance metrics are recorded in Tables 2 and 3, where the richness of distortion types and levels in the training datasets is arranged in descending order from left to right. The tables show that the present invention achieved good results in various cross-dataset tasks, and the fine-tuning effect improved as the dataset's distortion types and levels increased.

[0093] Table 2 - Performance comparison results on the Livec database after training on different datasets

[0094]

[0095] Table 3 - Performance comparison results on the AGIQA database after training on different datasets

[0096]

Claims

1. An image quality assessment method based on a deep feature reorganization self-attention mechanism within a meta-learning framework, characterized in that, Includes the following steps: S1: Perform preprocessing operations on the regional information of the image, and use the relationship between the local gradient features of each region in the horizontal and vertical directions and the global information to filter out the salient and non-salient regions of the image. S2: Construct a multi-path feature extraction network based on inter-layer interaction, and simultaneously use the salient region image, the non-salient region image and the original image as input to the multi-path feature extraction network to extract shallow features; S3: Design a random selection strategy to perform a random selection strategy on the features extracted in step S2 to obtain deep features suitable for semantic analysis networks; S4: Design a random sampling strategy, starting from the two-dimensional feature size of each channel, to filter and randomly crop out the feature information as a whole; S5: Input the randomly sampled multi-path features into the constructed attention-based semantic analysis network; S6: Design a meta-learning framework to learn and simulate the parameter update pattern of the network. Select an optimization-based meta-learning method. During the training process, the meta-learning framework periodically learns the experience of the unit task according to the learning step size and saves the learned prior knowledge. S7: The unknown type image to be evaluated is preprocessed in step S1 to obtain three different inputs to the multi-path feature extraction network. The multi-path feature extraction network and semantic analysis network are used for training. Prior knowledge obtained from the meta-learning framework is imported, and the training process is quickly fine-tuned using the prior knowledge to obtain the prediction score of the unknown type image.

2. The image quality assessment method based on deep feature reorganization self-attention mechanism within a meta-learning framework according to claim 1, characterized in that, The method for filtering salient and non-salient regions in step S1 is as follows: a sliding window is designed to extract small blocks of the image; the Sobel operator is used to calculate the gray-level gradient of each image block in the x and y directions; combining the gradient information of local image blocks with the overall image, the pixel gradient information of each image block is processed by Gaussian filtering and generalized Pareto distribution to obtain the overall salient information distribution; the mean of the salient information of all image blocks is calculated, and the salientity score of each image block is calculated based on the mean; the image block with the largest score is taken as the salient region, and the image block with the smallest score is taken as the non-salient region.

3. The image quality assessment method based on deep feature reorganization self-attention mechanism within a meta-learning framework according to claim 2, characterized in that, The significance score in step S1 is calculated using the following formula. Where, x i Let E represent the gradient feature matrix of the i-th image patch, and let E represent the identity matrix.

4. The image quality assessment method based on deep feature reorganization self-attention mechanism within a meta-learning framework according to claim 1, characterized in that, In step S2, the multi-path feature extraction network is used for shallow feature extraction and consists of multiple branch networks with the same structure. Each branch network is composed of three dense blocks and three transition blocks. Each dense block is composed of multiple feature reuse layers. Each feature reuse layer consists of two convolutional layers, two normalization layers, and two ReLU activation functions alternately. Each feature reuse layer concatenates the input and output features of this layer as the input of the next layer, completing feature reuse between layers and realizing the sharing of feature information between layers. This makes the semantic information sources in the feature extraction process richer, while retaining feature information from different layers with a high probability. The first dense block consists of 6 feature reuse layers, and the number of layers in the second and third dense blocks doubles successively. Each transition block is used to integrate the shallow features obtained from the previous dense block, while compressing feature information and highlighting the role of key features, providing a more refined input for the next dense block.

5. The image quality assessment method based on deep feature reorganization self-attention mechanism within a meta-learning framework according to claim 4, characterized in that, In step S3, the random selection strategy includes random recombination and random selection of overall feature information, and the specific process is as follows: Perform random recombination: Compress the two-dimensional feature tensor in each channel of the branch features obtained in step S2 into a one-dimensional tensor, and randomly shuffle the arrangement order of the channel features. Then, divide every 4 channel features into a group according to the random order and randomly combine them into several new groups of features. Perform random filtering: Randomly filter the feature points in each group of features, using the channel feature length as the number of traversals, and simultaneously traverse 4 channel features. Each time, visit the feature points of 4 channel features and randomly select one of them. After the traversal is completed, combine all feature points into a one-dimensional tensor feature according to the traversal order. The overall feature channel is reduced to one-quarter, completing the random filtering from the perspective of feature points and forming a new overall channel feature.

6. The image quality assessment method based on deep feature reorganization self-attention mechanism within a meta-learning framework according to claim 5, characterized in that, In step S4, the random sampling strategy aims to randomly crop the features to a specified size. The one-dimensional channel features obtained in step S3 are adjusted. First, all one-dimensional feature tensors in the channel features are recompressed into two-dimensional feature tensors. The feature combination in step S3 is removed. Without exceeding the feature size range, the cropping position is randomly located from each two-dimensional channel feature to crop out a smaller two-dimensional feature, thus completing the random cropping from the feature surface perspective.

7. The image quality assessment method based on deep feature reorganization self-attention mechanism within a meta-learning framework according to claim 1, characterized in that, In step S5, the advantages of self-attention mechanism in semantic analysis capability are utilized to build a semantic analysis network based on self-attention mechanism. The multi-path features obtained through deep feature processing strategy are used as input, the block segmentation process in the network is removed, and position information is directly added to the feature blocks. Semantic information is obtained through encoder, and then the quality score is obtained after passing through linear regression layer.

8. The image quality assessment method based on deep feature reorganization self-attention mechanism within a meta-learning framework according to claim 1, characterized in that, In step S6, the meta-learning framework periodically learns the pattern of network parameter update. Specifically, when training each batch of image data, the meta-learning framework analyzes some parameters in the network according to the learning step size. When the set number of tasks is met or the current training ends, the meta-learning updates the accumulated prior knowledge into the parameter dictionary. In this process, the meta-learning completes the learning of different distortion information and provides unit information for the formation of prior knowledge. When all training tasks are completed, the meta-learning framework finishes learning the network model and summarizes the region connections and semantic information of all types of images, forming prior knowledge with generalization and stability.

9. The image quality assessment method based on deep feature reorganization self-attention mechanism within a meta-learning framework according to claim 8, characterized in that, The formation of prior knowledge in step S6 includes: applying different learning rates ∈ to the two parts during the meta-training process. fnet ,∈ Linear For network updates, when training the network for the i-th subtask, the parameter update process for the multi-path feature extraction network and the inter-layer fusion network is as follows: Where, θ i and θ i-1 These represent the parameter update results for the i-th task and the (i-1)-th task, respectively; ε is used to avoid division by zero. and Let these represent the first-order moment estimate and the second-order moment estimate after bias correction at time t, respectively. and The specific calculation process is as follows: The parameter update process for the linear regression part is the same as described above; simply change ∈ fnet The corresponding learning rate is replaced with ∈ Linear This allows us to obtain the corresponding parameters; the learning method of meta-learning is controlled within the cycle step size σ, and the memory capacity of meta-learning also changes with the training batch b of each subtask; the change in prior knowledge P during the training of each subtask is defined as follows:

10. The image quality assessment method based on deep feature reorganization self-attention mechanism within a meta-learning framework according to claim 1, characterized in that, In step S7, different types of images are preprocessed according to the method in step S1 to obtain three different inputs. These three inputs are then fed into the multi-path feature extraction network in step S2. The resulting multi-path features are processed by the deep feature processing strategies in steps S3 and S4 and then used as inputs to the semantic analysis network. The prior knowledge learned by the meta-learning framework in step S6 is also imported into the network. During the testing of different types of images, the meta-learning framework fine-tunes the model based on the prior knowledge and learns the connections and semantic information between different regions in the new type of image. The prior knowledge is integrated with the feature information in the current fine-tuning task to stably and quickly predict the quality scores of other types of images, forming a network model suitable for new types of images.

Citation Information

Patent Citations

  • Content awareness reference-free image quality evaluation method guided by attention mechanism

    CN116844008A

  • Personal identification-oriented face quality perception method and system

    WO2022073453A1