A method for evaluating video quality without reference, a method for training a model and a device

Through the reference-free video quality assessment method, feature vectors are directly extracted from videos to generate assessment scores, which solves the problem of high complexity of video quality assessment in the existing technology and improves assessment efficiency.

CN110837842BActive Publication Date: 2024-09-06TENCENT TECHNOLOGY (SHENZHEN) CO LTD +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN201910865571.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-12
Publication Date
2024-09-06
Estimated Expiration
2040-07-09

AI Technical Summary

Technical Problem

Existing video quality assessment methods are complex and require secondary processing of network model output results, resulting in high prediction complexity and low efficiency.

Method used

Using a reference-free video quality assessment method, the video quality assessment model directly extracts feature vectors from the video to be evaluated and generates spatial and temporal prediction scores to achieve end-to-end video quality assessment and avoid secondary processing of model output results.

Benefits of technology

The video quality prediction process is simplified, the prediction complexity is reduced, and the efficiency of video quality assessment is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110837842B
    Figure CN110837842B
Patent Text Reader

Abstract

The present application discloses a method for video quality assessment without reference, which is applied to the field of artificial intelligence, and includes: obtaining a video to be evaluated, wherein the video to be evaluated includes multiple frames of images; obtaining a feature vector set of the video to be evaluated through a video quality assessment model, wherein the feature vector set includes multiple feature vectors, and the feature vectors have a corresponding relationship with the image; obtaining a spatial feature vector and a time domain feature vector corresponding to the feature vector set through the video quality assessment model; generating a target assessment score through the video quality assessment model according to the spatial feature vector and the time domain feature vector, wherein the target assessment score includes a spatial prediction score and a time domain prediction score, wherein the spatial prediction score is generated according to the spatial feature vector, and the time domain prediction score is generated according to the time domain feature vector. The present application also discloses a method and device for model training. The present application reduces the complexity of prediction, thereby improving the efficiency of video quality prediction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence, and in particular to a method for non-reference video quality assessment, a method and a device for model training. Background Art

[0002] With the rapid development of online video services, various video services such as video on demand, live video, video calls, and other services have become an important part of people's lives, and users' requirements for video quality are also increasing day by day. The success of video services depends largely on whether they can meet users' quality requirements. Therefore, accurate and effective evaluation of video quality provides a reasonable measure for service providers and network operators to optimize service performance.

[0003] However, the current video quality assessment method only trains the backbone network, learns features with the help of the network model, and obtains prediction results using machine learning methods. The prediction results output by the network model also need to be further processed and evaluated, which leads to greater implementation complexity. Summary of the invention

[0004] The embodiments of the present application provide a method for reference-free video quality assessment, a method for model training, and a device, which can achieve prediction using only one video quality assessment model. During the entire prediction process, there is no need to perform secondary processing on the results output by the model, thereby reducing the complexity of the prediction and improving the efficiency of video quality prediction.

[0005] In view of this, the first aspect of the present application provides a method for no-reference video quality assessment, comprising:

[0006] Acquire a video to be evaluated, wherein the video to be evaluated includes multiple frames of images;

[0007] Acquire a feature vector set of the video to be evaluated through a video quality evaluation model, wherein the feature vector set includes a plurality of feature vectors, and the feature vectors have a corresponding relationship with the image;

[0008] Acquire the spatial domain feature vector and the temporal domain feature vector corresponding to the feature vector set through the video quality assessment model;

[0009] According to the spatial domain feature vector and the temporal domain feature vector, a target evaluation score is generated through the video quality assessment model, wherein the target evaluation score includes a spatial domain prediction score and a temporal domain prediction score, the spatial domain prediction score is generated according to the spatial domain feature vector, and the temporal domain prediction score is generated according to the temporal domain feature vector.

[0010] A second aspect of the present application provides a model training method, comprising:

[0011] Obtain a feature map sequence corresponding to a video to be trained, wherein the video to be trained includes M frames of images, the feature map sequence includes M feature maps, the feature maps have a corresponding relationship with the images, and M is an integer greater than 1;

[0012] Processing the feature graph sequence to obtain a first feature vector set and a second feature vector set, wherein the first feature vector set includes M first feature vectors, and the second feature vector set includes M second feature vectors;

[0013] Acquire a spatial domain feature vector and a temporal domain feature vector according to the first feature vector set, wherein the spatial domain feature vector is used to determine a spatial domain prediction score, the temporal domain feature vector is used to determine a temporal domain prediction score, and the temporal domain feature vector and the temporal domain prediction score are used to determine a first loss value;

[0014] Acquire an auxiliary feature vector according to the second feature vector set, wherein the auxiliary feature vector is used to determine an auxiliary prediction score, and the auxiliary prediction score is used to determine a second loss value;

[0015] If the target loss value reaches convergence, a video quality assessment model is obtained through training, wherein the target loss value is determined based on the first loss value and the second loss value.

[0016] A third aspect of the present application provides a non-reference video quality assessment device, comprising:

[0017] An acquisition module, used for acquiring a video to be evaluated, wherein the video to be evaluated includes multiple frames of images;

[0018] The acquisition module is further used to acquire a feature vector set of the video to be evaluated through a video quality evaluation model, wherein the feature vector set includes a plurality of feature vectors, and the feature vectors have a corresponding relationship with the image;

[0019] The acquisition module is further used to acquire the spatial domain feature vector and the temporal domain feature vector corresponding to the feature vector set through the video quality assessment model;

[0020] A generation module is used to generate a target evaluation score through the video quality assessment model according to the spatial domain feature vector and the temporal domain feature vector, wherein the target evaluation score includes a spatial domain prediction score and a temporal domain prediction score, the spatial domain prediction score is generated according to the spatial domain feature vector, and the temporal domain prediction score is generated according to the temporal domain feature vector.

[0021] In a possible design, in a first implementation of the third aspect of the embodiments of the present application,

[0022] The acquisition module is specifically used to acquire an original video, wherein the original video includes Q frame images, wherein Q is an integer greater than 1;

[0023] Extracting a video to be processed from the original video according to a preset sampling rate, wherein the video to be processed includes P frames of images to be processed, where P is an integer greater than 1 and less than or equal to Q;

[0024] Normalization processing is performed on each frame of the image to be processed in the video to be processed to obtain the video to be evaluated, wherein the video to be evaluated includes P frame images.

[0025] In a possible design, in a second implementation of the third aspect of the embodiments of the present application,

[0026] The acquisition module is specifically used to acquire a feature graph sequence of the video to be evaluated through a convolutional neural network, wherein the feature graph sequence includes a plurality of feature graphs, the feature graphs have a corresponding relationship with the image, and the convolutional neural network belongs to the video quality evaluation model;

[0027] The feature vector set corresponding to the feature map sequence is obtained through a global average pooling GAP layer, wherein the feature vector has a corresponding relationship with the feature map, and the GAP layer belongs to the video quality assessment model.

[0028] In a possible design, in a third implementation of the third aspect of the embodiments of the present application,

[0029] The acquisition module is specifically used to acquire the spatial domain feature vector corresponding to the feature vector set through the video quality assessment model;

[0030] Obtaining a first scale feature vector and a second scale feature vector corresponding to the feature vector set through the video quality assessment model, wherein the first scale feature vector corresponds to a U frame image, the second scale feature vector corresponds to a V frame image, U is an integer greater than or equal to 1, and V is an integer greater than or equal to 1 and different from V;

[0031] The time domain feature vector is determined according to the first scale feature vector and the second scale feature vector.

[0032] In a possible design, in a fourth implementation of the third aspect of the embodiments of the present application,

[0033] The acquisition module is specifically used to acquire a first set of to-be-processed feature vectors corresponding to the feature vector set through a first fully connected layer, wherein the first set of to-be-processed feature vectors includes a plurality of first to-be-processed feature vectors, the first to-be-processed feature vectors have a corresponding relationship with the feature vector, and the first fully connected layer belongs to the video quality assessment model;

[0034] Obtaining, through a second fully connected layer, a second set of feature vectors to be processed corresponding to the first set of feature vectors to be processed, wherein the second set of feature vectors to be processed includes a plurality of second feature vectors to be processed, the second feature vectors to be processed have a corresponding relationship with the first feature vectors to be processed, and the second fully connected layer belongs to the video quality assessment model;

[0035] The spatial domain feature vector is determined according to the second set of feature vectors to be processed.

[0036] In a possible design, in a fifth implementation of the third aspect of the embodiments of the present application, the no-reference video quality assessment device further includes a calculation module;

[0037] The calculation module is used for obtaining the weight parameter corresponding to each element in the spatial domain feature vector after the acquisition module determines the spatial domain feature vector according to the second set of feature vectors to be processed;

[0038] According to the weight parameter corresponding to each element, weighted sum processing is performed on each element to obtain the spatial domain prediction score;

[0039] Specifically, the airspace prediction score is calculated in the following manner:

[0040] Sspa=W1×A1+W2×B1;

[0041] Among them, the Sspa represents the spatial domain prediction score, the W1 represents the first weight parameter, the W2 represents the first weight parameter, the A1 represents the first element in the spatial domain feature vector, and the B1 represents the second element in the spatial domain feature vector.

[0042] In a possible design, in a sixth implementation of the third aspect of the embodiments of the present application,

[0043] The acquisition module is specifically configured to generate a first-scale feature vector to be processed corresponding to the first-scale feature vector by using a first function;

[0044] Using a second function to generate a second-scale feature vector to be processed corresponding to the first-scale feature vector to be processed;

[0045] Using the first function to generate a third-scale feature vector to be processed corresponding to the second-scale feature vector;

[0046] Using the second function to generate a fourth-scale feature vector to be processed corresponding to the third-scale feature vector to be processed;

[0047] The time domain feature vector is determined according to the second-scale feature vector to be processed and the fourth-scale feature vector to be processed.

[0048] In a possible design, in a seventh implementation manner of the third aspect of the embodiments of the present application, the no-reference video quality assessment device further includes a calculation module;

[0049] The calculation module is further configured to obtain a weight parameter corresponding to each element in the time domain feature vector after the acquisition module determines the time domain feature vector according to the second-scale feature vector to be processed and the fourth-scale feature vector to be processed;

[0050] Performing weighted sum processing on each element according to the weight parameter corresponding to each element to obtain the time domain prediction score;

[0051] Specifically, the time domain prediction score is calculated in the following manner:

[0052] Stem=K1×A2+K2×B2;

[0053] Among them, the Stem represents the time domain prediction score, the K1 represents the third weight parameter, the K2 represents the fourth weight parameter, the A2 represents the first element in the time domain feature vector, and the B2 represents the second element in the time domain feature vector.

[0054] A fourth aspect of the present application provides a model training device, comprising:

[0055] An acquisition module, used to acquire a feature map sequence corresponding to a video to be trained, wherein the video to be trained includes M frames of images, the feature map sequence includes M feature maps, the feature maps have a corresponding relationship with the images, and M is an integer greater than 1;

[0056] A processing module, configured to process the feature graph sequence acquired by the acquisition module to obtain a first feature vector set and a second feature vector set, wherein the first feature vector set includes M first feature vectors, and the second feature vector set includes M second feature vectors;

[0057] The acquisition module is further used to acquire a spatial domain feature vector and a time domain feature vector according to the first feature vector set obtained by the processing module, wherein the spatial domain feature vector is used to determine a spatial domain prediction score, the time domain feature vector is used to determine a time domain prediction score, and the time domain feature vector and the time domain prediction score are used to determine a first loss value;

[0058] The acquisition module is further used to acquire an auxiliary feature vector according to the second feature vector set obtained by the processing module, wherein the auxiliary feature vector is used to determine an auxiliary prediction score, and the auxiliary prediction score is used to determine a second loss value;

[0059] A training module is used to train a video quality assessment model if a target loss value reaches convergence, wherein the target loss value is determined based on the first loss value and the second loss value.

[0060] In a possible design, in a first implementation of the fourth aspect of the embodiments of the present application, the model training device further includes a determination module;

[0061] The determination module is used for determining the spatial domain prediction score according to the spatial domain feature vector after the acquisition module acquires the spatial domain feature vector and the temporal domain feature vector according to the first feature vector set;

[0062] The determination module is further used to determine the time domain prediction score according to the time domain feature vector;

[0063] The determination module is further used to determine a first sub-loss value according to the spatial domain prediction score and the spatial domain true score;

[0064] The determination module is further used to determine a second sub-loss value according to the time domain prediction score and the time domain true score;

[0065] The determination module is further used to determine the first loss value according to the first sub-loss value and the second sub-loss value.

[0066] In a possible design, in a second implementation of the fourth aspect of the embodiments of the present application,

[0067] The determining module is further configured to determine the auxiliary prediction score according to the auxiliary feature vector after the obtaining module obtains the auxiliary feature vector according to the second feature vector set;

[0068] The determination module is further used to determine the second loss value according to the auxiliary prediction score and the auxiliary true score.

[0069] In a possible design, in a third implementation of the fourth aspect of the embodiments of the present application, the model training device further includes a computing module;

[0070] The calculation module is used to obtain a first weight value corresponding to the first loss value before the training module trains to obtain a video quality assessment model;

[0071] Obtaining a second weight value corresponding to the second loss value;

[0072] According to the first weight value and the second weight value, performing weighted sum processing on the first loss value and the second loss value to obtain the target loss value;

[0073] The target loss value is calculated as follows:

[0074] Ltotal=a×L1+b×L2;

[0075] Among them, Ltotal represents the target loss value, a represents the first weight value, b represents the second weight value, L1 represents the first loss value, and L2 represents the second loss value.

[0076] A fifth aspect of the present application provides an electronic device, including: a memory, a transceiver, a processor, and a bus system;

[0077] Wherein, the memory is used to store programs;

[0078] The processor is used to execute the program in the memory, comprising the following steps:

[0079] Acquire a video to be evaluated, wherein the video to be evaluated includes multiple frames of images;

[0080] Acquire a feature vector set of the video to be evaluated through a video quality evaluation model, wherein the feature vector set includes a plurality of feature vectors, and the feature vectors have a corresponding relationship with the image;

[0081] Acquire the spatial domain feature vector and the temporal domain feature vector corresponding to the feature vector set through the video quality assessment model;

[0082] Generate a target evaluation score through the video quality assessment model according to the spatial feature vector and the temporal feature vector, wherein the target evaluation score includes a spatial prediction score and a temporal prediction score, the spatial prediction score is generated according to the spatial feature vector, and the temporal prediction score is generated according to the temporal feature vector;

[0083] The bus system is used to connect the memory and the processor so that the memory and the processor can communicate with each other.

[0084] A sixth aspect of the present application provides an electronic device, including: a memory, a transceiver, a processor, and a bus system;

[0085] Wherein, the memory is used to store programs;

[0086] The processor is used to execute the program in the memory, comprising the following steps:

[0087] Obtain a feature map sequence corresponding to a video to be trained, wherein the video to be trained includes M frames of images, the feature map sequence includes M feature maps, the feature maps have a corresponding relationship with the images, and M is an integer greater than 1;

[0088] Processing the feature graph sequence to obtain a first feature vector set and a second feature vector set, wherein the first feature vector set includes M first feature vectors, and the second feature vector set includes M second feature vectors;

[0089] Acquire a spatial domain feature vector and a temporal domain feature vector according to the first feature vector set, wherein the spatial domain feature vector is used to determine a spatial domain prediction score, the temporal domain feature vector is used to determine a temporal domain prediction score, and the temporal domain feature vector and the temporal domain prediction score are used to determine a first loss value;

[0090] Acquire an auxiliary feature vector according to the second feature vector set, wherein the auxiliary feature vector is used to determine an auxiliary prediction score, and the auxiliary prediction score is used to determine a second loss value;

[0091] If the target loss value reaches convergence, a video quality assessment model is obtained through training, wherein the target loss value is determined according to the first loss value and the second loss value;

[0092] The bus system is used to connect the memory and the processor so that the memory and the processor can communicate with each other.

[0093] A seventh aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the methods described in the above aspects.

[0094] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0095] In an embodiment of the present application, a method for non-reference video quality assessment is provided, firstly obtaining a video to be evaluated, the video to be evaluated includes multiple frames of images, then obtaining a feature vector set of the video to be evaluated through a video quality assessment model, the feature vector set includes multiple feature vectors, the feature vectors have a corresponding relationship with the image, then obtaining the spatial feature vector and the time domain feature vector corresponding to the feature vector set through the video quality assessment model, and finally generating a target assessment score through the video quality assessment model, the target assessment score includes a spatial prediction score and a time domain prediction score, the spatial prediction score is generated based on the spatial feature vector, and the time domain prediction score is generated based on the time domain feature vector. In the above manner, since all the parameters in the entire video quality assessment model are learned in an end-to-end manner, prediction can be achieved using only one video quality assessment model, that is, an evaluation score can be obtained by inputting a video to be evaluated, and in the entire prediction process, there is no need to perform secondary processing on the results output by the model, thereby reducing the complexity of the prediction, thereby improving the efficiency of video quality prediction. BRIEF DESCRIPTION OF THE DRAWINGS

[0096] Figure 1 A schematic diagram of the architecture of a video quality assessment system in an embodiment of the present application;

[0097] Figure 2 A schematic diagram of a video quality assessment model in an embodiment of the present application;

[0098] Figure 3 A schematic diagram of an embodiment of a method for evaluating quality of a reference-free video in an embodiment of the present application;

[0099] Figure 4 This is a schematic diagram of an embodiment of sampling a video to be processed in an embodiment of the present application;

[0100] Figure 5 A schematic diagram of the structure of the skeleton network in the embodiment of the present application;

[0101] Figure 6 This is a schematic diagram of an embodiment of generating a feature vector set based on a skeleton network in an embodiment of the present application;

[0102] Figure 7 A schematic diagram of the structure of a depth-separable convolution in an embodiment of the present application;

[0103] Figure 8 A schematic diagram of the structure of a fully connected layer in an embodiment of the present application;

[0104] Fig. 9 A schematic diagram of an embodiment of generating a spatial feature vector in an embodiment of the present application;

[0105] Fig.10A schematic diagram of the structure of the temporal relationship reasoning module in the embodiment of the present application;

[0106] Fig.11 A schematic diagram of an embodiment of generating a time domain feature vector in an embodiment of the present application;

[0107] Fig.12 This is a schematic diagram of an embodiment of the method for model training in the embodiments of the present application;

[0108] Fig.13 A schematic diagram of the structure of a deep supervision module in an embodiment of the present application;

[0109] Fig.14 A schematic diagram of an embodiment of generating an auxiliary feature vector in an embodiment of the present application;

[0110] Fig.15 A schematic diagram of an embodiment of a device for assessing quality of a video without a reference in an embodiment of the present application;

[0111] Fig.16 It is a schematic diagram of another embodiment of the device for assessing quality of a video without a reference in an embodiment of the present application;

[0112] Fig.17 This is a schematic diagram of an embodiment of a model training device in an embodiment of the present application;

[0113] Fig.18 This is another schematic diagram of an embodiment of the model training device in the embodiment of the present application;

[0114] Fig.19 This is another schematic diagram of an embodiment of the model training device in the embodiment of the present application;

[0115] Fig. 20 This is a schematic diagram of an embodiment of an electronic device in an embodiment of the present application;

[0116] Fig.21 This is a schematic diagram of another embodiment of the electronic device in the embodiment of the present application. DETAILED DESCRIPTION

[0117] The embodiments of the present application provide a method for reference-free video quality assessment, a method for model training, and a device, which can achieve prediction using only one video quality assessment model. During the entire prediction process, there is no need to perform secondary processing on the results output by the model, thereby reducing the complexity of the prediction and improving the efficiency of video quality prediction.

[0118] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "corresponding to" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0119] With the research and progress of Artificial Intelligence (AI) technology, AI technology has been studied and applied in many fields, such as common smart homes, smart wearable devices, virtual assistants, smart speakers, smart marketing, driverless cars, autonomous driving, drones, robots, smart medical care, smart customer service, etc. It is believed that with the development of technology, AI technology will be applied in more fields and play an increasingly important role.

[0120] Artificial intelligence is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.

[0121] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0122] It should be understood that the technical solution provided by the present application can be applied to video processing scenarios based on artificial intelligence, and specifically can be applied to scenarios for evaluating the quality of video calls. Effective and real-time evaluation of the quality of real-time video calls can help video service providers provide better services. In recent years, with the large-scale launch of various fourth-generation mobile communication technology (4G) terminals and the continuous breakthroughs in the fifth-generation mobile communication technology (5th-Generation), the speed of wireless networks has increased rapidly. Various video call and video conferencing applications (such as instant messaging applications and online conference applications, etc.) are increasingly widely used in real life. However, various distortions are introduced in the process of video acquisition, encoding, transmission and decoding, which seriously affect the quality of the video and the user's experience of watching the video. As a video service provider, in order to provide users with a better video viewing experience, it is necessary to establish an evaluation standard for the quality of the video obtained by users, that is, to detect and quantify the user experience quality of these video calls. Therefore, the demand for quality evaluation of real-time video calls proposed in this application is very urgent.

[0123] Although some technologies currently available on the market can also evaluate video quality, due to the distortion characteristics of real-time video calls and the requirements for time complexity, most of these methods are traditional machine learning methods, and the quality evaluation of real-time video calls is often unsatisfactory. Therefore, this application uses the feature learning ability of deep convolutional networks to evaluate the quality of videos in real time, efficiently and conveniently through joint modeling in the spatial and temporal domains.

[0124] For ease of understanding, this application proposes a method for no-reference video quality assessment, which is applied to Figure 1 The video quality assessment system shown in Figure 1 , Figure 1This is a schematic diagram of the architecture of the video quality assessment system in the embodiment of the present application. As shown in the figure, user A and user B need to conduct a remote conference. User A uses terminal device A and user B uses terminal device B. When terminal device A establishes a communication connection with the application server, and terminal device B also establishes a communication connection with the application server, user A and user B can start a video conference. During the video conference, the application server can detect the quality of the video call in real time, that is, a video quality assessment model is deployed in the application server. The video quality assessment model is used to perform quality assessment on the video obtained in real time, so that the background operation and maintenance personnel can analyze and improve the service status according to the evaluation results of the video. It can be understood that the video quality assessment model can also be deployed on the terminal device side, and the terminal device performs quality analysis on the video and reports the analysis results to the background operation and maintenance personnel.

[0125] It should be noted that terminal devices include but are not limited to tablet computers, laptops, PDAs, mobile phones, voice interaction devices and personal computers (PCs), which are not limited here. Among them, voice interaction devices include but are not limited to smart speakers and smart home appliances.

[0126] The following is an introduction to the video quality assessment model. For ease of explanation, please refer to Figure 2 , Figure 2 This is a structural diagram of the video quality assessment model in the embodiment of the present application. As shown in the figure, during the prediction process, the video outputs a target assessment score after passing through the video quality assessment model. Specifically, the video quality assessment model used for prediction includes a backbone network, a temporal relation reasoning module, and a fusion unit. During the training process, a deep supervision module is also required. Specifically, the video quality assessment model used for training includes a backbone network, a temporal relation reasoning module, a deep supervision module, and a fusion unit.

[0127] This application uses the powerful feature learning ability of deep convolutional networks to effectively extract the temporal distortion features common in real-time video calls, such as frame freezes, sudden brightness changes, and motion blur caused by severe shaking, through the temporal reasoning module, and then combines the spatial features extracted by the network to evaluate the quality of the call in real time without reference, thus solving the problem of user experience quality evaluation of real-time video calls. Among them, the no-reference evaluation method is very flexible because it does not require source video information to provide reference, and is more valuable for research and practical use than the full-reference and semi-reference evaluation methods.

[0128] Combined with the above introduction, the solution provided in the embodiment of the present application involves artificial intelligence computer vision and other technologies. Computer vision technology (Computer Vision, CV) Computer vision is a science that studies how to make machines "see". To put it more concretely, it refers to machine vision such as using cameras and computers to replace human eyes to identify, track and measure targets, and further perform graphic processing so that computer processing becomes an image that is more suitable for human eye observation or transmission to instrument detection. As a scientific discipline, computer vision studies related theories and technologies, and attempts to establish an artificial intelligence system that can obtain information from images or multidimensional data. Computer vision technology generally includes image processing, image recognition, image semantic understanding, image retrieval, OCR, video processing, video semantic understanding, video content / behavior recognition, three-dimensional object reconstruction, 3D technology, virtual reality, augmented reality, simultaneous positioning and map construction, and other technologies, as well as common biometric recognition technologies such as face recognition and fingerprint recognition.

[0129] The following is an introduction to the method of no-reference video quality assessment in this application. Figure 3 In one embodiment of the method for evaluating quality of a video without a reference in the present application, the method includes:

[0130] 101. Obtain a video to be evaluated, wherein the video to be evaluated includes multiple frames of images;

[0131] In this embodiment, the non-reference video quality assessment device obtains the video to be evaluated. It can be understood that the non-reference video quality assessment device can be deployed on the server side or on the terminal device side. This application is introduced by taking deployment on the server side as an example, but this should not be understood as a limitation of this application.

[0132] The video to be evaluated includes multiple frames of images, which are usually in red, green, and blue (RGB) format. Video is composed of multiple consecutive still images, and there is a sequence correlation between these consecutive still images. Based on digital image processing technology and computer vision processing technology, video frame images can be intercepted from the video stream at a certain frequency to obtain the video to be evaluated.

[0133] 102. Obtain a feature vector set of the video to be evaluated through a video quality evaluation model, wherein the feature vector set includes a plurality of feature vectors, and the feature vectors have a corresponding relationship with the image;

[0134] In this embodiment, the server inputs the video to be evaluated into the video quality evaluation model, and the skeleton network in the video quality evaluation model extracts the feature vector set corresponding to the video to be evaluated. It can be understood that the feature vector set includes multiple feature vectors, and the feature vectors have a corresponding relationship with the image. Specifically, assuming that the video to be evaluated has 10 frames of images, each frame of the image corresponds to a feature vector, that is, the feature vector set includes 10 feature vectors.

[0135] 103. Obtaining a spatial domain feature vector and a temporal domain feature vector corresponding to the feature vector set through a video quality assessment model;

[0136] In this embodiment, the server inputs the feature vector set into at least one fully connected layer and a temporal reasoning module of the video quality assessment model, and at least one fully connected layer outputs the spatial domain feature vector corresponding to the feature vector set, and the temporal reasoning module outputs the temporal feature vector corresponding to the feature vector set. Among them, the spatial domain is also called the spatial domain, that is, the so-called pixel domain, and the processing in the spatial domain is the processing at the pixel level, such as image superposition at the pixel level. After Fourier transform, the spectrum of the image is obtained, which represents the energy gradient of the image. The time domain is also called the temporal domain, and the independent variable is time, that is, the horizontal axis is time and the vertical axis is the change of the image.

[0137] 104. Generate a target evaluation score through a video quality assessment model based on the spatial feature vector and the temporal feature vector, wherein the target evaluation score includes a spatial prediction score and a temporal prediction score, the spatial prediction score is generated based on the spatial feature vector, and the temporal prediction score is generated based on the temporal feature vector.

[0138] In this embodiment, a spatial domain prediction score can be calculated based on the spatial domain feature vector, and a temporal domain prediction score can be calculated based on the temporal domain feature vector, and the spatial domain prediction score and the temporal domain prediction score are input into a fusion unit in a video quality assessment model, and the fusion unit outputs a target assessment score. The target assessment score can be expressed as a subjective quality score (mean opinion score, MOS). For ease of explanation, please refer to Table 1, which is a schematic diagram of an evaluation measure of the target assessment score.

[0139] Table 1

[0140]

[0141] As can be seen from Table 1, five dimensions can be set when evaluating video quality, and the target evaluation score can be expressed as MOS score. Based on the MOS score, the quality of the current video can be understood. The higher the score, the better the video quality. Conversely, the lower the score, the worse the video quality. It can be understood that the evaluation dimensions and evaluation conditions shown in Table 1 are only for illustration and should not be construed as limiting the present application.

[0142] It can be understood that the target evaluation score is a fusion of two parts, namely the spatial prediction score and the temporal prediction score. The final target evaluation score can be calculated as follows:

[0143] S = α×Sspa + (1-α)×Stem;

[0144] Among them, S represents the target evaluation score, α represents the weight coefficient, which can be automatically learned by the network, for example, it can be 0.32, Sspa represents the spatial domain prediction score, and Stem represents the temporal domain prediction score.

[0145] In an embodiment of the present application, a method for non-reference video quality assessment is provided, firstly obtaining a video to be evaluated, the video to be evaluated includes multiple frames of images, then obtaining a feature vector set of the video to be evaluated through a video quality assessment model, the feature vector set includes multiple feature vectors, the feature vectors have a corresponding relationship with the image, then obtaining the spatial feature vector and the time domain feature vector corresponding to the feature vector set through the video quality assessment model, and finally generating a target assessment score through the video quality assessment model, the target assessment score includes a spatial prediction score and a time domain prediction score, the spatial prediction score is generated based on the spatial feature vector, and the time domain prediction score is generated based on the time domain feature vector. In the above manner, since all the parameters in the entire video quality assessment model are learned in an end-to-end manner, prediction can be achieved using only one video quality assessment model, that is, an evaluation score can be obtained by inputting a video to be evaluated, and in the entire prediction process, there is no need to perform secondary processing on the results output by the model, thereby reducing the complexity of the prediction, thereby improving the efficiency of video quality prediction.

[0146] Optionally, in the above Figure 3 On the basis of the corresponding embodiments, in a first optional embodiment of the method for non-reference video quality assessment provided by the embodiments of the present application, obtaining a video to be assessed may include:

[0147] Acquire an original video, wherein the original video includes Q frame images, wherein Q is an integer greater than 1;

[0148] Extracting a to-be-processed video from an original video according to a preset sampling rate, wherein the to-be-processed video includes P frames of to-be-processed images, where P is an integer greater than 1 and less than or equal to Q;

[0149] Normalization processing is performed on each frame of the image to be processed in the video to be processed to obtain a video to be evaluated, wherein the video to be evaluated includes P frame images.

[0150] This embodiment introduces a method for obtaining a video to be evaluated, that is, a method for preprocessing an original video to obtain a video to be evaluated is provided.

[0151] Specifically, the original video is an unprocessed video, and the original video includes Q frames of images. Then, multiple frames of images are extracted from the original video according to a preset sampling rate. These images constitute the video to be processed, and the video to be processed includes P frames of images to be processed. For ease of introduction, please refer to Figure 4 , Figure 4 This is a schematic diagram of an embodiment of sampling the video to be processed in an embodiment of the present application. As shown in the figure, it is assumed that the original video is 1 second, there are 8 frames of images in 1 second, that is, Q=8, and the preset sampling rate is 2 frames per second, so 2 frames of images can be taken from these 8 frames of images, such as taking out the 1st frame image and the 2nd frame image, so P=2.

[0152] This application can use Python's Open Source Computer Vision Library (CV) 2 to perform equally spaced and uniform frame sampling on each input raw video. The sampling rate can be set to 4 frames per second, so that each 10-second raw video will get 40 frames of images, which are the videos to be processed. Then, each frame of the images to be processed needs to be standardized. Image standardization is the process of centralizing data by removing the mean. According to the convex optimization theory and the knowledge related to data probability distribution, data centralization conforms to the law of data distribution, and it is easier to achieve generalization effect after training.

[0153] The image to be processed may be an RGB image. Taking an image to be processed as an example, assuming that the image to be processed is represented as I, the mean vector is set to [0.485, 0.456, 0.406], and the standard deviation vector is set to [0.229, 0.224, 0.225]. It can be understood that the data is set based on empirical values. After testing, the two sets of data set above have better normalization effects. Among them, the three parameters included in each set of data correspond to the three channels of red, green and blue respectively.

[0154] The image in the video to be evaluated is calculated using the following standardized processing formula:

[0155] ;

[0156] in, represents the image in the video to be evaluated, represents the image to be processed, represents the mean vector, Represents the standard deviation vector. Finally, the normalized image frames are stacked to obtain the video to be evaluated. The video to be evaluated can be represented as a 4-dimensional array, such as (40, 3, 960, 540), where 40 represents the number of batches, 3 represents the number of channels, i.e., RGB channels, 960 represents the length of the image, and 540 represents the width of the image. The array can be used as the network input in the training phase.

[0157] Based on the above introduction, preprocessing the original video can effectively improve the video processing efficiency. Please refer to Table 2, which is an illustration of the test results.

[0158] Table 2

[0159]

[0160] It can be seen that the technical solution provided by the present application has better real-time performance because it needs to process fewer image frames. In addition, the present application completes the video quality evaluation on the central processing unit (CPU) instead of the graphics processing unit (GPU), thereby further improving the processing efficiency. The test speed on a single-core CPU has reached 4 times the real-time speed.

[0161] Secondly, in an embodiment of the present application, a method for obtaining a video to be evaluated is provided, that is, obtaining an original video, then extracting a video to be processed from the original video according to a preset sampling rate, and normalizing each frame of the image to be processed in the video to be processed to obtain the video to be evaluated. In the above manner, some frames of images are extracted from the original video as the video to be evaluated, thereby reducing the number of frames of video processing and improving the efficiency of video processing. In addition, each frame of the video to be evaluated is normalized, so that the features between different images can be less different, thereby improving the efficiency of processing.

[0162] Optionally, in the above Figure 3 On the basis of the corresponding embodiments, in a second optional embodiment of the method for non-reference video quality assessment provided by the embodiment of the present application, obtaining a feature vector set of the video to be assessed through a video quality assessment model may include:

[0163] A feature map sequence of the video to be evaluated is obtained through a convolutional neural network. The feature map sequence includes multiple feature maps. The feature maps have a corresponding relationship with the image. The convolutional neural network belongs to a video quality evaluation model.

[0164] A set of feature vectors corresponding to a feature map sequence is obtained through a global average pooling GAP layer, wherein the feature vectors have a corresponding relationship with the feature maps, and the GAP layer belongs to a video quality assessment model.

[0165] In this embodiment, a method for obtaining a feature vector set is introduced. The server can extract the feature vector set using a convolutional neural network in a video quality assessment model. The convolutional neural network is a skeleton network. For ease of introduction, please refer to Figure 5 , Figure 5 This is a structural diagram of the skeleton network in the embodiment of the present application. As shown in the figure, the skeleton network is a convolutional neural network that shares spatial and temporal features, and is used to encode the RGB image in the video to be evaluated, obtain relatively high-level semantic information, and use the obtained feature map as the network input for subsequent extraction of spatial and temporal features. The skeleton network may include multiple processing modules, each of which includes two convolutional layers and a pooling layer, wherein the pooling layer is used for downsampling. The last processing module also includes a global average pooling (GAP) layer. It can be understood that Figure 5 The skeleton network structure shown is only a schematic diagram. In practical applications, the skeleton network may also include other numbers of processing modules, and each processing module is not limited to two convolutional layers.

[0166] Specifically, for ease of understanding, see Figure 6 , Figure 6 This is a schematic diagram of an embodiment of generating a feature vector set based on a skeleton network in an embodiment of the present application. As shown in the figure, it is assumed that the input video to be evaluated includes 10 frames of RGB images, and the length of each frame of the image is 224 and the width is 224, that is, the video to be evaluated is represented as 10*3*224*224. The video to be evaluated is input into the convolutional neural network in the video quality assessment model to obtain a feature map sequence of 10*7*7*256, where 10 represents 10 frames, that is, each image in the video to be evaluated corresponds to a feature map. The GAP layer uses [7,7] to average the feature map sequence to obtain a feature vector set of 10*1*256, where 10 represents 10 frames, that is, each image in the video to be evaluated corresponds to a feature vector, and each feature vector is represented as 1*256.

[0167] It is understandable that the skeleton network in the video quality assessment model can be Visual Geometry Group (VGG) 16, Residual Network (ResNet), Dense Network (DenseNet) or Mobile Network (MobileNet), etc., which are not limited here. However, considering the processing efficiency and accuracy, this application can use the lightweight MobileNet-v2 as the skeleton network.

[0168] The core idea of ​​MobileNet is to decompose the traditional convolution into a depth-wise separable convolution and a 1*1 convolution. Depth-wise separable convolution means that each channel of the input feature map corresponds to a convolution kernel, so that each channel of the output feature is only related to the channel corresponding to the input feature map. This convolution operation can significantly reduce the model size and computational complexity. For easier understanding, please refer to Figure 7 , Figure 7 This is a structural diagram of the deep separable convolution in the embodiment of the present application. As shown in the figure, MobileNet-v2 uses deep separable convolution (DSC) instead of ordinary convolution in the network structure. The computational complexity of deep separable convolution can generally be reduced to about 1 / 9 of that of traditional convolution. The assumption behind this convolution method is the decoupling of cross-channel correlation and cross-spatial correlation. Another advantage of applying deep separable convolution is the saving of parameters, which is actually the result of decoupling. The parameter description enjoys the multiplication gain of orthogonality.

[0169] Secondly, in an embodiment of the present application, a method for obtaining a feature vector set is provided, that is, first obtaining a feature map sequence of a video to be evaluated through a convolutional neural network, the feature map sequence includes multiple feature maps, and then obtaining a feature vector set corresponding to the feature map sequence through a GAP layer. In the above manner, a feature vector set can be directly obtained based on a video quality assessment model, and a lightweight skeleton network is used to extract feature vectors. The advantage of a lightweight skeleton network is that it has a small number of parameters, thereby improving the efficiency of feature extraction.

[0170] Optionally, in the above Figure 3 On the basis of the corresponding embodiments, in a third optional embodiment of the method for no-reference video quality assessment provided by the embodiments of the present application, obtaining a spatial feature vector and a temporal feature vector corresponding to a feature vector set through a video quality assessment model may include:

[0171] Obtaining a spatial domain feature vector corresponding to a feature vector set through a video quality assessment model;

[0172] Obtaining a first-scale feature vector and a second-scale feature vector corresponding to the feature vector set through a video quality assessment model, wherein the first-scale feature vector corresponds to a U-frame image, the second-scale feature vector corresponds to a V-frame image, U is an integer greater than or equal to 1, and V is an integer greater than or equal to 1 and different from V;

[0173] A time domain feature vector is determined according to the first scale feature vector and the second scale feature vector.

[0174] In this embodiment, a solution for determining spatial domain feature vectors and temporal domain feature vectors is introduced. That is, the server can input a feature vector set into at least one fully connected layer and a temporal reasoning module of a video quality assessment model, and at least one fully connected layer outputs a spatial domain feature vector corresponding to the feature vector set, and the temporal reasoning module outputs a temporal domain feature vector corresponding to the feature vector set.

[0175] Specifically, the feature vector set is input into the temporal reasoning module in the video quality assessment model, and the temporal reasoning module outputs multiple feature vectors of different scales. The so-called different scales refer to different numbers of image frames corresponding to the scale feature vectors. For example, the first scale feature vector includes U frame images, and the second scale feature vector includes V frame images, where U and V are two different integers. Finally, the time domain feature vector is generated based on the first scale feature vector and the second scale feature vector.

[0176] The biggest difference between video and image is that there is a temporal connection between the frame image sequences of the video. Therefore, when evaluating the quality of the video, this application uses the temporal reasoning module to obtain the loss caused by the distortion of the time dimension. This can effectively describe the common temporal distortion features of real-time video calls such as frame freezes, sudden changes in brightness, and motion blur caused by severe shaking. The traditional optical flow method is relatively slow. Although the new network optical flow has greatly improved the speed, there is still a gap in the demand for real-time application scenarios. The three-dimensional convolution is very slow to train, the number of parameters is too large, and it is difficult to converge. The defects are obvious in practical applications. Therefore, this application constructs a temporal reasoning module.

[0177] Secondly, in the embodiment of the present application, a scheme for determining a spatial feature vector and a time domain feature vector is provided. In the process of extracting the spatial feature vector, the spatial feature vector can be obtained through the video quality assessment model. In the process of extracting the time domain feature vector, the feature vectors of multiple scales and the second scale feature vector are obtained through the video quality assessment model, and the time domain feature vector is determined according to the feature vectors of different scales. In the above manner, the video quality assessment model can be used to simultaneously extract features in different dimensions, and a more comprehensive prediction can be made by combining the features of the spatial domain and the features of the time domain, so that a more accurate prediction effect can be obtained.

[0178] Optionally, in the above Figure 3 On the basis of the corresponding embodiments, in a fourth optional embodiment of the method for no-reference video quality assessment provided by the embodiments of the present application, obtaining a spatial feature vector corresponding to a feature vector set through a video quality assessment model may include:

[0179] Obtaining a first set of to-be-processed feature vectors corresponding to the feature vector set through a first fully connected layer, wherein the first set of to-be-processed feature vectors includes a plurality of first to-be-processed feature vectors, the first to-be-processed feature vectors have a corresponding relationship with the feature vector, and the first fully connected layer belongs to a video quality assessment model;

[0180] Obtaining a second set of feature vectors to be processed corresponding to the first set of feature vectors to be processed through a second fully connected layer, wherein the second set of feature vectors to be processed includes a plurality of second feature vectors to be processed, the second feature vectors to be processed have a corresponding relationship with the first feature vectors to be processed, and the second fully connected layer belongs to a video quality assessment model;

[0181] According to the second set of feature vectors to be processed, a spatial domain feature vector is determined.

[0182] In this embodiment, a method for determining a spatial feature vector is introduced. Figure 8 , Figure 8 This is a structural diagram of a fully connected layer in an embodiment of the present application, as shown in the figure. In the figure, only two fully connected layers are used as an example for introduction. It can be understood that in practical applications, there can also be other numbers of fully connected layers, which are not limited here. First, after the server obtains a set of feature vectors through the skeleton network in the video quality assessment model, the feature vector set is input into the first fully connected layer, and the first feature vector to be processed is output through the first fully connected layer. The first feature vector set to be processed includes multiple first feature vectors to be processed, and each first feature vector to be processed corresponds to a feature vector. The first feature vector set to be processed is input into the second fully connected layer, and the second feature vector set to be processed is output through the second fully connected layer. The second feature vector set to be processed includes multiple second feature vectors to be processed, and each second feature vector to be processed corresponds to a feature vector. The spatial domain feature vector can be obtained by averaging the second feature vector set to be processed.

[0183] Specifically, see Fig. 9 , Fig. 9This is a schematic diagram of an embodiment of generating a spatial feature vector in an embodiment of the present application. As shown in the figure, it is assumed that the input video to be evaluated includes 10 frames of RGB images, and the length of each frame of the image is 224 and the width is 224, that is, the video to be evaluated is represented as 10*3*224*224. The video to be evaluated is input into the convolutional neural network in the video quality assessment model to obtain a feature map sequence of 10*7*7*256, where 10 represents 10 frames, that is, each image in the video to be evaluated corresponds to a feature map. The GAP layer uses [7,7] to average the feature map sequence to obtain a feature vector set of 10*1*256, where 10 represents 10 frames, that is, each image in the video to be evaluated corresponds to a feature vector, and each feature vector is represented as 1*256. Taking the first frame image as an example, assuming that the feature vector corresponding to the i-th frame image is 1*256, the feature vector 1*256 is input to the first fully connected layer, and the first fully connected layer uses [256,128] to process the feature vector 1*256 to obtain the first feature vector 1*128 to be processed. The first feature vector 1*128 to be processed is input to the second fully connected layer, and the second fully connected layer uses [128,5] to process the feature vector 1*128 to obtain the second feature vector 1*5 to be processed, that is, a 5-dimensional quality distribution vector is obtained, such as (0.1, 0.2, 0.3, 0.4, 0), which means that the probability that the i-th frame image in the video to be evaluated belongs to the "excellent" category is 0.1, the probability that it belongs to the "good" category is 0.2, the probability that it belongs to the "medium" category is 0.3, the probability that it belongs to the "secondary" category is 0.4, and the probability that it belongs to the "poor" category is 0.

[0184] After each frame of the video to be evaluated has been processed as above, 10 second feature vectors to be processed are obtained. Then, the 10 second feature vectors to be processed are averaged on each element to obtain the spatial feature vector. Take the three frames of the video to be evaluated as an example. Assume that the second feature vector to be processed of the first frame is (0.1, 0.2, 0.3, 0.4, 0), the second feature vector to be processed of the second frame is (0.2, 0.5, 0.1, 0.1, 0.1), and the second feature vector to be processed of the third frame is (0.3, 0.2, 0.1, 0.3, 0.1). Therefore, the spatial feature vector (0.2, 0.3, 0.17, 0.27, 0.06) can be obtained by averaging each element.

[0185] Again, in an embodiment of the present application, a method for determining a spatial feature vector is provided, that is, a first set of feature vectors to be processed corresponding to a feature vector set is obtained through a first fully connected layer, and then a second set of feature vectors to be processed corresponding to the first set of feature vectors to be processed is obtained through a second fully connected layer, and finally, a spatial feature vector is determined according to the second set of feature vectors to be processed. In the above manner, a spatial feature vector can be obtained using multiple fully connected layers, thereby improving the feasibility and operability of the solution.

[0186] Optionally, in the above Figure 3 On the basis of the corresponding embodiments, in a fifth optional embodiment of the method for no-reference video quality assessment provided by the embodiment of the present application, after determining the spatial feature vector according to the second set of feature vectors to be processed, the following may also be included:

[0187] Obtain the weight parameter corresponding to each element in the spatial domain feature vector;

[0188] According to the weight parameter corresponding to each element, each element is weighted and summed to obtain the spatial domain prediction score;

[0189] The airspace prediction score is calculated as follows:

[0190] Sspa=W1×A1+W2×B1;

[0191] Among them, Sspa represents the spatial prediction score, W1 represents the first weight parameter, W2 represents the second weight parameter, A1 represents the first element in the spatial feature vector, and B1 represents the second element in the spatial feature vector.

[0192] In this embodiment, a method for calculating a spatial domain prediction score is introduced. For ease of understanding, please refer to Table 3, which is a schematic diagram of a spatial domain feature vector.

[0193] Table 3

[0194]

[0195] As can be seen from Table 3, the sum of all elements in the second feature vector to be processed corresponding to each frame of the image is 1, so the sum of all elements in the spatial feature vector is also 1. After obtaining the spatial feature vector, the spatial prediction score can be calculated as follows:

[0196] Sspa=W1×A1+W2×B1;

[0197] Among them, Sspa represents the spatial prediction score, W1 represents the first weight parameter, W2 represents the second weight parameter, A1 represents the first element in the spatial feature vector, and B1 represents the second element in the spatial feature vector.

[0198] It can be understood that the above formula is designed based on the example that the spatial feature vector includes elements of two dimensions. In practical applications, the above formula can be improved according to the number of dimensions. Assuming that the spatial feature vector is (0.2, 0.3, 0.17, 0.27, 0.06), the following formula can be used to calculate the spatial prediction score:

[0199] Sspa=W1×A1+W2×B1+W3×C1+W4×D1+W5×E1;

[0200] Assume W1 is 1, W2 is 2, W3 is 3, W4 is 4, and W5 is 5, so we get:

[0201] Sspa= 1×0.2+2×0.3+3×0.17+4×0.27+5×0.06=0.2+0.6+0.51+1.08+0.3=2.69

[0202] That is, Sspa expressed as a MOS score can be 2.69.

[0203] Furthermore, in an embodiment of the present application, a method for calculating the spatial prediction score is provided. Through the above method, combined with the weight value obtained from experience and the spatial feature vector output by the model, a final score can be obtained, which provides a feasible basis for the implementation of the solution, thereby improving the feasibility and operability of the solution.

[0204] Optionally, in the above Figure 3 On the basis of the corresponding embodiments, in a sixth optional embodiment of the method for non-reference video quality assessment provided by the embodiments of the present application, determining the time domain feature vector according to the first scale feature vector and the second scale feature vector may include:

[0205] Using a first function to generate a first-scale feature vector to be processed corresponding to the first-scale feature vector;

[0206] Using a second function to generate a second-scale feature vector to be processed corresponding to the first-scale feature vector to be processed;

[0207] Using the first function to generate a third-scale feature vector to be processed corresponding to the second-scale feature vector;

[0208] Using the second function to generate a fourth-scale feature vector to be processed corresponding to the third-scale feature vector to be processed;

[0209] A time domain feature vector is determined according to the feature vector to be processed at the second scale and the feature vector to be processed at the fourth scale.

[0210] In this embodiment, a method for determining a time domain feature vector is introduced. Starting from considering the temporal logic between frames, a model is established for the temporal logic relationship between multi-scale video frames, thereby extracting information on time domain distortion.

[0211] Specifically, for the feature map sequence with 40 channels extracted from the backbone network (the input channel is 3, and the number of channels increases after passing through the backbone network), random sampling of different scales is performed on the time series to obtain time series sequences of different lengths, and the time series connections of different scales are extracted using the following formula:

[0212] ;

[0213] in, Represents the temporal relationship between N ordered video frames, which can be calculated as follows:

[0214] ;

[0215] in, Represents the first function. The main function of the first function is to fuse the features of each sequence. Represents the second function, the main function of the second function is to one or more The following features are then fused. This application uses multilayer perceptrons (MLP) to implement the first and second functions. It can be represented as an ordered sequence consisting of at least one element, and the ordered sequence can be a scale feature vector. , The feature representation representing the i-th frame image can be a feature map output by a classic convolutional network model or a recurrent neural network.

[0216] Considering the convenience of model training, this application does not need to calculate the temporal relationship between all images, but performs sampling purposefully. The specific method is to first arrange the 40 frame images uniformly sampled from each video in chronological order to form Subset of , and use this subset Go to calculate .right Perform uniform downsampling with a step size of 2 (i.e., take one frame every two frames) (i.e., take 5 frames from 10 frames, which are the 1st, 3rd, 5th, 7th and 9th frames, instead of the 1st, 2nd, 3rd, 7th and 8th frames). Due to the different starting frame numbers, two different subsets of video frames can be obtained. as well as Then perform the same uniform downsampling on the above-obtained subsets, and obtain , , and , Similarly, continue uniform downsampling and obtain , , , , , , and Since there are only 5 frames left, downsampling is performed to obtain , , , , , , and , so there are only 24 frames left out of 40 frames.

[0217] Extract the temporal connections of the obtained subsets respectively. For the time scale with multiple subsets, first use the first function Fuse the features between frame images, then sum them up and pass them through the second function Fusion of results from different subsets to obtain the temporal relationship of the time scale . Sum the temporal connections of different time scales to obtain the final temporal connection of the video .

[0218] It is understandable that for the method of calculating the relationship between frames in the temporal reasoning module, other more effective and more boundary methods can be used to replace MLP. For the fusion method of the final prediction scores, a more reasonable dynamic weight allocation method can be designed, which is not limited this time.

[0219] For easier understanding, see Fig.10 , Fig.10 This is a structural diagram of the temporal relationship reasoning module in the embodiment of the present application. As shown in the figure, a video to be evaluated with a length of 10 frames is used as an example for introduction. The 1st to 10th frames of images are input into the skeleton network, and the skeleton network outputs the set of feature vectors corresponding to the 1st to 10th frames. The set of feature vectors corresponding to the 1st to 10th frames are spliced ​​to obtain a first-scale feature vector, wherein the first-scale feature vector corresponds to 10 frames of images, that is, U=10. The first-scale feature vector is used as the input of the first function to obtain a first-scale feature vector to be processed, and the first-scale feature vector to be processed is used as the input of the second function to obtain a second-scale feature vector to be processed.

[0220] right Perform uniform downsampling to obtain The first, third, fifth, seventh and ninth frames are imaged, and these five frames are spliced ​​to obtain the second scale feature vector, where the second scale feature vector corresponds to 5 frames of image, that is, V=5. Similarly, For the 2nd, 4th, 6th, 8th and 10th frames, the feature vector sets corresponding to the 1st to 10th frames are spliced ​​to obtain the second-scale feature vector, wherein the second-scale feature vector corresponds to 5 frames of images, that is, V = 5. A second-scale feature vector is used as the input of the first function to obtain a third-scale feature vector to be processed, another second-scale feature vector is also used as the input of the first function to obtain another third-scale feature vector to be processed, and both of the two third-scale feature vectors to be processed are used as the input of the second function to obtain a fourth-scale feature vector to be processed.

[0221] right Perform uniform downsampling to obtain The first, fifth and ninth frames are images, and these three frames are spliced ​​together and Perform uniform downsampling to obtain For the 2nd, 6th and 10th frames, these three frames are also spliced. and After the first function and the second function, the fifth scale feature vector to be processed can be obtained, which will not be described in detail this time. According to the second scale feature vector to be processed, the fourth scale feature vector to be processed and the fifth scale feature vector to be processed, the time domain feature vector is obtained by averaging.

[0222] To understand the specific process, see Fig.11 , Fig.11 This is a schematic diagram of an embodiment of generating a time domain feature vector in an embodiment of the present application. As shown in the figure, a video to be evaluated with a length of 10 frames of images is still taken as an example for introduction. T10 represents 10 frames of images. It is assumed that the feature vector set of these 10 frames is represented by 10*1*256. The feature vectors of these 10 frames of images are concatenated to obtain a feature vector of 1*2560. The feature vector 1*2560 is input into the first function. After passing through the first function, a first-scale feature vector 1*256 to be processed is obtained. The first-scale feature vector 1*256 to be processed is input into the second function. After passing through the second function, a second-scale feature vector 1*5 to be processed is obtained.

[0223] T5 represents 5 frames of images, including 2 groups of T5. The feature vector set corresponding to the first group of T5 is represented as 5*1*256. The feature vectors of these 5 frames of images are spliced ​​to obtain a feature vector of 1*1280. The feature vector 1*1280 is input into the first function. After the first function, the second scale feature vector 1*256 to be processed is obtained. The second scale feature vector 1*256 to be processed is then input into the second function to obtain a second scale feature vector 1*5 to be processed. Similarly, the feature vector set corresponding to the second group of T5 is also processed as above to obtain another third scale feature vector 1*256 to be processed. Then, the third scale feature vector to be processed corresponding to the first group of T5 and the third scale feature vector to be processed corresponding to the second group of T5 are averaged to obtain an average feature vector 1*256 to be processed. The average feature vector 1*256 to be processed is input into the second function to obtain a fourth scale feature vector 1*5 to be processed. Finally, the fourth scale feature vector 1*5 to be processed and the second scale feature vector 1*5 to be processed are averaged to obtain a time domain feature vector 1*5, where 5 represents 5 dimensions.

[0224] Again, in an embodiment of the present application, a method for determining a time domain feature vector is provided, that is, a first scale feature vector to be processed corresponding to a first scale feature vector is generated by a first function, a second scale feature vector to be processed corresponding to the first scale feature vector is generated by a second function, and a third scale feature vector to be processed corresponding to the second scale feature vector is generated by the first function, and a fourth scale feature vector to be processed corresponding to the third scale feature vector is generated by the second function, and finally, the time domain feature vector is determined according to the second scale feature vector to be processed and the fourth scale feature vector to be processed. In the above manner, in order to effectively extract the time domain distortion features common in real-time video calls such as motion blur caused by frame freezes, sudden brightness changes, and severe jitters, when evaluating the quality of the video, the damage caused by the distortion of the time dimension must be taken into account, and efficiency and accuracy must be considered comprehensively.

[0225] Optionally, in the above Figure 3 On the basis of the corresponding embodiments, in a seventh optional embodiment of the method for non-reference video quality assessment provided by the embodiment of the present application, after determining the time domain feature vector according to the second scale feature vector to be processed and the fourth scale feature vector to be processed, the method may further include:

[0226] Obtain the weight parameter corresponding to each element in the time domain feature vector;

[0227] According to the weight parameter corresponding to each element, each element is weighted and summed to obtain the time domain prediction score;

[0228] The time domain prediction score is calculated as follows:

[0229] Stem=K1×A2+K2×B2;

[0230] Among them, Stem represents the time domain prediction score, K1 represents the third weight parameter, K2 represents the fourth weight parameter, A2 represents the first element in the time domain feature vector, and B2 represents the second element in the time domain feature vector.

[0231] In this embodiment, a method for calculating a time domain prediction score is introduced. For ease of understanding, please refer to Table 4, which is a schematic diagram of a time domain feature vector.

[0232] Table 4

[0233]

[0234] As can be seen from Table 4, the sum of the quality score distribution corresponding to each frame of the image is 1, so the sum of each element in the time domain feature vector is also 1. After obtaining the time domain feature vector, the time domain prediction score can be calculated as follows:

[0235] Stem=K1×A2+K2×B2;

[0236] Among them, Stem represents the time domain prediction score, K1 represents the third weight parameter, K2 represents the fourth weight parameter, A2 represents the first element in the time domain feature vector, and B2 represents the second element in the time domain feature vector.

[0237] It can be understood that the above formula is designed based on the example that the time domain feature vector includes elements of two dimensions. In practical applications, the above formula can be improved according to the number of dimensions. Assuming that the time domain feature vector is (0.3, 0.1, 0.2, 0.2, 0.2), the time domain prediction score can be calculated using the following formula:

[0238] Stem=K1×A2+K2×B2+K3×C2+K4×D2+K5×E2;

[0239] Assume K1 is 1, K2 is 2, K3 is 3, K4 is 4, and K5 is 5, so we get:

[0240] Stem=1×0.3+2×0.1+3×0.2+4×0.2+5×0.2=0.3+0.2+0.6+0.8+1=2.9

[0241] That is, the Stem expressed as a MOS score can be 2.9.

[0242] Furthermore, in an embodiment of the present application, a method for calculating the time domain prediction score is provided. Through the above method, combined with the weight value obtained from experience and the time domain feature vector output by the model, a final score can be obtained, which provides a feasible basis for the implementation of the solution, thereby improving the feasibility and operability of the solution.

[0243] Combined with the above introduction, the following will introduce the model training method in this application, please refer to Fig.12 , one embodiment of the method for model training in the embodiments of the present application includes:

[0244] 201. Obtain a feature map sequence corresponding to a to-be-trained video, wherein the to-be-trained video includes M frames of images, the feature map sequence includes M feature maps, the feature maps have a corresponding relationship with the images, and M is an integer greater than 1;

[0245] In this embodiment, the model training device obtains the video to be trained. It can be understood that the model training device can be deployed on the server side or on the terminal device side. This application is introduced by taking the deployment on the server side as an example, but this should not be understood as a limitation of this application. Among them, the video to be trained includes M frames of images, which are usually RGB format images. The video is composed of a combination of multiple consecutive still images, and there is a serial correlation between these still continuous images. Based on digital image processing technology and computer vision processing technology, video frame images can be intercepted from the video stream at a certain frequency to obtain the video to be trained.

[0246] The server inputs the video to be trained into the video quality assessment model to be trained, and the video quality assessment model to be trained extracts a feature map sequence, wherein the video to be trained includes M frames of images, the feature map sequence includes M feature maps, and the feature maps have a corresponding relationship with the images. Specifically, assuming that the video to be trained has 10 frames of images, each frame of the image corresponds to a feature map, that is, the feature map sequence includes 10 feature maps.

[0247] 202. Process the feature graph sequence to obtain a first feature vector set and a second feature vector set, wherein the first feature vector set includes M first feature vectors, and the second feature vector set includes M second feature vectors;

[0248] In this embodiment, the server processes the feature map sequence through the GAP layer in the video quality assessment model to be trained to obtain a first feature vector set and a second feature vector set. Specifically, the first feature vector set includes M first feature vectors, each of which corresponds to a feature map, and the second feature vector set includes M second feature vectors, each of which corresponds to a feature map.

[0249] It can be understood that the second feature vector set is extracted by the deep supervision module. If there are multiple deep supervision modules, multiple second feature vector sets can be extracted. Figure 2 Taking the network architecture shown as an example, there are four deep supervision modules, each of which can extract a second feature vector set, and a total of four second feature vector sets are extracted.

[0250] 203. Obtain a spatial feature vector and a temporal feature vector according to the first feature vector set, wherein the spatial feature vector is used to determine a spatial prediction score, the temporal feature vector is used to determine a temporal prediction score, and the temporal feature vector and the temporal prediction score are used to determine a first loss value;

[0251] In this embodiment, the server inputs the first feature vector set into at least one fully connected layer and a temporal reasoning module of the video quality assessment model to be trained, and at least one fully connected layer outputs the spatial domain feature vector corresponding to the first feature vector set, and the temporal reasoning module outputs the time domain feature vector corresponding to the first feature vector set. Among them, the spatial domain is also called the spatial domain, that is, the so-called pixel domain, and the processing in the spatial domain is the processing at the pixel level, such as image superposition at the pixel level. After Fourier transform, the spectrum of the image is obtained, which represents the energy gradient of the image. The time domain is also called the time domain, and the independent variable is time, that is, the horizontal axis is time, and the vertical axis is the change of the image. The server determines the spatial domain prediction score corresponding to the spatial domain feature vector through the video quality assessment model to be trained, and determines the time domain prediction score corresponding to the time domain feature vector.

[0252] 204. Obtain an auxiliary feature vector according to the second feature vector set, wherein the auxiliary feature vector is used to determine an auxiliary prediction score, and the auxiliary prediction score is used to determine a second loss value;

[0253] In this embodiment, the server generates an auxiliary feature vector based on at least one second feature vector set. Similarly, an auxiliary prediction score is calculated based on the auxiliary feature vector, and the second loss value is determined using the predicted auxiliary prediction score and the actual auxiliary true score.

[0254] 205. If the target loss value reaches convergence, a video quality assessment model is obtained through training, wherein the target loss value is determined based on the first loss value and the second loss value.

[0255] In this embodiment, the input video to be trained is passed into the network in the form of batches for calculation, so as to predict the first loss value and the second loss value, and determine the target loss value according to the first loss value and the second loss value. The target loss value is used to represent the gap between the predicted value and the true value. The server can transmit the obtained target loss value back and optimize the model parameters of the network through the optimizer. Repeat steps 201 to 204 until the target loss value no longer decreases, or the number of iterations has reached a preset threshold, indicating that the video quality assessment model to be trained is close to convergence, so the model parameters can be determined as the model parameters of the video quality assessment model, thereby training the video quality assessment model.

[0256] In an embodiment of the present application, a method for model training is provided, wherein a feature map sequence corresponding to a video to be trained is first obtained, and then the feature map sequence is processed to obtain a first feature vector set and a second feature vector set, and then spatial feature vectors and time domain feature vectors are obtained based on the first feature vector set, and auxiliary feature vectors are obtained based on the second feature vector set, and a first loss value is obtained by combining the spatial feature vector and the time domain feature vector, and a second loss value is obtained by combining the auxiliary feature vector. If the first loss value and the second loss value converge, a video quality assessment model is obtained by training. In the above manner, an end-to-end video quality assessment model can be trained, and prediction can be achieved using only one video quality assessment model. In the entire prediction process, there is no need to perform secondary processing on the results output by the model, thereby reducing the complexity of the prediction, thereby improving the efficiency of video quality prediction.

[0257] Optionally, in the above Fig.12 On the basis of the corresponding embodiments, in a first optional embodiment of the model training method provided in the embodiment of the present application, after obtaining the spatial domain feature vector and the time domain feature vector according to the first feature vector set, it may also include:

[0258] Determine the spatial domain prediction score according to the spatial domain feature vector;

[0259] Determine a time domain prediction score according to the time domain feature vector;

[0260] Determine a first sub-loss value according to the spatial domain prediction score and the spatial domain true score;

[0261] Determine a second sub-loss value according to the time domain prediction score and the time domain true score;

[0262] A first loss value is determined according to the first sub-loss value and the second sub-loss value.

[0263] In this embodiment, a method for determining the first loss value is introduced. Figure 3The corresponding embodiments show a method for calculating the spatial prediction score based on the spatial feature vector, and a method for calculating the temporal prediction score based on the temporal feature vector. Specifically, assuming that the spatial feature vector is (0.2, 0.3, 0.17, 0.27, 0.06), the spatial prediction score can be calculated using the following formula:

[0264] Sspa=W1×A1+W2×B1+W3×C1+W4×D1+W5×E1;

[0265] Assume W1 is 1, W2 is 2, W3 is 3, W4 is 4, and W5 is 5, so we get:

[0266] Sspa= 1×0.2+2×0.3+3×0.17+4×0.27+5×0.06=0.2+0.6+0.51+1.08+0.3=2.69

[0267] That is, Sspa expressed as a MOS score can be 2.69.

[0268] Assuming that the time domain feature vector is (0.3, 0.1, 0.2, 0.2, 0.2), the time domain prediction score can be calculated using the following formula:

[0269] Stem=K1×A2+K2×B2+K3×C2+K4×D2+K5×E2;

[0270] Assume K1 is 1, K2 is 2, K3 is 3, K4 is 4, and K5 is 5, so we get:

[0271] Stem=1×0.3+2×0.1+3×0.2+4×0.2+5×0.2=0.3+0.2+0.6+0.8+1=2.9

[0272] That is, the Stem expressed as a MOS score can be 2.9.

[0273] Based on the above assumptions, the spatial domain prediction score is 2.69, and the temporal domain prediction score is 2.9. According to the spatial domain true score and temporal domain true score obtained after pre-labeling the training set data, the first sub-loss value and the second sub-loss value are calculated respectively. Assuming that the spatial domain prediction score is 2.4 and the temporal domain true score is 3.0, the first sub-loss value can be 0.29, the second sub-loss value is 0.1, and the first loss value is 0.39.

[0274] Secondly, in an embodiment of the present application, a method for determining a first loss value is provided, that is, a first sub-loss value is determined according to a spatial domain prediction score and a spatial domain true score, and a second sub-loss value is determined according to a temporal domain prediction score and a temporal domain true score, and finally the first sub-loss value and the second sub-loss value are combined to determine the first loss value. Through the above method, a feasible method is provided for determining the first loss value, and by combining the predicted spatial domain score and the true spatial domain score, as well as the predicted temporal domain score and the true temporal domain score, the prediction of the video quality assessment model in the spatial and temporal domains can be more comprehensively trained, thereby improving the reliability of the training.

[0275] Optionally, in the above Fig.12 On the basis of the corresponding embodiments, in a second optional embodiment of the model training method provided in the embodiment of the present application, after obtaining the auxiliary feature vector according to the second feature vector set, it may also include:

[0276] Determining an auxiliary prediction score according to the auxiliary feature vector;

[0277] A second loss value is determined according to the auxiliary prediction score and the auxiliary true score.

[0278] In this embodiment, a method for determining the second loss value is introduced. In order to prevent the problem of gradient vanishing in the middle part of the deep network and to better promote the convergence of the model, this application adds an auxiliary classifier as a deep supervision module during the training of the model. For ease of introduction, please refer to Fig.13 , Fig.13 This is a structural diagram of the deep supervision module in the embodiment of the present application. As shown in the figure, the feature maps of each video frame extracted are used as input. After passing through two fully connected layers, it can be understood that the number of fully connected layers is only a schematic and should not be understood as a limitation on the present application. The distribution of quality scores is obtained by the Softmax activation function, for example, a 5-dimensional vector can be obtained. And the second loss value is calculated according to the loss function after taking the average value. Among them, the calculation method of the Softmax activation function is, assuming that there is an array R, Ri represents the i-th element in R, then the softmax value of this element is expressed as:

[0279] ;

[0280] Where i=1, 2,…, j, j is the total number of elements in array R.

[0281] For easier understanding, see Figure 2 and Fig.14 , Fig.14 This is a schematic diagram of an embodiment of generating an auxiliary feature vector in an embodiment of the present application. As shown in the figure, Figure 2Taking the four deep supervision modules shown in as an example, in practical applications, the number of deep supervision modules is not limited. Each deep supervision module is used to calculate a loss result. Assume that the feature map sequence input to the first deep supervision module is 10*112*112*16, and the feature vector obtained after GAP is 10*1*16. After the fully connected layer, an auxiliary feature vector of 10*1*5 is obtained, where 10 represents 10 frames of images and 5 represents 5-dimensional elements. Based on the auxiliary feature vector, an auxiliary prediction score of 1*1*1 is calculated, which can be 0.2, for example. Similarly, assume that the feature map sequence input to the second deep supervision module is 10*56*56*24, and the feature vector obtained after GAP is 10*1*24. After the fully connected layer, an auxiliary feature vector of 10*1*5 is obtained. Based on the auxiliary feature vector, an auxiliary prediction score of 1*1*1 is calculated, which can be 0.3, for example. Assume that the feature map sequence input to the third deep supervision module is 10*28*28*32, the feature vector obtained after GAP is 10*1*32, and the auxiliary feature vector of 10*1*5 is obtained after the fully connected layer. The auxiliary prediction score of 1*1*1 is calculated based on the auxiliary feature vector, for example, it can be 0.4. Assume that the feature map sequence input to the fourth deep supervision module is 10*14*14*96, the feature vector obtained after GAP is 10*1*96, and the auxiliary feature vector of 10*1*5 is obtained after the fully connected layer. The auxiliary prediction score of 1*1*1 is calculated based on the auxiliary feature vector, for example, it can be 0.1.

[0282] So the auxiliary prediction scores are 0.2, 0.3, 0.4 and 0.1 respectively. Assuming that the auxiliary true scores are 0.2, 0.2, 0.3, 0.3 respectively, the second loss value can be (0.2-0.2) + (0.3-0.2) + (0.4-0.3) + (0.3-0.1) = 0.4.

[0283] Secondly, in an embodiment of the present application, a method for determining a second loss value is provided, that is, determining an auxiliary prediction score based on an auxiliary feature vector, and then determining the second loss value based on the auxiliary prediction score and the auxiliary true score. Through the above method, a feasible method is provided for determining the second loss value, and by combining the predicted auxiliary score and the true auxiliary score, the video quality assessment model can be trained more comprehensively, thereby improving the reliability of the training.

[0284] Optionally, in the above Fig.12 On the basis of the corresponding embodiments, in a third optional embodiment of the model training method provided in the embodiment of the present application, if the target loss value reaches convergence, before training to obtain the video quality assessment model, it may also include:

[0285] Obtaining a first weight value corresponding to the first loss value;

[0286] Obtaining a second weight value corresponding to the second loss value;

[0287] According to the first weight value and the second weight value, a weighted summation process is performed on the first loss value and the second loss value to obtain a target loss value;

[0288] Specifically, the target loss value can be calculated as follows:

[0289] Ltotal=a×L1+b×L2;

[0290] Among them, Ltotal represents the target loss value, a represents the first weight value, b represents the second weight value, L1 represents the first loss value, and L2 represents the second loss value.

[0291] In this embodiment, a method for calculating a target loss value is introduced. Specifically, the target loss value can be calculated in the following manner:

[0292] Ltotal=a×L1+b×L2;

[0293] Among them, Ltotal represents the target loss value, a represents the first weight value, which can be set to 0.7, b represents the second weight value, which can be set to 0.3, L1 represents the first loss value, and L2 represents the second loss value. For example, L1 is 0.39, L2 is 0.3, a is 0.7, and b is 0.3, then the target loss value is 0.363.

[0294] Again, in an embodiment of the present application, a method for calculating the target loss value is provided. Through the above method, a feasible basis is provided for the implementation of the solution, and different loss functions can be combined for training, which is conducive to improving the reliability and accuracy of training.

[0295] Based on the video quality assessment model provided by the present application, relevant experiments are conducted on a data set consisting of 1000 video samples. For ease of introduction, please refer to Table 5, which is a comparative diagram of the prediction accuracy of the method provided by the present application and the method provided by the prior art.

[0296] Table 5

[0297]

[0298] It can be seen that the Pearson linear correlation coefficient (PLCC) of the predicted value on the data set consisting of 1000 video samples can reach 0.8790. Table 5 lists the PLCC of the predicted values ​​of some other commonly used methods including image quality assessment (IQA) and video quality assessment methods for comparison.

[0299] The following is a detailed description of the non-reference video quality assessment device in this application. Fig.15 , Fig.15 This is a schematic diagram of an embodiment of a non-reference video quality assessment device in an embodiment of the present application. The non-reference video quality assessment device 30 includes:

[0300] An acquisition module 301 is used to acquire a video to be evaluated, wherein the video to be evaluated includes multiple frames of images;

[0301] The acquisition module 301 is further used to acquire a feature vector set of the video to be evaluated through a video quality evaluation model, wherein the feature vector set includes a plurality of feature vectors, and the feature vectors have a corresponding relationship with the image;

[0302] The acquisition module 301 is further used to acquire the spatial domain feature vector and the temporal domain feature vector corresponding to the feature vector set through the video quality assessment model;

[0303] A generation module 302 is used to generate a target evaluation score through the video quality assessment model according to the spatial domain feature vector and the temporal domain feature vector, wherein the target evaluation score includes a spatial domain prediction score and a temporal domain prediction score, the spatial domain prediction score is generated according to the spatial domain feature vector, and the temporal domain prediction score is generated according to the temporal domain feature vector.

[0304] In an embodiment of the present application, a reference-free video quality assessment device is provided. Since all parameters in the entire video quality assessment model are learned in an end-to-end manner, prediction can be achieved using only one video quality assessment model, that is, an assessment score can be obtained by inputting a video to be evaluated. During the entire prediction process, there is no need to perform secondary processing on the results output by the model, thereby reducing the complexity of the prediction and improving the efficiency of video quality prediction.

[0305] Optionally, in the above Fig.15 On the basis of the corresponding embodiment, in another embodiment of the non-reference video quality assessment device 30 provided in the embodiment of the present application,

[0306] The acquisition module 301 is specifically used to acquire an original video, wherein the original video includes Q frame images, wherein Q is an integer greater than 1;

[0307] Extracting a video to be processed from the original video according to a preset sampling rate, wherein the video to be processed includes P frames of images to be processed, where P is an integer greater than 1 and less than or equal to Q;

[0308] Normalization processing is performed on each frame of the image to be processed in the video to be processed to obtain the video to be evaluated, wherein the video to be evaluated includes P frame images.

[0309] Secondly, in the embodiment of the present application, some frame images are extracted from the original video as the video to be evaluated, thereby reducing the number of frames of video processing and improving the efficiency of video processing. In addition, each frame image in the video to be evaluated is normalized, thereby making the features between different images less different and improving the efficiency of processing.

[0310] Optionally, in the above Fig.15 On the basis of the corresponding embodiment, in another embodiment of the non-reference video quality assessment device 30 provided in the embodiment of the present application,

[0311] The acquisition module 301 is specifically used to acquire a feature graph sequence of the video to be evaluated through a convolutional neural network, wherein the feature graph sequence includes a plurality of feature graphs, the feature graphs have a corresponding relationship with the image, and the convolutional neural network belongs to the video quality evaluation model;

[0312] The feature vector set corresponding to the feature map sequence is obtained through a global average pooling GAP layer, wherein the feature vector has a corresponding relationship with the feature map, and the GAP layer belongs to the video quality assessment model.

[0313] Secondly, in an embodiment of the present application, a method for obtaining a feature vector set is provided, that is, first obtaining a feature map sequence of a video to be evaluated through a convolutional neural network, the feature map sequence includes multiple feature maps, and then obtaining a feature vector set corresponding to the feature map sequence through a GAP layer. In the above manner, a feature vector set can be directly obtained based on a video quality assessment model, and a lightweight skeleton network is used to extract feature vectors. The advantage of a lightweight skeleton network is that it has a small number of parameters, thereby improving the efficiency of feature extraction.

[0314] Optionally, in the above Fig.15 On the basis of the corresponding embodiment, in another embodiment of the non-reference video quality assessment device 30 provided in the embodiment of the present application,

[0315] The acquisition module 301 is specifically configured to acquire the spatial domain feature vector corresponding to the feature vector set through the video quality assessment model;

[0316] Obtaining a first scale feature vector and a second scale feature vector corresponding to the feature vector set through the video quality assessment model, wherein the first scale feature vector corresponds to a U frame image, the second scale feature vector corresponds to a V frame image, U is an integer greater than or equal to 1, and V is an integer greater than or equal to 1 and different from V;

[0317] The time domain feature vector is determined according to the first scale feature vector and the second scale feature vector.

[0318] Secondly, in the embodiment of the present application, a scheme for determining a spatial feature vector and a time domain feature vector is provided. In the process of extracting the spatial feature vector, the spatial feature vector can be obtained through the video quality assessment model. In the process of extracting the time domain feature vector, the feature vectors of multiple scales and the second scale feature vector are obtained through the video quality assessment model, and the time domain feature vector is determined according to the feature vectors of different scales. In the above manner, the video quality assessment model can be used to simultaneously extract features in different dimensions, and a more comprehensive prediction can be made by combining the features of the spatial domain and the features of the time domain, so that a more accurate prediction effect can be obtained.

[0319] Optionally, in the above Fig.15 On the basis of the corresponding embodiment, in another embodiment of the non-reference video quality assessment device 30 provided in the embodiment of the present application,

[0320] The acquisition module 301 is specifically configured to acquire, through a first fully connected layer, a first set of feature vectors to be processed corresponding to the feature vector set, wherein the first set of feature vectors to be processed includes a plurality of first feature vectors to be processed, the first feature vectors to be processed have a corresponding relationship with the feature vector, and the first fully connected layer belongs to the video quality assessment model;

[0321] Obtaining, through a second fully connected layer, a second set of feature vectors to be processed corresponding to the first set of feature vectors to be processed, wherein the second set of feature vectors to be processed includes a plurality of second feature vectors to be processed, the second feature vectors to be processed have a corresponding relationship with the first feature vectors to be processed, and the second fully connected layer belongs to the video quality assessment model;

[0322] The spatial domain feature vector is determined according to the second set of feature vectors to be processed.

[0323] Optionally, in the above Fig.15 Based on the corresponding embodiments, please refer to Fig.16In another embodiment of the non-reference video quality assessment device 30 provided in the embodiment of the present application, the non-reference video quality assessment device 30 further includes a calculation module 303

[0324] The calculation module 303 is used for calculating the spatial domain prediction score in the following manner after the acquisition module 301 determines the spatial domain feature vector according to the second set of feature vectors to be processed:

[0325] Sspa=W1×A1+W2×B1;

[0326] Among them, the Sspa represents the spatial domain prediction score, the W1 represents the first weight parameter, the W2 represents the first weight parameter, the A1 represents the first element in the spatial domain feature vector, and the B1 represents the second element in the spatial domain feature vector.

[0327] Optionally, in the above Fig.15 or Fig.16 On the basis of the corresponding embodiment, in another embodiment of the non-reference video quality assessment device 30 provided in the embodiment of the present application,

[0328] The acquisition module 301 is specifically configured to generate a first-scale feature vector to be processed corresponding to the first-scale feature vector by using a first function;

[0329] Using a second function to generate a second-scale feature vector to be processed corresponding to the first-scale feature vector to be processed;

[0330] Using the first function to generate a third-scale feature vector to be processed corresponding to the second-scale feature vector;

[0331] Using the second function to generate a fourth-scale feature vector to be processed corresponding to the third-scale feature vector to be processed;

[0332] The time domain feature vector is determined according to the second-scale feature vector to be processed and the fourth-scale feature vector to be processed.

[0333] Optionally, in the above Fig.16 On the basis of the corresponding embodiment, in another embodiment of the no-reference video quality assessment device 30 provided in the embodiment of the present application, the no-reference video quality assessment device 30 further includes a calculation module 303;

[0334] The calculation module 303 is also used for the acquisition module to calculate the time domain prediction score in the following manner after determining the time domain feature vector according to the second scale feature vector to be processed and the fourth scale feature vector to be processed:

[0335] Stem=K1×A2+K2×B2;

[0336] Among them, the Stem represents the time domain prediction score, the K1 represents the third weight parameter, the K2 represents the fourth weight parameter, the A2 represents the first element in the time domain feature vector, and the B2 represents the second element in the time domain feature vector.

[0337] The model training device in this application is described in detail below. Fig.17 , Fig.17 This is a schematic diagram of an embodiment of a model training device in an embodiment of the present application. The model training device 40 includes:

[0338] An acquisition module 401 is used to acquire a feature map sequence corresponding to a video to be trained, wherein the video to be trained includes M frames of images, the feature map sequence includes M feature maps, the feature maps have a corresponding relationship with the images, and M is an integer greater than 1;

[0339] A processing module 402 is used to process the feature graph sequence obtained by the obtaining module 401 to obtain a first feature vector set and a second feature vector set, wherein the first feature vector set includes M first feature vectors, and the second feature vector set includes M second feature vectors;

[0340] The acquisition module 401 is further used to acquire a spatial domain feature vector and a time domain feature vector according to the first feature vector set processed by the processing module 402, wherein the spatial domain feature vector is used to determine a spatial domain prediction score, the time domain feature vector is used to determine a time domain prediction score, and the time domain feature vector and the time domain prediction score are used to determine a first loss value;

[0341] The acquisition module 401 is further configured to acquire an auxiliary feature vector according to the second feature vector set processed by the processing module 402, wherein the auxiliary feature vector is used to determine an auxiliary prediction score, and the auxiliary prediction score is used to determine a second loss value;

[0342] The training module 403 is used to train and obtain a video quality assessment model if the target loss value reaches convergence, wherein the target loss value is determined based on the first loss value and the second loss value.

[0343] Optionally, in the above Fig.17 Based on the corresponding embodiments, please refer to Fig.18 In another embodiment of the model training device 40 provided in the embodiment of the present application, the model training device 40 further includes a determination module 404;

[0344] The determination module 404 is configured to determine the spatial domain prediction score according to the spatial domain feature vector after the acquisition module 401 acquires the spatial domain feature vector and the temporal domain feature vector according to the first feature vector set;

[0345] The determination module 404 is further configured to determine the time domain prediction score according to the time domain feature vector;

[0346] The determination module 404 is further configured to determine a first sub-loss value according to the spatial domain prediction score and the spatial domain true score;

[0347] The determination module 404 is further configured to determine a second sub-loss value according to the time domain prediction score and the time domain true score;

[0348] The determining module 404 is further configured to determine the first loss value according to the first sub-loss value and the second sub-loss value.

[0349] Optionally, in the above Fig.18 On the basis of the corresponding embodiment, in another embodiment of the model training device 40 provided in the embodiment of the present application,

[0350] The determining module 404 is further configured to determine the auxiliary prediction score according to the auxiliary feature vector after the obtaining module obtains the auxiliary feature vector according to the second feature vector set;

[0351] The determination module 404 is further configured to determine the second loss value according to the auxiliary prediction score and the auxiliary true score.

[0352] Optionally, in the above Fig.17 or Fig.18 Based on the corresponding embodiments, please refer to Fig.19 In another embodiment of the model training device 40 provided in the embodiment of the present application, the model training device 40 further includes a calculation module 405;

[0353] The calculation module 405 is used to calculate the target loss value in the following manner before the training module 403 trains to obtain the video quality assessment model:

[0354] Ltotal=a×L1+b×L2;

[0355] Among them, Ltotal represents the target loss value, a represents the first weight value, b represents the second weight value, L1 represents the first loss value, and L2 represents the second loss value.

[0356] The present application also provides another non-reference video quality assessment device. Fig. 20For the sake of convenience, only the parts related to the embodiments of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiments of the present application. The electronic device can be any electronic device including a mobile phone, a tablet computer, a personal digital assistant (PDA), a point of sales (POS), a car computer, etc., taking the mobile phone as an example:

[0357] Fig. 20 FIG. 1 is a block diagram showing a partial structure of a mobile phone related to an electronic device provided in an embodiment of the present application. Fig. 20 The mobile phone includes: a radio frequency (RF) circuit 510, a memory 520, an input unit 530, a display unit 540, a sensor 550, an audio circuit 560, a wireless fidelity (WiFi) module 570, a processor 580, and a power supply 590. Those skilled in the art will understand that Fig. 20 The mobile phone structure shown in the figure does not constitute a limitation on the mobile phone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0358] Combine the following Fig. 20 A detailed introduction to the various components of the mobile phone:

[0359] The RF circuit 510 can be used for receiving and sending signals during the process of sending and receiving information or making calls. In particular, after receiving the downlink information of the base station, it is sent to the processor 580 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 510 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, etc. In addition, the RF circuit 510 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to the Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.

[0360] The memory 520 can be used to store software programs and modules. The processor 580 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 520. The memory 520 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 520 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0361] The input unit 530 can be used to receive input digital or character information, and generate key signal input related to the user settings and function control of the mobile phone. Specifically, the input unit 530 may include a touch panel 531 and other input devices 532. The touch panel 531, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 531 or near the touch panel 531 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 531 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 580, and can receive and execute the command sent by the processor 580. In addition, the touch panel 531 can be implemented in various types such as resistive, capacitive, infrared and surface acoustic wave. In addition to the touch panel 531, the input unit 530 may further include other input devices 532. Specifically, the other input devices 532 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.

[0362] The display unit 540 can be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 540 may include a display panel 541. Optionally, the display panel 541 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel 531 may cover the display panel 541. When the touch panel 531 detects a touch operation on or near it, it is transmitted to the processor 580 to determine the type of touch event. Subsequently, the processor 580 provides a corresponding visual output on the display panel 541 according to the type of touch event. Although in Fig. 20 In the embodiment, the touch panel 531 and the display panel 541 are used as two independent components to realize the input and output functions of the mobile phone, but in some embodiments, the touch panel 531 and the display panel 541 can be integrated to realize the input and output functions of the mobile phone.

[0363] The mobile phone may also include at least one sensor 550, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 541 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 541 and / or the backlight when the mobile phone is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; As for other sensors that can be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.

[0364] The audio circuit 560, the speaker 561, and the microphone 562 can provide an audio interface between the user and the mobile phone. The audio circuit 560 can transmit the received audio data to the speaker 561 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 562 converts the collected sound signal into an electrical signal, which is received by the audio circuit 560 and converted into audio data, and then the audio data is output to the processor 580 for processing, and then sent to another mobile phone through the RF circuit 510, or the audio data is output to the memory 520 for further processing.

[0365] WiFi is a short-range wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages and access streaming media through the WiFi module 570. It provides users with wireless broadband Internet access. Fig. 20A WiFi module 570 is shown, but it is understandable that it is not an essential component of the mobile phone and can be omitted as needed without changing the essence of the invention.

[0366] The processor 580 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. It executes various functions of the mobile phone and processes data by running or executing software programs and / or modules stored in the memory 520, and calling data stored in the memory 520, so as to monitor the mobile phone as a whole. Optionally, the processor 580 may include one or more processing units; optionally, the processor 580 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 580.

[0367] The mobile phone also includes a power supply 590 (such as a battery) for supplying power to various components. Optionally, the power supply can be logically connected to the processor 580 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions.

[0368] Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be described in detail here.

[0369] In the embodiment of the present application, the processor 580 included in the electronic device also has the following functions:

[0370] Acquire a video to be evaluated, wherein the video to be evaluated includes multiple frames of images;

[0371] Acquire a feature vector set of the video to be evaluated through a video quality evaluation model, wherein the feature vector set includes a plurality of feature vectors, and the feature vectors have a corresponding relationship with the image;

[0372] Acquire the spatial domain feature vector and the temporal domain feature vector corresponding to the feature vector set through the video quality assessment model;

[0373] According to the spatial domain feature vector and the temporal domain feature vector, a target evaluation score is generated through the video quality assessment model, wherein the target evaluation score includes a spatial domain prediction score and a temporal domain prediction score, the spatial domain prediction score is generated according to the spatial domain feature vector, and the temporal domain prediction score is generated according to the temporal domain feature vector.

[0374] In the embodiment of the present application, the processor 580 included in the electronic device also has the following functions:

[0375] Obtain a feature map sequence corresponding to a video to be trained, wherein the video to be trained includes M frames of images, the feature map sequence includes M feature maps, the feature maps have a corresponding relationship with the images, and M is an integer greater than 1;

[0376] Processing the feature graph sequence to obtain a first feature vector set and a second feature vector set, wherein the first feature vector set includes M first feature vectors, and the second feature vector set includes M second feature vectors;

[0377] Acquire a spatial domain feature vector and a temporal domain feature vector according to the first feature vector set, wherein the spatial domain feature vector is used to determine a spatial domain prediction score, the temporal domain feature vector is used to determine a temporal domain prediction score, and the temporal domain feature vector and the temporal domain prediction score are used to determine a first loss value;

[0378] Acquire an auxiliary feature vector according to the second feature vector set, wherein the auxiliary feature vector is used to determine an auxiliary prediction score, and the auxiliary prediction score is used to determine a second loss value;

[0379] If the target loss value reaches convergence, a video quality assessment model is obtained through training, wherein the target loss value is determined based on the first loss value and the second loss value.

[0380] Fig.21 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. The electronic device 600 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 622 (for example, one or more processors) and a memory 632, and one or more storage media 630 (for example, one or more mass storage devices) storing application programs 642 or data 644. Among them, the memory 632 and the storage medium 630 can be short-term storage or permanent storage. The program stored in the storage medium 630 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the electronic device. Furthermore, the central processing unit 622 can be configured to communicate with the storage medium 630 to execute a series of instruction operations in the storage medium 630 on the electronic device 600.

[0381] The electronic device 600 may also include one or more power supplies 626, one or more wired or wireless network interfaces 650, one or more input and output interfaces 658, and / or one or more operating systems 641, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0382] The steps performed by the electronic device in the above embodiments can be based on the Fig.21 The electronic device structure shown.

[0383] In the embodiment of the present application, the CPU 622 included in the electronic device also has the following functions:

[0384] Acquire a video to be evaluated, wherein the video to be evaluated includes multiple frames of images;

[0385] Acquire a feature vector set of the video to be evaluated through a video quality evaluation model, wherein the feature vector set includes a plurality of feature vectors, and the feature vectors have a corresponding relationship with the image;

[0386] Acquire the spatial domain feature vector and the temporal domain feature vector corresponding to the feature vector set through the video quality assessment model;

[0387] According to the spatial domain feature vector and the temporal domain feature vector, a target evaluation score is generated through the video quality assessment model, wherein the target evaluation score includes a spatial domain prediction score and a temporal domain prediction score, the spatial domain prediction score is generated according to the spatial domain feature vector, and the temporal domain prediction score is generated according to the temporal domain feature vector.

[0388] In the embodiment of the present application, the CPU 622 included in the electronic device also has the following functions:

[0389] Obtain a feature map sequence corresponding to a video to be trained, wherein the video to be trained includes M frames of images, the feature map sequence includes M feature maps, the feature maps have a corresponding relationship with the images, and M is an integer greater than 1;

[0390] Processing the feature graph sequence to obtain a first feature vector set and a second feature vector set, wherein the first feature vector set includes M first feature vectors, and the second feature vector set includes M second feature vectors;

[0391] Acquire a spatial domain feature vector and a temporal domain feature vector according to the first feature vector set, wherein the spatial domain feature vector is used to determine a spatial domain prediction score, the temporal domain feature vector is used to determine a temporal domain prediction score, and the temporal domain feature vector and the temporal domain prediction score are used to determine a first loss value;

[0392] Acquire an auxiliary feature vector according to the second feature vector set, wherein the auxiliary feature vector is used to determine an auxiliary prediction score, and the auxiliary prediction score is used to determine a second loss value;

[0393] If the target loss value reaches convergence, a video quality assessment model is obtained through training, wherein the target loss value is determined based on the first loss value and the second loss value.

[0394] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0395] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0396] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0397] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0398] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or electronic device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.

[0399] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for no-reference video quality assessment, characterized in that: include: Acquire a video to be evaluated, wherein the video to be evaluated includes multiple frames of images; Acquire a feature vector set of the video to be evaluated through a skeleton network in a video quality evaluation model, wherein the feature vector set includes a plurality of feature vectors; Obtaining a spatial domain feature vector and a temporal domain feature vector corresponding to the feature vector set through at least one fully connected layer and a temporal reasoning module in the video quality assessment model; According to the spatial domain feature vector and the temporal domain feature vector, a target evaluation score is generated by a fusion unit in the video quality assessment model, wherein the target evaluation score includes a spatial domain prediction score and a temporal domain prediction score, the spatial domain prediction score is generated according to the spatial domain feature vector, and the temporal domain prediction score is generated according to the temporal domain feature vector; The step of obtaining the spatial domain feature vector and the temporal domain feature vector corresponding to the feature vector set through at least one fully connected layer and a temporal reasoning module in the video quality assessment model includes: Acquire the spatial domain feature vector corresponding to the feature vector set through at least one fully connected layer in the video quality assessment model; Obtaining a first scale feature vector and a second scale feature vector corresponding to the feature vector set through a temporal reasoning module in the video quality assessment model, wherein the first scale feature vector corresponds to a U frame image, the second scale feature vector corresponds to a V frame image, U is an integer greater than or equal to 1, and V is an integer greater than or equal to 1 and different from V; Using a first function to generate a first-scale feature vector to be processed corresponding to the first-scale feature vector; Using a second function to generate a second-scale feature vector to be processed corresponding to the first-scale feature vector to be processed; Using the first function to generate a third-scale feature vector to be processed corresponding to the second-scale feature vector; Using the second function to generate a fourth-scale feature vector to be processed corresponding to the third-scale feature vector to be processed; The time domain feature vector is determined according to the second-scale feature vector to be processed and the fourth-scale feature vector to be processed.

2. The method according to claim 1, characterized in that The step of obtaining the video to be evaluated includes: Acquire an original video, wherein the original video includes Q frame images, wherein Q is an integer greater than 1; Extracting a video to be processed from the original video according to a preset sampling rate, wherein the video to be processed includes P frames of images to be processed, where P is an integer greater than 1 and less than or equal to Q; Normalization processing is performed on each frame of the image to be processed in the video to be processed to obtain the video to be evaluated, wherein the video to be evaluated includes P frame images.

3. The method according to claim 1, characterized in that The step of obtaining a set of feature vectors of the video to be evaluated by using a video quality evaluation model includes: Acquire a feature graph sequence of the video to be evaluated through a convolutional neural network, wherein the feature graph sequence includes a plurality of feature graphs, the feature graphs have a corresponding relationship with the image, and the convolutional neural network belongs to the video quality evaluation model; The feature vector set corresponding to the feature map sequence is obtained through a global average pooling GAP layer, wherein the feature vector has a corresponding relationship with the feature map, and the GAP layer belongs to a skeleton network in the video quality assessment model.

4. The method according to claim 1, characterized in that: The obtaining the spatial domain feature vector corresponding to the feature vector set through at least one fully connected layer in the video quality assessment model includes: Obtaining a first set of to-be-processed feature vectors corresponding to the set of feature vectors through a first fully-connected layer, wherein the first set of to-be-processed feature vectors includes a plurality of first to-be-processed feature vectors, the first to-be-processed feature vectors have a corresponding relationship with the feature vectors of the video to be evaluated, and the first fully-connected layer belongs to at least one fully-connected layer in the video quality evaluation model; Obtaining, through a second fully connected layer, a second set of feature vectors to be processed corresponding to the first set of feature vectors to be processed, wherein the second set of feature vectors to be processed includes a plurality of second feature vectors to be processed, the second feature vectors to be processed have a corresponding relationship with the first feature vectors to be processed, and the second fully connected layer belongs to at least one fully connected layer in the video quality assessment model; The spatial domain feature vector is determined according to the second set of feature vectors to be processed.

5. The method according to claim 4, characterized in that After determining the spatial domain feature vector according to the second set of feature vectors to be processed, the method further includes: Obtaining a weight parameter corresponding to each element in the spatial domain feature vector; According to the weight parameter corresponding to each element, a weighted summation process is performed on each element to obtain the spatial domain prediction score.

6. The method according to claim 1, characterized in that After determining the time domain feature vector according to the second-scale feature vector to be processed and the fourth-scale feature vector to be processed, the method further includes: Obtaining a weight parameter corresponding to each element in the time domain feature vector; According to the weight parameter corresponding to each element, weighted sum processing is performed on each element to obtain the time domain prediction score.

7. A method for model training, characterized in that: include: Obtain a feature map sequence corresponding to a video to be trained, wherein the video to be trained includes M frames of images, the feature map sequence includes M feature maps, the feature maps have a corresponding relationship with the images, and M is an integer greater than 1; Processing the feature graph sequence through a skeleton network in a video quality assessment model to be trained to obtain a first feature vector set and a second feature vector set, wherein the first feature vector set includes M first feature vectors, and the second feature vector set includes M second feature vectors; Obtaining a spatial feature vector and a temporal feature vector according to the first feature vector set through at least one fully connected layer and a temporal reasoning module in the video quality assessment model to be trained, wherein the spatial feature vector is used to determine a spatial prediction score, the temporal feature vector is used to determine a temporal prediction score, and the spatial prediction score and the temporal prediction score are used to determine a first loss value; Obtaining an auxiliary feature vector according to the second feature vector set through a deep supervision module in the video quality assessment model to be trained, wherein the auxiliary feature vector is used to determine an auxiliary prediction score, and the auxiliary prediction score is used to determine a second loss value; If the target loss value reaches convergence, a video quality assessment model is obtained through training, wherein the target loss value is determined according to the first loss value and the second loss value; Wherein, obtaining a spatial domain feature vector and a temporal domain feature vector according to the first feature vector set through at least one fully connected layer and a temporal reasoning module in the video quality assessment model to be trained includes: Acquire the spatial domain feature vector according to the first feature vector set through at least one fully connected layer in the video quality assessment model to be trained; Obtaining a first scale feature vector and a second scale feature vector according to the first feature vector set through the temporal reasoning module in the video quality assessment model to be trained, wherein the first scale feature vector corresponds to a U frame image, the second scale feature vector corresponds to a V frame image, U is an integer greater than or equal to 1, and V is an integer greater than or equal to 1 and different from V; Using a first function to generate a first-scale feature vector to be processed corresponding to the first-scale feature vector; Using a second function to generate a second-scale feature vector to be processed corresponding to the first-scale feature vector to be processed; Using the first function to generate a third-scale feature vector to be processed corresponding to the second-scale feature vector; Using the second function to generate a fourth-scale feature vector to be processed corresponding to the third-scale feature vector to be processed; The time domain feature vector is determined according to the second-scale feature vector to be processed and the fourth-scale feature vector to be processed.

8. The method according to claim 7, characterized in that After acquiring the spatial domain feature vector and the time domain feature vector according to the first feature vector set, the method further includes: Determine the spatial domain prediction score according to the spatial domain feature vector; Determining the time domain prediction score according to the time domain feature vector; Determine a first sub-loss value according to the spatial domain prediction score and the spatial domain true score; Determine a second sub-loss value according to the time domain prediction score and the time domain true score; The first loss value is determined according to the first sub-loss value and the second sub-loss value.

9. The method according to claim 7, characterized in that: After obtaining the auxiliary feature vector according to the second feature vector set, the method further includes: Determining the auxiliary prediction score according to the auxiliary feature vector; The second loss value is determined according to the auxiliary prediction score and the auxiliary true score.

10. The method according to any one of claims 7 to 9, characterized in that If the target loss value reaches convergence, before training to obtain the video quality assessment model, the method further includes: Obtaining a first weight value corresponding to the first loss value; Obtaining a second weight value corresponding to the second loss value; According to the first weight value and the second weight value, the first loss value and the second loss value are weighted and summed to obtain the target loss value.

11. A non-reference video quality assessment device, characterized in that: include: An acquisition module, used for acquiring a video to be evaluated, wherein the video to be evaluated includes multiple frames of images; The acquisition module is further used to acquire a feature vector set of the video to be evaluated through a skeleton network in the video quality evaluation model, wherein the feature vector set includes a plurality of feature vectors, and the feature vectors have a corresponding relationship with the image; The acquisition module is further used to acquire the spatial domain feature vector and the temporal domain feature vector corresponding to the feature vector set through at least one fully connected layer and a temporal reasoning module in the video quality assessment model; A generating module, configured to generate a target evaluation score through a fusion unit in the video quality assessment model according to the spatial domain feature vector and the temporal domain feature vector, wherein the target evaluation score includes a spatial domain prediction score and a temporal domain prediction score, the spatial domain prediction score is generated according to the spatial domain feature vector, and the temporal domain prediction score is generated according to the temporal domain feature vector; Wherein, the acquisition module is used to: Acquire the spatial domain feature vector corresponding to the feature vector set through at least one fully connected layer in the video quality assessment model; Obtaining a first scale feature vector and a second scale feature vector corresponding to the feature vector set through a temporal reasoning module in the video quality assessment model, wherein the first scale feature vector corresponds to a U frame image, the second scale feature vector corresponds to a V frame image, U is an integer greater than or equal to 1, and V is an integer greater than or equal to 1 and different from V; Using a first function to generate a first-scale feature vector to be processed corresponding to the first-scale feature vector; Using a second function to generate a second-scale feature vector to be processed corresponding to the first-scale feature vector to be processed; Using the first function to generate a third-scale feature vector to be processed corresponding to the second-scale feature vector; Using the second function to generate a fourth-scale feature vector to be processed corresponding to the third-scale feature vector to be processed; The time domain feature vector is determined according to the second-scale feature vector to be processed and the fourth-scale feature vector to be processed.

12. A model training device, characterized in that: include: An acquisition module, used to acquire a feature map sequence corresponding to a video to be trained, wherein the video to be trained includes M frames of images, the feature map sequence includes M feature maps, the feature maps have a corresponding relationship with the images, and M is an integer greater than 1; A processing module, used to process the feature map sequence obtained by the acquisition module through a skeleton network in a video quality assessment model to be trained, to obtain a first feature vector set and a second feature vector set, wherein the first feature vector set includes M first feature vectors, and the second feature vector set includes M second feature vectors; The acquisition module is further used to acquire a spatial feature vector and a temporal feature vector according to the first feature vector set obtained by processing by the processing module through at least one fully connected layer and a temporal reasoning module in the video quality assessment model to be trained, wherein the spatial feature vector is used to determine a spatial prediction score, the temporal feature vector is used to determine a temporal prediction score, and the spatial prediction score and the temporal prediction score are used to determine a first loss value; The acquisition module is further used to acquire an auxiliary feature vector according to the second feature vector set processed by the processing module through the deep supervision module in the video quality assessment model to be trained, wherein the auxiliary feature vector is used to determine an auxiliary prediction score, and the auxiliary prediction score is used to determine a second loss value; A training module, configured to train a video quality assessment model if a target loss value reaches convergence, wherein the target loss value is determined according to the first loss value and the second loss value; Wherein, the acquisition module is used to: Acquire the spatial domain feature vector according to the first feature vector set through at least one fully connected layer in the video quality assessment model to be trained; Obtaining a first scale feature vector and a second scale feature vector according to the first feature vector set through the temporal reasoning module in the video quality assessment model to be trained, wherein the first scale feature vector corresponds to a U frame image, the second scale feature vector corresponds to a V frame image, U is an integer greater than or equal to 1, and V is an integer greater than or equal to 1 and different from V; Using a first function to generate a first-scale feature vector to be processed corresponding to the first-scale feature vector; Using a second function to generate a second-scale feature vector to be processed corresponding to the first-scale feature vector to be processed; Using the first function to generate a third-scale feature vector to be processed corresponding to the second-scale feature vector; Using the second function to generate a fourth-scale feature vector to be processed corresponding to the third-scale feature vector to be processed; The time domain feature vector is determined according to the second-scale feature vector to be processed and the fourth-scale feature vector to be processed.

13. An electronic device, characterized in that: include: memories, transceivers, processors, and bus systems; Wherein, the memory is used to store programs; The processor is used to execute the program in the memory, including executing the method according to any one of claims 1 to 6, or executing the method according to any one of claims 7 to 10.

Citation Information

Patent Citations

  • Method for partial reference evaluation of wireless videos based on space-time domain feature extraction

    CN101742355A

  • Effective objective video quality evaluation method based on temporal-spatial structure

    CN106028026A

  • Wavelet domain video quality evaluation method based on background elimination

    CN107809631A

  • An image classification and recognition method for intelligent transportation and a storage medium thereof

    CN109165698A

  • Code rate distribution method and system based on space-time domain just-noticeable distortion and medium

    CN110062236A