Video review method, device, equipment, storage medium and program product

Through the multi-modal feature fusion method, the problem of missed review and inaccuracy in existing advertising video detection is solved, the accuracy of violation category labels is improved, and more accurate video review is achieved.

CN114821401BActive Publication Date: 2024-08-27TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210363246.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-07
Publication Date
2024-08-27
Estimated Expiration
2042-04-07

AI Technical Summary

Technical Problem

Existing advertising video detection methods judge image features frame by frame, which can easily lead to missed review and single review content, resulting in inaccurate output violation category labels.

Method used

The multi-modal feature fusion method is used to obtain the image features, audio features and text features of the video, perform temporal fusion and multi-modal fusion, generate multi-modal fusion features for video review, and improve the review accuracy.

Benefits of technology

Through multi-angle and multi-modal review, the accuracy of illegal category labels output by advertising videos has been significantly improved, and missed reviews and erroneous reviews have been reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114821401B
    Figure CN114821401B
Patent Text Reader

Abstract

The present application discloses a video review method, device, equipment, storage medium and program product, which belongs to the field of machine learning. The method comprises: obtaining n unimodal features of the target video; performing time-series fusion on each of the n unimodal features respectively to obtain n unimodal time-series fusion features; fusing the n unimodal time-series fusion features and the n unimodal features to obtain multimodal fusion features; performing video review based on the multimodal fusion features to obtain the violation category label of the target video. The present application uses multimodal fusion features to review the target video from multiple angles and in combination with the previous and next contents, thereby improving the accuracy of the violation category label output by the target video.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of machine learning, and in particular to a video review method, apparatus, device, storage medium and program product. Background Art

[0002] With the continuous development of the Internet, people can publish a large number of videos through the Internet, for example, placing advertising videos on advertising platforms. However, these advertising videos may contain content that violates the regulations of the delivery platforms.

[0003] At present, the detection method of advertising videos is usually as follows: pre-train a machine learning model for reviewing advertising videos, obtain image features of a series of image frames from the target video, input the image features into the machine learning model, and the machine learning model will process the image features of each frame separately, obtain the violation category corresponding to each frame and label it, then summarize the violation category of each frame, and finally output the violation category label of the target video.

[0004] However, in the related art, the method of judging the violation category of image features frame by frame is prone to omissions and the review content is single, which ultimately leads to inaccurate violation category labels for the output advertising videos. Summary of the invention

[0005] The present application provides a video review method, device, equipment, storage medium and program product, which can improve the review accuracy of target videos. The technical solution is as follows:

[0006] According to one aspect of the present application, a video review method is provided, the method comprising:

[0007] Obtaining n unimodal features of a target video, wherein the n unimodal features include at least two of image features, audio features, image text features, and audio text features, where n is a positive integer greater than 1;

[0008] Performing time series fusion on each of the n types of unimodal features respectively to obtain n types of unimodal time series fusion features;

[0009] The n single-modal time series fusion features and the n single-modal features are fused to obtain a multi-modal fusion feature;

[0010] Video review is performed based on the multimodal fusion features to obtain a violation category label of the target video.

[0011] According to one aspect of the present application, a video review is provided, the method comprising: fusing the i-th temporal fusion feature and the i-th unimodal feature belonging to the same type respectively to obtain n unimodal intermediate features, including:

[0012] The unimodal features corresponding to the jth frame in the i-th temporal fusion feature and the i-th unimodal feature, which belong to the same type, are fused to obtain the unimodal intermediate features corresponding to the jth frame, where j is a positive integer.

[0013] According to one aspect of the present application, a video review is provided, the method comprising: performing multimodal fusion on the n types of single-modal intermediate features to obtain the multimodal fusion features, comprising:

[0014] For the unimodal intermediate features belonging to the i-th type among the n types of unimodal intermediate features, the unimodal intermediate features corresponding to different frames are fused to obtain the i-th type of unimodal intermediate fused features;

[0015] The single-modal intermediate fusion features corresponding to different types are fused to obtain the multi-modal fusion features.

[0016] According to one aspect of the present application, a video review is provided, the method comprising: performing temporal fusion on each of the n types of unimodal features to obtain n types of unimodal temporal fusion features, including:

[0017] For the unimodal features belonging to the i-th type among the n types of unimodal features, the unimodal features corresponding to different frames are fused in time series to obtain the i-th unimodal time series fusion feature.

[0018] According to one aspect of the present application, there is provided a video audit method, the method comprising: the n types of unimodal features include the image feature;

[0019] Extracting a target video frame from the target video, and acquiring an image in the target video frame;

[0020] The image is input into an image feature learning network for feature extraction to obtain the image features.

[0021] According to one aspect of the present application, there is provided a video audit, the method comprising: the n types of unimodal features include the audio feature;

[0022] Extracting a target video frame from the target video, and acquiring audio in the target video frame;

[0023] The audio is input into an audio feature learning network for feature extraction to obtain the audio feature.

[0024] According to one aspect of the present application, a video audit is provided, the method comprising: the n types of unimodal features include image text features and audio text features;

[0025] Extracting a target video frame from the target video, and acquiring an image and audio in the target video frame;

[0026] Performing optical character recognition (OCR) on the image to obtain image text, and inputting the image text into the text feature learning network to perform feature extraction to obtain image text features;

[0027] The audio is subjected to automatic speech recognition ASR to obtain an audio text, and the audio text is input into the text feature learning network to perform feature extraction to obtain the audio text feature.

[0028] According to one aspect of the present application, a method for training a video review model is provided, the method comprising:

[0029] Obtaining n unimodal features of a sample video and a real violation category label of the sample video, wherein the n unimodal features include at least two of image features, audio features, image text features, and audio text features, and n is a positive integer greater than 1;

[0030] Performing time series fusion on each of the n types of unimodal features respectively to obtain n types of unimodal time series fusion features;

[0031] The n single-modal time series fusion features and the n single-modal features are fused to obtain a multi-modal fusion feature;

[0032] Inputting the multimodal fusion features into the video review model for video review to obtain a multimodal predicted violation category label;

[0033] Calculating a first loss function value based on the multimodal predicted violation category label and the actual violation category label;

[0034] The model parameters of the video review model are updated based on the first loss function value.

[0035] According to one aspect of the present application, a method for training a video review model is provided, the method comprising:

[0036] The video audit model includes a feature fusion network; the n single-modal temporal fusion features and the n single-modal features are fused to obtain multi-modal fusion features, including:

[0037] Determine the i-th time series fusion feature and the i-th single modal feature belonging to the same type, where i is a positive integer not greater than n;

[0038] Respectively fusing the i-th time series fusion feature and the i-th unimodal feature belonging to the same type in the feature fusion network to obtain n unimodal intermediate features;

[0039] The n types of single-modal intermediate features are multimodally fused in the feature fusion network to obtain the multimodal fusion feature.

[0040] According to one aspect of the present application, a method for training a video review model is provided, the method comprising:

[0041] The i-th time series fusion feature and the i-th unimodal feature belonging to the same type are respectively fused in the feature fusion network to obtain n unimodal intermediate features, including:

[0042] In the feature fusion network, the unimodal features corresponding to the jth frame in the i-th temporal fusion features and the i-th unimodal features belonging to the same type are fused to obtain the unimodal intermediate features corresponding to the jth frame, where j is a positive integer.

[0043] According to one aspect of the present application, a method for training a video review model is provided, the method comprising:

[0044] The step of performing multimodal fusion on the n types of single-modal intermediate features in the feature fusion network to obtain the multimodal fusion feature includes:

[0045] For the unimodal intermediate features belonging to the i-th type among the n types of unimodal intermediate features, the unimodal intermediate features corresponding to different frames are fused in the feature fusion network to obtain the i-th type of unimodal intermediate fused features;

[0046] The single-modal intermediate fusion features corresponding to different types are fused in the feature fusion network to obtain the multi-modal fusion features.

[0047] According to one aspect of the present application, a method for training a video review model is provided, the method comprising:

[0048] The video audit model includes a time series fusion network; each of the n single-modal features is subjected to time series fusion to obtain n single-modal time series fusion features, including:

[0049] In the time series fusion network, for the unimodal features belonging to the i-th type among the n unimodal features, the unimodal features corresponding to different frames are fused in the time series to obtain the i-th unimodal time series fusion features.

[0050] According to one aspect of the present application, a method for training a video review model is provided, the method comprising:

[0051] The video audit model includes an overall discriminator; the multimodal fusion feature is input into the video audit model for video audit to obtain a multimodal predicted violation category label, including:

[0052] The multimodal fusion feature is input into the overall discriminator in the video review model for discrimination to obtain the multimodal predicted violation category label corresponding to the multimodal fusion feature.

[0053] According to one aspect of the present application, a method for training a video review model is provided, the method further comprising:

[0054] Inputting the n types of single-modal time series fusion features into the video review model for video review to obtain n types of single-modal predicted violation category labels;

[0055] Calculating a second loss function value based on the unimodal predicted violation category label and the actual violation category label;

[0056] The updating of the model parameters of the video audit model based on the first loss function value includes:

[0057] The model parameters of the video review model are updated based on the first loss function value and the second loss function value.

[0058] According to one aspect of the present application, a method for training a video review model is provided, the method comprising:

[0059] The video audit model includes n single-modal discriminators; the n single-modal temporal fusion features are input into the video audit model for video audit to obtain n single-modal predicted violation category labels, including:

[0060] The i-th temporal fusion feature of the n unimodal temporal fusion features is input into the corresponding i-th unimodal discriminator in the video review model for discrimination, so as to obtain the i-th unimodal violation category label of the target video.

[0061] According to one aspect of the present application, a method for training a video review model is provided, the method comprising:

[0062] The n single-modality time series fusion features include image time series fusion features;

[0063] The step of inputting the i-th temporal fusion feature of the n-type unimodal temporal fusion features into the corresponding i-th unimodal discriminator in the video audit model for discrimination to obtain the i-th unimodal violation category label of the target video includes:

[0064] Inputting the image time series fusion features into the image discriminator in the video audit model for discrimination to obtain the image prediction violation category label;

[0065] The calculating a second loss function value based on the unimodal predicted violation category label and the actual violation category label comprises:

[0066] A second image loss function value is calculated based on the image predicted violation category label and the actual violation category label.

[0067] According to one aspect of the present application, a method for training a video review model is provided, the method comprising:

[0068] The n types of single-modal time series fusion features include audio time series fusion features;

[0069] The step of inputting the i-th temporal fusion feature of the n-type unimodal temporal fusion features into the corresponding i-th unimodal discriminator in the video audit model for discrimination to obtain the i-th unimodal violation category label of the target video includes:

[0070] Input the audio time series fusion feature into the audio discriminator in the video audit model for discrimination to obtain an audio prediction violation category label;

[0071] The calculating a second loss function value based on the unimodal predicted violation category label and the actual violation category label comprises:

[0072] A second audio loss function value is calculated based on the audio predicted violation category label and the actual violation category label.

[0073] According to one aspect of the present application, a method for training a video review model is provided, the method comprising:

[0074] The n types of single-modal temporal fusion features include text temporal fusion features;

[0075] The step of inputting the i-th temporal fusion feature of the n-type unimodal temporal fusion features into the corresponding i-th unimodal discriminator in the video audit model for discrimination to obtain the i-th unimodal violation category label of the target video includes:

[0076] Inputting the text temporal fusion feature into the text discriminator in the video review model for discrimination to obtain a text prediction violation category label;

[0077] The calculating a second loss function value based on the unimodal predicted violation category label and the actual violation category label comprises:

[0078] A second text loss function value is calculated based on the text predicted violation category label and the actual violation category label.

[0079] According to one aspect of the present application, a method for training a video review model is provided, the method comprising:

[0080] The real violation category label includes a real text violation category label; the method further includes:

[0081] Extracting a target video frame from the sample video, and acquiring text in the target video frame;

[0082] Determine the real text violation category label corresponding to the sample video according to the text and the real violation category label;

[0083] The second text loss function value is calculated based on the text predicted violation category label and the real text violation category label.

[0084] According to one aspect of the present application, a method for training a video review model is provided, the method comprising:

[0085] The first loss function value is a first cross entropy between the multimodal predicted violation category label and the actual violation category label, and the second loss function value is a second cross entropy between the unimodal predicted violation category label and the actual violation category label;

[0086] The updating of the model parameters of the video audit model based on the first loss function value and the second loss function value includes:

[0087] Based on the sum of the first cross entropy and the second cross entropy, the model parameters of the video review model are updated.

[0088] According to one aspect of the present application, a video review device is provided, the device comprising:

[0089] An acquisition module, used for acquiring n unimodal features of a target video, wherein the n unimodal features include at least two of image features, audio features, image text features and audio text features, and n is a positive integer greater than 1;

[0090] A time series fusion module, used for performing time series fusion on each of the n types of unimodal features to obtain n types of unimodal time series fusion features;

[0091] A feature fusion module, used for fusing the n single-modal time series fusion features and the n single-modal features to obtain a multi-modal fusion feature;

[0092] The review module is used to perform video review based on the multimodal fusion features to obtain the violation category label of the target video.

[0093] According to one aspect of the present application, a training device for a video review model is provided, the device comprising:

[0094] An acquisition module, used to acquire n unimodal features of a sample video and a real violation category label of the sample video, wherein the n unimodal features include at least two of image features, audio features, image text features, and audio text features, and n is a positive integer greater than 1;

[0095] A time series fusion module, used for performing time series fusion on each of the n types of unimodal features to obtain n types of unimodal time series fusion features;

[0096] A feature fusion module, used for fusing the n single-modal time series fusion features and the n single-modal features to obtain a multi-modal fusion feature;

[0097] An audit module, used to perform video audit based on the multimodal fusion features to obtain a multimodal predicted violation category label;

[0098] A calculation module, configured to calculate a first loss function value based on the multimodal predicted violation category label and the actual violation category label;

[0099] An updating module is used to update the model parameters of the video review model based on the first loss function value.

[0100] According to another aspect of the present application, a computer device is provided, which includes: a processor and a memory, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor to implement the video review method described above or the video review model training method described above.

[0101] According to another aspect of the present application, a computer storage medium is provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the video review method or the video review model training method as described above.

[0102] According to another aspect of the present application, a computer program product is provided, which includes a computer program stored in a computer-readable storage medium; the computer program is read and executed from the computer-readable storage medium by a processor of a computer device, so that the computer device executes the video review method described above or the video review model training method described above.

[0103] The beneficial effects of the technical solution provided by this application include at least:

[0104] By obtaining n unimodal features of the target video, the unimodal features of the n unimodal features are sequentially fused to obtain n unimodal temporal fusion features; the n unimodal temporal fusion features and the n unimodal features are further fused to obtain multimodal fusion features, and finally the multimodal fusion features are input into the video review model for identification, thereby obtaining the violation category label of the target video. This application uses multimodal fusion features to review the target video from multiple angles, thereby improving the accuracy of the violation category label output by the review target video. BRIEF DESCRIPTION OF THE DRAWINGS

[0105] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0106] Figure 1 is a schematic diagram of a video review method provided by an exemplary embodiment of the present application;

[0107] Figure 2 is a schematic diagram of the architecture of a computer system provided by an exemplary embodiment of the present application;

[0108] Figure 3 is a flow chart of a video review method provided by an exemplary embodiment of the present application;

[0109] Figure 4 is a flow chart of a video review method provided by an exemplary embodiment of the present application;

[0110] Figure 5 is a schematic diagram of target video modality separation provided by an exemplary embodiment of the present application;

[0111] Figure 6 is a schematic diagram of single-modal feature extraction provided by an exemplary embodiment of the present application;

[0112] Figure 7is a schematic diagram of feature fusion provided by an exemplary embodiment of the present application;

[0113] Figure 8 is a schematic diagram of distinguishing violation category labels provided by an exemplary embodiment of the present application;

[0114] Fig. 9 is a flow chart of a method for training a video review model provided by an exemplary embodiment of the present application;

[0115] Fig.10 is a flow chart of a method for training a video review model provided by an exemplary embodiment of the present application;

[0116] Fig.11 is a flow chart of a video review method provided by an exemplary embodiment of the present application;

[0117] Fig.12 is a block diagram of a video review device provided by an exemplary embodiment of the present application;

[0118] Fig.13 is a block diagram of a training device for a video review model provided by an exemplary embodiment of the present application;

[0119] Fig.14 It is a structural diagram of a computer device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0120] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0121] The present application embodiment provides a technical solution for a video review method, such as Figure 1 As shown, the method can be executed by a computer device, and the computer device can be a terminal or a server.

[0122] Exemplarily, the computer device obtains a target video 101 , extracts a target video frame from the target video 101 , and obtains an image 102 and an audio 103 from the target video frame.

[0123] Optionally, the method of extracting the target video frame is at least one of extracting 1 frame per second, extracting 2 frames per second, and extracting 3 frames per second, but is not limited thereto and the embodiments of the present application do not impose any limitation on this.

[0124] For example, 50 target video frames are extracted from the target video 101 in a manner of extracting one frame per second, and the image 102 and audio 103 corresponding to each frame are obtained from the 50 target video frames.

[0125] The computer device performs text recognition on the image 102 of the target video 101 through optical character recognition (OCR) to obtain image text 104; and performs text recognition on the audio 103 of the target video 101 through automatic speech recognition (ASR) technology to obtain audio text 105.

[0126] The computer device inputs the image 102 into the image feature learning network 106 for feature extraction to obtain image features 107; inputs the audio 103 into the audio feature learning network 110 for feature extraction to obtain audio features 111; inputs the image text 104 into the text feature learning network 108 for feature extraction to obtain corresponding image text features; inputs the audio text 105 into the text feature learning network 108 for feature extraction to obtain corresponding audio text features. The image text features and audio text features are collectively referred to as text features 109.

[0127] The computer device inputs the image feature 107 into the time series fusion network 112 for fusion, and obtains the image time series fusion feature 114; inputs the audio feature 111 into the time series fusion network 112 for fusion, and obtains the audio time series fusion feature 115; and inputs the text feature 109 into the time series fusion network 112 for fusion, and obtains the text time series fusion feature 116.

[0128] The computer device inputs the image features 107 , the text features 109 , the audio features 111 , the image time series fusion features 114 , the audio time series fusion features 115 , and the text fusion features 116 into the feature fusion network 113 for fusion to obtain a multimodal fusion feature 120 .

[0129] The computer device inputs the multimodal fusion feature 120 into the overall discriminator 121 in the video review model for discrimination, and obtains the multimodal violation category label corresponding to the multimodal fusion feature 120; inputs the image time series fusion feature 114 into the image discriminator 117 in the video review model for discrimination, and obtains the image violation category label corresponding to the image time series fusion feature 114; inputs the audio time series fusion feature 115 into the audio discriminator 118 in the video review model for discrimination, and obtains the audio violation category label corresponding to the audio time series fusion feature 115; inputs the text time series fusion feature 116 into the text discriminator 119 in the video review model for discrimination, and obtains the text violation category label corresponding to the text time series fusion feature 116; the computer device aggregates and takes the union of the multimodal violation category label, the image violation category label, the audio violation category label, and the text violation category label to obtain the violation category label 122 of the target video 101.

[0130] For example, the computer device inputs the multimodal fusion feature 120 into the overall discriminator 121 in the video review model for discrimination, and obtains the multimodal violation category label as follows: image violence---text contains sensitive words---audio is harsh.

[0131] The computer device inputs the image time series fusion feature 114 into the image discriminator 117 in the video review model for discrimination, and obtains the image violation category label: indecent image.

[0132] The audio time series fusion feature 115 is input into the audio discriminator 118 in the video review model for discrimination, and the audio violation category label obtained is: audio harshness.

[0133] The text temporal fusion feature 116 is input into the text discriminator 119 in the video review model for discrimination, and the obtained text violation category label is: the text is incoherent.

[0134] The computer device aggregates the multimodal violation category labels, image violation category labels, audio violation category labels, and text violation category labels, and obtains the violation category label 122 of the target video 101 as follows: image violence, image indecency---text contains sensitive words, text incoherent---audio harshness.

[0135] In summary, the method provided in this embodiment obtains the image features, audio features and text features of the target video, and respectively fuses the image features, audio features and text features in time sequence to obtain image time sequence fusion features, audio time sequence fusion features and text fusion features; and further fuses the image features, audio features, text features, image time sequence fusion features, audio time sequence fusion features and text fusion features to obtain multimodal fusion features, and finally inputs the multimodal fusion features and image features, audio features and text features into the discriminator in the video review model for discrimination, thereby obtaining the violation category label of the target video. This application uses three unimodal features of image, audio and text and multimodal fusion features to review the target video from multiple angles and in combination with the previous and next contents, thereby improving the accuracy of the violation category label output by the review target video.

[0136] Figure 2 The schematic diagram of the architecture of a computer system provided by an embodiment of the present application is shown. The computer system may include: a terminal 100 and a server 200.

[0137] The terminal 100 may be an electronic device such as a mobile phone, a tablet computer, a vehicle-mounted terminal (vehicle computer), a wearable device, a personal computer (PC), an intelligent voice interaction device, a smart home appliance, a vehicle-mounted terminal, an aircraft, an unmanned vending terminal, etc. The terminal 100 may be installed with a client that runs a target application, and the target application may be an application that supports video review, or may be other applications that provide a video review function, which is not limited in this application. In addition, this application does not limit the form of the target application, including but not limited to an application (Application, App) installed in the terminal 100, a mini-program, etc., and may also be in the form of a web page.

[0138] The server 200 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services, cloud database, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms. The server 200 may be a backend server of the above-mentioned target application, used to provide backend services for the client of the target application.

[0139] Among them, cloud technology refers to a hosting technology that unifies hardware, software, network and other resources in a wide area network or local area network to realize data computing, storage, processing and sharing. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model. It can form a resource pool, which is used on demand and flexible and convenient. Cloud computing technology will become an important support. The background services of technical network systems require a large amount of computing and storage resources, such as video websites, image websites and more portal websites. With the high development and application of the Internet industry, in the future, each item may have its own identification mark, and all need to be transmitted to the background system for logical processing. Data of different levels will be processed separately. All kinds of industry data require strong system backing support, which can only be achieved through cloud computing.

[0140] In some embodiments, the above-mentioned server can also be implemented as a node in a blockchain system. Blockchain is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, the platform product service layer, and the application service layer.

[0141] The terminal 100 and the server 200 may communicate with each other via a network, such as a wired or wireless network.

[0142] In the video review method or video review model training method provided in the embodiment of the present application, the execution subject of each step may be a computer device, which refers to an electronic device with data calculation, processing and storage capabilities. Figure 2 Taking the implementation environment of the scheme shown as an example, the video review method or the training method of the video review model can be executed by the terminal 100 (such as the client of the target application installed and running in the terminal 100 executes the video review method or the training method of the video review model), or the video review method or the training method of the video review model can be executed by the server 200, or the terminal 100 and the server 200 can interact and cooperate to execute it, and this application does not limit this.

[0143] Figure 3 is a flowchart of a video review method provided by an exemplary embodiment of the present application. The method can be executed by a computer device, which can be Figure 2 The terminal 100 or the server 200 in the embodiment. The method comprises:

[0144] Step 302: Obtain n unimodal features of the target video.

[0145] The computer device obtains n unimodal features of the target video, wherein the n unimodal features include at least two of image features, audio features, image text features and audio text features, and n is a positive integer greater than 1.

[0146] Modality: It is used to indicate the source or form of information. Each source or form of information can be called a modality, such as people have touch and hearing; information media include voice, video, text, etc.; various sensors include radar, infrared, accelerometer, etc., each of which can be called a modality.

[0147] In an embodiment of the present application, modality is used to indicate a set of data from the same data source, such as: obtaining image features, audio features, and text features in a target video, wherein image features are one modality, audio features are one modality, and text features are one modality, and text features include text image text features and audio text features.

[0148] The method of obtaining the target video includes at least one of the following situations:

[0149] 1. The computer device receives the target video. For example, the terminal is the terminal that initiates the video recording. The video is recorded through the terminal, and after the recording is completed, the target video is sent to the server for review.

[0150] 2. The computer device obtains the target video from a stored database, such as obtaining at least one advertisement video to be delivered from an advertisement platform database.

[0151] It is worth noting that the above method of acquiring the target video is only an illustrative example and is not limited to this in the embodiments of the present application.

[0152] Step 304: performing time series fusion on each of the n types of unimodal features respectively to obtain n types of unimodal time series fusion features.

[0153] Temporal fusion refers to fusing the features of all or part of the target video frames extracted from the target video.

[0154] The single-modal temporal fusion feature refers to a feature obtained by fusing single features extracted from all or part of the target video frames, such as image temporal fusion features, audio temporal fusion features, and text fusion features, but is not limited thereto, and the embodiments of the present application do not limit this.

[0155] For example, taking images and audio as an example, the computer device extracts 50 target video frames from the target video at a rate of 1 frame per second, and obtains image features and audio features corresponding to each frame from the 50 target video frames. The computer device performs time-series fusion on the image features corresponding to the 50 target video frames to obtain image time-series fusion features; the computer device performs time-series fusion on the audio features corresponding to the 50 target video frames to obtain audio time-series fusion features.

[0156] Step 306: Fuse the n single-modal time series fusion features and the n single-modal features to obtain multi-modal fusion features.

[0157] The multimodal fusion feature refers to a feature obtained by fusing at least two features in a target video frame extracted from a target video.

[0158] For example, image features and audio features are fused, or image features and text features are fused, but this is not limited to this and the embodiments of the present application do not limit this.

[0159] For example, the computer device obtains image features and audio features, and the computer device performs feature fusion on the image features, audio features, image time series fusion features, and audio time series fusion features to obtain multimodal fusion features.

[0160] Step 308: Perform video review based on multimodal fusion features to obtain the violation category label of the target video.

[0161] The violation category label is used to mark the violation points of the target video.

[0162] Optionally, the violation category label includes at least one of indecent images, sensitive words in text, and harsh audio, but is not limited thereto and is not limited to this in the embodiments of the present application.

[0163] For example, when a computer device obtains image features and audio features, the computer device inputs the multimodal fusion features into a video review model for identification, and finally obtains a violation category label for the target video.

[0164] In summary, the method provided in this embodiment obtains n unimodal temporal fusion features of the target video by performing temporal fusion on each of the n unimodal features of the target video, and obtains multimodal fusion features by fusing n unimodal temporal fusion features and n unimodal features; the multimodal fusion features are input into the video review model for discrimination to obtain the violation category label of the target video. The present application uses multimodal fusion features to review the target video from multiple angles and in combination with the previous and next contents, thereby improving the accuracy of the violation category label output by the review target video.

[0165] Figure 4 is a flowchart of a video review method provided by an exemplary embodiment of the present application. The method can be executed by a computer device, which can be Figure 2 The terminal 100 or the server 200 in the embodiment. The method comprises:

[0166] Step 402: Obtain n unimodal features of the target video.

[0167] The computer device obtains n unimodal features of the target video, wherein the n unimodal features include at least two of image features, audio features, image text features and audio text features, and n is a positive integer greater than 1.

[0168] In a possible implementation, a computer device extracts a target video frame from a target video to obtain an image in the target video frame; and inputs the image into an image feature learning network to extract features to obtain image features.

[0169] Optionally, the method of extracting the target video frame is at least one of extracting 1 frame per second, extracting 2 frames per second, and extracting 3 frames per second, but is not limited thereto and the embodiments of the present application do not impose any limitation on this.

[0170] The image feature learning network is used to extract the features of the image in the entire target video frame, thereby obtaining the image features.

[0171] Optionally, the image feature learning network is a residual neural network (ResNet), but is not limited to this and the embodiments of the present application do not impose any limitation on this.

[0172] In a possible implementation, a computer device extracts a target video frame from a target video, obtains audio in the target video frame, and inputs the audio into an audio feature learning network for feature extraction to obtain audio features.

[0173] The audio feature learning network is used to extract the features of the audio in the entire target video frame, thereby obtaining audio features.

[0174] Optionally, the audio feature learning network is a convolutional network (VGGish), a deep neural network (Deep Neural Networks, DNN), or a convolutional neural network (Convolutional Neural Networks, CNN), but is not limited thereto and the embodiments of the present application do not impose any limitation on this.

[0175] In a possible implementation, a computer device extracts a target video frame from a target video to obtain an image and audio in the target video frame; the computer device performs optical character recognition (OCR) on the image to obtain image text, and inputs the image text into a text feature learning network to perform feature extraction to obtain image text features.

[0176] The computer device performs automatic speech recognition ASR on the audio to obtain audio text, and inputs the audio text into a text feature learning network for feature extraction to obtain audio text features.

[0177] The text feature learning network is used to extract the features of the text in the entire target video frame to obtain text features.

[0178] Optionally, the text feature learning network is a language representation model (Bidirectional Encoder Representation from Transformers, BERT), but is not limited to this, and the embodiments of the present application do not impose any limitation on this.

[0179] It should be noted that the above-mentioned image feature learning network, audio feature learning network, and text feature learning network are all feature extraction networks. In the embodiment of the present application, the number of feature extraction networks is at least two, and the number of feature extraction networks can be more.

[0180] For example, Figure 5 As shown in the schematic diagram of target video modal separation, a computer device obtains a target video 501 and performs modal separation 502 on the target video 501. For example, 50 target video frames are extracted from the target video 501 at a rate of 1 frame per second, and an image 503 and audio 505 corresponding to each frame are obtained from the 50 target video frames. The computer device performs text recognition on the target image 503 through optical character recognition (OCR) to obtain image text 504; and performs text recognition on the audio 505 of the target video 501 through automatic speech recognition technology (ASR) to obtain audio text 506.

[0181] like Figure 6 The schematic diagram of unimodal feature extraction shown in the figure shows that, when acquiring the image 601, image text 602, audio text 603, and audio 604 of the target video, the computer device inputs the image 601 into the image feature learning network 605 for feature extraction to obtain image features 606; inputs the audio 604 into the audio feature learning network 609 for feature extraction to obtain audio features 610; inputs the image text 602 into the text feature learning network 607 for feature extraction to obtain the corresponding image text features; and inputs the audio text 603 into the text feature learning network 607 for feature extraction to obtain audio text features. The image text features and audio text features are collectively referred to as text features 608.

[0182] Step 404: performing time series fusion on each of the n types of unimodal features respectively to obtain n types of unimodal time series fusion features.

[0183] Temporal fusion refers to fusing the features of target video frames extracted from the target video.

[0184] The single-modal temporal fusion feature refers to the feature obtained by fusing single features in the target video frame extracted from the target video.

[0185] The temporal fusion network is used to fuse the single features in the target video frames extracted from the target video.

[0186] Exemplarily, for unimodal features belonging to the i-th type among n unimodal features, the computer device fuses the unimodal features corresponding to different frames in a time series to obtain an i-th unimodal time series fusion feature.

[0187] For example, the computer device inputs image features into a time series fusion network, and fuses image features corresponding to different frames in the time series fusion network to obtain image time series fusion features; inputs audio features into a time series fusion network, and fuses audio features corresponding to different frames in the time series fusion network to obtain audio time series fusion features; inputs image-text features into a time series fusion network, and fuses image-text features corresponding to different frames in the time series fusion network to obtain image-text time series fusion features; inputs audio-text features into a time series fusion network, and fuses audio-text features corresponding to different frames in the time series fusion network to obtain audio-text time series fusion features.

[0188] The timing fusion formula of the timing fusion network can be expressed as:

[0189]

[0190] Where x∈{i, a, t}, i represents the image modality, a represents the audio modality, and t represents the text modality; F x is a single-mode feature (F i is the image feature, Fa is the audio feature, F t is the text feature); V 1x is a time series fusion equation, which can be implemented using a fully connected network or a fully convolutional network; W 1x is the feature mapping equation, which can be implemented using a fully connected network or a fully convolutional network; F m1x It is the time series fusion feature.

[0191] The specific timing fusion equation of the timing fusion network is as follows:

[0192]

[0193] Where T represents the number of target video frames, k represents the current frame, and is the mapping parameter of the kth frame, is the weight parameter of the kth frame, is the unimodal feature of the current frame.

[0194] Step 406: Fuse the n single-modal time series fusion features and the n single-modal features to obtain a multi-modal fusion feature.

[0195] The multimodal fusion feature refers to a feature obtained by fusing at least two features in a target video frame extracted from a target video.

[0196] Exemplarily, the computer device inputs n unimodal time series fusion features and n unimodal features into a feature fusion network for fusion to obtain multimodal fusion features.

[0197] The feature fusion network is used to fuse at least two features in the target video frame.

[0198] Exemplarily, the computer device determines the i-th time series fusion feature and the i-th single modal feature that belong to the same type, where i is a positive integer not greater than n.

[0199] The computer device fuses the i-th time series fusion feature and the i-th unimodal feature belonging to the same type respectively to obtain n unimodal intermediate features.

[0200] The computer device performs multimodal fusion on n single-modal intermediate features to obtain multimodal fusion features.

[0201] Exemplarily, the computer device fuses the unimodal features corresponding to the jth frame in the i-th temporal fusion feature and the i-th unimodal feature belonging to the same type to obtain the unimodal intermediate features corresponding to the j-th frame, where j is a positive integer.

[0202] Exemplarily, for a unimodal intermediate feature belonging to the i-th type among n types of unimodal intermediate features, the computer device fuses the unimodal intermediate features corresponding to different frames to obtain a unimodal intermediate fused feature of the i-th type; the computer device fuses the unimodal intermediate fused features corresponding to different types to obtain a multimodal fused feature.

[0203] For example, image features and audio features are fused, or image features and text features are fused, but this is not limited to this and the embodiments of the present application do not limit this.

[0204] For example, Figure 7The schematic diagram of feature fusion shown in the figure shows that, when obtaining image feature 701, text feature 702 and audio feature 703, the computer device inputs the image feature 701 into the time series fusion network 705 for time series fusion, and the image features 701 corresponding to different frames are fused in time series in the time series fusion network 705 to obtain image time series fusion feature 707; the audio feature 703 is input into the time series fusion network 705 for time series fusion, and the audio features 703 corresponding to different frames are fused in time series in the time series fusion network 705 to obtain audio time series fusion feature 709; the text feature 702 is input into the time series fusion network 705 for time series fusion, and the text features 702 corresponding to different frames are fused in time series in the time series fusion network 705 to obtain text time series fusion feature 708.

[0205] The computer device inputs the image feature 701, the text feature 702, the audio feature 703, the image time series fusion feature 707, the audio time series fusion feature 709 and the text time series fusion feature 708 into the feature fusion network 704 for fusion. In the feature fusion network 704, the computer device fuses the image time series fusion feature 707 with each frame in the image feature 701 to obtain the image unimodal intermediate feature corresponding to the image feature 701; the computer device fuses the audio time series fusion feature 709 with each frame in the audio feature 703 to obtain the audio unimodal intermediate feature corresponding to the audio feature 703; the computer device fuses the text time series fusion feature 708 with each frame in the text feature 702 to obtain the text unimodal intermediate feature corresponding to the text feature 702.

[0206] The computer device fuses each frame feature of the image unimodal intermediate feature to obtain the image unimodal intermediate fusion feature; the computer device fuses each frame feature of the audio unimodal intermediate feature to obtain the audio unimodal intermediate fusion feature; the computer device fuses each frame feature of the text unimodal intermediate feature to obtain the text unimodal intermediate fusion feature.

[0207] The computer device fuses the image unimodal intermediate fusion features, the audio unimodal intermediate fusion features and the text unimodal intermediate fusion features to obtain the multimodal fusion features 706.

[0208] The multimodal fusion formula of the feature fusion network can be expressed as:

[0209]

[0210] Among them, V2 is the multimodal fusion equation, which can be implemented using a fully connected network or a fully convolutional network; W 2i , W 2t and W 2aThey are image features F i , text features F t and audio feature F a The feature mapping equation can be implemented using a fully connected network or a fully convolutional network; F m2 is the multimodal fusion feature; W 2I , W 2T and W 2A They are image temporal fusion features F m1i , text temporal fusion feature F m1t and audio time series fusion feature F m1a The feature mapping equation can be implemented using a fully connected network or a fully convolutional network.

[0211] The specific multimodal fusion formula of the feature fusion network can be expressed as:

[0212] F m2 =v 2i ×(w 2i ×F i +b 2i )+v 2t ×(w 2t ×F t +b 2t )+v 2a ×(w 2a ×F a +b 2a )

[0213] +v 2I ×(w 2I ×F m1i +b 2I )+v 2T ×(w 2T ×F m1t +b 2T )+v 2A

[0214] ×(w 2A ×F m1a +b 2A )

[0215] Among them, v 2i 、v 2t and v 2a They are the weight parameters of the three modalities of image, text and audio, w 2i With b 2i 、w 2t With b 2t and w 2a With b 2a are the mapping parameters of image features, text features and audio features, respectively, and w 2I With b 2I、w 2T With b 2T and w 2A With b 2A They are image temporal fusion features F m1i , text temporal fusion feature F m1t and audio time series fusion feature F m1a The mapping parameters.

[0216] Step 408: Perform video review based on n types of unimodal temporal fusion features to obtain n types of unimodal violation category labels of the target video.

[0217] The violation category label is used to mark the violation points of the target video.

[0218] Optionally, the violation category label includes at least one of indecent images, sensitive words in text, and harsh audio, but is not limited thereto and is not limited to this in the embodiments of the present application.

[0219] In one possible implementation, the video review model includes n unimodal discriminators; the computer device inputs the n unimodal time series fusion features into the n unimodal discriminators corresponding to the n unimodal time series fusion features in the video review model for discrimination, and obtains n unimodal violation category labels corresponding to the n unimodal time series fusion features.

[0220] Exemplarily, the computer device inputs the i-th time series fusion feature of n unimodal time series fusion features into the corresponding i-th unimodal discriminator in the video review model for discrimination, and obtains the i-th unimodal violation category label of the target video.

[0221] For example, the computer device inputs the image time series fusion features into the image discriminator in the video review model for discrimination, and obtains the image violation category label: indecent image.

[0222] The audio time series fusion features are input into the audio discriminator in the video review model for discrimination, and the audio violation category label obtained is: audio harshness.

[0223] The text temporal fusion features are input into the text discriminator in the video review model for discrimination, and the resulting text violation category label is: incoherent text.

[0224] Step 410: Perform video review based on multimodal fusion features to obtain a violation category label of the target video.

[0225] In one possible implementation, the video review model includes an overall discriminator; the computer device inputs the multimodal fusion feature into the overall discriminator in the video review model for discrimination, and obtains a multimodal violation category label corresponding to the multimodal fusion feature.

[0226] For example, the computer device inputs the multimodal fusion features into the overall discriminator in the video review model for discrimination, and obtains the multimodal violation category label as follows: image violence --- text contains sensitive words --- audio is harsh.

[0227] Step 412: Take the union of the multimodal violation category labels and the n types of unimodal violation category labels to obtain the violation category label of the target video.

[0228] Exemplarily, the computer device aggregates and takes the union of the multimodal violation category labels, the image violation category labels, the audio violation category labels, and the text violation category labels to obtain the violation category label of the target video.

[0229] For example, Figure 8 The schematic diagram of discriminating violation category labels shown in the figure shows that, when obtaining the multimodal fusion feature 801, the image time series fusion feature 804, the text time series fusion feature 807, and the audio time series fusion feature 810, the computer device inputs the multimodal fusion feature 801 into the overall discriminator 802 in the video review model for discrimination, and obtains the multimodal violation category label 803 corresponding to the multimodal fusion feature 801; inputs the image time series fusion feature 804 into the image discriminator 805 in the video review model for discrimination, and obtains the image violation category label 806 corresponding to the image time series fusion feature 804; and inputs the audio time series fusion feature 810 into the overall discriminator 802 in the video review model for discrimination, and obtains the image violation category label 806 corresponding to the image time series fusion feature 804. The audio-temporal fusion feature 810 is input into the audio discriminator 811 in the video review model for discrimination, and the audio violation category label 812 corresponding to the audio-temporal fusion feature 810 is obtained; the text-temporal fusion feature 807 is input into the text discriminator 808 in the video review model for discrimination, and the text violation category label 809 corresponding to the text-temporal fusion feature 807 is obtained; the computer device aggregates and takes the union of the multimodal violation category label 803, the image violation category label 806, the audio violation category label 812, and the text violation category label 809 to obtain the violation category label 813 of the target video.

[0230] For example, the computer device inputs the multimodal fusion features into the overall discriminator in the video review model for discrimination, and obtains the multimodal violation category label as follows: image violence --- text contains sensitive words --- audio is harsh.

[0231] The computer device inputs the image time series fusion features into the image discriminator in the video review model for discrimination, and obtains the image violation category label: indecent image.

[0232] The audio time series fusion features are input into the audio discriminator in the video review model for discrimination, and the audio violation category label obtained is: audio harshness.

[0233] The text temporal fusion features are input into the text discriminator in the video review model for discrimination, and the resulting text violation category label is: incoherent text.

[0234] The computer device aggregates the multimodal violation category labels, image violation category labels, audio violation category labels, and text violation category labels, and obtains the violation category labels of the target video as follows: image violence, image indecency---text contains sensitive words, text incoherent---audio harshness.

[0235] In summary, the method provided in this embodiment obtains n single-modal temporal fusion features and multimodal fusion features of the target video; the multimodal fusion features and n single-modal temporal fusion features are input into the discriminator in the video review model for discrimination, and the multimodal violation category labels corresponding to the multimodal fusion features and the single-modal violation category labels corresponding to the single-modal temporal fusion features are obtained, and the violation category labels of the target video are obtained based on the multimodal violation category labels and the single-modal violation category labels. The present application uses at least two single-modal temporal fusion features and multimodal fusion features to review the target video from multiple angles and in combination with the previous and next content, thereby improving the accuracy of the violation category labels output by the review target video.

[0236] The above embodiment illustrates a video review method, and the following will further describe a method for training a video review model.

[0237] Fig. 9 is a flowchart of a method for training a video review model provided by an exemplary embodiment of the present application. The method can be executed by a computer device, which can be Figure 2 The terminal 100 or the server 200 in the embodiment. The method comprises:

[0238] Step 902: Obtain n unimodal features of the sample video and the actual violation category label of the sample video.

[0239] The computer device obtains n unimodal features of the sample video and a real violation category label of the sample video, wherein the n unimodal features include at least two of image features, audio features, image text features and audio text features, and n is a positive integer greater than 1.

[0240] The real violation category label refers to the violation points existing in the image, audio or text in the sample video, and the text includes image text and audio text.

[0241] The method of obtaining the sample video includes at least one of the following situations:

[0242] 1. The computer device receives the sample video. For example, the terminal is the terminal that initiates the video recording. The video is recorded through the terminal, and after the recording is completed, the video is sent to the server for review.

[0243] 2. The computer device obtains a sample video from a stored database, such as obtaining at least one advertisement video to be delivered from an advertisement platform database.

[0244] It is worth noting that the above method of obtaining sample videos is only an illustrative example and is not limited to this in the embodiments of the present application.

[0245] Step 904: performing time series fusion on each of the n types of unimodal features respectively to obtain n types of unimodal time series fusion features.

[0246] Temporal fusion refers to the fusion of features in target video frames extracted from sample videos.

[0247] The single-modal temporal fusion feature refers to a feature obtained by fusing a single feature in a target video frame extracted from a sample video, such as image temporal fusion feature, audio temporal fusion feature, and text fusion feature, but is not limited thereto, and the embodiments of the present application do not limit this.

[0248] For example, the computer device extracts 50 target video frames from the sample video at a rate of one frame per second, and obtains image features and audio features corresponding to each frame from the 50 target video frames. The computer device performs time-series fusion on the image features corresponding to the 50 target video frames to obtain image time-series fusion features; the computer device performs time-series fusion on the audio features corresponding to the 50 target video frames to obtain audio time-series fusion features.

[0249] Step 906: Fuse the n single-modal time series fusion features and the n single-modal features to obtain multi-modal fusion features.

[0250] The multimodal fusion feature refers to a feature obtained by fusing at least two features in a target video frame extracted from a sample video.

[0251] For example, image features and audio features are fused, or image features and text features are fused, but this is not limited to this and the embodiments of the present application do not limit this.

[0252] For example, the computer device obtains image features and audio features, and the computer device performs feature fusion on the image features, audio features, image time series fusion features, and audio time series fusion features to obtain multimodal fusion features.

[0253] Step 908: Perform video review based on the multimodal fusion features to obtain a multimodal predicted violation category label.

[0254] The violation category label is used to mark the violation points of the sample video.

[0255] The multimodal predicted violation category label is used to identify the violation points of the sample video predicted by the video review model.

[0256] For example, when a computer device obtains image features and audio features, the computer device inputs the multimodal fusion features into a video review model for discrimination, and finally obtains a multimodal predicted violation category label for the sample video.

[0257] Step 910: Calculate a first loss function value based on the multimodal predicted violation category label and the actual violation category label.

[0258] When the multimodal predicted violation category label is obtained, the computer device calculates a first loss function value based on the multimodal predicted violation category label and the actual violation category label.

[0259] Step 912: Update the model parameters of the video review model based on the first loss function value.

[0260] Exemplarily, the computer device updates the model parameters of the video review model based on the first loss function value, thereby obtaining a trained video review model.

[0261] Model parameter updating refers to updating the network parameters in the video audit model, or updating the network parameters of each network module in the model, or updating the network parameters of each network layer in the model, but is not limited to this and the embodiments of the present application do not limit this.

[0262] The model parameters of the video review model include at least one of the network parameters of the image feature learning network, the network parameters of the text feature learning network, the network parameters of the audio feature learning network, the network parameters of the timing fusion network, the network parameters of the feature fusion network, and the network parameters of the overall discriminator in the video review model.

[0263] To summarize, the method provided in this embodiment obtains n kinds of unimodal features of a sample video and the actual violation category label of the sample video, and respectively time-series fuses the unimodal features in the n kinds of unimodal features to obtain n kinds of unimodal time-series fusion features; fuses the n kinds of unimodal time-series fusion features and the n kinds of unimodal features to obtain multimodal fusion features; inputs the multimodal fusion features into the video review model for discrimination to obtain a multimodal predicted violation category label; calculates a first loss function value based on the multimodal predicted violation category label and the actual violation category label; and updates the model parameters of the video review model based on the first loss function value, so that the trained video review model can have a higher video review accuracy, thereby obtaining a more accurate violation category label.

[0264] Fig.10is a flowchart of a method for training a video review model provided by an exemplary embodiment of the present application. The method can be executed by a computer device, which can be Figure 2 The terminal 100 or the server 200 in the embodiment. The method comprises:

[0265] Step 1002: Obtain n unimodal features of the sample video and the actual violation category label of the sample video.

[0266] The computer device obtains n unimodal features of the sample video and the real violation category label of the sample video, wherein the n unimodal features include at least two of image features, audio features and text features, n is a positive integer greater than 1, and the text features include image text features and audio text features.

[0267] The true violation category label is a label used to annotate the violation points in the image, audio or text in the sample video.

[0268] In a possible implementation, a computer device extracts a target video frame from a sample video to obtain an image in the target video frame; and inputs the image into an image feature learning network to extract features to obtain image features.

[0269] Optionally, the method of extracting the target video frame is at least one of extracting 1 frame per second, extracting 2 frames per second, and extracting 3 frames per second, but is not limited thereto and the embodiments of the present application do not impose any limitation on this.

[0270] The image feature learning network is used to extract the features of the image in the entire sample video frame, thereby obtaining the image features.

[0271] In a possible implementation, a computer device extracts a target video frame from a sample video, obtains audio in the target video frame, and inputs the audio into an audio feature learning network for feature extraction to obtain audio features.

[0272] The audio feature learning network is used to extract the features of the audio in the entire target video frame, thereby obtaining audio features.

[0273] In a possible implementation, a computer device extracts a target video frame from a target video, obtains text in the target video frame, and inputs the text into a text feature learning network for feature extraction to obtain text features.

[0274] The text feature learning network is used to extract the features of the text in the entire target video frame to obtain text features.

[0275] Exemplarily, a computer device obtains an image and audio in a target video frame; performs optical character recognition (OCR) on the image to obtain image text, and inputs the image text into a text feature learning network for feature extraction to obtain image text features.

[0276] The computer device performs automatic speech recognition ASR on the audio to obtain audio text, and inputs the audio text into a text feature learning network for feature extraction to obtain audio text features.

[0277] Step 1004: performing time series fusion on each of the n types of unimodal features respectively to obtain n types of unimodal time series fusion features.

[0278] Temporal fusion refers to the fusion of features in target video frames extracted from sample videos.

[0279] The single-modal temporal fusion feature refers to a feature obtained by fusing a single feature in a target video frame extracted from a sample video, such as image temporal fusion feature, audio temporal fusion feature, and text fusion feature, but is not limited thereto, and the embodiments of the present application do not limit this.

[0280] Exemplarily, for unimodal features belonging to the i-th type among n unimodal features, the computer device fuses the unimodal features corresponding to different frames in a time series to obtain an i-th unimodal time series fusion feature.

[0281] The computer device inputs the image features into the time series fusion network, and fuses the image features corresponding to different frames in the time series fusion network to obtain the image time series fusion features; inputs the audio features into the time series fusion network, and fuses the audio features corresponding to different frames in the time series fusion network to obtain the audio time series fusion features; inputs the image text features into the time series fusion network, and fuses the image text features corresponding to different frames in the time series fusion network to obtain the image text time series fusion features; inputs the audio text features into the time series fusion network, and fuses the audio text features corresponding to different frames in the time series fusion network to obtain the audio text time series fusion features.

[0282] The timing fusion formula of the timing fusion network can refer to the formula in step 404, which will not be repeated here.

[0283] Step 1006: Fuse the n single-modal time series fusion features and the n single-modal features to obtain a multi-modal fusion feature.

[0284] The multimodal fusion feature refers to a feature obtained by fusing at least two features in a target video frame extracted from a target video.

[0285] Exemplarily, the computer device determines the i-th time series fusion feature and the i-th single modal feature that belong to the same type, where i is a positive integer not greater than n.

[0286] The computer device fuses the i-th time series fusion feature and the i-th unimodal feature belonging to the same type respectively to obtain n unimodal intermediate features.

[0287] The computer device performs multimodal fusion on n single-modal intermediate features to obtain multimodal fusion features.

[0288] Exemplarily, the computer device fuses the unimodal features corresponding to the jth frame in the i-th temporal fusion feature and the i-th unimodal feature belonging to the same type to obtain the unimodal intermediate features corresponding to the j-th frame, where j is a positive integer.

[0289] Exemplarily, for a unimodal intermediate feature belonging to the i-th type among n types of unimodal intermediate features, the computer device fuses the unimodal intermediate features corresponding to different frames to obtain a unimodal intermediate fused feature of the i-th type; the computer device fuses the unimodal intermediate fused features corresponding to different types to obtain a multimodal fused feature.

[0290] For example, image features and audio features are fused, or image features and text features are fused, but this is not limited to this and the embodiments of the present application do not limit this.

[0291] The feature fusion network is used to fuse at least two features in the target video frame.

[0292] The multimodal fusion formula of the feature fusion network can refer to the formula in step 406 and will not be repeated here.

[0293] Step 1008: Input the multimodal fusion features into the video review model for video review to obtain a multimodal predicted violation category label.

[0294] The violation category label is used to mark the violation points of the sample video.

[0295] The multimodal predicted violation category label is used to identify the violation points of the sample video predicted by the video review model.

[0296] Exemplarily, the video review model includes an overall discriminator, and the computer device inputs the multimodal fusion features into the overall discriminator in the video review model for discrimination to obtain a multimodal predicted violation category label corresponding to the multimodal fusion features.

[0297] For example, the computer device inputs the multimodal fusion features into the overall discriminator in the video review model for discrimination, and obtains the multimodal violation category labels as follows: image violence --- text contains sensitive words --- audio is harsh.

[0298] Step 1010: Calculate a first loss function value based on the multimodal predicted violation category label and the actual violation category label.

[0299] When the multimodal predicted violation category label is obtained, the computer device calculates a first loss function value based on the multimodal predicted violation category label and the actual violation category label.

[0300] Step 1012: Input the n types of unimodal time series fusion features into the video review model for video review to obtain n types of unimodal violation category labels.

[0301] The violation category label is used to mark the violation points of the sample video.

[0302] The unimodal predicted violation category label is used to identify the violation points of the sample video under the unimodal predicted by the video review model. The unimodal predicted violation category label marks the violation points of the sample video as a whole.

[0303] Optionally, the unimodal predicted violation category label includes at least one of an indecent image, the presence of sensitive words in the text, and harsh audio, but is not limited thereto and is not limited to this in the embodiments of the present application.

[0304] Exemplarily, n types of unimodal time series fusion features are input into the corresponding n types of unimodal discriminators in the video review model for discrimination, and n types of unimodal predicted violation category labels corresponding to the n types of unimodal time series fusion features are obtained.

[0305] Exemplarily, the computer device inputs the i-th time series fusion feature of n unimodal time series fusion features into the corresponding i-th unimodal discriminator in the video review model for discrimination, and obtains the i-th unimodal violation category label of the target video.

[0306] In one possible implementation, the n types of single-modal temporal fusion features include image temporal fusion features; the computer device inputs the image temporal fusion features into the image discriminator in the video review model for discrimination to obtain the image predicted violation category label.

[0307] In one possible implementation, the n types of single-modal time series fusion features include audio time series fusion features; the computer device inputs the audio time series fusion features into the audio discriminator in the video review model for discrimination to obtain an audio predicted violation category label.

[0308] In one possible implementation, the n types of unimodal temporal fusion features include text temporal fusion features; the computer device inputs the text temporal fusion features into a text discriminator in a video review model for discrimination to obtain a text predicted violation category label.

[0309] The formula for obtaining the unimodal prediction violation category label can be expressed as:

[0310]

[0311] Among them, P x Predict violation class labels for the entire sample video in a single modality, is the violation category corresponding to each frame in a single mode, Wherein, x∈{i, a, t} represents the image, audio or text modality; c represents c types of violation point categories, a violation point category of 0 indicates that there are no violation points in this modality, and a violation point category of 1 indicates that the violation point category of this modality is 1; k represents the video frame where the violation point appears; T represents the number of all video frames where the violation points appear.

[0312] In a possible implementation, a target video frame is extracted from a sample video, and the text in the target video frame is obtained; based on the text and the real violation category label, the real text violation category label corresponding to the sample video is determined. The real text violation category label is used to identify the violation points in the text mode of the sample video. The real text violation category label annotates the frame-level violation points of a single frame of the sample video.

[0313] The formula for obtaining the real text violation category label can be expressed as:

[0314]

[0315] Among them, R t is the actual violation category label in text mode, is the real violation point corresponding to each frame in the text mode, that is, the real text violation category label, T ocr is the image text, T asr For audio text, A string matching algorithm.

[0316] Optionally, the string matching algorithm is at least one of a complete matching algorithm and an edit distance matching algorithm, but is not limited thereto and is not limited to this in the embodiments of the present application.

[0317] Step 1014: Calculate a second loss function value based on the unimodal predicted violation category label and the actual violation category label.

[0318] The computer device calculates a second loss function value based on the unimodal predicted violation category label and the actual violation category label.

[0319] The second loss function value includes: a second image loss function, a second text loss function, and a second audio loss function.

[0320] In a possible implementation, the second image loss function value is calculated based on the predicted violation category label and the actual violation category label of the image.

[0321] In a possible implementation, a second audio loss function value is calculated based on the audio predicted violation category label and the actual violation category label.

[0322] In a possible implementation, a second text loss function value is calculated based on the text-predicted violation category label and the actual violation category label.

[0323] In a possible implementation, a second text loss function value is calculated based on the text predicted violation category label and the actual text violation category label.

[0324] Step 1016: Update the model parameters of the video review model based on the first loss function value and the second loss function value.

[0325] Exemplarily, the second loss function value is the second cross entropy between the unimodal predicted violation category label and the actual violation category label, and the first loss function value is the first cross entropy between the multimodal predicted violation category label and the actual violation category label.

[0326] The computer device updates the model parameters of the video review model based on the sum of the first cross entropy and the second cross entropy.

[0327] The calculation formula of cross entropy can be expressed as:

[0328] loss x =-r x log(p x )-(1-r x )log(1-p x )

[0329] Among them, x∈{i, a, t, m} represents image modality, audio modality, text modality or multi-modal fusion, r x YesR x The one-hot vector representation of R x is the real violation category label of the whole sample video or the real text violation category label, p x It is the predicted violation category label output by the video review model in this modality.

[0330] Schematically, a one-hot encoding vector refers to a vector corresponding to a One-Hot encoding, wherein the One-Hot encoding is also called a one-bit valid encoding, and is used to encode N states through an N-bit state register, each state has an independent register bit, and at any time, only one state is valid in each state.

[0331] Model parameter updating refers to updating the network parameters in the video audit model, or updating the network parameters of each network module in the model, or updating the network parameters of each network layer in the model, but is not limited to this and the embodiments of the present application do not limit this.

[0332] The model parameters of the video review model include at least one of the network parameters of the image feature learning network, the network parameters of the text feature learning network, the network parameters of the audio feature learning network, the network parameters of the timing fusion network, the network parameters of the feature fusion network, the network parameters of the image discriminator, the network parameters of the text discriminator, the network parameters of the audio discriminator, and the network parameters of the overall discriminator in the video review model.

[0333] In some embodiments, the model parameter update of the video audit model includes updating the network parameters of all network modules in the video audit model, or fixing the network parameters of some network modules in the video audit model and only updating the network parameters of the remaining network modules. For example, when updating the model parameters of the video audit model, the network parameters of the feature fusion network, the network parameters of the timing fusion network, and the network parameters of the feature learning network in the video audit model are fixed, and only the network parameters of the discriminator network are updated.

[0334] Based on the sum of the first cross entropy and the second cross entropy, the sum of the first cross entropy and the second cross entropy is taken as the error, and based on the error back propagation algorithm, the network parameters of the image feature learning network, text feature learning network, audio feature learning network, time series fusion network, feature fusion network, image discriminator, text discriminator, audio discriminator, and overall discriminator in the video review model are updated to make the sum of the first cross entropy and the second cross entropy smaller and smaller until the sum of the first cross entropy and the second cross entropy converges, thereby obtaining a trained video review model.

[0335] The convergence of the sum of the first cross entropy and the second cross entropy means that the sum of the first cross entropy and the second cross entropy no longer changes, or, the difference in error between two adjacent iterations during the training of the video audit model is less than a preset value, or, the number of training times of the video audit model reaches at least one of the preset times, but is not limited to this and is not limited to the embodiments of the present application.

[0336] Specifically, the training process of the above-mentioned video review model may include: in the first iteration process, n unimodal features of the sample video are input into the initial model to obtain the violation category label prediction result of the first iteration process. Based on the violation category label prediction result of the first iteration process and the actual violation category label, a loss function is determined, and based on the loss function, the model parameters in the initial model are adjusted. The model parameters adjusted in the first iteration are used as the model parameters of the second iteration, and then the second iteration is performed. The above-mentioned iterative process is repeated multiple times. In the Nth process, the model parameters adjusted in the N-1th iteration are used as the new model parameters to perform model training until the training meets the target conditions, and the model corresponding to the iterative process that meets the target conditions is obtained as the video review model.

[0337] Optionally, the target condition satisfied by the training may be that the number of training iterations of the initial model reaches the target number, and the technician may pre-set the number of training iterations. Alternatively, the target condition satisfied by the training may be that the loss value meets the target threshold condition, such as the loss value is less than 0.00001, but is not limited thereto, and the embodiments of the present application do not limit this.

[0338] To summarize, the method provided in this embodiment obtains n kinds of unimodal features of a sample video and the actual violation category labels of the sample video, and respectively time-series fuses the unimodal features in the n kinds of unimodal features to obtain n kinds of unimodal time-series fusion features; inputs the n kinds of unimodal time-series fusion features into a video review model for discrimination to obtain n kinds of unimodal predicted violation category labels; provides a variety of methods for calculating the first loss function value based on unimodal predicted violation category labels and actual violation category labels; fuses n kinds of unimodal time-series fusion features and n kinds of unimodal features to obtain multimodal fusion features; inputs the multimodal fusion features into a video review model for discrimination to obtain multimodal predicted violation category labels; calculates the second loss function value based on the multimodal predicted violation category labels and the actual violation category labels; updates the model parameters of the video review model based on the first loss function value and the second loss function value, so that the trained video review model can have higher video review accuracy, thereby obtaining more accurate violation category labels.

[0339] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the sample videos and target videos involved in this application are obtained with full authorization.

[0340] Fig.11is a flowchart of a video review method provided by an exemplary embodiment of the present application. The method can be executed by a computer device, which can be Figure 2 The terminal 100 or the server 200 in the embodiment. The method comprises:

[0341] Step 1101: Start.

[0342] Step 1102: Input the target video.

[0343] The computer device inputs the target video to be reviewed into the video review model.

[0344] Step 1103: Modal separation.

[0345] The computer device obtains the target video and performs modal separation on the target video. For example, 50 target video frames are extracted from the target video at a rate of 1 frame per second, and the image and audio corresponding to each frame are obtained from the 50 target video frames. The computer device performs text recognition on the target image through optical character recognition (OCR) to obtain image text; and performs text recognition on the audio of the target video through automatic speech recognition technology (ASR) to obtain audio text.

[0346] Step 1104: Multimodal feature extraction.

[0347] When the image, image text, audio text, and audio of the target video are obtained, the computer device inputs the image into an image feature learning network for feature extraction to obtain image features; inputs the audio into an audio feature learning network for feature extraction to obtain audio features; inputs the image text into a text feature learning network for feature extraction to obtain corresponding image text features; and inputs the audio text into a text feature learning network for feature extraction to obtain audio text features. Image text features and audio text features are collectively referred to as text features.

[0348] Step 1105: Modal feature fusion.

[0349] When acquiring image features, text features, and audio features, the computer device inputs the image features into a time series fusion network for time series fusion to obtain image time series fusion features; inputs the audio features into a time series fusion network for time series fusion to obtain audio time series fusion features; and inputs the text features into a time series fusion network for time series fusion to obtain text time series fusion features.

[0350] The computer device inputs the image features, text features, audio features, image time series fusion features, audio time series fusion features and text fusion features into a feature fusion network for fusion to obtain multimodal fusion features.

[0351] Step 1106: Modal violation determination.

[0352] After obtaining multimodal fusion features, image time series fusion features, text time series fusion features, and audio time series fusion features, the computer device inputs the multimodal fusion features into the overall discriminator in the video review model for discrimination, and obtains the multimodal violation category label corresponding to the multimodal fusion features; inputs the image time series fusion features into the image discriminator in the video review model for discrimination, and obtains the image violation category label corresponding to the image time series fusion features; inputs the audio time series fusion features into the audio discriminator in the video review model for discrimination, and obtains the audio violation category label corresponding to the audio time series fusion features; inputs the text time series fusion features into the text discriminator in the video review model for discrimination, and obtains the text violation category label corresponding to the text time series fusion features.

[0353] Step 1107: Output the violation category label.

[0354] The computer device aggregates the multimodal violation category labels, the image violation category labels, the audio violation category labels, and the text violation category labels to obtain the violation category labels of the target video.

[0355] Step 1108: End.

[0356] Fig.12 The structural block diagram of a video review device provided by an exemplary embodiment of the present application is shown. The device can be implemented as all or part of a computer device through software, hardware, or a combination of both. The device includes:

[0357] An acquisition module 1201 is used to acquire n unimodal features of a target video, wherein the n unimodal features include at least two of image features, audio features, image text features, and audio text features, and n is a positive integer greater than 1;

[0358] A time series fusion module 1202 is used to perform time series fusion on each of the n types of unimodal features to obtain n types of unimodal time series fusion features;

[0359] A feature fusion module 1203 is used to fuse the n single-modal time series fusion features and the n single-modal features to obtain a multi-modal fusion feature;

[0360] The review module 1204 is used to perform video review based on the multimodal fusion features to obtain the violation category label of the target video.

[0361] In a possible implementation, the feature fusion module 1203 is further used to determine an i-th temporal fusion feature and an i-th single modal feature that belong to the same type, where i is a positive integer not greater than n;

[0362] Respectively fusing the i-th time series fusion feature and the i-th unimodal feature belonging to the same type to obtain n unimodal intermediate features;

[0363] The n types of single-modal intermediate features are subjected to multimodal fusion to obtain the multimodal fusion feature.

[0364] In a possible implementation, the feature fusion module 1203 is also used to fuse the i-th temporal fusion feature and the unimodal feature corresponding to the j-th frame in the i-th unimodal feature belonging to the same type to obtain the unimodal intermediate feature corresponding to the j-th frame, where j is a positive integer.

[0365] In a possible implementation, the feature fusion module 1203 is further configured to fuse the unimodal intermediate features corresponding to different frames belonging to the i-th type of unimodal intermediate features among the n types of unimodal intermediate features to obtain the i-th type of unimodal intermediate fused features;

[0366] The single-modal intermediate fusion features corresponding to different types are fused to obtain the multi-modal fusion features.

[0367] In a possible implementation, the time series fusion module 1202 is further used to fuse the unimodal features corresponding to different frames of the unimodal features belonging to the i-th type among the n unimodal features in the time series to obtain the i-th unimodal time series fusion feature.

[0368] In a possible implementation, the review module 1204 is further used to input the multimodal fusion features into the overall discriminator in the video review model for discrimination, so as to obtain the multimodal violation category label of the target video.

[0369] In a possible implementation, the review module 1204 is further used to perform video review based on the n types of unimodal temporal fusion features to obtain n types of unimodal violation category labels of the target video.

[0370] In a possible implementation, the audit module 1204 is further used to input the i-th temporal fusion feature of the n-type unimodal temporal fusion features into the i-th unimodal discriminator corresponding to the video audit model for discrimination, so as to obtain the i-th unimodal violation category label of the target video;

[0371] In a possible implementation, the review module 1204 is further configured to take the union of the multimodal violation category label and the n types of unimodal violation category labels to obtain the violation category label of the target video.

[0372] In a possible implementation, the acquisition module 1201 is further used to extract a target video frame from the target video and acquire an image in the target video frame; and input the image into an image feature learning network for feature extraction to obtain the image feature.

[0373] In a possible implementation, the acquisition module 1201 is further used to extract a target video frame from the target video and obtain the audio in the target video frame; input the audio into an audio feature learning network for feature extraction to obtain the audio feature.

[0374] In a possible implementation, the acquisition module 1201 is further configured to extract a target video frame from the target video, and acquire an image and audio in the target video frame;

[0375] Performing optical character recognition (OCR) on the image to obtain image text, and inputting the image text into the text feature learning network to perform feature extraction to obtain image text features;

[0376] The audio is subjected to automatic speech recognition ASR to obtain an audio text, and the audio text is input into the text feature learning network to perform feature extraction to obtain the audio text feature.

[0377] Fig.13 The structural block diagram of a video review model training device provided by an exemplary embodiment of the present application is shown. The device can be implemented as all or part of a computer device through software, hardware, or a combination of both. The device includes:

[0378] An acquisition module 1301 is used to acquire n unimodal features of a sample video and a real violation category label of the sample video, wherein the n unimodal features include at least two of image features, audio features, image text features, and audio text features, and n is a positive integer greater than 1;

[0379] A time series fusion module 1302 is used to perform time series fusion on each of the n types of unimodal features to obtain n types of unimodal time series fusion features;

[0380] A feature fusion module 1305 is used to fuse the n single-modal time series fusion features and the n single-modal features to obtain a multi-modal fusion feature;

[0381] The review module 1303 is further used to input the multimodal fusion features into the video review model to perform video review and obtain a multimodal predicted violation category label;

[0382] The calculation module 1304 is further configured to calculate a first loss function value based on the multimodal predicted violation category label and the actual violation category label.

[0383] The updating module 1306 is used to update the model parameters of the video review model based on the first loss function value.

[0384] In a possible implementation, the feature fusion module 1305 is further used to determine the i-th time series fusion feature and the i-th single modal feature belonging to the same type, where i is a positive integer not greater than n;

[0385] Respectively fusing the i-th time series fusion feature and the i-th unimodal feature belonging to the same type in the feature fusion network to obtain n unimodal intermediate features;

[0386] The n types of single-modal intermediate features are multimodally fused in the feature fusion network to obtain the multimodal fusion feature.

[0387] In a possible implementation, the feature fusion module 1305 is also used to fuse the i-th temporal fusion feature and the unimodal feature corresponding to the j-th frame in the i-th unimodal feature belonging to the same type in the feature fusion network to obtain the unimodal intermediate feature corresponding to the j-th frame, where j is a positive integer.

[0388] In a possible implementation, the feature fusion module 1305 is further configured to fuse the unimodal intermediate features corresponding to different frames in the feature fusion network for the unimodal intermediate features belonging to the i-th type among the n unimodal intermediate features, so as to obtain the i-th type of unimodal intermediate fused features;

[0389] The single-modal intermediate fusion features corresponding to different types are fused in the feature fusion network to obtain the multi-modal fusion features.

[0390] In a possible implementation, the timing fusion module 1302 is also used to fuse the unimodal features corresponding to different frames in the time series for the unimodal features belonging to the i-th type among the n unimodal features in the timing fusion network, so as to obtain the i-th unimodal timing fusion feature.

[0391] In a possible implementation, the audit module 1303 is also used to input the multimodal fusion feature into the overall discriminator in the video audit model for discrimination, so as to obtain the multimodal predicted violation category label corresponding to the multimodal fusion feature.

[0392] In a possible implementation, the review module 1303 is also used to input the n types of unimodal time series fusion features into the video review model for video review to obtain n types of unimodal predicted violation category labels.

[0393] In a possible implementation, the calculation module 1304 is further configured to calculate a second loss function value based on the unimodal predicted violation category label and the actual violation category label.

[0394] In a possible implementation, the update module 1306 is further used to update the model parameters of the video review model based on the first loss function value and the second loss function value.

[0395] In one possible implementation, the review module 1303 is also used to input the i-th time series fusion feature of the n single-modal time series fusion features into the corresponding i-th single-modal discriminator in the video review model for discrimination, so as to obtain the i-th single-modal violation category label of the target video.

[0396] In a possible implementation, the audit module 1303 is further used to input the image time series fusion feature into the image discriminator in the video audit model for discrimination, so as to obtain the image prediction violation category label;

[0397] In a possible implementation, the calculation module 1304 is further configured to calculate a second image loss function value based on the predicted violation category label of the image and the actual violation category label.

[0398] In a possible implementation, the audit module 1303 is further used to input the audio time series fusion feature into the audio discriminator in the video audit model for discrimination to obtain an audio prediction violation category label;

[0399] In a possible implementation, the calculation module 1304 is further configured to calculate a second audio loss function value based on the audio predicted violation category label and the actual violation category label.

[0400] In a possible implementation, the audit module 1303 is further used to input the text temporal fusion feature into the text discriminator in the video audit model for discrimination to obtain a text prediction violation category label;

[0401] In a possible implementation, the calculation module 1304 is further configured to calculate a second text loss function value based on the text predicted violation category label and the actual violation category label.

[0402] In a possible implementation, the calculation module 1304 is further used to extract a target video frame from the sample video and obtain text in the target video frame; determine the real text violation category label corresponding to the sample video according to the text and the real violation category label; and calculate the second text loss function value based on the text predicted violation category label and the real text violation category label.

[0403] The first loss function value is a first cross entropy between the multimodal predicted violation category label and the actual violation category label, and the second loss function value is a second cross entropy between the unimodal predicted violation category label and the actual violation category label;

[0404] In a possible implementation, the update module 1306 is further used to update the model parameters of the video review model based on the sum of the first cross entropy and the second cross entropy.

[0405] Fig.14 The structural block diagram of a computer device 1400 shown in an exemplary embodiment of the present application is shown. The computer device can be implemented as the server in the above-mentioned solution of the present application. The image computer device 1400 includes a central processing unit (CPU) 1401, a system memory 1404 including a random access memory (RAM) 1402 and a read-only memory (ROM) 1403, and a system bus 1405 connecting the system memory 1404 and the central processing unit 1401. The image computer device 1400 also includes a large-capacity storage device 1406 for storing an operating system 1409, an application program 1410 and other program modules 1411.

[0406] The mass storage device 1406 is connected to the central processing unit 1401 through a mass storage controller (not shown) connected to the system bus 1405. The mass storage device 1406 and its associated computer readable medium provide non-volatile storage for the image computer device 1400. That is, the mass storage device 1406 may include a computer readable medium (not shown) such as a hard disk or a compact disc read-only memory (CD-ROM) drive.

[0407] Without loss of generality, the computer-readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, Erasable Programmable Read Only Memory (EPROM), Electronically-Erasable Programmable Read-Only Memory (EEPROM) flash memory or other solid-state storage technology, CD-ROM, Digital Versatile Disc (DVD) or other optical storage, cassette, tape, disk storage or other magnetic storage devices. Of course, those skilled in the art will know that the computer storage medium is not limited to the above. The above-mentioned system memory 1004 and mass storage device 1406 can be collectively referred to as memory.

[0408] According to various embodiments of the present disclosure, the image computer device 1400 can also be connected to a remote computer on a network such as the Internet for operation. That is, the image computer device 1400 can be connected to a network 1408 via a network interface unit 1407 connected to the system bus 1405, or the network interface unit 1407 can be used to connect to other types of networks or remote computer systems (not shown).

[0409] The memory also includes at least one computer program, which is stored in the memory. The central processor 1401 implements all or part of the steps in the video review method or video review model training method shown in the above-mentioned embodiments by executing the at least one program.

[0410] An embodiment of the present application also provides a computer device, which includes a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the video review model training method or video review method provided in the above-mentioned method embodiments.

[0411] An embodiment of the present application also provides a computer-readable storage medium, which stores at least one program, and the at least one program is loaded and executed by a processor to implement the video review model training method or video review method provided by the above-mentioned method embodiments.

[0412] An embodiment of the present application also provides a computer program product, which includes a computer program, and the computer program is stored in a computer-readable storage medium; the computer program is read and executed from the computer-readable storage medium by a processor of a computer device, so that the computer device executes the video review model training method or video review method provided in the above-mentioned method embodiments.

[0413] It will be understood that in the specific implementation of the present application, the data involved, historical data, and data related to user data processing such as portraits related to user identity or characteristics, when the above embodiments of the present application are applied to specific products or technologies, need to obtain user permission or consent, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0414] It should be understood that the "plurality" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0415] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0416] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent switching, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A video review method, characterized in that: The method comprises: Obtaining n unimodal features of a target video, wherein the n unimodal features include at least two of image features, audio features, image text features, and audio text features, where n is a positive integer greater than 1; Performing time series fusion on each of the n types of unimodal features respectively to obtain n types of unimodal time series fusion features; Determine the i-th time series fusion feature and the i-th single modal feature belonging to the same type, where i is a positive integer not greater than n; Respectively fusing the i-th time series fusion feature and the i-th unimodal feature belonging to the same type to obtain n unimodal intermediate features; Performing multimodal fusion on the n single-modal intermediate features to obtain multimodal fusion features; Video review is performed based on the multimodal fusion features to obtain a violation category label of the target video.

2. The method according to claim 1, characterized in that: The video review based on the multimodal fusion feature to obtain the violation category label of the target video includes: The multimodal fusion features are input into the overall discriminator in the video review model for discrimination to obtain the multimodal violation category label of the target video.

3. The method according to claim 1 or 2, characterized in that: The method shown also includes: Video review is performed based on the n types of unimodal temporal fusion features to obtain n types of unimodal violation category labels of the target video.

4. The method according to claim 3, characterized in that The video review is performed based on the n single-modal temporal fusion features to obtain n single-modal violation category labels of the target video, including: Inputting the i-th temporal fusion feature of the n unimodal temporal fusion features into the corresponding i-th unimodal discriminator in the video review model for discrimination, thereby obtaining the i-th unimodal violation category label of the target video; The video review based on the multimodal fusion feature to obtain the violation category label of the target video includes: The multimodal violation category label and the n types of unimodal violation category labels are combined to obtain the violation category label of the target video.

5. A video review model training method, characterized in that: The video audit model includes a feature fusion network, and the method includes: Obtaining n unimodal features of a sample video and a real violation category label of the sample video, wherein the n unimodal features include at least two of image features, audio features, image text features, and audio text features, and n is a positive integer greater than 1; Performing time series fusion on each of the n types of unimodal features respectively to obtain n types of unimodal time series fusion features; Determine the i-th time series fusion feature and the i-th single modal feature belonging to the same type, where i is a positive integer not greater than n; Respectively fusing the i-th time series fusion feature and the i-th unimodal feature belonging to the same type in the feature fusion network to obtain n unimodal intermediate features; The n single-modal intermediate features are multimodally fused in the feature fusion network to obtain multimodal fusion features; Inputting the multimodal fusion features into the video review model for video review to obtain a multimodal predicted violation category label; Calculating a first loss function value based on the multimodal predicted violation category label and the actual violation category label; The model parameters of the video review model are updated based on the first loss function value.

6. A video review device, characterized in that: The device comprises: An acquisition module, used for acquiring n unimodal features of a target video, wherein the n unimodal features include at least two of image features, audio features, image text features and audio text features, and n is a positive integer greater than 1; A time series fusion module, used for performing time series fusion on each of the n types of unimodal features to obtain n types of unimodal time series fusion features; A feature fusion module, used to determine the i-th temporal fusion feature and the i-th single modal feature belonging to the same type, where i is a positive integer not greater than n; Respectively fusing the i-th time series fusion feature and the i-th unimodal feature belonging to the same type to obtain n unimodal intermediate features; Performing multimodal fusion on the n single-modal intermediate features to obtain multimodal fusion features; The review module is used to perform video review based on the multimodal fusion features to obtain the violation category label of the target video.

7. A video review model training device, characterized in that: The video audit model includes a feature fusion network, and the device includes: An acquisition module, used to acquire n unimodal features of a sample video and a real violation category label of the sample video, wherein the n unimodal features include at least two of image features, audio features, image text features, and audio text features, and n is a positive integer greater than 1; A time series fusion module, used for performing time series fusion on each of the n types of unimodal features to obtain n types of unimodal time series fusion features; A feature fusion module, used to determine the i-th temporal fusion feature and the i-th single modal feature belonging to the same type, where i is a positive integer not greater than n; Respectively fusing the i-th time series fusion feature and the i-th unimodal feature belonging to the same type in the feature fusion network to obtain n unimodal intermediate features; The n single-modal intermediate features are multimodally fused in the feature fusion network to obtain multimodal fusion features; An audit module, used for inputting the multimodal fusion features into the video audit model to perform video audit and obtain a multimodal predicted violation category label; A calculation module, configured to calculate a first loss function value based on the multimodal predicted violation category label and the actual violation category label; An updating module is used to update the model parameters of the video review model based on the first loss function value.

8. A computer device, characterized in that: The computer device includes: a processor and a memory, wherein at least one computer program is stored in the memory, and at least one computer program is loaded and executed by the processor to implement the video review method as described in any one of claims 1 to 4, or the training method of the video review model as described in claim 5.

9. A computer storage medium, characterized in that: At least one computer program is stored in the computer-readable storage medium, and the at least one computer program is loaded and executed by the processor to implement the video review method as described in any one of claims 1 to 4, or the training method of the video review model as described in claim 5.