No-reference image quality assessment method and system integrating local and global features

By constructing a global and local image coordinate extraction module and a temporal attention mechanism module, combined with the ResNet network, the problem of manual feature limitations and image processing impact in no-reference image quality evaluation is solved, achieving more accurate image quality evaluation and simulating human Evaluation behavior improves the accuracy and practicality of evaluation.

CN114742774BActive Publication Date: 2024-09-06FUZHOU UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210326356.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-30
Publication Date
2024-09-06
Estimated Expiration
2042-03-30

AI Technical Summary

Technical Problem

Existing reference-free image quality evaluation methods have limitations in manually designed features and quality evaluation errors caused by image cropping or proportion changes during the training process. They are also unable to effectively integrate local and global features, affecting evaluation accuracy.

Method used

A reference-free image quality evaluation method that integrates local and global features is used. By constructing a global and local image coordinate extraction module and a temporal attention mechanism module, combined with the ResNet50/101 network, the reference-free image quality evaluation network is trained, and a bidirectional gate is used to control the recurrent unit. The network simulates human evaluation to sequentially focus on image areas and calculate the final image quality evaluation score.

Benefits of technology

It improves the accuracy of reference-free image quality evaluation, retains image details and proportions, simulates human evaluation behavior, focuses on areas of greater influence, effectively utilizes local and global features, and improves the accuracy and practicality of evaluation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114742774B
    Figure CN114742774B
Patent Text Reader

Abstract

The present invention relates to a method and system for evaluating quality of a reference-free image by integrating local and global features. The method comprises the following steps: step S1: preprocessing images in a distorted image data set, and dividing the data set into a training set and a test set; step S2: constructing a global and local image coordinate extraction module; step S3: constructing a temporal attention mechanism module; step S4: constructing a reference-free image quality evaluation network integrating local and global image features, and training the reference-free image quality evaluation network using a training set; step S5: inputting images in the test set into a trained reference-free image quality evaluation network model, and outputting corresponding image quality evaluation results. The method and system are conducive to improving the accuracy of the reference-free image quality evaluation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of image processing and computer vision, and in particular relates to a reference-free image quality evaluation method and system integrating local and global features. Background Art

[0002] With the advent of the mobile era, billions of pictures are generated every day in various social media applications, most of which are taken by non-professional users in various outdoor environments. Unlike pictures taken by professional photographers, the quality of pictures taken by ordinary users often deteriorates due to distortions such as underexposure or overexposure, low visibility, motion blur, and ghosting. And due to technical or hardware limitations, various degrees of distortion are inevitably introduced into the image, showing varying degrees of quality degradation. A certain degree of distortion is also inevitable during compression, processing, transmission, and display. High-quality images can improve the quality of the viewer's experience on the one hand, and benefit many computer vision algorithms on the other. Therefore, how to measure the quality of the image and assess whether the image meets a specific application requirement is the goal of image quality evaluation. Moreover, the image quality evaluation results can be used as auxiliary reference information for some image restoration and enhancement technologies. Therefore, image quality evaluation methods are very necessary, and they can also provide a feasible way to design and optimize advanced image / video processing algorithms.

[0003] Traditional no-reference image quality assessment methods rely on manually designed features, and most of them try to detect specific types of distortion, such as blur, block effects, various forms of noise, etc. For example, for the evaluation of image blur, there are edge analysis-based methods and transform domain-based methods. For the evaluation of image noise, there are filtering-based methods, wavelet transform-based methods, and some other transform domain-based methods. For the evaluation of image block effects, there are block boundary-based and transform domain-based methods. There are also some general-type no-reference image quality assessment methods. These algorithms do not detect specific types of distortion. They usually transform the no-reference image quality assessment problem into a classification or regression problem, in which classification and regression are trained using specific features. However, manually designed features have their limitations, because different types of image content have different image features, which have a great impact on the quality assessment score.

[0004] At present, the research work on no-reference image quality assessment has entered the era of deep learning. Compared with manually designed features, the features extracted by neural networks are more suitable for image quality assessment and more powerful. However, there are still problems in using neural networks to evaluate image quality. First, in the preprocessing stage of training neural networks, cropping or changing the original proportion of the image will affect the quality of the image, resulting in errors in the evaluation results. Secondly, people's evaluation of an image is not only for the entire image, but also depends on some areas in the image. Therefore, it is necessary to further study the no-reference image quality assessment method. Summary of the invention

[0005] The object of the present invention is to provide a method and system for no-reference image quality assessment that integrates local and global features. The method and system are conducive to improving the accuracy of no-reference image quality assessment.

[0006] To achieve the above object, the technical solution adopted by the present invention is: a reference-free image quality evaluation method integrating local and global features, comprising the following steps:

[0007] Step S1: Divide the distorted image data set into a training set and a test set, and perform data preprocessing on the images in the data set;

[0008] Step S2: construct global and local image coordinate extraction modules;

[0009] Step S3: construct a temporal attention mechanism module;

[0010] Step S4: constructing a no-reference image quality assessment network that integrates local and global image features, and using a training set to train the no-reference image quality assessment network;

[0011] Step S5: Input the images in the test set into the trained no-reference image quality assessment network model, and output the corresponding image quality assessment results.

[0012] Furthermore, the step S1 specifically includes the following steps:

[0013] Step S11: pairing images in the distorted image dataset with their corresponding labels;

[0014] Step S12: Divide the images in the distorted image data set into a training set and a test set according to a set ratio;

[0015] Step S13: scaling all the images to be trained in the training set to a fixed size of H×W;

[0016] Step S14: performing a uniform random flipping operation on the image processed in step S13 to enhance the data;

[0017] Step S15: normalize the images processed in step S14 and the images in the test set.

[0018] Furthermore, in step S2, the global and local image coordinate extraction module performs the global or local image coordinate extraction operation in the following manner: the image of size H×W is divided into n 2 disjoint global or local images, the size of the global or local image is h×w, where Then, the coordinates of the upper left corner and lower right corner pixels of each global or local image in the original image are recorded, where n is a set parameter. When n=1, the global image is extracted, and when n>1, the local image is extracted;

[0019] The global and local image coordinate extraction module repeatedly performs the above global or local image coordinate acquisition operation N times, and the parameter n=i during the i-th execution, obtains the coordinates of the upper left corner and the lower right corner of the global or local image at N image scales, and splices the coordinates of the upper left corner and the lower right corner of the global or local image at each image scale to obtain the coordinate vectors (x l ,y l , x r ,y r ), the dimension of the vector is Q, where Q = 1 + 2 2 +3 2 +...+N 2 .

[0020] Furthermore, the step S3 specifically includes the following steps:

[0021] Step S31: Let the input of the temporal attention mechanism module be F in , whose dimension is C×h x × x ; First change the input feature F in , the dimensions are Q×c×h x × x , and get the feature F reshape , where c = C / Q, Q is the number of local and global images;

[0022] Step S32: F in step S31 reshape Input the spatial pooling layer and channel pooling layer in sequence. First, F reshape Input to the spatial pooling layer and get the output F spatial , whose dimensions are Q×c×1×1, F spatial The calculation formula is:

[0023] F spatial =Maxpool(F reshape )+Avgpool(Freshape )

[0024] Among them, Maxpool(*) represents the spatial maximum pooling layer with a step size of 1, and Avgpool(*) represents the spatial average pooling layer with a step size of 1;

[0025] Then F spatial Input to the channel pooling layer and get the output F channel , whose dimensions are Q×1×1×1, F channel The calculation formula is:

[0026] F channel =Conv 1×1 (Concat(CMaxpool(F spatial ), CAvgpool(F spatial )))

[0027] Among them, CMaxpool(*) represents the channel maximum pooling layer with a step size of 1, CAvgpool(*) represents the channel average pooling layer with a step size of 1, Concat(·) represents the concatenation of features in a new dimension, Con v 1×1 (*) indicates a convolutional layer with a kernel size of 1×1 for dimensionality reduction;

[0028] Step S33: F in step S32 channel Use the Reshape operation to change its dimension from Q×1×1×1 to Q, and then channel The attention mechanism is used to obtain the importance of different global or local images learned by the model, so as to determine which images in the local and global images have a greater impact on the quality evaluation of the overall image; the sigmoid function is then used to map the values ​​to (0, 1) to obtain the feature weight w time , w time Through the Reshape operation, its dimension is changed from Q to Q×1×1×1, and then the feature weight is used as the guidance weight for the local and global images, that is, the initial input image feature F in Multiply by weight w time Plus F in , the final output of the temporal attention mechanism module is F time , the dimension is C×h x × x , F time The calculation formula is:

[0029] w time =Sigmoid(MLP1(Reshape1(F channel )))

[0030] F time =F in +(F in ×Reshape2(w time )).

[0031] Furthermore, the step S4 specifically includes the following steps:

[0032] Step S41: Based on one of the image classification networks including ResNet50 and ResNet101, a backbone network is established, and the last layer of the backbone network is removed to serve as a feature extraction network;

[0033] Step S42: Input a batch of images in the training set into the feature extraction network in step S41, and the feature extraction network outputs image features F backbone , whose dimension is C×h x × x , C is the number of channels of the image feature; at the same time, the image is input into the global and local image coordinate extraction module to obtain the coordinates of the upper left corner and lower right corner of the local and global images;

[0034] Step S43: Since the same image has global images and local images of different sizes, and the feature dimensions need to be the same in the neural network batch processing stage, the output image feature F backbone The upper left corner and lower right corner coordinates of the local and global images obtained by the global and local image coordinate extraction module are input into the region of interest correction module to obtain the local and global image features F of the same dimension. align , its dimension is C×poolsize×poolsize, where poolsize is the size of the image feature;

[0035] Step S44: The feature F output from step S43 align Input it into the temporal attention mechanism module constructed in step S3 to obtain the output F of the temporal attention mechanism time , and then F time Input into the bidirectional gate controlled recurrent unit network to simulate the sequential viewing of local parts of the image when humans evaluate image quality, and obtain the output F bigru , whose dimension is Q×C;

[0036] Step S45: For the output F of step S44 bigru First, use the Reshape operation to change its dimension from Q×C to P, P = Q×C, and then F bigru Input into the last two fully connected layers to obtain the final image quality evaluation score F out , whose dimension is 1, represents the quality score of the image, and its calculation formula is:

[0037] F out =MLP2(Reshape3(F bigru ))

[0038] Step S46: Calculate the loss function of the reference-free image quality assessment network that integrates local and global image features as follows:

[0039]

[0040] Among them, m is the number of samples, y i represents the true quality score of the image, It represents the quality score of the image obtained by the reference-free image quality assessment network that integrates local and global image features; the true quality score of each global image and local image is the same as the true quality score of the image to which it belongs;

[0041] Step S47: Repeat the above steps S42 to S46 in batches until the loss value calculated in step S46 converges and stabilizes, save the network parameters, and complete the training process of the reference-free image quality assessment network that integrates local and global image features.

[0042] Furthermore, in step S5, the images in the test set are input into the trained no-reference image quality assessment network model, and the quality scores corresponding to the images are output.

[0043] The present invention also provides a reference-free image quality assessment system that integrates local and global features, including a memory, a processor, and computer program instructions stored in the memory and capable of being executed by the processor. When the processor executes the computer program instructions, the above-mentioned method steps can be implemented.

[0044] Compared with the prior art, the present invention has the following beneficial effects: it provides a method and system for evaluating quality of a reference-free image that integrates local and global features, which does not perform any operation that affects the quality of the input image, retains its details and proportions, and simulates the behavior of a person evaluating the quality of an image, focuses on areas that have a greater impact on the quality of the image, and pays attention to them in a sequential manner, effectively utilizes the local and global features of the image, and improves the accuracy of the quality evaluation of the reference-free image. Therefore, the present invention has strong practicality and broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 It is a flow chart of the method implementation of the embodiment of the present invention.

[0046] Figure 2 Schematic diagram of the structure of a reference-free image quality assessment network that integrates local and global image features in an embodiment of the present invention.

[0047] Figure 3 Schematic diagram of the structure of the temporal attention mechanism module in an embodiment of the present invention. DETAILED DESCRIPTION

[0048] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0049] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present application belongs.

[0050] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0051] like Figure 1 As shown, this embodiment provides a reference-free image quality assessment method that integrates local and global features, including the following steps:

[0052] Step S1: Divide the distorted image dataset into a training set and a test set, and perform data preprocessing on the images in the dataset.

[0053] In this embodiment, step S1 specifically includes the following steps:

[0054] Step S11: Pairing images in the distorted image dataset with their corresponding labels.

[0055] Step S12: Divide the images in the distorted image data set into a training set and a test set according to a set ratio.

[0056] Step S13: Scale all the images to be trained in the training set to a fixed size of H×W.

[0057] Step S14: Perform a uniform random flipping operation on the image processed in step S13 to enhance the data.

[0058] Step S15: normalize the images processed in step S14 and the images in the test set.

[0059] Step S2: Construct global and local image coordinate extraction modules.

[0060] Specifically, the global and local image coordinate extraction module performs the global or local image coordinate extraction operation in the following manner: the image of size H×W is divided into n 2 disjoint global or local images, the size of the global or local image is h×w, where Then, the coordinates of the upper left corner and lower right corner pixels of each global or local image in the original image are recorded, where n is a set parameter. When n=1, the global image is extracted, and when n>1, the local image is extracted.

[0061] The global and local image coordinate extraction module repeatedly performs the above global or local image coordinate acquisition operation N times, and the parameter n=i during the i-th execution, obtains the coordinates of the upper left corner and the lower right corner of the global or local image at N image scales, and splices the coordinates of the upper left corner and the lower right corner of the global or local image at each image scale to obtain the coordinate vectors (x l ,y l , x r ,y r ), the dimension of the vector is Q, where Q = 1 + 2 2 +3 2 +...+N 2 .

[0062] Step S3: Figure 3 As shown, a temporal attention mechanism module is constructed.

[0063] In this embodiment, step S3 specifically includes the following steps:

[0064] Step S31: Let the input of the temporal attention mechanism module be F in , whose dimension is C×h x × x ; First change the input feature F in , the dimensions are Q×c×h x × x , and get the feature F reshape , where c = C / Q, Q is the number of local and global images.

[0065] Step S32: F in step S31 reshape Input the spatial pooling layer and channel pooling layer in sequence. First, F reshape Input to the spatial pooling layer and get the output F spatial , whose dimensions are Q×c×1×1, F spatial The calculation formula is:

[0066] F spatial =Maxpool(F reshape )+Avgpool(F reshape )

[0067] Among them, Maxpool(*) represents the spatial maximum pooling layer with a step size of 1, and Avgpool(*) represents the spatial average pooling layer with a step size of 1;

[0068] Then F spatial Input to the channel pooling layer and get the output F channel , whose dimensions are Q×1×1×1, F channel The calculation formula is:

[0069] F channel =Conv 1×1 (Concat(CMaxpool(F spatial ), CAvgpool(F spatial )))

[0070] Among them, CMaxpool(*) represents the channel maximum pooling layer with a step size of 1, CAvgpool(*) represents the channel average pooling layer with a step size of 1, Concat(·) represents the concatenation of features in a new dimension, Conv 1×1 (*) indicates a convolutional layer with a kernel size of 1×1 for dimensionality reduction.

[0071] Step S33: F in step S32 channel Through the Reshape operation (denoted as Reshape1), its dimension is changed from Q×1×1×1 to Q, and then F channel The input is fed into two fully connected layers (denoted as MLP1), and the attention mechanism is used to obtain the importance of different global or local images learned by the model to determine which images in the local and global images have a greater impact on the quality evaluation of the overall image; the sigmoid function is then used to map the values ​​to (0, 1) to obtain the feature weight w time , w time Through the Reshape operation (denoted as Reshape2), its dimension is changed from Q to Q×1×1×1, and then the feature weight is used as the guidance weight for the local and global images, that is, the initial input image feature F in Multiply by weight w time Plus F in , the final output of the temporal attention mechanism module is F time , the dimension is C×h x × x , F time The calculation formula is:

[0072] w time =Sigmoid(MLP1(Reshape1(F channel )))

[0073] F time =F in +(F in ×Reshape2(w time )).

[0074] Step S4: Figure 2 As shown, a no-reference image quality assessment network integrating local and global image features is constructed, and a training set is used to train the no-reference image quality assessment network.

[0075] In this embodiment, step S4 specifically includes the following steps:

[0076] Step S41: Based on one of the image classification networks including ResNet50 and ResNet101, a backbone network is established, and the last layer of the backbone network is removed to serve as a feature extraction network.

[0077] Step S42: Input a batch of images in the training set into the feature extraction network in step S41, and the feature extraction network outputs image features F backbone , whose dimension is C×h x × x , C is the number of channels of the image feature; at the same time, the image is input into the global and local image coordinate extraction module to obtain the upper left corner and lower right corner coordinates of the local and global images.

[0078] Step S43: Since the same image has global images and local images of different sizes, and the feature dimensions need to be the same in the neural network batch processing stage, the output image feature F backbone The upper left corner and lower right corner coordinates of the local and global images obtained by the global and local image coordinate extraction module are input into the region of interest correction module (Region Of Interest Align) to obtain the local and global image features F of the same dimension. align , whose dimension is C×poolsize×poolsize, where poolsize is the size of the image feature.

[0079] Step S44: The feature F output from step S43 align Input it into the temporal attention mechanism module constructed in step S3 to obtain the output F of the temporal attention mechanism time , and then F time The input is sent to the Bidirectional Gate Recurrent Unit (BiGRU) network to simulate the sequential viewing of local parts of the image when humans evaluate the image quality, and the output F is obtained. bigru, whose dimension is Q×C.

[0080] Step S45: For the output F of step S44 bigru First, we use the Reshape operation (denoted as Reshape3) to change its dimension from Q×C to P, P = Q×C, and then we transform F bigru Input into the last two fully connected layers (denoted as MLP2) to obtain the final image quality evaluation score F out , whose dimension is 1, represents the quality score of the image, and its calculation formula is:

[0081] F out =MLP2(Reshape3(F bigru )).

[0082] Step S46: Calculate the loss function of the reference-free image quality assessment network that integrates local and global image features as follows:

[0083]

[0084] Among them, m is the number of samples, y i represents the true quality score of the image, It represents the quality score of the image obtained by a no-reference image quality assessment network that integrates local and global image features. The true quality score of each global image and local image is the same as the true quality score of the image to which it belongs.

[0085] Step S47: Repeat the above steps S42 to S46 in batches until the loss value calculated in step S46 converges and stabilizes, save the network parameters, and complete the training process of the reference-free image quality assessment network that integrates local and global image features.

[0086] Step S5: Input the images in the test set into the trained no-reference image quality assessment network model, and output the quality score corresponding to the image.

[0087] This embodiment provides a reference-free image quality assessment system that integrates local and global features, including a memory, a processor, and computer program instructions stored in the memory and capable of being executed by the processor. When the processor executes the computer program instructions, the above-mentioned method steps can be implemented.

[0088] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0089] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0090] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0091] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0092] The above is only a preferred embodiment of the present invention, and does not limit the present invention in other forms. Any technician familiar with the profession may use the above disclosed technical content to change or modify it into an equivalent embodiment with equivalent changes. However, any simple modification, equivalent change and modification made to the above embodiment according to the technical essence of the present invention without departing from the technical solution of the present invention still belongs to the protection scope of the technical solution of the present invention.

Claims

1. A reference-free image quality assessment method integrating local and global features, characterized in that: The following steps are involved: Step S1: Divide the distorted image data set into a training set and a test set, and perform data preprocessing on the images in the data set; Step S2: construct global and local image coordinate extraction modules; Step S3: construct a temporal attention mechanism module; Step S4: constructing a no-reference image quality assessment network that integrates local and global image features, and using a training set to train the no-reference image quality assessment network; Step S5: input the images in the test set into the trained no-reference image quality assessment network model, and output the corresponding image quality assessment results; In step S2, the global and local image coordinate extraction module performs the global or local image coordinate extraction operation as follows: the image with a size of H×W is divided into n 2 disjoint global or local images, the size of the global or local image is h×w, where Then, the coordinates of the upper left corner and lower right corner pixels of each global or local image in the original image are recorded, where n is a set parameter. When n=1, the global image is extracted, and when n>1, the local image is extracted; The global and local image coordinate extraction module repeatedly performs the above global or local image coordinate acquisition operation N times, and the parameter n=i during the i-th execution, obtains the coordinates of the upper left corner and the lower right corner of the global or local image at N image scales, and splices the coordinates of the upper left corner and the lower right corner of the global or local image at each image scale to obtain the coordinate vectors (x l ,y l ,x r ,y r ), the dimension of the vector is Q, where Q = 1 + 2 2 +3 2 +…+N 2 ; The step S3 specifically comprises the following steps: Step S31: Let the input of the temporal attention mechanism module be F in , whose dimension is C×h x × x ; First change the input feature F in , the dimensions are Q×c×h x × x , and get the feature F reshape , where c = C / Q, Q is the number of local and global images; Step S32: F in step S31 reshape Input the spatial pooling layer and channel pooling layer in sequence. First, F reshape Input to the spatial pooling layer and get the output F spatial , whose dimensions are Q×c×1×1, F spatial The calculation formula is: F spatial =Maxpool(F reshape )+Avgpool(F reshape ) Among them, Maxpool(*) represents the spatial maximum pooling layer with a step size of 1, and Avgpool(*) represents the spatial average pooling layer with a step size of 1; Then F spatial Input to the channel pooling layer and get the output F channel , whose dimensions are Q×1×1×1, F channel The calculation formula is: F channel =Conv 1×1 (Concat(CMaxpool(F spatial ),CAvgpool(F spatial ))) Among them, CMaxpool(*) represents the channel maximum pooling layer with a step size of 1, CAvgpool(*) represents the channel average pooling layer with a step size of 1, Concat(·) represents the concatenation of features in a new dimension, Conv 1×1 (*) indicates a convolutional layer with a kernel size of 1×1 for dimensionality reduction; Step S33: F in step S32 channel Use the Reshape operation to change its dimension from Q×1×1×1 to Q, and then channel The attention mechanism is used to obtain the importance of different global or local images learned by the model, so as to determine which images in the local and global images have a greater impact on the quality evaluation of the overall image; the sigmoid function is then used to map the values ​​to (0, 1) to obtain the feature weight w time , w time Through the Reshape operation, its dimension is changed from Q to Q×1×1×1, and then the feature weight is used as the guidance weight for the local and global images, that is, the initial input image feature F in Multiply by weight w time Plus F in , the final output of the temporal attention mechanism module is F time , the dimension is C×h x × x , F time The calculation formula is: w time =Sigmoid(MLP1(Reshape1(F channel ))) F time =F in +(F in ×Reshape2(w time )) The step S4 specifically comprises the following steps: Step S41: Based on one of the image classification networks including ResNet50 and ResNet101, a backbone network is established, and the last layer of the backbone network is removed to serve as a feature extraction network; Step S42: Input a batch of images in the training set into the feature extraction network in step S41, and the feature extraction network outputs image features F backbone , whose dimension is C×h x × x , C is the number of channels of the image feature; at the same time, the image is input into the global and local image coordinate extraction module to obtain the coordinates of the upper left corner and lower right corner of the local and global images; Step S43: Since the same image has global images and local images of different sizes, and the feature dimensions need to be the same in the neural network batch processing stage, the output image feature F backbone The upper left corner and lower right corner coordinates of the local and global images corresponding to the global and local image coordinate extraction modules are input into the region of interest correction module to obtain the local and global image features F of the same dimension. align , its dimension is C×poolsize×poolsize, where poolsize is the size of the image feature; Step S44: The feature F output from step S43 align Input it into the temporal attention mechanism module constructed in step S3 to obtain the output F of the temporal attention mechanism time , then F time Input into the bidirectional gate controlled recurrent unit network to simulate the sequential viewing of local parts of the image when humans evaluate image quality, and obtain the output F bigru , whose dimension is Q×C; Step S45: For the output F of step S44 bigru First, use the Reshape operation to change its dimension from Q×C to P, P = Q×C, and then F bigru Input into the last two fully connected layers to obtain the final image quality evaluation score F out , whose dimension is 1, represents the quality score of the image, and its calculation formula is: F out =MLP2(Reshape3(F bigru )) Step S46: Calculate the loss function of the reference-free image quality assessment network that integrates local and global image features as follows: Among them, m is the number of samples, y i represents the true quality score of the image, It represents the quality score of the image obtained by the reference-free image quality assessment network that integrates local and global image features; the true quality score of each global image and local image is the same as the true quality score of the image to which it belongs; Step S47: Repeat the above steps S42 to S46 in batches until the loss value calculated in step S46 converges and stabilizes, save the network parameters, and complete the training process of the reference-free image quality assessment network that integrates local and global image features.

2. The method for no-reference image quality assessment by integrating local and global features according to claim 1, characterized in that: The step S1 specifically includes the following steps: Step S11: pairing images in the distorted image dataset with their corresponding labels; Step S12: Divide the images in the distorted image data set into a training set and a test set according to a set ratio; Step S13: scaling all the images to be trained in the training set to a fixed size of H×W; Step S14: performing a uniform random flipping operation on the image processed in step S13 to enhance the data; Step S15: normalize the images processed in step S14 and the images in the test set.

3. The method for no-reference image quality assessment by integrating local and global features according to claim 1, characterized in that: In step S5, the images in the test set are input into the trained no-reference image quality assessment network model, and the quality scores corresponding to the images are output.

4. A reference-free image quality assessment system integrating local and global features, characterized in that: The method comprises a memory, a processor, and computer program instructions stored in the memory and executable by the processor. When the processor executes the computer program instructions, the method steps as described in any one of claims 1 to 3 can be implemented.