Content auditing method and system, computer equipment and readable storage medium
By comparing the number of frames to be reviewed, if it is less than the threshold, the machine learning module is used. If it is greater than the threshold, it is distributed to a third-party module for parallel review. This solves the problem of low review efficiency of user uploaded content and achieves a fast and efficient review process.
Patent Information
- Application Number
- CN202310175484.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-24
- Publication Date
- 2024-08-27
AI Technical Summary
In the existing technology, when the number of videos and pictures uploaded by users is huge, it is impossible to review them in time. The review efficiency is low and the timeliness is poor. Reliance on manual review leads to a waste of resources.
By obtaining the total number of frames of the object to be audited, if it is less than the preset threshold, the machine learning audit module will be used for audit. If it exceeds, it will be distributed to multiple third-party audit modules for parallel audit. The scheduling module will be used to increase the audit speed and reduce reliance on manual labor.
It achieves fast and effective content review, improves review efficiency, can process large amounts of data in a timely manner, and reduces reliance on manual review.
Smart Images

Figure CN118552467A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer application technology, and in particular to a content review method, system, computer device and readable storage medium. Background Art
[0002] With the rapid changes in Internet technology, the continuous development of network streaming technology, the popularization of social network technology, and the continuous increase in network bandwidth, more and more information is displayed on the Internet in the form of multimedia such as videos and pictures. Uploading videos and pictures has become the mainstream way for users to publish information and entertainment. Users can upload various videos and pictures to cloud servers through desktops, laptops, mobile phones and other clients, or watch videos and pictures from cloud servers.
[0003] In order to prevent the spread of bad content, manual review is usually used to review the videos and pictures that are spread. Only videos and pictures that have passed the review can be released. However, the applicant realizes that manual review is very labor-intensive. When the number of videos and pictures uploaded by users is very large, it is often impossible to review all video and picture data in a timely manner, resulting in low review efficiency and poor timeliness. Summary of the invention
[0004] In view of this, the present invention provides a content review method, system, computer device and readable storage medium, the main purpose of which is to solve the current problem that when the number of videos and pictures uploaded by users is very large, all video and picture data cannot be reviewed in time, resulting in low review efficiency and poor timeliness.
[0005] According to the first aspect of the present application, a content review method is provided, comprising:
[0006] In response to a content review request, obtaining a plurality of objects to be reviewed carried in the content review request, and determining a total number of frames of the plurality of objects to be reviewed;
[0007] If the total number of frames of the multiple objects to be reviewed is less than the preset number of frames, the multiple objects to be reviewed are sent to the machine learning review module. When the machine learning review module receives the multiple objects to be reviewed, it reviews the multiple objects to be reviewed, obtains multiple first review results, and returns the multiple first review results.
[0008] If the total number of frames of the multiple objects to be reviewed is greater than the preset number of frames, the multiple objects to be reviewed are sent to multiple third-party review modules, so that the multiple third-party review modules review the received multiple objects to be reviewed, obtain multiple second review results, and return the multiple second review results;
[0009] When it is detected that at least one of the received multiple first audit results or at least one of the received multiple second audit results indicates a pass, the at least one first audit result or the at least one second audit result is pushed to the terminal for display.
[0010] Optionally, before obtaining the multiple objects to be reviewed carried in the content review request, the method further includes:
[0011] Determining a plurality of initial objects to be reviewed, and obtaining a plurality of object identifiers corresponding to the plurality of initial objects to be reviewed;
[0012] The multiple object identifiers are used to mark the multiple initial objects to be reviewed to obtain the multiple objects to be reviewed.
[0013] Optionally, determining the total number of frames of the plurality of objects to be reviewed includes:
[0014] When the object to be reviewed is a video to be reviewed, determining the total time of each video to be reviewed among multiple videos to be reviewed, obtaining a preset frame capture time interval, determining the number of frames of each video to be reviewed based on the total time of each video to be reviewed and the preset frame capture time interval, and calculating the sum of multiple frame numbers corresponding to the multiple videos to be reviewed to obtain the total number of frames; or
[0015] When the object to be reviewed is a picture to be reviewed, the number of pictures of the multiple pictures to be reviewed is counted as the total number of frames; or,
[0016] When the object to be reviewed is a video to be reviewed or a picture to be reviewed, a first number of the videos to be reviewed in the multiple objects to be reviewed and a second number of the pictures to be reviewed in the multiple objects to be reviewed are counted, the preset frame capture time interval is obtained, the total time of each video to be reviewed in the first number of videos to be reviewed is determined, the number of frames of each video to be reviewed is determined based on the total time of each video to be reviewed and the preset frame capture time interval, the sum of the first number of frames corresponding to the first number of videos to be reviewed is calculated to obtain the target number of frames, the sum of the target number of frames and the second number is calculated to obtain the total number of frames.
[0017] Optionally, before the machine learning audit module receives the multiple objects to be audited, the method further includes:
[0018] Acquire a training material set, wherein the training material set includes a plurality of classification labels and a target training material corresponding to each of the plurality of classification labels;
[0019] The neural network is trained using the training material library to obtain an audit model and a feature library, wherein a new training material set is reacquired every preset period, and the model parameters of the audit model and the feature library are updated using the new training material set, the feature library includes a text feature library and an image feature library, and the text feature library includes the multiple classification labels and the target text features corresponding to each of the multiple classification labels, and the image feature library includes the multiple classification labels and the target image features corresponding to each of the multiple classification labels.
[0020] Optionally, upon receiving the multiple objects to be audited, the machine learning audit module audits the multiple objects to be audited, obtains multiple first audit results, and returns the multiple first audit results, including:
[0021] When receiving the plurality of videos to be reviewed, the machine learning module obtains a video identifier corresponding to each video to be reviewed in the plurality of videos to be reviewed, and determines a review order of the plurality of videos to be reviewed, wherein the object to be reviewed is the video to be reviewed;
[0022] Cutting frames of each video to be reviewed according to preset processing conditions to obtain multiple image frames corresponding to each video to be reviewed;
[0023] Performing feature extraction on a plurality of image frames corresponding to each of the videos to be reviewed to obtain a first feature set to be reviewed corresponding to each of the videos to be reviewed;
[0024] Inputting the first feature set to be reviewed corresponding to each video to be reviewed into the review model according to the review order, and outputting the initial first review result of each video to be reviewed;
[0025] Based on the initial first review result of each video to be reviewed, obtaining multiple initial first review results of the multiple videos to be reviewed;
[0026] Using multiple video identifiers to mark the multiple initial first review results to obtain the multiple first review results, and returning the multiple first review results; and / or,
[0027] When receiving the plurality of images to be reviewed, the machine learning module obtains an image identifier corresponding to each of the plurality of images to be reviewed, and determines a review order of the plurality of images to be reviewed, wherein the object to be reviewed is the image to be reviewed;
[0028] Extracting features from each of the multiple images to be reviewed to obtain a second feature set to be reviewed corresponding to each of the images to be reviewed;
[0029] Inputting the second feature set to be reviewed corresponding to each image to be reviewed into the review model according to the review order, and outputting the initial first review result of each image to be reviewed;
[0030] Based on the initial first review result of each of the images to be reviewed, obtaining multiple initial first review results of the multiple images to be reviewed;
[0031] The multiple initial first review results are annotated with multiple image identifiers to obtain the multiple first review results, and the multiple first review results are returned.
[0032] Optionally, inputting the to-be-audited feature set corresponding to each to-be-audited video into the audit model in the audit order, and outputting the initial first audit result of each to-be-audited video, includes:
[0033] Input the feature set to be reviewed corresponding to each video to be reviewed into the review model according to the review order, and the review model matches the input feature set to be reviewed with the feature library, obtains the probability value of the feature set to be reviewed under each classification label, and counts the maximum probability value among multiple probability values, and determines the classification label corresponding to the maximum probability value as the target classification label;
[0034] The first review result of each video to be reviewed is determined based on the target classification label corresponding to each video to be reviewed, and the first review result of each video to be reviewed is output.
[0035] Optionally, sending the multiple objects to be audited to multiple third-party audit modules includes:
[0036] Obtaining an operating parameter of each third-party audit module among the plurality of third-party audit modules, and when detecting that the operating parameter of at least one third-party audit module among the plurality of third-party audit modules indicates that the module is not in operation, counting the number of the at least one third-party audit module as the number of operable modules;
[0037] Divide the multiple objects to be reviewed into tasks according to the executable quantity to obtain multiple subtasks, wherein the executable quantity is equal to the quantity of the multiple subtasks, the subtasks carry a target quantity of objects to be reviewed with an execution order, and the target quantity is obtained by dividing the multiple objects to be reviewed by the executable quantity;
[0038] The multiple subtasks are sent in parallel to the at least one third-party audit module, so that when each third-party audit module in the at least one third-party audit module receives a subtask, it audits the target number of objects to be audited in accordance with the execution order, obtains the second audit results of the target number, and returns the second audit results of the target number.
[0039] According to the second aspect of the present application, a content review system is provided, including:
[0040] A determination module, configured to obtain, in response to a content review request, a plurality of objects to be reviewed carried in the content review request, and determine a total number of frames of the plurality of objects to be reviewed;
[0041] A scheduling module, configured to send the multiple objects to be reviewed to a machine learning review module if the total number of frames of the multiple objects to be reviewed is less than a preset number of frames;
[0042] The machine learning audit module is used to receive the multiple objects to be audited, audit the multiple objects to be audited, obtain multiple first audit results, and return the multiple first audit results to the scheduling module;
[0043] The scheduling module is further configured to send the multiple objects to be reviewed to multiple third-party review modules if the total number of frames of the multiple objects to be reviewed is greater than the preset number of frames, so that the multiple third-party review modules review the received multiple objects to be reviewed, obtain multiple second review results, and return the multiple second review results;
[0044] The scheduling module is also used to receive the multiple first audit results or the multiple second audit results, and when it is detected that at least one of the multiple first audit results or at least one of the multiple second audit results indicates a pass, push the at least one first audit result or the at least one second audit result to the terminal for display.
[0045] According to a third aspect of the present application, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the methods described in the first aspect when executing the computer program.
[0046] According to a fourth aspect of the present application, a readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the methods described in the first aspect are implemented.
[0047] By means of the above technical scheme, the present application provides a content review method, which first responds to a content review request, obtains multiple objects to be reviewed carried by the content review request, and determines the total number of frames of the multiple objects to be reviewed. Then, if it is detected that the total number of frames of the multiple objects to be reviewed is less than the preset number of frames, the multiple objects to be reviewed are sent to a machine learning review module. If it is detected that the total number of frames of the multiple objects to be reviewed is greater than the preset number of frames, the multiple objects to be reviewed are sent to multiple third-party review modules. Finally, when it is detected that at least one of the multiple first review results received or at least one of the multiple second review results indicates a pass, at least one first review result or at least one second review result is pushed to a terminal for display. By comparing the total number of frames of the multiple objects to be reviewed with the preset number of frames, the size of the task can be determined. If the total number of frames of the multiple objects to be reviewed is less than the preset number of frames, it means that the review task is small, and the machine learning review module can be used for review. If the total number of frames of the multiple objects to be reviewed is greater than the preset number of frames, it means that the review task is large, and the review task is sent to multiple third-party review nodes for parallel review in a clustered manner. The review speed is improved through scheduling and the dependence on manual review is eliminated.
[0048] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0050] Figure 1 A flow chart of a content review method provided in an embodiment of the present application is shown.
[0051] Figure 2 A flow chart of another content review method provided in an embodiment of the present application is shown.
[0052] Figure 3A A structural diagram of a content review system provided in an embodiment of the present application is shown.
[0053] Figure 3B A structural diagram of a content review system provided in an embodiment of the present application is shown.
[0054] Figure 4A schematic diagram of the device structure of a computer device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0055] Various aspects and features of the present application are described herein with reference to the accompanying drawings.
[0056] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but only as an example of an embodiment. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.
[0057] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.
[0058] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.
[0059] It should also be understood that although the present application has been described with reference to some specific examples, those skilled in the art will be able to readily implement many other equivalent forms of the present application.
[0060] The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
[0061] Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments applied for are merely examples of the present application, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that obscure the present application. Therefore, the specific structural and functional details applied for herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present application in a variety of ways with substantially any suitable detailed structure.
[0062] This specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," all of which may refer to one or more of the same or different embodiments according to the present application.
[0063] The present application embodiment provides a content review method, such as Figure 1 As shown, including:
[0064] 101. In response to a content review request, obtain multiple objects to be reviewed carried in the content review request, and determine the total number of frames of the multiple objects to be reviewed.
[0065] 102. If the total number of frames of multiple objects to be reviewed is less than the preset number of frames, the multiple objects to be reviewed are sent to the machine learning review module.
[0066] In the application embodiment, the execution of the embodiment of the application can be a content review system, which includes a scheduling module and a machine learning review module. After determining the total number of frames of multiple objects to be reviewed, the scheduling module will compare the total number of frames of the multiple objects to be reviewed with the preset number of frames. When it is detected that the total number of frames of the multiple objects to be reviewed is less than the preset number of frames, the multiple objects to be reviewed are sent to the machine learning review module. When the machine learning review module receives the multiple objects to be reviewed, it reviews the multiple objects to be reviewed, obtains multiple first review results, and sends the multiple first review results to the scheduling module.
[0067] 103. If the total number of frames of the multiple objects to be reviewed is greater than the preset number of frames, the multiple objects to be reviewed are sent to multiple third-party review modules.
[0068] In an embodiment of the present application, the content review system sends multiple objects to be reviewed to multiple third-party review modules, wherein each third-party review module can be understood as a third-party review node. After receiving the multiple objects to be reviewed, the multiple third-party review modules begin to review the multiple objects to be reviewed, obtain multiple second review results, and send the multiple second review results to the content review system.
[0069] It should be noted that, in principle, countless third-party audit nodes can be expanded according to the amount of tasks. Each audit node is an independent server, which is equivalent to a cluster service, improving the throughput of parallel audits.
[0070] 104. When it is detected that at least one of the received multiple first audit results or at least one of the received multiple second audit results indicates a pass, push the at least one first audit result or the at least one second audit result to the terminal for display.
[0071] In an embodiment of the present application, when it is detected that at least one of the multiple first audit results received or at least one of the multiple second audit results indicates a pass, the audit pass field is used to mark at least one first audit result or at least one second audit result to obtain the marked at least one first audit result or at least one second audit result, and the marked at least one first audit result or at least one second audit result is pushed to the terminal for display. The audit failure field may also be used to mark other first audit results or other second audit results to obtain the marked other first audit results or other second audit results, and the marked other first audit results or other second audit results are pushed to the terminal for display, wherein the other first audit results are the audit results of the multiple first audit results except at least one first audit result, and the other second audit results are the audit results of the multiple second audit results except at least one second audit result.
[0072] The method provided in the embodiment of the present application first responds to a content review request, obtains multiple objects to be reviewed carried by the content review request, and determines the total number of frames of the multiple objects to be reviewed. Then, if it is detected that the total number of frames of the multiple objects to be reviewed is less than the preset number of frames, the multiple objects to be reviewed are sent to a machine learning review module. If it is detected that the total number of frames of the multiple objects to be reviewed is greater than the preset number of frames, the multiple objects to be reviewed are sent to multiple third-party review modules. Finally, when it is detected that at least one of the multiple first review results received or at least one of the multiple second review results indicates a pass, at least one first review result or at least one second review result is pushed to a terminal for display. By comparing the total number of frames of the multiple objects to be reviewed with the preset number of frames, the size of the task volume can be determined. If the total number of frames of the multiple objects to be reviewed is less than the preset number of frames, it means that the review task volume is small, and the machine learning review module can be used for review. If the total number of frames of the multiple objects to be reviewed is greater than the preset number of frames, it means that the review task volume is large, and the review task is sent to multiple third-party review nodes in a cluster manner for parallel review. The review speed is improved through scheduling and the dependence on manual review is eliminated.
[0073] The present application embodiment provides a content review method, such as Figure 2 As shown, including:
[0074] 201. Determine a plurality of initial objects to be reviewed, and obtain a plurality of objects to be reviewed based on the plurality of initial objects to be reviewed.
[0075] In an embodiment of the present application, the content review system will receive a large number of objects to be reviewed uploaded by users within a preset time interval. In order to facilitate subsequent review, after receiving the content review request, it is necessary to obtain multiple object identifiers corresponding to multiple initial objects to be reviewed, and use multiple object identifiers to mark the multiple initial objects to be reviewed to obtain multiple objects to be reviewed.
[0076] 202. Obtain multiple objects to be reviewed carried in the content review request, and determine the total number of frames of the multiple objects to be reviewed.
[0077] In an embodiment of the present application, after obtaining multiple objects to be reviewed, it is also necessary to determine the total number of frames of the multiple objects to be reviewed. In actual application, the multiple objects to be reviewed may all be videos to be reviewed, or may all be pictures to be reviewed, or may be a mixture of videos to be reviewed and pictures to be reviewed.
[0078] Furthermore, when the object to be reviewed is a video to be reviewed, that is, multiple objects to be reviewed are all videos to be reviewed, the total time of each video to be reviewed in the multiple videos to be reviewed is determined, a preset frame cutoff time interval is obtained, and the number of frames of each video to be reviewed is determined based on the total time of each video to be reviewed and the preset frame cutoff interval, and the sum of multiple frame numbers corresponding to the multiple videos to be reviewed is calculated to obtain the total number of frames; when the object to be reviewed is a picture to be reviewed, that is, multiple objects to be reviewed are all pictures to be reviewed, the number of pictures of the multiple pictures to be reviewed is counted as the total number of frames; when the object to be reviewed is a video to be reviewed or a picture to be reviewed That is, the multiple objects to be reviewed include a certain number of videos to be reviewed and a certain number of pictures to be reviewed, a first number of videos to be reviewed in the multiple objects to be reviewed and a second number of pictures to be reviewed in the multiple objects to be reviewed are counted, a preset frame capture time interval is obtained, the total time of each video to be reviewed in the first number of videos to be reviewed is determined, the number of frames of each video to be reviewed is determined based on the total time of each video to be reviewed and the preset frame capture time interval, the sum of the first number of frames corresponding to the first number of videos to be reviewed is calculated to obtain a target number of frames, the sum of the target number of frames and the second number is calculated to obtain the total number of frames.
[0079] 203. If the total number of frames of the multiple objects to be reviewed is less than the preset number of frames, the multiple objects to be reviewed are sent to the machine learning review module.
[0080] For example, if the total number of frames of the objects to be reviewed is 50, and the preset number of frames is set to 100, the task volume of 50 frames is relatively small, and the machine learning review module that comes with the content review system can complete the review quickly. Therefore, there is no need to review through a third-party review module, that is, send the 50 objects to be reviewed to the machine learning review module.
[0081] In an embodiment of the present application, the audit model included in the machine learning audit module is pre-trained, and the specific training process is: first, a training material set is obtained, the training material set includes multiple classification labels and target training materials corresponding to each classification label in the multiple classification labels, and then the neural network is trained using the training material library to obtain an audit model and a feature library, wherein a new training material set is re-acquired every preset period, and the model parameters and feature library of the audit model are updated using the new training material set, the feature library includes a text feature library and an image feature library, and the text feature library includes multiple classification labels and target text features corresponding to each classification label in the multiple classification labels, and the image feature library includes the multiple classification labels and target image features corresponding to each classification label in the multiple classification labels. It should be noted that the machine learning module also needs to obtain an initial training set, which includes a large amount of video data and image data. After obtaining the initial training set, each video data is cut into frames to obtain multiple video frames (also called picture frames), and features are extracted from the multiple video frames to obtain multiple features corresponding to each video data. Multiple classification labels are obtained and the multiple features are marked with multiple classification labels. For pictures, multiple features are directly extracted from the pictures, and multiple features are also marked with multiple classification labels. In this way, all features corresponding to all video data and picture data are combined to obtain a training material set, which can be grouped according to classification labels.
[0082] Specifically, after the review module is trained, the processing process of the machine learning module for the videos to be reviewed is: when multiple videos to be reviewed are received, the video identification corresponding to each video to be reviewed in the multiple videos to be reviewed is obtained, and the review order of the multiple videos to be reviewed is determined, wherein the object to be reviewed is the video to be reviewed; then, each video to be reviewed is cut into frames according to preset processing conditions to obtain multiple image frames corresponding to each video to be reviewed, and features are extracted from the multiple image frames corresponding to each video to be reviewed to obtain a first feature set to be reviewed corresponding to each video to be reviewed, and the first feature set to be reviewed corresponding to each video to be reviewed is input into the review model according to the review order, and the initial first review result of each video to be reviewed is output; finally, based on the initial first review result of each video to be reviewed, multiple initial first review results of multiple videos to be reviewed are obtained, and the multiple initial first review results are labeled with multiple video identifications to obtain multiple first review results, and multiple first review results are returned.
[0083] It should be noted that one of the following methods may be used to cut frames for each video to be reviewed: sampling by frame identifier, sampling by timestamp, and sampling by keyframe; wherein cutting frames for each video to be reviewed by sampling by frame identifier specifically includes: determining the number of frames of all video frames of the video to be reviewed, determining a sampling interval based on the number of frames and a preset upper limit on the number of cut frames, and cutting frames for all video frames of the video to be reviewed based on the sampling interval to obtain multiple video frames (also referred to as picture frames) of video data; cutting frames for each video to be reviewed by sampling by timestamp specifically includes: determining the total time of the video to be reviewed, determining a sampling interval based on the total time and a preset upper limit on the number of cut frames. The sampling interval is determined according to the upper limit of the number of cut frames, and all video frames of the video to be reviewed are cut according to the sampling interval to obtain multiple video frames of the video to be reviewed; each video to be reviewed is cut according to key frame sampling, specifically including: obtaining the key frame of the video to be reviewed, if the number of frames of the key frame is greater than or equal to the preset upper limit of the number of cut frames, then the sampling interval is determined according to the number of frames of the key frame and the upper limit of the number of cut frames, and all video frames of the video to be reviewed are cut according to the sampling interval to obtain multiple video frames of the video to be reviewed, if the number of frames of the key frame is less than the preset upper limit of the number of cut frames, then the key frame is used as the multiple video frames of the video to be reviewed.
[0084] Furthermore, the feature set to be reviewed corresponding to each video to be reviewed is input into the review model in the review order, and the initial first review result of each video to be reviewed is output, which specifically includes: the feature set to be reviewed corresponding to each video to be reviewed is input into the review model in the review order, the review model matches the input feature set to be reviewed with the feature library, obtains the probability value of the feature set to be reviewed under each classification label, and counts the maximum probability value among multiple probability values, and determines the classification label corresponding to the maximum probability value as the target classification label, and then determines the first review result of each video to be reviewed based on the target classification label corresponding to each video to be reviewed and outputs the first review result of each video to be reviewed.
[0085] Furthermore, after the review module is trained, the processing process of the machine learning module for the pictures to be reviewed is as follows: when the machine learning module receives multiple pictures to be reviewed, it obtains the image identifier corresponding to each of the multiple pictures to be reviewed, determines the review order of the multiple pictures to be reviewed, wherein the object to be reviewed is the picture to be reviewed, and then performs feature extraction on each of the multiple pictures to be reviewed to obtain a second feature set to be reviewed corresponding to each picture to be reviewed, and then inputs the second feature set to be reviewed corresponding to each picture to be reviewed into the review model according to the review order, outputs the initial first review result of each picture to be reviewed, and finally obtains multiple initial first review results of multiple pictures to be reviewed based on the initial first review result of each picture to be reviewed, and uses multiple image identifiers to mark the multiple initial first review results to obtain multiple first review results, and returns multiple first review results. It should be noted that one can be returned after reviewing, or multiple objects to be reviewed can be returned uniformly after reviewing. The specific return method can be flexibly set according to actual needs.
[0086] 204. If the total number of frames of the multiple objects to be reviewed is greater than the preset number of frames, the multiple objects to be reviewed are sent to multiple third-party review modules.
[0087] In an embodiment of the present application, if the total number of frames of multiple objects to be audited is greater than a preset number of frames, the operating parameters of each third-party audit module in the multiple third-party audit modules are obtained, and when it is detected that the operating parameters of at least one third-party audit module in the multiple third-party audit modules indicate that it is not running, the number of at least one third-party audit module is counted as the number of executable modules, and then the multiple objects to be audited are divided into tasks according to the number of executable modules to obtain multiple subtasks, wherein the number of executable modules is equal to the number of multiple subtasks, and the subtasks carry a target number of objects to be audited with an execution order, and the target number is obtained by dividing the multiple objects to be audited by the executable number, for example, the number of objects to be audited is 10000. The number of third-party audit modules that can be run is 100, that is, the number of subtasks is also 100, and the target number is 10000 divided by 100, which is equal to 100. Finally, the 100 subtasks are sent to the 100 third-party audit modules in parallel. A distributed queue can be used so that when each of the 100 third-party audit modules receives a subtask, it audits the 100 audited objects in the order of execution, obtains the second audit results of the target number, and returns the second audit results of the target number. It should be noted that one can be returned after auditing one, or all 100 can be returned uniformly after auditing. The specific return method can be flexibly set according to actual needs.
[0088] It should be noted that the audit method of the third-party audit module can be the same as the audit method of the machine learning audit module that comes with the content audit system, or other audit methods can be used. For example, the third-party audit module performs the following operations for each object to be audited (an object carried by a subtask): extract the target features of the object to be audited, obtain multiple classification labels, and a preset feature library corresponding to each classification label in the multiple classification labels, fuzzy match the target features with the preset feature library corresponding to each classification label to obtain the target classification label, obtain the second initial audit result based on the target classification label, obtain the object identifier corresponding to the object to be audited, and use the object identifier to annotate the second initial audit result to obtain the second audit result. In the actual application process, other audit methods can also be included, which are not specifically limited here.
[0089] 205. When it is detected that at least one of the received multiple first audit results or at least one of the received multiple second audit results indicates a pass, push the at least one first audit result or the at least one second audit result to the terminal for display.
[0090] Exemplarily, the machine learning review module returns 1,000 first review results, each first review result corresponds to a classification label. If the classification label is a positive label, the corresponding first review result indicates pass; if the classification label is a negative label, the corresponding first review result indicates fail. If 800 of the 1,000 first review results pass, the "Review Passed" field is obtained, and the 800 first review results are labeled with the "Review Passed" field respectively, and the labeled 800 first review results are pushed to the terminal for display. For the 200 first review results that fail, the "Review Failed" field is obtained, and the 200 first review results are labeled with the "Review Failed" field, and the labeled 200 first review results are pushed to the terminal for display. The processing method for the second review result is the same as above, and will not be repeated here.
[0091] The method provided in the embodiment of the present application first determines multiple initial objects to be reviewed, obtains multiple objects to be reviewed based on the multiple initial objects to be reviewed, obtains multiple objects to be reviewed carried by the content review request, and determines the total number of frames of the multiple objects to be reviewed. Then, if the total number of frames of the multiple objects to be reviewed is less than the preset number of frames, the multiple objects to be reviewed are sent to the machine learning review module. If the total number of frames of the multiple objects to be reviewed is greater than the preset number of frames, the multiple objects to be reviewed are sent to multiple third-party review modules. Finally, when it is detected that at least one of the multiple first review results or at least one of the multiple second review results indicates a pass, at least one first review result or at least one second review result is pushed to the terminal for display. By comparing the total number of frames of the multiple objects to be reviewed with the preset number of frames, the size of the task volume can be determined. If the total number of frames of the multiple objects to be reviewed is less than the preset number of frames, it means that the review task volume is small, and the self-owned machine learning review module can be used for review. If the total number of frames of the multiple objects to be reviewed is greater than the preset number of frames, it means that the review task volume is large, and the review task is sent to multiple third-party review nodes for parallel review in a cluster manner. The review speed is improved through scheduling and the dependence on manual review is eliminated.
[0092] Further, as Figure 1 The specific implementation of the method is as follows: Figure 3A As shown, an embodiment of the present application provides a content review system, including: a determination module 301, a scheduling module 302 and a machine learning review module 303.
[0093] The determination module 301 is used to respond to the content review request, obtain multiple objects to be reviewed carried in the content review request, and determine the total number of frames of the multiple objects to be reviewed;
[0094] The scheduling module 302 is used to send the multiple objects to be reviewed to the machine learning review module if the total number of frames of the multiple objects to be reviewed is less than a preset number of frames;
[0095] The machine learning audit module 303 is used to receive the multiple objects to be audited, audit the multiple objects to be audited, obtain multiple first audit results, and return the multiple first audit results to the scheduling module;
[0096] The scheduling module 302 is further configured to send the multiple objects to be reviewed to multiple third-party review modules if the total number of frames of the multiple objects to be reviewed is greater than a preset number of frames, so that the multiple third-party review modules review the received multiple objects to be reviewed, obtain multiple second review results, and return the multiple second review results;
[0097] The scheduling module 302 is also used to receive multiple first audit results or multiple second audit results, and when it is detected that at least one first audit result among the multiple first audit results or at least one second audit result among the multiple second audit results indicates a pass, at least one first audit result or at least one second audit result is pushed to the terminal for display.
[0098] In specific application scenarios, such as Figure 3B As shown, the system further includes: an acquisition module 304 and a labeling module 305 .
[0099] The acquisition module 304 is used to determine a plurality of initial objects to be reviewed, and to acquire a plurality of object identifiers corresponding to the plurality of initial objects to be reviewed;
[0100] The marking module 305 is used to mark multiple initial objects to be reviewed using multiple object identifiers to obtain multiple objects to be reviewed.
[0101] In a specific application scenario, the determination module 301 is also used for: when the object to be reviewed is a video to be reviewed, determining the total time of each video to be reviewed in a plurality of videos to be reviewed, obtaining a preset frame cutoff time interval, determining the number of frames of each video to be reviewed based on the total time of each video to be reviewed and the preset frame cutoff time interval, calculating the sum of the multiple frame numbers corresponding to the plurality of videos to be reviewed, and obtaining the total number of frames; or, when the object to be reviewed is a picture to be reviewed, counting the number of pictures of the plurality of pictures to be reviewed as the total number of frames; or, when the object to be reviewed is a video to be reviewed or a picture to be reviewed, counting a first number of videos to be reviewed included in the plurality of objects to be reviewed and a second number of pictures to be reviewed included in the plurality of objects to be reviewed, obtaining a preset frame cutoff time interval, determining the total time of each video to be reviewed in the first number of videos to be reviewed, determining the number of frames of each video to be reviewed based on the total time of each video to be reviewed and the preset frame cutoff time interval, calculating the sum of the first number of frames corresponding to the first number of videos to be reviewed, obtaining the target number of frames, calculating the sum of the target number of frames and the second number, and obtaining the total number of frames.
[0102] In a specific application scenario, the machine learning audit module 303 is also used to: obtain a training material set, the training material set includes multiple classification labels and target training materials corresponding to each of the multiple classification labels; use the training material library to train the neural network to obtain an audit model and a feature library, wherein a new training material set is re-acquired every preset period, and the model parameters and feature library of the audit model are updated using the new training material set, the feature library includes a text feature library and an image feature library, and the text feature library includes multiple classification labels and target text features corresponding to each of the multiple classification labels, and the image feature library includes multiple classification labels and target image features corresponding to each of the multiple classification labels.
[0103] In a specific application scenario, the machine learning review module 303 is also used to: when receiving multiple videos to be reviewed, obtain the video identification corresponding to each video to be reviewed in the multiple videos to be reviewed, and determine the review order of the multiple videos to be reviewed, wherein the object to be reviewed is the video to be reviewed; cut frames of each video to be reviewed according to preset processing conditions to obtain multiple image frames corresponding to each video to be reviewed; perform feature extraction on the multiple image frames corresponding to each video to be reviewed to obtain a first feature set to be reviewed corresponding to each video to be reviewed; input the first feature set to be reviewed corresponding to each video to be reviewed into the review model according to the review order, and output an initial first review result for each video to be reviewed; based on the initial first review result of each video to be reviewed, obtain multiple initial first review results for multiple videos to be reviewed; use multiple video identifications to perform feature extraction on multiple initial first review results for multiple videos to be reviewed; The method comprises the steps of: annotating a review result, obtaining a plurality of first review results, and returning the plurality of first review results; and / or, when receiving a plurality of images to be reviewed, obtaining a picture identifier corresponding to each of the plurality of images to be reviewed, and determining a review order of the plurality of images to be reviewed, wherein the object to be reviewed is the image to be reviewed; performing feature extraction on each of the plurality of images to be reviewed, and obtaining a second feature set to be reviewed corresponding to each image to be reviewed; inputting the second feature set to be reviewed corresponding to each image to be reviewed into the review model according to the review order, and outputting an initial first review result of each image to be reviewed; obtaining a plurality of initial first review results of the plurality of images to be reviewed based on the initial first review result of each image to be reviewed; annotating the plurality of initial first review results with a plurality of picture identifiers, and obtaining a plurality of first review results, and returning a plurality of first review results.
[0104] In a specific application scenario, the machine learning review module 303 is also used to: input the feature set to be reviewed corresponding to each video to be reviewed into the review model in the review order, the review model matches the input feature set to be reviewed with the feature library, obtains the probability value of the feature set to be reviewed under each classification label, and counts the maximum probability value among multiple probability values, and determines the classification label corresponding to the maximum probability value as the target classification label; determines the first review result of each video to be reviewed based on the target classification label corresponding to each video to be reviewed, and outputs the first review result of each video to be reviewed.
[0105] In a specific application scenario, the scheduling module 302 is also used to: obtain the operating parameters of each third-party audit module in multiple third-party audit modules, and when it is detected that the operating parameters of at least one third-party audit module in the multiple third-party audit modules indicate that it is not running, count the number of at least one third-party audit module as the number of executable modules; divide the multiple objects to be audited into tasks according to the number of executable modules to obtain multiple subtasks, wherein the number of executable modules is equal to the number of multiple subtasks, and the subtasks carry a target number of objects to be audited with an execution order, and the target number is obtained by dividing the multiple objects to be audited by the executable number; send the multiple subtasks in parallel to at least one third-party audit module, so that each third-party audit module in at least one third-party audit module, when receiving a subtask, audits the target number of objects to be audited in the execution order, obtains the target number of second audit results, and returns the target number of second audit results.
[0106] The system provided by the embodiment of the present application first responds to the content review request through a determination module, obtains multiple objects to be reviewed carried in the content review request, and determines the total number of frames of the multiple objects to be reviewed. Then, if the scheduling module detects that the total number of frames of the multiple objects to be reviewed is less than the preset number of frames, the multiple objects to be reviewed are sent to the machine learning review module. If the scheduling module detects that the total number of frames of the multiple objects to be reviewed is greater than the preset number of frames, the multiple objects to be reviewed are sent to multiple third-party review modules. Subsequently, the multiple objects to be reviewed are received through the machine learning review module, the multiple objects to be reviewed are reviewed to obtain multiple first review results, and the multiple first review results are returned to the scheduling module. Finally, the scheduling module receives multiple first review results or multiple third-party review modules returned. A second audit result is detected. When it is detected that at least one of the multiple first audit results or at least one of the multiple second audit results indicates a pass, at least one first audit result or at least one second audit result is pushed to the terminal for display; by comparing the total number of frames of the multiple objects to be audited with the preset number of frames, the size of the task can be determined. If the total number of frames of the multiple objects to be audited is less than the preset number of frames, it means that the audit task volume is small, and the self-owned machine learning audit module can be used for audit. If the total number of frames of the multiple objects to be audited is greater than the preset number of frames, it means that the audit task volume is large. The audit tasks are sent to multiple third-party audit nodes in a cluster manner for parallel audit. The audit speed is improved through scheduling and the dependence on manual audit is eliminated.
[0107] In an exemplary embodiment, see Figure 4, and also provides a computer device, which includes a bus, a processor, a memory and a communication interface, and may also include an input and output interface and a display device, wherein each functional unit can communicate with each other through the bus. The memory stores a computer program, and the processor is used to execute the program stored in the memory and execute the content review method in the above embodiment.
[0108] A readable storage medium stores a computer program, which implements the steps of the content review method when executed by a processor.
[0109] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by hardware, or by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.
[0110] Those skilled in the art will appreciate that the accompanying drawings are merely schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily required for implementing the present application.
[0111] Those skilled in the art will appreciate that the modules in the device in the implementation scenario can be distributed in the device in the implementation scenario according to the implementation scenario description, or can be changed accordingly and located in one or more devices different from the implementation scenario. The modules in the above implementation scenario can be combined into one module, or can be further split into multiple sub-modules.
[0112] The above application serial numbers are for description only and do not represent the advantages or disadvantages of the implementation scenarios.
[0113] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.
Claims
1. A content review method, characterized in that: include: In response to a content review request, obtaining a plurality of objects to be reviewed carried in the content review request, and determining a total number of frames of the plurality of objects to be reviewed; If the total number of frames of the multiple objects to be reviewed is less than the preset number of frames, the multiple objects to be reviewed are sent to the machine learning review module. When the machine learning review module receives the multiple objects to be reviewed, it reviews the multiple objects to be reviewed, obtains multiple first review results, and returns the multiple first review results. If the total number of frames of the multiple objects to be reviewed is greater than the preset number of frames, the multiple objects to be reviewed are sent to multiple third-party review modules, so that the multiple third-party review modules review the received multiple objects to be reviewed, obtain multiple second review results, and return the multiple second review results; When it is detected that at least one of the received multiple first audit results or at least one of the received multiple second audit results indicates a pass, the at least one first audit result or the at least one second audit result is pushed to the terminal for display.
2. The content review method according to claim 1, characterized in that: Before obtaining the multiple objects to be reviewed carried in the content review request, the method further includes: Determining a plurality of initial objects to be reviewed, and obtaining a plurality of object identifiers corresponding to the plurality of initial objects to be reviewed; The multiple object identifiers are used to mark the multiple initial objects to be reviewed to obtain the multiple objects to be reviewed.
3. The content review method according to claim 1, characterized in that: Determining the total number of frames of the plurality of objects to be reviewed includes: When the object to be reviewed is a video to be reviewed, determining the total time of each video to be reviewed among multiple videos to be reviewed, obtaining a preset frame capture time interval, determining the number of frames of each video to be reviewed based on the total time of each video to be reviewed and the preset frame capture time interval, and calculating the sum of multiple frame numbers corresponding to the multiple videos to be reviewed to obtain the total number of frames; or When the object to be reviewed is a picture to be reviewed, the number of pictures of the multiple pictures to be reviewed is counted as the total number of frames; or, When the object to be reviewed is a video to be reviewed or a picture to be reviewed, a first number of the videos to be reviewed in the multiple objects to be reviewed and a second number of the pictures to be reviewed in the multiple objects to be reviewed are counted, the preset frame capture time interval is obtained, the total time of each video to be reviewed in the first number of videos to be reviewed is determined, the number of frames of each video to be reviewed is determined based on the total time of each video to be reviewed and the preset frame capture time interval, the sum of the first number of frames corresponding to the first number of videos to be reviewed is calculated to obtain the target number of frames, the sum of the target number of frames and the second number is calculated to obtain the total number of frames.
4. The content review method according to claim 1, characterized in that: Before the machine learning audit module receives the multiple objects to be audited, the method further includes: Acquire a training material set, wherein the training material set includes a plurality of classification labels and a target training material corresponding to each of the plurality of classification labels; The neural network is trained using the training material library to obtain an audit model and a feature library, wherein a new training material set is reacquired every preset period, and the model parameters of the audit model and the feature library are updated using the new training material set, the feature library includes a text feature library and an image feature library, and the text feature library includes the multiple classification labels and the target text features corresponding to each of the multiple classification labels, and the image feature library includes the multiple classification labels and the target image features corresponding to each of the multiple classification labels.
5. The content review method according to claim 4, characterized in that: When receiving the multiple objects to be audited, the machine learning audit module audits the multiple objects to be audited, obtains multiple first audit results, and returns the multiple first audit results, including: When receiving the plurality of videos to be reviewed, the machine learning module obtains a video identifier corresponding to each video to be reviewed in the plurality of videos to be reviewed, and determines a review order of the plurality of videos to be reviewed, wherein the object to be reviewed is the video to be reviewed; Cutting frames of each video to be reviewed according to preset processing conditions to obtain multiple image frames corresponding to each video to be reviewed; Performing feature extraction on a plurality of image frames corresponding to each of the videos to be reviewed to obtain a first feature set to be reviewed corresponding to each of the videos to be reviewed; Inputting the first to-be-audited feature set corresponding to each to-be-audited video into the audit model according to the audit order, and outputting the initial first audit result of each to-be-audited video; Based on the initial first review result of each video to be reviewed, obtaining multiple initial first review results of the multiple videos to be reviewed; Using multiple video identifiers to mark the multiple initial first review results to obtain the multiple first review results, and returning the multiple first review results; and / or, When receiving the plurality of images to be reviewed, the machine learning module obtains an image identifier corresponding to each of the plurality of images to be reviewed, and determines a review order of the plurality of images to be reviewed, wherein the object to be reviewed is the image to be reviewed; Extracting features from each of the multiple images to be reviewed to obtain a second feature set to be reviewed corresponding to each of the images to be reviewed; Inputting the second feature set to be reviewed corresponding to each image to be reviewed into the review model according to the review order, and outputting the initial first review result of each image to be reviewed; Based on the initial first review result of each of the images to be reviewed, obtaining multiple initial first review results of the multiple images to be reviewed; The multiple initial first review results are annotated with multiple image identifiers to obtain the multiple first review results, and the multiple first review results are returned.
6. The content review method according to claim 5, characterized in that: The step of inputting the to-be-audited feature set corresponding to each to-be-audited video into the audit model in the audit order, and outputting the initial first audit result of each to-be-audited video includes: Input the feature set to be reviewed corresponding to each video to be reviewed into the review model according to the review order, and the review model matches the input feature set to be reviewed with the feature library, obtains the probability value of the feature set to be reviewed under each classification label, and counts the maximum probability value among multiple probability values, and determines the classification label corresponding to the maximum probability value as the target classification label; The first review result of each video to be reviewed is determined based on the target classification label corresponding to each video to be reviewed, and the first review result of each video to be reviewed is output.
7. The content review method according to claim 1, characterized in that: The sending the plurality of objects to be audited to a plurality of third-party audit modules includes: Obtaining an operating parameter of each third-party audit module among the plurality of third-party audit modules, and when detecting that the operating parameter of at least one third-party audit module among the plurality of third-party audit modules indicates that the module is not in operation, counting the number of the at least one third-party audit module as the number of operable modules; Divide the multiple objects to be reviewed into tasks according to the executable quantity to obtain multiple subtasks, wherein the executable quantity is equal to the quantity of the multiple subtasks, the subtasks carry a target quantity of objects to be reviewed with an execution order, and the target quantity is obtained by dividing the multiple objects to be reviewed by the executable quantity; The multiple subtasks are sent in parallel to the at least one third-party audit module, so that when each third-party audit module in the at least one third-party audit module receives a subtask, it audits the target number of objects to be audited in accordance with the execution order, obtains the second audit results of the target number, and returns the second audit results of the target number.
8. A content review system, characterized in that: include: A determination module, configured to obtain, in response to a content review request, a plurality of objects to be reviewed carried in the content review request, and determine a total number of frames of the plurality of objects to be reviewed; A scheduling module, configured to send the multiple objects to be reviewed to a machine learning review module if the total number of frames of the multiple objects to be reviewed is less than a preset number of frames; The machine learning audit module is used to receive the multiple objects to be audited, audit the multiple objects to be audited, obtain multiple first audit results, and return the multiple first audit results to the scheduling module; The scheduling module is further configured to send the multiple objects to be reviewed to multiple third-party review modules if the total number of frames of the multiple objects to be reviewed is greater than the preset number of frames, so that the multiple third-party review modules review the received multiple objects to be reviewed, obtain multiple second review results, and return the multiple second review results; The scheduling module is also used to receive the multiple first audit results or the multiple second audit results, and when it is detected that at least one of the multiple first audit results or at least one of the multiple second audit results indicates a pass, push the at least one first audit result or the at least one second audit result to the terminal for display.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Contents classification method and system
CN101296155A
Video review method and device, electronic equipment and storage medium
CN109618226A
Video auditing method and system
CN110300309A
To-be-audited content shunting method and device, server and computer storage medium
CN113592465A
Content distribution method and device, server and storage medium
CN114374857A
