An underwater image quality evaluation method based on multi-scale deep meta-learning

By employing a multi-scale deep meta-learning method, the gradient map and Hadamard product of underwater images are calculated, a multi-path neural network is constructed, and the model parameters are updated using a meta-learning framework. This solves the problems of accuracy and real-time performance in underwater image quality assessment, achieving efficient and accurate underwater image quality evaluation.

CN118570619BActive Publication Date: 2026-11-24NANJING NORMAL UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410686429.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2026-11-24
Estimated Expiration
2044-05-30

AI Technical Summary

Technical Problem

Existing underwater image quality assessment methods suffer from unsatisfactory accuracy and poor real-time performance in underwater environments, making it difficult to adapt to complex and ever-changing underwater conditions. Furthermore, they rely on costly subjective evaluations or reference images, failing to effectively assess underwater image quality.

Method used

A multi-scale deep meta-learning approach is adopted to enhance image features by calculating gradient maps and Hadamard products, build a multi-path neural network, and use a meta-learning framework to update model parameters on the support set and query set. Combined with the dual gradient descent algorithm and data augmentation technology, it can quickly adapt to different underwater scenes and distortion types and establish an image quality evaluation model.

Benefits of technology

It achieves efficient and accurate underwater image quality assessment, can quickly adapt to complex underwater environments and provide stable quality assessment, reduces dependence on reference images, and improves the model's generalization ability and performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570619B_ABST
    Figure CN118570619B_ABST
Patent Text Reader

Abstract

This invention discloses an underwater image quality assessment method based on multi-scale deep meta-learning, comprising: calculating the gradient enhancement map of the underwater image; preprocessing the underwater image and the gradient enhancement image; constructing a multi-path neural network based on EfficientNetV2-S, the multi-path neural network consisting of an information perception module, an information fusion module, and a quality prediction module; classifying the two types of images obtained from the preprocessing according to the distortion type, and randomly dividing each type of distorted image into a support set and a query set according to a certain proportion; training the support set and the query set to learn prior knowledge of image quality assessment; importing the prior knowledge of image quality assessment into the multi-path neural network to train an underwater image quality assessment model and predict the quality score of the underwater image. This invention can accurately assess the quality of underwater images and quickly adapt to unknown scenes and distortion types, with advantages of high accuracy, strong stability, and good generalization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of image processing and relates to underwater image quality assessment, specifically to an underwater image quality assessment method based on multi-scale depth meta-learning. Background Technology

[0002] With the continuous development of digital technology, applications such as marine ecological research and underwater target monitoring and tracking are increasingly demanding high-quality underwater images. 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 sharpness. These problems lead to the loss of effective information in underwater images, seriously affecting the value of subsequent image analysis and applications. Therefore, it is meaningful to study an underwater image quality assessment method to accurately and efficiently evaluate the quality of underwater images, which can help filter low-quality images in a timely manner and ensure the smooth execution of subsequent tasks.

[0003] Currently, the visual quality of images can be evaluated using image quality assessment methods, commonly including subjective and objective methods. Subjective methods, where observers evaluate image quality, have long been considered the most effective and reliable. However, subjective image quality assessment methods have significant drawbacks: they require multiple experiments to collect scores, which is both time-consuming and expensive. Furthermore, they cannot handle large amounts of image data, making real-time quality assessment challenging. Therefore, establishing automatic image quality prediction models is necessary. Objective assessment utilizes computer simulations of human visual perception to evaluate image quality. Depending on the amount of reference information required, these methods can be categorized as: full-reference image quality assessment methods, partial-reference image quality assessment methods, and no-reference image quality assessment methods. No-reference methods do not rely on the original image and are suitable for underwater environments where obtaining reference images is difficult. Most existing no-reference methods are geared towards a single type of image. While they perform well in specific image types, their application in underwater images is limited due to the characteristics of the underwater environment. Simultaneously, the difficulty in acquiring underwater images leads to relatively limited image sample data, and the complex and variable underwater environment can negatively impact the accuracy of image quality assessment. These problems limit the effectiveness of the method, resulting in less objective and less accurate evaluation results, and also affect the practical application of the method. Summary of the Invention

[0004] Objective: To overcome the shortcomings of existing technologies, this invention provides an underwater image quality assessment method based on multi-scale deep meta-learning. This method 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 prior knowledge of image quality assessment, resulting in an image quality prior model. The prior model is then fine-tuned on a target underwater image dataset, enabling the method to better adapt to the underwater environment, more effectively utilize limited data for learning, and quickly adapt and learn on new tasks. This improves the model's generalization ability and performance across different scenarios. The method offers advantages such as accuracy, efficiency, and strong stability, providing accurate quality assessment metrics for underwater image processing and applications.

[0005] Technical Solution: To achieve the above objectives, this invention provides an underwater image quality assessment 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 preprocess the underwater image and the gradient enhancement map.

[0007] S2: Construct a multi-path neural network based on EfficientNetV2-S. The multi-path 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 the captured different types of features; and the quality prediction module is used to regress the fused features to a quality score.

[0009] S3: Classify the two types of images obtained from the preprocessing in step S1 according to the distortion type. Each type of distorted image is randomly divided into a support set and a query set according to the 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 updated model is effective.

[0010] S4: Train the network on the support set and query set, and use the meta-learning method to update and learn the network parameters. During the network training process, the dual gradient descent algorithm is used, that is, gradient descent and backpropagation are performed on both the support set and the query set. The meta-learning method updates the network parameters periodically according to the learning step size and saves the learned prior knowledge of image quality evaluation.

[0011] S5: Import the prior knowledge of image quality assessment obtained in step S4 into the multi-path neural network; perform the preprocessing operation in step S1 on the target underwater image to obtain the two types of images required by the multi-path neural network, use the prior knowledge of image quality assessment to guide the model training, fine-tune the target dataset, train the underwater image quality assessment model, and predict the quality score of the underwater image.

[0012] Further, in step S1, the gradient map of the underwater image is calculated using the Sobel gradient operator. The Sobel operator is a convolution kernel with a kernel size of 3×3. This kernel is convolved with the image to obtain the gradient image. There are two types of Sobel operators: one is used to detect horizontal edges, reflecting pixel changes in the horizontal direction, and the other is used to detect edge changes in the vertical direction.

[0013] The specific calculation method for calculating the gradient feature map of an underwater image using the Sobel gradient operator is as follows:

[0014] The Sobel gradient operator has a horizontal filter H(x) and a vertical filter V(x), defined as follows:

[0015]

[0016] For a given image I(x), the gradient image is calculated as follows:

[0017]

[0018] Among them, G H (x) and G V (x) represent the gradients of the image along the horizontal and vertical directions, respectively. The calculation processes are as follows: Represents the convolution operation;

[0019] The gradient-enhanced image is obtained by calculating the Hadamard product between the gradient map and the original image. Using the gradient-enhanced image can effectively enhance edge information, reduce redundant information, improve learning efficiency, and enhance image details, thereby helping to improve the performance of the network in image processing tasks. The calculation formula is as follows:

[0020] E(x)=I(x)⊙G(x)

[0021] Here, ⊙ represents element-wise multiplication.

[0022] Further, the preprocessing in step S1 includes image resizing, horizontal flipping, and standardization. Specifically, during the training phase, the underwater image and gradient enhancement image are resized to (448*448), the input image is horizontally flipped with a probability of 0.5, and randomly cropped to (384*384). Finally, standardization is performed with a mean and standard deviation of 0.5. During the testing phase, the underwater image and gradient enhancement image are resized to (384*384) and standardized with a mean and standard deviation of 0.5.

[0023] This preprocessing method offers several advantages in deep learning model training. Data augmentation operations such as random horizontal flipping and random pruning increase the diversity of training data, which is beneficial for improving the model's generalization ability and robustness. Simultaneously, standardization and fixed-size adjustments help accelerate model convergence and simplify model design and training. These steps not only improve the model's efficiency during training but also maintain a certain level of performance during testing.

[0024] Furthermore, in step S2, the information perception module of the multi-path neural network consists of a visual information perception network and a structural information perception network. These two networks have the same structure, both containing an EfficientNetV2-S network with the BN (Batch Normalization), GAP (Global Average Pooling), and FC (Fully Connected) layers removed, and a staircase network. EfficientNetV2-S consists of several moving-flipping bottleneck convolutional blocks. The staircase network can hierarchically integrate the features extracted from intermediate layers, enabling the model to fully utilize the features extracted from visual information from low to high levels.

[0025] The staircase network consists of 10 bottleneck structures, each composed of three convolutional operations. It first passes the i-th stage feature F of EfficientNetV2-S through 1×1 convolutional layers. i The number of channels is halved to reduce the computational complexity of the entire process; then, a convolutional layer with a kernel size of 3×3 and a stride of 2 is used to process the F... i The size is halved, and finally a 3×3 convolutional layer is used to adjust the number of output channels. This process is represented as:

[0026]

[0027] Among them W 1×1 and W 3×3 These are the weight matrices for a 1×1 convolutional layer and a 3×3 convolutional kernel, respectively.

[0028] Subsequently, by merging features from different stages in a hierarchical manner, the backbone network can better extract deep semantic features. Specifically, for the F1 feature of stage 1, a bottleneck structure is used to obtain... Using element-wise addition, we combine it with the characteristic F2 of stage 2 to obtain... for Continue using the bottleneck structure to reduce its resolution and increase the number of channels, then add it to the features from stage 3; repeat the same operation until... With features Fusion Then, this operation is performed on the features of other stages. This process is described as follows:

[0029]

[0030] where i∈[1,2,…,N] s -2],j∈[1,2,…,N s -2],N s N represents the number of stages in the backbone network. s It is 5;

[0031] Finally, the quality-perceived features extracted through the ladder network are represented as follows:

[0032]

[0033] The visual information and structural information obtained after the input image and its corresponding gradient-enhanced image pass through the visual information perception network and the structural information perception network are respectively represented as F. rgb With F gra .

[0034] Further, in step S2, the information fusion module of the multi-path neural network 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 sets of convolutional layers with different receptive fields, with kernel sizes of 1×1, 3×3, 5×5, and 7×7, and a stride of 2 to reduce the resolution of the feature maps. To achieve the same receptive field as the 5×5 and 7×7 convolutional layers and reduce 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 follows:

[0035]

[0036] Where M() is the output feature of the multi-scale feature extraction block, F is the input feature, and C1-C7 represent convolutional layers of different sizes. Represents a connection operation;

[0037] Visual information Frgb With structural information F gra After extracting multi-scale feature blocks, the corresponding multi-scale features are obtained and denoted as follows: and

[0038] The feature fusion block comprises two convolutional attention modules and an inverted residual block structure. The convolutional attention modules perform channel and spatial attention calculations on the features, effectively improving the model's focus on important features and thus enhancing performance. The inverted residual structure prevents problems such as vanishing and exploding gradients and network degradation. The specific workflow of the convolutional attention modules 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 the residual structure;

[0044] Multiscale features and The overall process of feature fusion after feature fusion block processing is described as follows:

[0045]

[0046] Furthermore, in step S2, the quality prediction module in the multi-path neural network uses multiple fully connected layers to perform nonlinear regression on the fused feature Fc to obtain the final image quality score.

[0047] score = fc1(fc2(F c ))

[0048] Here, fc represents a 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.

[0049] Furthermore, in step S3, artificially synthesized distorted images with a large data volume are used as meta-training data; the synthetic distorted dataset is divided into N sub-tasks according to the distortion type, and sub-task i is further divided into support sets. and query set Thus, the meta-training dataset is obtained. Used to acquire shared prior knowledge between different distortion types in the model.

[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 follows:

[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 true quality score of the input image x;

[0053] Based on the loss function L, k subtasks are taken as a batch, and support sets are used respectively. and query set The model parameters are updated, and the parameter update process is as follows:

[0054]

[0055] in, and These are the updated model parameters on the i-th task in the support set and query set, respectively, where α1 is the inner learning rate and ε is a constant value. -8 m t and v t Let μ1 and μ2 represent the first and second moments of the gradient at time t, and μ1 and μ2 be the exponential decay rates.

[0056] The prior knowledge model is obtained by updating the model parameters based on the gradients of all k tasks in this batch. The process is described as follows:

[0057]

[0058] In the formula, α2 represents the external learning rate, and θ' represents the updated model parameters across all tasks in this batch.

[0059] Furthermore, in step S5, the prior knowledge model is fine-tuned in an S-step manner on unknown distorted data to update the model parameters, enabling the model to quickly adapt to unknown scenarios. The process is described as follows:

[0060]

[0061] Where, α f The learning rate m represents the learning rate during the fine-tuning phase. s and vs Let θ be the first and second moments of the gradient during fine-tuning at step s. Finetuned This represents the final model parameters obtained after fine-tuning; the image and its gradient enhancement map are input as parameters θ. Finetuned After the model is derived, its corresponding prediction quality score is obtained.

[0062] This invention employs optimization-based meta-learning, which enables parameter optimization and periodic learning of the network model, thereby obtaining more systematic image information. Due to the unique learning method and lower data requirements of meta-learning, its application in image quality assessment tasks can 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 this invention includes: calculating the gradient map of an underwater image; multiplying the gradient map by the underwater image to obtain a gradient enhancement map; preprocessing the underwater image and its corresponding gradient enhancement image; dividing the meta-training data into multiple sub-tasks according to distortion type, and dividing the support set and query set in each sub-task; designing a multi-path neural network composed of an information perception module, an information fusion module, and a quality prediction module to extract and fuse image features, learn the mapping relationship between the fused features of the underwater image and the image quality score, and predict the quality score of the underwater image; updating the model parameters using a meta-learning framework on the support set and query set of each sub-task to obtain a prior knowledge model; fine-tuning the prior knowledge model on data with unknown distortion types to quickly adapt to unknown scenarios and obtain the final quality evaluation model. This invention can accurately evaluate the quality of underwater images and quickly adapt to unknown scenarios and distortion types. It has the advantages of high accuracy, strong stability, and good generalization, providing a scientific basis for the quality evaluation of underwater images and providing 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 subjective image quality evaluation methods that are time-consuming, unstable, and dependent on expert experience, this invention has the advantages of being efficient and real-time.

[0066] 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 solves the problem of difficulty and high cost in obtaining high-quality reference images. It can directly evaluate underwater images and is more suitable for underwater image quality detection in real-world scenarios.

[0067] 3. Compared with existing image quality assessment methods, this invention adopts an optimized deep meta-learning framework, which enables the model to learn prior knowledge between different distortion types and to quickly adapt to new scenes and unknown distortion types.

[0068] 4. Compared with existing image quality assessment methods, this invention makes fuller use of the visual and structural information of the image and fuses them for processing, which can more accurately predict image quality.

[0069] 5. This invention is designed for real-world scenarios with limited sample sizes. It can accurately predict the quality score of real images containing unknown distortions, providing a valuable reference for real-distortion image processing tasks and possessing high practical value.

[0070] 6. This invention is geared towards underwater image quality assessment, aiming to provide a benchmark for underwater image quality judgment and a reliable and effective reference for underwater image processing tasks, and has high practical value. Attached Figure Description

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

[0072] Figure 2 These are the original image and gradient feature image of an embodiment of the present invention;

[0073] Figure 3 These are the original image and gradient enhancement image of an embodiment of the present invention;

[0074] Figure 4 This is a diagram of the ladder network structure in the method of the present invention;

[0075] Figure 5 This is a diagram of the multi-scale feature block structure in the method of this invention;

[0076] Figure 6 This is a structural diagram of the feature fusion block in the method of the present invention;

[0077] Figure 7 This is a performance comparison chart between the method of this invention and existing image quality algorithms;

[0078] Figure 8 This is a comparison chart of the stability of the method of the present invention with existing deep learning image quality algorithms. Detailed Implementation

[0079] 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.

[0080] like Figure 1 As shown in the figure, this embodiment provides an underwater image quality assessment method based on a multi-stream convolutional neural network, which includes the following steps:

[0081] S1: The process sequentially executes three parts: calculating the gradient map of the underwater image, obtaining the gradient enhancement map of the underwater image, and preprocessing the underwater image and the gradient enhancement map. Details are as follows:

[0082] 1. Calculate the gradient map of the underwater image:

[0083] Typically, people focus on the content information in an image, neglecting edge and texture information. In underwater images, edge and texture information is often lost or blurred due to light attenuation and scattering. Gradient images can reflect the edge and texture information of underwater images, even with variations in image intensity and color. Therefore, this invention, by using gradient feature maps, allows convolutional neural networks to focus on the distortion of edge and texture information during feature extraction, which can help to 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 using the Sobel gradient operator. The Sobel operator is a 3×3 convolution kernel, which is convolved with the image to obtain the gradient image. There are two types of Sobel operators: one is used to detect horizontal edges, reflecting pixel changes in the horizontal direction, and the other is used to detect edge changes in the vertical direction.

[0085] The specific calculation method for calculating the gradient feature map of an underwater image using the Sobel gradient operator is as follows:

[0086] The Sobel gradient operator has a horizontal filter H(x) and a vertical filter V(x), defined as follows:

[0087]

[0088] For a given image I(x), the gradient image is calculated as follows:

[0089]

[0090] Among them, G H (x) and G V (x) represent the gradients of the image along the horizontal and vertical directions, respectively. The calculation processes are as follows: Represents the convolution operation;

[0091] Images with different degrees of distortion have different background information, which makes their gradient image information different. For example... Figure 2 As shown in this embodiment Figure 2 Images (a), (b), and (c) in the figure show three images with different types of distortion. Figure 2Figures (d), (e), and (f) show the gradient maps calculated using the Sobel operator. It can be observed from the figures that the background detail information of the images varies greatly. Compared to the gradient maps of lower-scoring images, the images with higher scores (i.e., lower distortion) have clearer and more significant edges and richer texture information. This fact demonstrates that gradient maps can characterize the structural information of underwater images and describe their quality.

[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] The gradient-enhanced image is obtained by calculating the Hadamard product between the gradient map and the original image. Using the gradient-enhanced image can effectively enhance edge information, reduce redundant information, improve learning efficiency, and enhance image details, thereby helping to improve the performance of the network in image processing tasks. Its calculation formula is:

[0094] E(x)=I(x)⊙G(s)

[0095] Where ⊙ represents element-wise multiplication;

[0096] Figure 3 The original images (a), (b), and (c) in this step are processed to obtain the following results: Figure 3 The MSCN feature maps of (d), (e), and (f) in the image.

[0097] 3. Preprocess underwater images and gradient-enhanced images:

[0098] Preprocessing includes image resizing, horizontal flipping, and standardization. Specifically, during training, the underwater image and gradient enhancement image are resized to (448*448), the input image is horizontally flipped with a probability of 0.5, and randomly cropped to (384*384). Finally, the images are standardized with a mean and standard deviation of 0.5. During testing, the underwater image and gradient enhancement image are resized to (384*384) and standardized with a mean and standard deviation of 0.5.

[0099] This preprocessing method offers several advantages in deep learning model training. Data augmentation operations such as random horizontal flipping and random pruning increase the diversity of training data, which is beneficial for improving the model's generalization ability and robustness. Simultaneously, standardization and fixed-size adjustments help accelerate model convergence and simplify model design and training. These steps not only improve the model's efficiency during training but also maintain a certain level of performance during testing.

[0100] S2: Construct a multi-path neural network based on EfficientNetV2-S. The multi-path 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 the captured different types of 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-path neural network consists of a visual information perception network and a structural information perception network. These two networks have the same structure, both containing an EfficientNetV2-S network with the BN (Batch Normalization) layer, GAP (Global Average Pooling) layer, and FC (Fully Connected) layer removed, and a staircase network.

[0104] EfficientNetV2-S is a key component in the information perception module. It extracts and perceives information from input images by including multiple move-flip bottleneck convolutional blocks, aiming to effectively process and utilize image data to enhance the neural network's understanding and learning capabilities of image information. EfficientNetV2-S includes multiple move-flip bottleneck convolutional blocks. These blocks reduce the number of parameters and computational cost through bottleneck structures (including 1x1 convolutions, 3x3 depthwise separable convolutions, and 1x1 convolutions) while maintaining representational power. The move-flip operation enhances generalization performance and robustness, and shortcut connections help with information transfer and prevent gradient vanishing, achieving efficient computation and excellent performance. The specific structure of EfficientNetV2-S is shown in Table 1.

[0105] Table 1 - EfficientNetV2-S Architecture

[0106]

[0107]

[0108] The staircase network can hierarchically integrate features extracted from intermediate layers, enabling the model to fully utilize features extracted from visual information from low to high levels. It consists of 10 bottleneck structures, each composed of three convolutional operations. Its specific structure is as follows: Figure 4 As shown, the staircase network first uses a 1×1 convolutional layer to process the features F of the i-th stage of EfficientNetV2-S. iThe number of channels is halved to reduce the computational complexity of the entire process. Then, a convolutional layer with a kernel size of 3×3 and a stride of 2 is used to process the F... i The size is halved, and finally a 3×3 convolutional layer is used to adjust the number of output channels. This process is represented as:

[0109]

[0110] Among them, W 1×1 and W 3×3 These are the weight matrices for a 1×1 convolutional layer and a 3×3 convolutional kernel, respectively.

[0111] Subsequently, by merging features from different stages in a hierarchical manner, the backbone network can better extract deep semantic features. Specifically, for the F1 feature of stage 1, the bottleneck structure is used to obtain... Using element-wise addition, we combine it with the characteristic F2 of stage 2 to obtain... for Continue using the bottleneck structure to reduce its resolution and increase the number of channels, then add it to the features from stage 3; repeat the same operation until... With features Fusion Then, this operation is performed on the features of other stages. This process is described as follows:

[0112]

[0113] where i∈[1,2,…,N] s -2],j∈[1,2,…,N s -2],N s In this embodiment, N represents the number of stages in the backbone network. s It is 5;

[0114] Finally, the quality-perceived features extracted through the ladder network are represented as follows:

[0115]

[0116] The visual information and structural information obtained after the input image and its corresponding gradient-enhanced image pass through the visual information perception network and the structural information perception network are respectively 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 effectively learns multi-scale features. It comprises four sets of convolutional layers with different receptive fields, kernel sizes of 1×1, 3×3, 5×5, and 7×7, and a stride of 2 to reduce feature map resolution. To achieve the same receptive field as the 5×5 and 7×7 convolutional layers while reducing computational complexity, two 3×3 convolutional layers replace the 5×5 convolutional layer, and three 3×3 convolutional layers replace the 7×7 convolutional layer. The specific structure is as follows: Figure 5 As shown. This process is described as follows:

[0119]

[0120] Where M() is the output feature of the multi-scale feature extraction block, F is the input feature, and C1-C7 represent convolutional layers of different sizes. Represents a join operation;

[0121] Visual information F rgb With structural information F rgb After extracting multi-scale feature blocks, the corresponding multi-scale features are obtained and denoted as follows: and

[0122] The feature fusion block contains two convolutional attention modules and an inverted residual block structure, as shown in the following figure. Figure 6 As shown. The convolutional attention module can calculate channel attention and spatial attention on features, which can effectively improve the model's focus on important features, thereby improving performance. The inverse residual structure can prevent problems such as gradient vanishing, exploding, and network degradation. The specific process of the convolutional attention module and the inverse 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 (C 1×1 (C 3×3 (F)+F)))

[0127] Where σ 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] Multiscale features and The overall process of feature fusion after feature fusion block processing can be described as follows:

[0129]

[0130] Quality Prediction Module:

[0131] The quality prediction module consists of multiple fully connected layers that fuse feature F. c The final image quality score is obtained by performing nonlinear regression:

[0132] score = fc1(fc2(F c ))

[0133] Here, fc represents a 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.

[0134] S3: Classify the two types of images obtained in step S1 according to the type of distortion. Randomly divide each type of distorted image into a support set and a query set in an 8:2 ratio. 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 updated model is effective.

[0135] The specific process of step S3 is as follows:

[0136] We use artificially synthesized distorted images, which have a large dataset, as the meta-training data; the synthetic distorted dataset is divided into N sub-tasks according to the distortion type, and each sub-task i is further divided into a support set. and query set Thus, the meta-training dataset is obtained. Used to acquire shared prior knowledge between different distortion types in the model.

[0137] S4: Train the network on the support set and query set, using a meta-learning method to update and learn the network parameters. During network training, a dual gradient descent algorithm is employed, i.e., gradient descent and backpropagation 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 assessment.

[0138] The specific process of step S4 is as follows:

[0139] The Manhattan distance is calculated to minimize the difference between the predicted and true scores. The loss function, Loss, is described as follows:

[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 true quality score of the input image x;

[0142] Based on the loss function L, k subtasks are taken as a batch, and support sets are used respectively. and query set

[0143] The model parameters are updated, and the parameter update process is as follows:

[0144]

[0145] in, and These are the updated model parameters on the i-th task in the support set and query set, respectively, where α1 is the inner learning rate and ε is a constant value. -8 m t and v t Let μ1 and μ2 represent the first and second moments of the gradient at time t, and μ1 and μ2 be the exponential decay rates.

[0146] The prior knowledge model is obtained by updating the model parameters based on the gradients of all k tasks in this batch. The process is described as follows:

[0147]

[0148] In the formula, α2 represents the external learning rate, and θ' represents the updated model parameters across all tasks in this batch.

[0149] S5: Import the prior knowledge of image quality assessment obtained in step S4 into the multi-path neural network; perform the preprocessing operation in step S1 on the target underwater image to obtain the two types of images required by the multi-path neural network, use the prior knowledge of image quality assessment to guide the model training, fine-tune the target dataset, train the underwater image quality assessment model, and predict the quality score of the underwater image.

[0150] The specific process of step S5 is as follows:

[0151] The prior knowledge model is fine-tuned using an S-step process on unknown distorted data to update model parameters, enabling the model to quickly adapt to unknown scenarios. The process is described as follows:

[0152]

[0153] Where, α f The learning rate m represents the learning rate during the fine-tuning phase. s and v s Let θ be the first and second moments of the gradient during fine-tuning at step s. Finetuned This represents the final model parameters obtained after fine-tuning; the image and its gradient enhancement map are input as parameters θ. FinetunedAfter the model is derived, its 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, this embodiment applies the method of the present invention and other advanced image quality assessment methods to the underwater image quality assessment dataset SAUD. The specific comparison results are shown in Table 2, and the optimal performance value corresponding to different evaluation indicators is highlighted in bold:

[0155] Table 2 - Performance comparison results on the SAUD database

[0156]

[0157]

[0158] To visually demonstrate the comparative effects of different image quality assessment algorithms, the performance of the method of this invention compared with other methods on the SROCC, KROCC, and PLCC evaluation metrics is as follows: Figure 7 As shown.

[0159] According to Table 2 and Figure 7 The experimental results show the following conclusions. First, the method proposed in this invention outperforms other image quality assessment algorithms. On the SAUD image database, the overall evaluation results of this invention achieve the optimal SROCC and PLCC evaluation index values. Second, image quality assessment algorithms using handcrafted features show a significant gap compared to this invention. Compared to the best NUIQ method, this invention's method achieves higher SROCC and PLCC evaluation index values ​​by 0.0812 and 0.0704, respectively. It also shows certain advantages compared to other deep learning methods, with SROCC and PLCC evaluation index values ​​approximately 0.0312 and 0.0287 higher than the HyperIQA method. Based on these conclusions, it can be seen that the method of this invention achieves a significant improvement in quality assessment accuracy on underwater datasets.

[0160] To verify the effectiveness of the meta-learning framework used in this invention, comparative experiments were conducted on the SAUD and UIED datasets in this embodiment. The comparison results are shown in Table 3.

[0161] Table 3 - Comparison of the effectiveness of meta-learning frameworks

[0162]

[0163] As shown in Table 3, the use of a meta-learning framework can effectively improve the accuracy of quality assessment.

[0164] This invention designs comparative experiments on the SAUD and UIED databases to verify the stability of the method of this invention. Figure 8Box plots are presented showing the evaluation results of the method of this invention and other neural network-based deep learning image quality assessment algorithms on the SAUD and UIED databases. In the box plots, the horizontal axis represents different image quality assessment methods, and the vertical axis represents the objective evaluation score of each method for the image. The shape of the box corresponding to each algorithm describes the distribution of the data and reflects the evaluation effect of different image quality assessment algorithms. Figure 8 As can be seen on the SAUD and UIED databases, compared with other image quality assessment algorithms, the bins for each evaluation index of the present invention are smaller, indicating a smaller fluctuation range in image quality evaluation. Simultaneously, the distance between the upper and lower edges of the bins corresponding to the present invention is shorter, indicating that the present invention's evaluation effect on underwater image quality is more stable compared to other image quality assessment methods. The bin plot morphology corresponding to the evaluation effects of different algorithms shows that the median of the present invention is higher than that of other algorithms, indicating that the present invention's evaluation effect is better. In summary, the present invention's method has high stability and can effectively evaluate underwater image quality.

[0165] To analyze the modules in the model of this invention and measure the effectiveness of each module, this embodiment conducted ablation experiments on the model structure on the SAUD dataset, comparing the method performance under several conditions. The experimental results are shown in Table 4, with the optimal performance value corresponding to different evaluation metrics highlighted in bold:

[0166] Table 4 - Ablation experiments of each module of the model

[0167]

[0168] As shown in Table 4, the method using two types of information performs better than the method using only one type of information in the SROCC and PLCC evaluation metrics. The staircase network integrates the features extracted from the intermediate convolutional layers hierarchically, and the multi-scale feature blocks can fully describe the features using receptive fields of different sizes, all of which improve the performance of the method in image quality evaluation. Finally, the feature fusion module fully integrates visual and structural features, further improving the model's evaluation accuracy and achieving optimal results.

[0169] The experimental data above show that this invention can accurately evaluate the quality score of underwater images. Compared with other image quality evaluation algorithms, it has certain advantages in underwater image databases. Its consistency with human subjective perception is higher than that of other algorithms, which can effectively improve the accuracy of the algorithm in practical application scenarios with a small sample size.

Claims

1. A method for underwater image quality assessment based on multi-scale deep meta-learning, characterized in that, Includes the following steps: 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 preprocess the underwater image and the gradient enhancement map. S2: Construct a multi-path neural network based on EfficientNetV2-S. The multi-path 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 integrate the captured different types of features; The quality prediction module is used to regress the fused features to a quality score; S3: Classify the two types of images obtained from the preprocessing in step S1 according to the distortion type. Each type of distorted image is randomly divided into a support set and a query set according to the proportion. Use the support set to calculate the gradient of the model parameters and update the model parameters. Use query sets to verify whether the updated model is effective; S4: Train the network on the support set and query set, and use the meta-learning method to update and learn the network parameters. During the network training process, the dual gradient descent algorithm is used, that is, gradient descent and backpropagation are performed on both the support set and the query set. The meta-learning method updates the network parameters periodically according to the learning step size and saves the learned prior knowledge of image quality evaluation. S5: Import the prior knowledge of image quality evaluation obtained in step S4 into the multi-path neural network; The target underwater image is preprocessed according to the steps in S1 to obtain the two types of images required by the multi-path neural network. The prior knowledge of image quality assessment is used to guide the model training. The target dataset is fine-tuned to train the underwater image quality assessment model and predict the quality score of the underwater image. In step S2, the visual information perception network and the structural information perception network have the same network structure, both containing an EfficientNetV2-S network with the BN layer, GAP and FC layers removed and a staircase network. EfficientNetV2-S consists of several moving-flipping bottleneck convolutional blocks; the staircase network can hierarchically integrate the features extracted from the intermediate layers, enabling the model to make full use of the features extracted from visual information from low to high levels. The ladder network consists of 10 bottleneck structures, each consisting of three convolution operations. First, it passes through... The convolutional layers of EfficientNetV2-S will... Characteristics of each stage The number of channels is halved to reduce the computational complexity of the entire process; then, a convolution kernel size of [size missing] is used. A convolutional layer with a stride of 2 will Halve the size, and use it last. The convolutional layers are used to adjust the number of output channels. This process is represented as: in and They are respectively Convolutional layers and The weight matrix of the convolution kernel; Subsequently, by merging features from different stages in a hierarchical manner, the backbone network can better extract deep semantic features; specifically, for the features of stage 1... Obtained through bottleneck structure Use element-wise addition to combine it with the features of stage 2. Merging ;for Continue using the bottleneck structure to reduce its resolution and increase the number of channels, then add it to the features from stage 3; repeat the same operation until... With features Fusion Then, this operation is performed on the features of other stages. This process is described as follows: in, , , This represents the number of stages in the backbone network. Finally, the quality-perceived features extracted through the ladder network are represented as follows: The visual information and structural information obtained after the input image and its corresponding gradient-enhanced image pass through the visual information perception network and the structural information perception network are respectively represented as follows: and ; In step S2, the information fusion module consists of a multi-scale feature extraction block and a feature fusion block; the multi-scale feature extraction block consists of four sets of convolutional layers with different receptive fields, and the kernel sizes are respectively... , , and A step size of 2 is used to reduce the feature map resolution; in order to achieve the same effect as... and The convolutional layers have the same receptive field and reduce computational complexity by using two Convolutional layers instead The convolutional layer uses 3 Convolutional layers instead Convolutional layers; this process is described as: in, It is the output feature of the multi-scale feature extraction block. These are input features. These represent convolutional layers of different sizes. Represents a connection operation; Visual information With structural information After extracting multi-scale feature blocks, the corresponding multi-scale features are obtained and denoted as follows: and ; The feature fusion block contains two convolutional attention modules and an inverted residual block structure. The convolutional attention modules perform channel and spatial attention calculations on the features; the inverted residual structure prevents gradient vanishing, exploding, and network degradation problems. The specific process of the convolutional attention modules and the inverted residual structure is described as follows: in, It is the Sigmoid activation function. Represents channel attention. Represents channel attention. Represents the convolutional attention block. Represents the residual structure; Multiscale features and The overall process of feature fusion after feature fusion block processing is described as follows: 。 2. The underwater image quality assessment method based on multi-scale deep meta-learning according to claim 1, characterized in that, In step S1, the gradient feature map of the underwater image is calculated using the Sobel gradient operator. The specific calculation method is as follows: The Sobel gradient operator's filter along the horizontal direction is... The filter along the vertical direction is The two filters are defined as follows: For a given image The formula for calculating the gradient image is as follows: in, and These represent the gradients of the image along the horizontal and vertical directions, respectively. The calculation processes are as follows: , This represents the convolution operation.

3. The underwater image quality assessment method based on multi-scale deep meta-learning according to claim 2, characterized in that, The method for calculating the gradient enhancement image of the underwater image in step S1 is as follows: The gradient-enhanced image is obtained by calculating the Hadamard product between the gradient map and the original image; the calculation formula is as follows: in, This represents element-wise multiplication.

4. The underwater image quality assessment method based on multi-scale deep meta-learning according to claim 1, characterized in that, The preprocessing in step S1 specifically involves: during the training phase, adjusting the size of the underwater image and the gradient enhancement image, horizontally flipping the input image, randomly cropping its size, and finally performing mean and standardization processing; during the testing phase, adjusting the size of the underwater image and the gradient enhancement image and performing mean and standardization processing.

5. The underwater image quality assessment method based on multi-scale deep meta-learning according to claim 1, characterized in that, In step S2, the quality prediction module uses multiple fully connected layers to fuse features. The final image quality score is obtained by performing nonlinear regression. : in, Indicates a fully connected layer. Transform the vector dimension from 1024 to 512. Converting the vector dimension from 512 to 1, the final output vector is the predicted quality score.

6. 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 dataset is divided according to the type of distortion. Individual tasks, pairs of tasks This is then divided into support sets. and query set Thus, the meta-training dataset is obtained. It is used for models to obtain shared prior knowledge between different types of distortion.

7. 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 is... Described as: in, For the model to input image Predicted quality score For the input image The true quality score; Based on loss function ,Pick Each subtask is treated as a batch, and each uses a support set. and query set The model parameters are updated, and the parameter update process is as follows: in, and These are respectively the first in the support set and the query set. The updated model parameters for each task For internal learning rate, constant value , and Indicates in The first and second moments of the gradient at each time step. and The exponential decay rate; According to all of this batch The gradient update model parameters for each task are used to obtain the prior knowledge model. The process is described as follows: In the formula, Indicates the external learning rate. This represents the updated model parameters across all tasks in this batch.

8. 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 applied to the unknown distorted data. Fine-tuning and updating model parameters to enable the model to quickly adapt to unknown scenarios is described as follows: in, This represents the learning rate during the fine-tuning phase. and In the first The first and second moments of the gradient during fine-tuning. This represents the final model parameters obtained after fine-tuning; the image and its gradient enhancement map are input parameters. After the model is established, its corresponding prediction quality score is obtained.