Underwater image quality evaluation method based on multi-scale depth meta learning
By applying the multi-scale deep element learning method in underwater images, combined with the preprocessing of gradient maps and Hadamard products and the EfficientNetV2-S multi-channel neural network, the accuracy and efficiency problems of underwater image quality evaluation are solved, and the Efficient and robust quality assessment in underwater environments.
Patent Information
- Application Number
- CN202410686429.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-05-30
AI Technical Summary
Existing underwater image quality assessment methods have problems such as unsatisfactory accuracy, reliance on expert experience, and expensiveness in underwater environments. In particular, it is difficult to achieve real-time and efficient quality assessment in scenarios with a small sample size.
Using a method based on multi-scale deep meta-learning, preprocessing is performed by calculating gradient maps and Hadamard products to build an EfficientNetV2-S multi-channel neural network, combining the information perception module, information fusion module and quality prediction module, using meta-learning strategies and dual The gradient descent algorithm learns prior knowledge for image quality evaluation, adapts to the underwater environment, and quickly adapts to new scenes.
It achieves accurate, efficient and stable quality assessment in underwater images, reduces dependence on reference images, improves the generalization ability and performance of the model, and is suitable for underwater image quality detection in actual scenes.
Smart Images

Figure CN118570619A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of image processing and relates to underwater image quality evaluation, and specifically relates to an underwater image quality evaluation method based on multi-scale deep meta-learning. Background Art
[0002] With the continuous development of digital technology, the demand for high-quality underwater images in applications such as marine ecological research, underwater target monitoring and tracking is increasing. However, due to the complexity of the underwater imaging environment, underwater images are inevitably affected by factors such as underwater light scattering and noise, resulting in quality degradation problems such as color deviation, low contrast, and poor clarity. These problems will lead to the loss of effective information in underwater images, seriously affecting the value of subsequent image analysis and application. Therefore, it is meaningful to study an underwater image quality evaluation method to accurately and efficiently evaluate the quality of underwater images, which helps to filter low-quality images in a timely manner and ensure the smooth execution of subsequent tasks.
[0003] At present, the visual quality of images can be evaluated by image quality evaluation methods, including subjective image quality evaluation and objective image quality evaluation. The subjective method of evaluating image quality by observers has always been considered the most effective and reliable method. However, the subjective image quality evaluation method has obvious disadvantages: the method requires multiple experiments on the image to collect scores, which is time-consuming and expensive. In addition, it is not competent for a large amount of image data, making real-time quality evaluation challenging. Therefore, it is necessary to establish an automatic prediction model for image quality. Objective evaluation uses computers to simulate human visual perception to evaluate image quality. According to the amount of reference information required, it can be divided into: full reference image quality method, partial reference image quality evaluation method, and no reference image quality evaluation method. The no reference method does not rely on the original image and is suitable for underwater environments where it is difficult to obtain reference images. Most existing no reference methods are oriented to a single type of image. Although it works well in specific images, its application in underwater images is limited due to the characteristics of the underwater environment. At the same time, it is difficult to obtain underwater images, resulting in relatively few image sample data. The underwater environment is complex and changeable, and different underwater conditions may have different effects on the accuracy of image quality evaluation. These problems limit the performance of the method, resulting in the evaluation results being not objective enough and not accurate enough, and also affecting the practical application of the method. Summary of the invention
[0004] Purpose of the invention: In order to overcome the deficiencies in the prior art, a method for underwater image quality assessment based on multi-scale deep meta-learning is provided, which aims to solve the problem of image quality assessment in underwater environments. Through a meta-learning strategy, a dual gradient descent method is used to learn the prior knowledge of image quality assessment and obtain an image quality prior model. On the target underwater image dataset, the image quality prior model is fine-tuned so that the method model can better adapt to the underwater environment, more effectively use limited data for learning, and can quickly adapt and learn on new tasks, thereby improving the model's generalization ability and performance for different scenarios. It has the advantages of accuracy, efficiency, and strong stability, and provides accurate quality assessment indicators for underwater image processing and applications.
[0005] Technical solution: To achieve the above purpose, the present invention provides an underwater image quality evaluation method based on multi-scale deep meta-learning, comprising the following steps:
[0006] S1: Calculate the gradient map of the underwater image and the Hadamard product of the gradient map and the underwater image to obtain the gradient enhancement map of the underwater image, and pre-process the underwater image and the gradient enhancement image;
[0007] S2: Build a multi-way neural network based on EfficientNetV2-S. The multi-way neural network consists of an information perception module, an information fusion module, and a quality prediction module.
[0008] The information perception module consists of a visual information perception network and a structural information perception network, which are used to capture visual information and structural information in underwater images respectively; the information fusion module aims to fuse different types of captured features; the quality prediction module is used to regress the fused features to quality scores;
[0009] S3: Classify the two images obtained by preprocessing in step S1 according to the distortion type, and randomly divide each type of distorted image into a support set and a query set in proportion. Use the support set to calculate the gradient of the model parameters and update the model parameters; use the query set to verify whether the model after the parameter update is valid;
[0010] S4: Train the support set and query set, and use the meta-learning method to update and learn the parameters of the network. During the network training process, a dual gradient descent algorithm is used, that is, gradient descent and back propagation are performed on both the support set and the query set. The meta-learning method periodically updates the network parameters according to the learning step size, and saves the learned prior knowledge of image quality evaluation.
[0011] S5: Import the image quality evaluation prior knowledge obtained in step S4 into the multi-way neural network; perform the preprocessing operation in step S1 on the target underwater image to obtain the two images required by the multi-way neural network, use the image quality evaluation prior knowledge to guide the model training, fine-tune the target data set, train the underwater image quality evaluation model, and predict the quality score of the underwater image.
[0012] Furthermore, in step S1, the gradient map of the underwater image is calculated by a Sobel gradient operator, and the Sobel operator is a convolution kernel with a kernel size of 3×3, and the convolution kernel is convolved with the image to obtain a gradient image. There are two types of Sobel operators, one is used to detect horizontal edges and reflect pixel changes in the horizontal direction, and the other is used to detect edge changes in the vertical direction.
[0013] The specific calculation method of the gradient feature map of the underwater image by the Sobel gradient operator is:
[0014] The filter of the Sobel gradient operator along the horizontal direction is H(x), and the filter along the vertical direction is V(x). The definitions of the two filters are as follows:
[0015]
[0016] For a given image I(x), the calculation formula of the gradient image is as follows:
[0017]
[0018] Among them, G H (x) and G V (x) represents the gradient of the image along the horizontal and vertical directions respectively, and the calculation process is Represents the convolution operation;
[0019] By calculating the Hadamard product between the gradient map and the original image, we can get the gradient enhanced image of the image. Using gradient enhanced images can effectively enhance edge information, reduce redundant information, improve learning efficiency and enhance image details, thus helping to improve the performance of the network in image processing tasks. The calculation formula is:
[0020] E(x)=I(x)⊙G(x)
[0021] Among them, ⊙ represents element-wise multiplication.
[0022] Furthermore, the preprocessing in step S1 includes image resizing, horizontal flipping, standardization and other processing, specifically: in the training stage, the underwater image and the gradient enhanced image are resized to (448*448), the input image is horizontally flipped with a probability of 0.5, the random cropping size is (384*384), and finally the mean and standard deviation are standardized to 0.5. In the test stage, the underwater image and the gradient enhanced image are resized to (384*384) and the mean and standard deviation are standardized to 0.5.
[0023] This preprocessing method has many advantages in deep learning model training. Through data augmentation operations such as random horizontal flipping and random cropping, the diversity of training data is increased, which is conducive to improving the generalization ability and robustness of the model. At the same time, standardization and fixed size adjustment help to speed up the convergence of the model and simplify the model design and training process. These steps not only improve the efficiency of the model in the training phase, but also maintain a certain performance in the testing phase.
[0024] Furthermore, the information perception module of the multi-channel neural network in step S2 is composed of a visual information perception network and a structural information perception network. The two networks have the same structure, both of which include an EfficientNetV2-S network with BN (BatchNormalization) layer, GAP (GlobalAverage Pooling) and FC (Fully Connected) layer removed and a ladder network. EfficientNetV2-S is composed of several mobile flip bottleneck convolution blocks. The ladder network can hierarchically integrate the features extracted from the middle layer, so that the model can make full use of the features extracted from low-level to high-level visual information.
[0025] The ladder network consists of 10 bottleneck structures consisting of three convolution operations. First, the feature F of the i-th stage of EfficientNetV2-S is transformed through a 1×1 convolution layer. i The number of channels is halved to reduce the computational complexity of the whole process; then a convolution layer with a convolution kernel size of 3×3 and a stride of 2 is used to transform F i The size of the network is halved, and finally a 3×3 convolution layer is used to adjust the number of output channels. This process is expressed as:
[0026]
[0027] Where W 1×1 and W 3×3 They are the weight matrices of the 1×1 convolution layer and the 3×3 convolution kernel respectively;
[0028] Afterwards, the backbone network can better extract deep semantic features by layering and merging features from different stages. Specifically, for the feature F in stage 1, 1 , obtained through the bottleneck structure Use element-wise addition to combine it with the feature F from stage 2 2 Merge for Continue to use the bottleneck structure to reduce its resolution and increase the number of channels, and then add it to the features of stage 3; repeat the same operation until With features Fusion Then, this operation is performed on the features of other stages. The process is described as follows:
[0029]
[0030] where i∈[1,2,…,N s -2],j∈[1,2,…,N s -2],N s is the number of backbone network stages, where N s is 5;
[0031] Finally, the quality-aware features extracted by the ladder network are expressed as:
[0032]
[0033] The visual information and structural information of the input image and its corresponding gradient enhanced image after passing through the visual information perception network and the structural information perception network are represented as F rgb With F gra .
[0034] Furthermore, the information fusion module of the multi-channel neural network in step S2 is composed of a multi-scale feature extraction block and a feature fusion block. The multi-scale feature extraction block can effectively learn multi-scale features. It consists of four groups of convolutional layers with different receptive fields. The convolution kernel sizes are 1×1, 3×3, 5×5 and 7×7, respectively, and the step size is 2 to achieve the function of reducing the resolution of the feature map. In order to achieve the same receptive field as the 5×5 and 7×7 convolutional layers and reduce the computational complexity, two 3×3 convolutional layers are used instead of the 5×5 convolutional layer, and three 3×3 convolutional layers are used instead of the 7×7 convolutional layer. This process is described as:
[0035]
[0036] Among them, M() is the output feature of the multi-scale feature extraction block, F is the input feature, and C 1 -C 7 Represents convolutional layers of different sizes, Represents a connection operation;
[0037] Visual Information rgb With structural information F gra After the multi-scale feature extraction block, the corresponding multi-scale features are recorded as and
[0038] The feature fusion block contains two convolutional attention modules and an inverted residual block structure. The convolutional attention module can calculate channel attention and spatial attention on the features, which can effectively improve the model's attention to important features, thereby improving performance. The inverted residual structure can prevent problems such as gradient disappearance, explosion, and network degradation. The specific process of the convolutional attention module and the inverted residual structure is described as follows:
[0039] CA(F)=σ(MLP(AvgPool(F))+MLP(MaxPool(F)))
[0040]
[0041] CSAB(F)=F⊙CA(F)⊙SA(F)
[0042] IRMLP(F)=C 1×1 (C 1×1 (C 3×3 (F)+F)))
[0043] Where σ is the Sigmoid activation function, CA() represents channel attention, SA() represents channel attention, CSAB() represents convolutional attention block, and IRMLP() represents residual structure;
[0044] Multi-scale features and The overall process of feature fusion after feature fusion block processing is described as:
[0045]
[0046] Furthermore, in the step S2, the quality prediction module in the multi-channel neural network performs nonlinear regression on the fusion feature Fc by multiple fully connected layers to obtain the final image quality score score:
[0047] score = fc 1 (fc 2 (F c ))
[0048] Among them, fc represents the fully connected layer, fc 1 Transform the vector dimension from 1024 to 512, fc 2Convert the vector dimension from 512 to 1, and the final output vector is the predicted quality score.
[0049] Furthermore, in step S3, a large amount of artificially synthesized distorted images are used as meta-training data; the synthetic distorted data set is divided into N subtasks according to the distortion type, and the subtask i is further divided into a support set and queryset Thus, we get the meta-training dataset Used by the model to acquire shared prior knowledge between different distortion types.
[0050] Furthermore, in step S4, the difference between the predicted score and the true score is minimized by calculating the Manhattan distance, and the loss function Loss is described as:
[0051] Loss=||f(x)-y|| 1
[0052] Where f(x) is the quality score predicted by the model for the input image x, and y is the actual quality score of the input image x;
[0053] Based on the loss function L, k subtasks are taken as a batch, and the support set is used respectively. and queryset Update the model parameters. The parameter update process is:
[0054]
[0055] in, and are the updated model parameters on the i-th task of the support set and query set, respectively, 1 is the internal learning rate, ε is a constant value 1e -8 , m t and v t represents the first and second moments of the gradient at time t, μ 1 and μ 2 is the exponential decay rate;
[0056] Update the model parameters according to the gradients of all k tasks in the batch to obtain the prior knowledge model. The process is described as:
[0057]
[0058] In the formula, α 2 represents the external learning rate, and θ' represents the updated model parameters on all tasks in the batch.
[0059] Furthermore, in step S5, the prior knowledge model is fine-tuned in S steps on the unknown distorted data, and the model parameters are updated so that the model can quickly adapt to the unknown scene. The process is described as follows:
[0060]
[0061] Among them, α f represents the learning rate in the fine-tuning phase, m s and v s is the first-order moment and second-order moment of the gradient at the s-th step fine-tuning, θ Finetuned represents the final model parameters after fine-tuning; the image and its gradient enhancement map input parameters are θ Finetuned After the model is constructed, the corresponding prediction quality score is obtained.
[0062] The present invention adopts optimization-based meta-learning to achieve parameter optimization and periodic learning of the network model, thereby obtaining more systematic image information. Due to the unique learning method of meta-learning and the advantages of smaller data requirements, it can be used in the task of image quality assessment to achieve efficient and accurate quality prediction and model optimization across image types, providing a method for multi-type image quality assessment.
[0063] The method of the present invention comprises: calculating the gradient map of the underwater image; using the gradient image to dot-multiply the underwater image to obtain the gradient enhancement map; pre-processing the underwater image and its corresponding gradient enhancement image; dividing the meta-training data into multiple sub-tasks according to the distortion type, and dividing the support set and the query set in each sub-task; designing a multi-channel neural network composed of an information perception module, an information fusion module and a quality prediction module, extracting and fusing image features, learning the mapping relationship between the fusion features of the underwater image and the image quality score, and predicting the quality score of the underwater image; on the support set and query set of each sub-task, using the meta-learning framework to update the model parameters to obtain the prior knowledge model; fine-tuning the prior knowledge model on the data of unknown distortion type, quickly adapting to unknown scenes, and obtaining the final quality evaluation model. The present invention can accurately evaluate the quality of underwater images, and quickly adapt to unknown scenes and distortion types, has the advantages of high accuracy, strong stability and good generalization, provides a scientific basis for the quality evaluation of underwater images, and provides important support for underwater image processing and underwater vision applications.
[0064] Beneficial effects: Compared with the prior art, the present invention has the following advantages:
[0065] 1. Compared with the subjective image quality evaluation method which is time-consuming, unstable and relies on expert experience, the present invention has the advantages of high efficiency and real-time.
[0066] 2. Compared with the full-reference image quality evaluation method and the semi-reference image quality evaluation method, the present invention does not require a reference image, which solves the problem that it is difficult and expensive to obtain high-quality reference images. It can directly evaluate underwater images and is more suitable for underwater image quality detection in actual scenarios.
[0067] 3. Compared with existing image quality assessment methods, the present invention adopts an optimization-based deep meta-learning framework, which enables the model to learn the prior knowledge between different distortion types and can quickly adapt to new scenarios and unknown distortion types.
[0068] 4. Compared with the existing image quality evaluation methods, the present invention makes more full use of the visual information and structural information of the image and integrates them, which can more accurately predict the image quality.
[0069] 5. The present invention is aimed at real-life scenarios with a small number of samples. It can accurately predict the quality score of real images containing unknown distortions, provide an effective reference for real distorted image processing tasks, and has high practical value.
[0070] 6. The present invention is aimed at underwater image quality evaluation, aims to provide a benchmark for underwater image quality judgment, and provide a reliable and effective reference for underwater image processing tasks, and has high practical value. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] Figure 1 is a flow chart of the method of the present invention;
[0072] Figure 2 The original image and the gradient feature image of the embodiment of the present invention;
[0073] Figure 3 The original image and the gradient enhanced image of the embodiment of the present invention;
[0074] Figure 4 It is a ladder network structure diagram in the method of the present invention;
[0075] Figure 5 It is a multi-scale feature block structure diagram in the method of the present invention;
[0076] Figure 6 It is a structural diagram of feature fusion blocks in the method of the present invention;
[0077] Figure 7 This is a performance comparison diagram of the method of the present invention and existing image quality algorithms;
[0078] Figure 8 This is a stability comparison chart between the method of the present invention and the existing deep learning image quality algorithm. DETAILED DESCRIPTION
[0079] The present invention is further explained below in conjunction with the accompanying drawings and specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention. After reading the present invention, various equivalent forms of modifications to the present invention by those skilled in the art all fall within the scope defined by the claims attached to this application.
[0080] like Figure 1 As shown, this embodiment provides an underwater image quality assessment method based on a multi-stream convolutional neural network, which includes the following steps:
[0081] S1: sequentially calculate the gradient map of the underwater image, obtain the gradient enhancement map of the underwater image, and preprocess the underwater image and the gradient enhancement image. The details are as follows
[0082] 1. Calculate the gradient map of the underwater image:
[0083] Usually, people focus on the content information in the image and ignore the edge and texture information. In underwater images, due to the influence of light attenuation and scattering, the edge and texture information is often lost or blurred. The gradient image can reflect the edge and texture information of the underwater image when the image intensity and color change. Therefore, the present invention uses the gradient feature map to allow the convolutional neural network to pay attention to the distortion of edge and texture information during the feature extraction process, which can help better understand and evaluate the quality of underwater images, thereby improving the accuracy of quality prediction.
[0084] Specifically, the gradient feature map of the underwater image is calculated by the Sobel gradient operator. The Sobel operator is a convolution kernel with a kernel size of 3×3. The convolution kernel is convolved with the image to obtain a gradient image. There are two types of Sobel operators. One is used to detect horizontal edges and reflect pixel changes in the horizontal direction. The other is to detect edge changes in the vertical direction.
[0085] The specific calculation method of the gradient feature map of the underwater image by the Sobel gradient operator is:
[0086] The filter of the Sobel gradient operator along the horizontal direction is H(x), and the filter along the vertical direction is V(x). The definitions of the two filters are as follows:
[0087]
[0088] For a given image I(x), the calculation formula of the gradient image is as follows:
[0089]
[0090] Among them, G H (x) and G V(x) represents the gradient of the image along the horizontal and vertical directions respectively, and the calculation process is Represents the convolution operation;
[0091] Different degrees of distortion images have different background information, which makes their gradient image information different. Figure 2 As shown, in this embodiment Figure 2 (a), (b) and (c) in the figure show three images with different distortion types. Figure 2 (d), (e) and (f) in the figure show the gradient images calculated using the Sobel operator. It can be observed from the figure that the background detail information of the image is very different. The image with a higher score, that is, the image with a lower degree of distortion, has clearer edges and richer texture information than the gradient image corresponding to the image with a lower score. This fact shows that the gradient image can represent the structural information of the underwater image and describe the quality of the underwater image.
[0092] 2. Calculate the Hadamard product of the gradient map and the underwater image to obtain the gradient enhancement map of the underwater image:
[0093] By calculating the Hadamard product between the gradient map and the original image, we can get the gradient enhanced image of the image. Using gradient enhanced images can effectively enhance edge information, reduce redundant information, improve learning efficiency and enhance image details, thus helping to improve the performance of the network in image processing tasks. Its calculation formula is:
[0094] E(x)=I(x)⊙G(s)
[0095] Among them, ⊙ represents element-wise multiplication;
[0096] Figure 3 The original images (a), (b), and (c) are processed in this step and are obtained as follows: Figure 3 MSCN feature maps in (d), (e) and (f).
[0097] 3. Preprocess underwater images and gradient enhanced images:
[0098] Preprocessing includes image resizing, horizontal flipping, and standardization. Specifically, in the training phase, the underwater image and gradient enhanced image are resized to (448*448), the input image is horizontally flipped with a probability of 0.5, randomly cropped to (384*384), and finally standardized with a mean and standard deviation of 0.5. In the test phase, the underwater image and gradient enhanced image are resized to (384*384) and standardized with a mean and standard deviation of 0.5.
[0099] This preprocessing method has many advantages in deep learning model training. Through data augmentation operations such as random horizontal flipping and random cropping, the diversity of training data is increased, which is conducive to improving the generalization ability and robustness of the model. At the same time, standardization and fixed size adjustment help to speed up the convergence of the model and simplify the model design and training process. These steps not only improve the efficiency of the model in the training phase, but also maintain a certain performance in the testing phase.
[0100] S2: Build a multi-channel neural network based on EfficientNetV2-S. The multi-channel neural network consists of an information perception module, an information fusion module, and a quality prediction module; the information perception module consists of a visual information perception network and a structural information perception network, which are used to capture visual information and structural information in underwater images respectively; the information fusion module aims to fuse different types of captured features; finally, the quality prediction module regresses the fused features to a quality score;
[0101] The detailed structure and specific process of each module in step S2 are as follows:
[0102] Information perception module:
[0103] The information perception module of the multi-channel neural network consists of a visual information perception network and a structural information perception network. The two networks have the same structure, both of which include an EfficientNetV2-S network with the BN (Batch Normalization) layer, GAP (GlobalAveragePooling) and FC (Fully Connected) layer removed, and a ladder network.
[0104] EfficientNetV2-S is a key component in the information perception module. It extracts and perceives the information of the input image by including multiple mobile flip bottleneck convolution blocks. It aims to effectively process and utilize image data to enhance the neural network's understanding and learning ability of image information. EfficientNetV2-S includes multiple mobile flip bottleneck convolution blocks. The mobile flip bottleneck convolution block reduces the number of parameters and the amount of calculation through the bottleneck structure (including 1x1 convolution, 3x3 depth-separable convolution and 1x1 convolution) while maintaining the representation ability. It enhances the generalization performance and robustness through the mobile flip operation, and uses shortcut connections to help information transfer and gradient non-vanishing, achieving efficient calculation and excellent performance. The specific structure of EfficientNetV2-S is shown in Table 1.
[0105] Table 1 - EfficientNetV2-S architecture
[0106]
[0107]
[0108] The ladder network can hierarchically integrate the features extracted from the middle layer, so that the model can fully utilize the features extracted from low-level to high-level visual information. It includes 10 bottleneck structures composed of three convolution operations. Its specific structure is as follows Figure 4 As shown in the figure. The ladder network first uses a 1×1 convolutional layer to transform the feature F of the i-th stage of EfficientNetV2-S i The number of channels is halved to reduce the computational complexity of the whole process. Then, a convolution layer with a convolution kernel size of 3×3 and a stride of 2 is used to transform F i The size of the network is halved, and finally a 3×3 convolution layer is used to adjust the number of output channels. This process is expressed as:
[0109]
[0110] Among them, W 1×1 and W 3×3 They are the weight matrices of the 1×1 convolution layer and the 3×3 convolution kernel respectively;
[0111] Afterwards, the backbone network can better extract deep semantic features by layering and merging features from different stages. Specifically, for the feature F in stage 1, 1 , obtained through the bottleneck structure Use element-wise addition to combine it with the feature F from stage 2 2 Merge for Continue to use the bottleneck structure to reduce its resolution and increase the number of channels, and then add it to the features of stage 3; repeat the same operation until With features Fusion Then, this operation is performed on the features of other stages. The process is described as follows:
[0112]
[0113] where i∈[1,2,…,N s -2],j∈[1,2,…,N s -2],N s is the number of backbone network stages. In this embodiment, N s is 5;
[0114] Finally, the quality-aware features extracted by the ladder network are expressed as:
[0115]
[0116] The visual information and structural information of the input image and its corresponding gradient enhanced image after passing through the visual information perception network and the structural information perception network are represented as F rgb With F gra .
[0117] Information fusion module:
[0118] The information fusion module consists of a multi-scale feature extraction block and a feature fusion block. The multi-scale feature extraction block can effectively learn multi-scale features. It consists of four groups of convolutional layers with different receptive fields. The convolution kernel sizes are 1×1, 3×3, 5×5 and 7×7, respectively. The step size is 2 to achieve the function of reducing the resolution of the feature map. In order to achieve the same receptive field as the 5×5 and 7×7 convolutional layers and reduce the computational complexity, two 3×3 convolutional layers are used instead of the 5×5 convolutional layer, and three 3×3 convolutional layers are used instead of the 7×7 convolutional layer. The specific structure is as follows: Figure 5 This process is described as:
[0119]
[0120] Among them, M() is the output feature of the multi-scale feature extraction block, F is the input feature, and C 1 -C 7 Represents convolutional layers of different sizes, Represents a connection operation;
[0121] Visual Information rgb With structural information F rgb After the multi-scale feature extraction block, the corresponding multi-scale features are recorded as and
[0122] The feature fusion block contains two convolutional attention modules and an inverted residual block structure. The specific structure is as follows Figure 6 As shown. The convolutional attention module can calculate channel attention and spatial attention for features, which can effectively improve the model's attention to important features, thereby improving performance. The inverted residual structure can prevent problems such as gradient disappearance, explosion, and network degradation. The specific process of the convolutional attention module and the inverted residual structure is described as follows:
[0123] CA(F)=σ(MLP(AvgPool(F))+MLP(MaxPool(F)))
[0124]
[0125] CSAB(F)=F⊙CA(F)⊙SA(F)
[0126] IRMLP(F)=C 1×1 (C1×1 (C 3×3 (F)+F)))
[0127] Among them, σ is the Sigmoid activation function, CA() represents channel attention, SA() represents channel attention, CSAB() represents convolutional attention block, and IRMLP() represents the residual structure.
[0128] Multi-scale features and The overall process of feature fusion after feature fusion block processing can be described as:
[0129]
[0130] Quality prediction module:
[0131] The quality prediction module consists of multiple fully connected layers to fuse the features F c Perform nonlinear regression to get the final image quality score:
[0132] score = fc 1 (fc 2 (F c ))
[0133] Among them, fc represents the fully connected layer, fc 1 Transform the vector dimension from 1024 to 512, fc 2 Convert the vector dimension from 512 to 1, and the final output vector is the predicted quality score.
[0134] S3: Classify the two images obtained in step S1 according to the distortion type, and randomly divide each type of distorted image into a support set and a query set in a ratio of 8:2; use the support set to calculate the gradient of the model parameters and update the model parameters; use the query set to verify whether the model after the parameter update is valid.
[0135] The specific process of step S3 is:
[0136] Use artificially synthesized distorted images with a large amount of data as meta-training data; divide the synthetic distortion dataset into N subtasks according to the distortion type, and further divide subtask i into support set and queryset Thus, we get the meta-training dataset Used by the model to acquire shared prior knowledge between different distortion types.
[0137] S4: Train the support set and query set, use the meta-learning method to update and learn the parameters of the network. During the network training process, the dual gradient descent algorithm is used, that is, gradient descent and back propagation are performed on both the support set and the query set. The meta-learning method periodically updates the network parameters according to the learning step size and saves the learned prior knowledge of image quality evaluation;
[0138] The specific process of step S4 is as follows:
[0139] The Manhattan distance is calculated to minimize the difference between the predicted score and the true score. The loss function Loss is described as:
[0140] Loss=||f(x)-y|| 1
[0141] Where f(x) is the quality score predicted by the model for the input image x, and y is the actual quality score of the input image x;
[0142] Based on the loss function L, k subtasks are taken as a batch, and the support set is used respectively. and queryset
[0143] Update the model parameters. The parameter update process is:
[0144]
[0145] in, and are the updated model parameters on the i-th task of the support set and query set, respectively, 1 is the internal learning rate, ε is a constant value 1e -8 , m t and v t represents the first and second moments of the gradient at time t, μ 1 and μ 2 is the exponential decay rate;
[0146] Update the model parameters according to the gradients of all k tasks in the batch to obtain the prior knowledge model. The process is described as:
[0147]
[0148] In the formula, α 2 represents the external learning rate, and θ' represents the updated model parameters on all tasks in the batch.
[0149] S5: Import the image quality evaluation prior knowledge obtained in step S4 into the multi-way neural network; perform the preprocessing operation in step S1 on the target underwater image to obtain the two images required by the multi-way neural network, use the image quality evaluation prior knowledge to guide the model training, fine-tune the target data set, train the underwater image quality evaluation model, and predict the quality score of the underwater image.
[0150] The specific process of step S5 is:
[0151] The prior knowledge model is fine-tuned in S steps on the unknown distorted data, and the model parameters are updated to make the model quickly adapt to unknown scenarios. The process is described as:
[0152]
[0153] Among them, α f represents the learning rate in the fine-tuning phase, m s and v s is the first-order moment and second-order moment of the gradient at the s-th step fine-tuning, θ Finetuned represents the final model parameters after fine-tuning; the image and its gradient enhancement map input parameters are θ Finetuned After the model is constructed, the corresponding prediction quality score is obtained.
[0154] Based on the above scheme, in order to verify the effectiveness and practical effect of the method of the present invention, the method of the present invention and other advanced image quality evaluation methods are applied to the underwater image quality evaluation dataset SAUD in this embodiment. The specific comparison results are shown in Table 2. The optimal performance values corresponding to different evaluation indicators are highlighted in bold:
[0155] Table 2 - Performance comparison results on the SAUD database
[0156]
[0157]
[0158] In order to intuitively reflect the comparative effects of different image quality evaluation algorithms, the effects of the method of the present invention and other methods on the SROCC, KROCC, and PLCC evaluation indicators are shown in the figure. Figure 7 shown.
[0159] According to Table 2 and Figure 7The following conclusions can be drawn from the experimental results shown. First, the method proposed in the present invention is superior to other image quality evaluation algorithms. On the SAUD image database, the SROCC and PLCC evaluation index values corresponding to the overall evaluation results of the method of the present invention have reached the best; secondly, there is a large gap between the image quality evaluation algorithms using manual features and the method of the present invention. Compared with the best NUIQ method, the method of the present invention is 0.0812 and 0.0704 higher in the corresponding SROCC and PLCC evaluation index values; compared with other deep learning methods, it also has certain advantages. Compared with the HyperIQA method, the SROCC and PLCC evaluation index values are about 0.0312 and 0.0287 higher. According to the above conclusions, it can be seen that the quality evaluation accuracy of the method of the present invention on underwater data sets has been significantly improved;
[0160] In order to verify the effectiveness of the meta-learning framework adopted by the method of the present invention, comparative experiments were carried out on the SAUD and UIED datasets in this embodiment. The comparison results are shown in Table 3:
[0161] Table 3 - Comparison of effectiveness of meta-learning frameworks
[0162]
[0163] From Table 3, we can see that the meta-learning framework can effectively improve the accuracy of quality evaluation.
[0164] The present invention designs comparative experiments on SAUD and UIED databases to verify the stability of the method of the present invention. Figure 8 The box plots of the evaluation results of the method of the present invention and other deep learning image quality evaluation algorithms based on neural networks on the SAUD and UIED databases are given. The horizontal axis of the box plot in the figure represents different image quality evaluation methods, and the vertical axis represents the objective evaluation score of each method on the image. The box shape corresponding to each algorithm can describe the distribution of the data, reflecting the evaluation effect of different image quality evaluation algorithms. Figure 8 It can be seen that on the two databases of SAUD and UIED, first of all, it can be seen that compared with other image quality evaluation algorithms, the boxes of the method of the present invention on each evaluation indicator are smaller. The smaller boxes indicate that the evaluation fluctuation range of the image quality by the method of the present invention is small. At the same time, the distance between the upper edge and the lower edge of the box corresponding to the method of the present invention is closer, indicating that the evaluation effect of the method of the present invention on underwater image quality is more stable than that of other image quality evaluation methods. From the box plots corresponding to the evaluation effects of different algorithms, it can be seen that the median of the method of the present invention is higher than that of other algorithms, indicating that the evaluation effect of the method of the present invention is better. In summary, the method of the present invention has high stability and can effectively evaluate underwater image quality.
[0165] In order to analyze the modules in the model of the present invention and measure the effectiveness of each module, this embodiment performs an ablation experiment of the model structure on the SAUD dataset and compares the performance of the methods under several conditions. The experimental results are shown in Table 4. The optimal performance values corresponding to different evaluation indicators are highlighted in bold:
[0166] Table 4- Ablation experiments of each module of the model
[0167]
[0168] From the data in Table 4, we can see that the method using two types of information performs better than single information in terms of SROCC and PLCC evaluation indicators. The ladder network integrates the features extracted by the convolutional layer in the intermediate stage in layers, and the multi-scale feature blocks can fully describe the features using receptive fields of different sizes, which can improve the performance of the method in image quality evaluation. Finally, the feature fusion module fully integrates the visual features and structural features to further improve the evaluation accuracy of the model and achieve the best result.
[0169] It can be seen from the above experimental data that the present invention can accurately evaluate the quality score of underwater images. Compared with other image quality evaluation algorithm methods, it has certain advantages in the underwater image database. Its consistency with human subjective perception is higher than that of other algorithms, and it can effectively improve the accuracy of the algorithm in practical application scenarios with a small number of samples.
Claims
1. A method for underwater image quality assessment based on multi-scale deep meta-learning, characterized in that: The steps include: S1: Calculate the gradient map of the underwater image and the Hadamard product of the gradient map and the underwater image to obtain the gradient enhancement map of the underwater image, and pre-process the underwater image and the gradient enhancement image; S2: Build a multi-way neural network based on EfficientNetV2-S. The multi-way neural network consists of an information perception module, an information fusion module, and a quality prediction module. The information perception module consists of a visual information perception network and a structural information perception network, which are used to capture the visual information and structural information in underwater images respectively; The information fusion module aims to fuse different types of captured features; The quality prediction module is used to regress the fused features to quality scores; S3: Classify the two images obtained by the preprocessing in step S1 according to the distortion type, randomly divide each type of distorted image into a support set and a query set in proportion, use the support set to calculate the gradient of the model parameters, and update the model parameters; Use the query set to verify whether the model after parameter update is valid; S4: Train the support set and query set, and use the meta-learning method to update and learn the parameters of the network. During the network training process, a dual gradient descent algorithm is used, that is, gradient descent and back propagation are performed on both the support set and the query set. The meta-learning method periodically updates the network parameters according to the learning step size, and saves the learned prior knowledge of image quality evaluation. S5: importing the image quality evaluation prior knowledge obtained in step S4 into the multi-channel neural network; The target underwater image is preprocessed according to step S1 to obtain the two images required by the multi-channel neural network. The model training is guided by the prior knowledge of image quality evaluation, and the target data set is fine-tuned to train the underwater image quality evaluation model and predict the quality score of the underwater image.
2. According to claim 1, the underwater image quality assessment method based on multi-scale deep meta-learning is characterized in that: In step S1, the gradient feature map of the underwater image is calculated by using the Sobel gradient operator. The specific calculation method is: The filter of the Sobel gradient operator along the horizontal direction is H(x), and the filter along the vertical direction is V(x). The definitions of the two filters are as follows: For a given image I(x), the calculation formula of the gradient image is as follows: Among them, G H (x) and G V (x) represents the gradient of the image along the horizontal and vertical directions respectively, and the calculation process is Represents a convolution operation.
3. The underwater image quality assessment method based on multi-scale deep meta-learning according to claim 2 is characterized in that: The calculation method of the gradient enhanced image of the underwater image in step S1 is: By calculating the Hadamard product between the gradient map and the original image, the gradient enhanced image of the image can be obtained; the calculation formula is: E(x)=I(x)⊙G(x) Among them, ⊙ represents element-wise multiplication.
4. The underwater image quality assessment method based on multi-scale deep meta-learning according to claim 1 is characterized in that: The preprocessing in step S1 includes image resizing, horizontal flipping, standardization and other processing, specifically: in the training stage, the underwater image and the gradient enhanced image are resized, the input image is horizontally flipped, the size is randomly cropped, and finally the mean and standardization are performed; in the testing stage, the underwater image and the gradient enhanced image are resized and the mean and standardization are performed.
5. The underwater image quality assessment method based on multi-scale deep meta-learning according to claim 1 is characterized in that: The network structures of the visual information perception network and the structural information perception network in step S2 are the same, both of which include an EfficientNetV2-S network with BN layers, GAP and FC layers removed and a ladder network; EfficientNetV2-S consists of several mobile flip bottleneck convolution blocks; the ladder network can hierarchically integrate the features extracted from the middle layer, so that the model can make full use of the features extracted from low-level to high-level visual information; The ladder network consists of 10 bottleneck structures consisting of three convolution operations. First, the feature F of the i-th stage of EfficientNetV2-S is transformed through a 1×1 convolution layer. i The number of channels is halved to reduce the computational complexity of the whole process; then a convolution layer with a convolution kernel size of 3×3 and a stride of 2 is used to transform F i The size of the network is halved, and finally a 3×3 convolution layer is used to adjust the number of output channels. This process is expressed as: Where W 1×1 and W 3×3 They are the weight matrices of the 1×1 convolution layer and the 3×3 convolution kernel respectively; Afterwards, the backbone network can better extract deep semantic features by layering and merging features from different stages. Specifically, for the feature F1 of stage 1, the bottleneck structure is used to obtain Use element-wise addition to combine it with the feature F2 of stage 2 to get for Continue to use the bottleneck structure to reduce its resolution and increase the number of channels, and then add it to the features of stage 3; repeat the same operation until With features Fusion Then, this operation is performed on the features of other stages. The process is described as follows: Among them, i∈[1,2,…,N s -2],j∈[1,2,…,N s -2],N s is the number of backbone network stages; Finally, the quality-aware features extracted by the ladder network are expressed as: The visual information and structural information obtained by the input image and its corresponding gradient enhanced image after passing through the visual information perception network and the structural information perception network are represented as F rgb With F gra .
6. The underwater image quality assessment method based on multi-scale deep meta-learning according to claim 5 is characterized in that: In step S2, the information fusion module is composed of a multi-scale feature extraction block and a feature fusion block; the multi-scale feature extraction block is composed of four groups of convolutional layers with different receptive fields, and the convolution kernel sizes are 1×1, 3×3, 5×5 and 7×7 respectively, and the step size is 2 to achieve the function of reducing the resolution of the feature map; in order to achieve the same receptive field as the 5×5 and 7×7 convolutional layers and reduce the computational complexity, two 3×3 convolutional layers are used to replace the 5×5 convolutional layer, and three 3×3 convolutional layers are used to replace the 7×7 convolutional layer; this process is described as follows: Among them, M() is the output feature of the multi-scale feature extraction block, F is the input feature, C1-C7 represent convolutional layers of different sizes, Represents a connection operation; Visual Information rgb With structural information F gra After the multi-scale feature extraction block, the corresponding multi-scale features are recorded as and The feature fusion block contains two convolutional attention modules and an inverted residual block structure. The convolutional attention module calculates channel attention and spatial attention for the features. The inverted residual structure can prevent gradient disappearance, explosion and network degradation problems. The specific process of the convolutional attention module and the inverted residual structure is described as follows: CA(F)=σ(MLP(AvgPool(F))+MLP(MaxPool(F))) CSAB(F)=F⊙CA(F)⊙SA(F) IRMLP(F)=C 1×1 (C 1×1 (C 3×3 (F)+F))) Among them, σ is the Sigmoid activation function, CA() represents channel attention, SA() represents channel attention, CSAB() represents convolutional attention block, and IRMLP() represents residual structure; Multi-scale features and The overall process of feature fusion after feature fusion block processing is described as:
7. The underwater image quality assessment method based on multi-scale deep meta-learning according to claim 6 is characterized in that: In step S2, the quality prediction module is composed of multiple fully connected layers to fuse the features F c Perform nonlinear regression to get the final image quality score: score=fc1(fc2(F c )) Among them, fc represents the fully connected layer, fc1 transforms the vector dimension from 1024 to 512, and fc2 transforms the vector dimension from 512 to 1. The final output vector is the predicted quality score.
8. The underwater image quality assessment method based on multi-scale deep meta-learning according to claim 1, characterized in that: In step S3, artificially synthesized distorted images are used as meta-training data; the artificially synthesized distorted data set is divided into N subtasks according to the distortion type, and the subtask i is further divided into a support set and queryset Thus, we get the meta-training dataset Used by the model to acquire shared prior knowledge between different distortion types.
9. The underwater image quality assessment method based on multi-scale deep meta-learning according to claim 1, characterized in that: In step S4, the difference between the predicted score and the true score is minimized by calculating the Manhattan distance, and the loss function Loss is described as: Loss=||f(x)-y||1 Where f(x) is the quality score predicted by the model for the input image x, and y is the actual quality score of the input image x; Based on the loss function L, k subtasks are taken as a batch, and the support set is used respectively. and queryset Update the model parameters. The parameter update process is: in, and are the updated model parameters on the i-th task of the support set and query set, α1 is the internal learning rate, and ε is a constant value 1e -8 , m t and v t represents the first-order moment and second-order moment of the gradient at time t, μ1 and μ2 are exponential decay rates; Update the model parameters according to the gradients of all k tasks in the batch to obtain the prior knowledge model. The process is described as: In the formula, α2 represents the external learning rate, and θ' represents the updated model parameters on all tasks in the batch.
10. The underwater image quality assessment method based on multi-scale deep meta-learning according to claim 1, characterized in that: In step S5, the prior knowledge model is fine-tuned in S steps on the unknown distorted data, and the model parameters are updated so that the model can quickly adapt to the unknown scene. The process is described as follows: Among them, α f represents the learning rate in the fine-tuning phase, m s and v s is the first-order moment and second-order moment of the gradient at the s-th step fine-tuning, θ Finetuned represents the final model parameters after fine-tuning; the image and its gradient enhancement map input parameters are θ Finetuned After the model is constructed, the corresponding prediction quality score is obtained.
Citation Information
Patent Citations
Meta-learning-based no-reference image quality data processing method and intelligent terminal
CN110728656A
Underwater image quality evaluation method based on multi-stream convolutional neural network
CN117372352A
Transfer learning strategy-based real-time few-shot object detection method
WO2024032010A1
Cited By
Automatic testing method for terminal camera
CN119211519A
Underwater image enhancement quality evaluation method based on quality perception domain adaptation
CN119313661A
Quality evaluation method for underwater enhanced image
CN119515691A
