Difficult sample data mining method, device, equipment and storage medium

By dividing data in content security audit and using similarity judgment, the problem of difficult sample mining in label-free scenarios is solved, the performance and efficiency of the machine audit model is improved, and the burden of manual audit is reduced.

CN112784095BActive Publication Date: 2024-11-29BEIJINGLUOTA INFORMATION TECHNOLOGYCO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110063977.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-18
Publication Date
2024-11-29
Estimated Expiration
2041-01-18

AI Technical Summary

Technical Problem

The existing technology is difficult to quickly and conveniently mine difficult samples from massive streaming data in the unlabeled scenario, resulting in insufficient recall and accuracy of the machine audit model, affecting the efficiency of content security audit.

Method used

By setting the time window and time interval, the machine audit model is used to determine the audit result of the substream data. If there is an inconsistent substream data similarity to the adjacent substream data, it is determined as Difficult samples, realize efficient mining of difficult samples from labelless stream data.

Benefits of technology

It improves the recall and accuracy of the machine audit model, reduces the total amount of pushed data, reduces the burden of manual audit, and enhances the efficiency of content security audit.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112784095B_ABST
    Figure CN112784095B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method, device, equipment and storage medium for mining difficult sample data, the method comprising: obtaining the stream data to be detected, determining a plurality of continuous sub-stream data in the stream data to be detected based on a set time window and time interval; determining the audit result of each sub-stream data in the plurality of continuous sub-stream data through a machine audit model; if there is sub-stream data with inconsistent audit results, determining the similarity between the inconsistent sub-stream data and the adjacent sub-stream data, and if the similarity meets a preset condition, determining the sub-stream data with inconsistent audit results as a difficult sample. This solution realizes the rapid and efficient mining of difficult samples from massive unlabeled stream data, and is used for model iteration, effectively improving model performance, ensuring the recall rate and accuracy of the model-pushed data, and at the same time enabling the corresponding audit model to discover more illegal data and reduce the overall data push volume.
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 computers, and in particular to a method, apparatus, device and storage medium for mining difficult sample data. Background Art

[0002] The rapid development and rise of short video, live broadcast, news and information platforms has brought about an increasing amount of video, audio and other data. As the intensity of national supervision continues to increase, many bad contents have become key areas of concern, and audio and video content security review plays an important role in this. Modern content security review systems are mainly based on machine review. By filtering out a large amount of invalid and non-violation audio and video data, only a small amount of potential violation data is pushed for manual review, which greatly improves the review efficiency, reduces the burden of manual review, and avoids fatigue, misreview, and missed review caused by manual review when facing a large amount of audio and video data. Therefore, in order to ensure the security of short videos, live broadcasts and other audio and video content, the machine review in the content security review system needs to push as much violation data as possible, and on this premise, reduce the total amount of pushed data (that is, high recall rate and high accuracy).

[0003] Improving the performance of the machine audit model is crucial to ensuring the security of online streaming data. Improving the machine audit model is mainly reflected in two aspects: first, there are difficult positive samples with relatively hidden violations in the online streaming data (for example, the violation area is small, there is occlusion, the background is dark and complex, etc.), which will affect the recall rate of the machine audit model; second, there are difficult negative samples in the online streaming data that are very similar to the violations, but are not actually violations (for example, black rods are considered to be illegal items), which will affect the accuracy of the machine audit model. Therefore, adding difficult positive samples and difficult negative samples for retraining can improve the ability of the machine audit model to identify difficult samples.

[0004] In the existing technology, most of the difficult sample mining methods to improve model performance are to mine difficult samples with existing data labels, which is supervised mining. However, it is not possible to mine unlabeled scenes with huge amounts of data such as live streaming. If the data is labeled, the cost is too high and it takes a long time, and few difficult samples are mined. Therefore, in order to improve the performance of the machine audit model, it is necessary to quickly, conveniently and accurately mine effective difficult samples from online streaming data without supervision. Summary of the invention

[0005] The embodiments of the present invention provide a difficult sample data mining method, apparatus, equipment and storage medium, which realizes fast and efficient mining of difficult samples from massive unlabeled streaming data, and is used for model iteration, effectively improving model performance, ensuring the recall rate and accuracy of model pushed data, and at the same time enabling the corresponding audit model to discover more illegal data, reducing the overall data push volume, and further reducing the burden of manual review.

[0006] In a first aspect, an embodiment of the present invention provides a difficult sample data mining method, the method comprising:

[0007] Acquire the flow data to be detected, and determine a plurality of continuous sub-flow data in the flow data to be detected based on a set time window and a time interval;

[0008] Determine, by a machine audit model, an audit result of each sub-flow data in the plurality of continuous sub-flow data;

[0009] If there is sub-stream data with inconsistent audit results, the similarity between the inconsistent sub-stream data and adjacent sub-stream data is determined. If the similarity meets a preset condition, the sub-stream data with inconsistent audit results is determined to be a difficult sample.

[0010] In a second aspect, an embodiment of the present invention further provides a difficult sample data mining device, the device comprising:

[0011] A sub-flow data determination module, used to obtain the flow data to be detected, and determine a plurality of continuous sub-flow data in the flow data to be detected based on a set time window and a time interval;

[0012] An audit result determination module, used to determine the audit result of each sub-flow data in the plurality of continuous sub-flow data by using a machine audit model;

[0013] The difficult sample determination module is used to determine the similarity between the inconsistent substream data and the adjacent substream data if there is substream data with inconsistent audit results, and determine that the substream data with inconsistent audit results is a difficult sample if the similarity meets a preset condition.

[0014] In a third aspect, an embodiment of the present invention further provides a difficult sample data mining device, the device comprising:

[0015] one or more processors;

[0016] a storage device for storing one or more programs,

[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the difficult sample data mining method described in the embodiment of the present invention.

[0018] In a fourth aspect, an embodiment of the present invention further provides a storage medium storing computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute the difficult sample data mining method described in the embodiment of the present invention.

[0019] In an embodiment of the present invention, by acquiring the flow data to be detected, a plurality of continuous sub-flow data in the flow data to be detected is determined based on a set time window and a time interval, and the audit result of each sub-flow data in the plurality of continuous sub-flow data is determined through a machine audit model. If there are sub-flow data with inconsistent audit results, the similarity between the inconsistent sub-flow data and the adjacent sub-flow data is determined. If the similarity meets a preset condition, the sub-flow data with inconsistent audit results is determined to be a difficult sample. This scheme realizes fast and efficient mining of difficult samples from massive unlabeled flow data. At the same time, the determined difficult samples can be iterated into the machine audit model, effectively improving the model performance, ensuring the recall rate and accuracy of the model pushed data, and at the same time enabling the corresponding audit model to discover more illegal data, reducing the overall data push volume, and further reducing the burden of manual audit. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 A flowchart of a difficult sample data mining method provided by an embodiment of the present invention;

[0021] Figure 2 A flowchart of another difficult sample data mining method provided by an embodiment of the present invention;

[0022] Figure 3 A flowchart of another difficult sample data mining method provided by an embodiment of the present invention;

[0023] Figure 3a A schematic diagram of a time window movement provided by an embodiment of the present invention;

[0024] Figure 4 A flowchart of another difficult sample data mining method provided by an embodiment of the present invention;

[0025] Figure 5 A flowchart of another difficult sample data mining method provided by an embodiment of the present invention;

[0026] Figure 6 A flowchart of another difficult sample data mining method provided by an embodiment of the present invention;

[0027] Figure 6a A schematic diagram of performing difficult sample mining through a machine audit model provided by an embodiment of the present invention;

[0028] Figure 6b A schematic diagram of another method of performing difficult sample mining through a machine audit model provided by an embodiment of the present invention;

[0029] Figure 7 A structural block diagram of a difficult sample data mining device provided by an embodiment of the present invention;

[0030] Figure 8 A schematic diagram of the structure of a device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0031] The embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the embodiments of the present invention, rather than to limit the embodiments of the present invention. It is also necessary to explain that, for ease of description, only parts related to the embodiments of the present invention are shown in the accompanying drawings, rather than all structures.

[0032] Figure 1 The flowchart of a method for mining difficult sample data provided by an embodiment of the present invention is applicable to mining difficult sample data. The method can be executed by a computing device such as a server, and specifically includes the following steps:

[0033] Step S101: Acquire the flow data to be detected, and determine a plurality of continuous sub-flow data in the flow data to be detected based on a set time window and time interval.

[0034] In one embodiment, the stream data may be a sequence of data such as a video stream and an audio stream generated during a live broadcast. In this solution, the data that needs to be tested and includes the stream data is referred to as the data to be tested. The purpose of the test is to find out whether there is non-compliant content in the stream data, so as to timely standardize the live broadcast content.

[0035] In one embodiment, the flow data to be detected is intercepted by using a set time window to obtain the flow data to be detected corresponding to the time window. For example, the time window may be 10 seconds. That is, the flow data to be detected corresponding to the 10 second time window is processed as a processing object.

[0036] In one embodiment, for the to-be-detected stream data in a determined time window, the to-be-detected stream data is divided based on a set time interval to obtain a plurality of continuous sub-stream data. Exemplarily, the time interval may be 2s. Taking the stream data as video stream data as an example, a 10s video stream in the to-be-detected video stream data is determined through a set time window, and the to-be-detected video stream is divided at a time interval of 2s to obtain 5 frames of images, each of which is a sub-stream data.

[0037] Step S102: Determine the audit result of each sub-flow data in the plurality of continuous sub-flow data by using a machine audit model.

[0038] In one embodiment, the audit result of each sub-stream data in a plurality of continuous sub-stream data is determined by a machine audit model, wherein the machine audit model may be a neural network model obtained through learning and training, and the machine audit model takes the sub-stream data as input, and accordingly outputs the audit result corresponding to the sub-stream data. Such as whether the audit result is positive or negative. For example, a negative audit result indicates that the stream data belongs to normal data with compliant content, and a positive audit result indicates that the stream data belongs to abnormal data with non-compliant content. Exemplarily, taking the audit of 5 consecutive frames of images through the machine audit model as an example, the audit results may be {positive, positive, positive, positive, positive, positive}, {negative, negative, negative, negative, negative}, {positive, positive, negative, negative, negative}, etc.

[0039] Step S103: If there is sub-stream data with inconsistent audit results, determine the similarity between the inconsistent sub-stream data and adjacent sub-stream data; if the similarity meets a preset condition, determine that the sub-stream data with inconsistent audit results is a difficult sample.

[0040] Among them, difficult samples refer to samples that have deviations during the audit and detection process. They are limited by the accuracy of the machine audit model and the complexity of the samples. For example, originally compliant content is detected as illegal, or originally illegal content is not successfully detected and is judged as compliant. Specifically, it includes difficult positive samples and difficult negative samples. Among them, difficult positive samples refer to stream data content that violates the rules but is judged as not illegal by the audit results, and difficult negative samples refer to stream data content that is not illegal but is judged as illegal by the audit results. That is, efficient mining of difficult samples is a current problem.

[0041] In one embodiment, the compliance of 5 frames of images in a time window is detected by a machine audit model, and the audit results obtained for the 5 frames of images are {positive, negative, positive, positive, positive}, wherein the audit results of the second frame image and the other frame images are inconsistent, then the similarity between the second frame image and the first frame image, and the similarity between the second frame image and the third frame image are determined accordingly, and if the similarity meets the preset conditions, the second frame image is determined as a difficult sample. Exemplarily, the similarity determination method can be implemented by image histogram, perceptual hashing, key point feature matching, template matching, SSIM structural similarity or deep learning algorithm. Optionally, the similarity meets the preset conditions means that the similarity is greater than a preset threshold, and the preset threshold is exemplarily recorded as 90%. In one embodiment, after the similarity determination is performed for the inconsistent sub-stream data and the adjacent sub-stream data, the inconsistent sub-stream data can be determined as a difficult sample when both similarity values ​​meet the preset conditions. In another embodiment, the number of frames for the similarity comparison is not limited to the comparison between the frame image with inconsistent current audit results and the adjacent frame image, but may be a comparison with multiple adjacent frame images respectively, such as comparing five adjacent frame images respectively to determine the similarity. At this time, the similarity meets the preset condition that among the similarities determined by comparing with multiple adjacent frame images, the similarity of more than 80% of the frame image comparisons is greater than a preset threshold.

[0042] In one embodiment, for a plurality of sub-flow data in a time window, the existence of sub-flow data with inconsistent audit results means that there is sub-flow data, and the audit result of the sub-flow data is inconsistent with the audit results of the previous and next sub-flow data.

[0043] It should be noted that the above time windows and time intervals can be adaptively adjusted according to the type, content, and mining requirements of the actual sub-stream data.

[0044] It can be seen from the above scheme that for the mining of difficult samples, in this scheme, after selecting the flow data object for the detection flow data using a time window, the flow data in the time window is divided according to the time interval to obtain multiple continuous sub-flow data, and then the sub-flow data is automatically audited through the machine audit model. For the sub-flow data with inconsistent audit results, the similarity between the inconsistent sub-flow data and the adjacent sub-flow data is determined. If the similarity meets the preset conditions, the sub-flow data with inconsistent audit results is determined as a difficult sample, thereby achieving efficient mining of difficult samples.

[0045] Figure 2 The flowchart of another difficult sample data mining method provided by the embodiment of the present invention provides a method for applying difficult samples to the machine audit model. Figure 2 As shown, the technical solution is as follows:

[0046] Step S201: Acquire the flow data to be detected, and determine a plurality of continuous sub-flow data in the flow data to be detected based on a set time window and time interval.

[0047] Step S202: Determine the audit result of each sub-flow data in the plurality of continuous sub-flow data by using a machine audit model.

[0048] Step S203: If there is sub-stream data with inconsistent audit results, determine the similarity between the inconsistent sub-stream data and adjacent sub-stream data; if the similarity meets a preset condition, determine that the sub-stream data with inconsistent audit results is a difficult sample.

[0049] Step S204: store the difficult samples in a difficult sample database for use in optimizing and iterating the machine audit model.

[0050] In one embodiment, after the difficult samples are mined, the difficult samples are stored in the difficult sample database for optimization iteration of the machine audit model to improve the accuracy of the audit results of the machine audit model. Specifically, the optimization iteration of the machine audit model can be implemented using a gradient descent algorithm, Newton and quasi-Newton algorithms, conjugate gradient algorithms, etc.

[0051] From the above scheme, it can be seen that the difficult samples obtained by mining are stored in the difficult sample database, and the machine audit model is optimized and iterated, which effectively improves the model performance and ensures the recall rate and accuracy of the model pushed data. At the same time, the corresponding audit model can discover more illegal data and reduce the overall data push volume.

[0052] Figure 3 The flowchart of another difficult sample data mining method provided by the embodiment of the present invention provides a processing method after no difficult sample is detected in the current time window. Figure 3 As shown, the technical solution is as follows:

[0053] Step S301: Acquire the flow data to be detected, and determine a plurality of continuous sub-flow data in the flow data to be detected based on a set time window and time interval.

[0054] Step S302: Determine the audit result of each sub-flow data in the plurality of continuous sub-flow data by using a machine audit model.

[0055] Step S303: determine whether there is sub-flow data with inconsistent audit results. If yes, execute step S304; otherwise, execute step S307.

[0056] Step S304: Determine the similarity between the inconsistent sub-stream data and adjacent sub-stream data.

[0057] Step S305: determine whether the similarity meets a preset condition, if yes, execute step S306, otherwise execute step S307.

[0058] Step S306: determine the sub-flow data with inconsistent audit results as difficult samples, and store the difficult samples in a difficult sample database for optimization iteration of the machine audit model.

[0059] Step S307: Move the time window to obtain new sub-flow data in the flow data to be detected, and remove old sub-flow data for which audit results have been obtained.

[0060] In one embodiment, after determining whether there are difficult samples in the current time window, the time window is moved accordingly to analyze the to-be-detected stream data corresponding to the moved time window to determine whether there are difficult samples. If there are, the difficult samples are stored in the difficult sample database and the time window is moved again. If there are no difficult samples, the time window is moved directly to obtain undetected stream data segments in the to-be-detected stream data. That is, the mining of difficult samples of the input to-be-detected stream data is completed in sequence by moving the time window.

[0061] In one embodiment, for a set time interval, the time window moves each time by a width of the stream data of the set time interval. Figure 3a A schematic diagram of a time window movement provided by an embodiment of the present invention, such as Figure 3a As shown. Exemplarily, taking the stream data as a video stream, the time window length as 10s, and the time interval as 2s as an example, after the mining of whether there are difficult samples in the 5 frames of images in the current time window is completed, the time window moves toward the direction of the undetected video stream by the video stream content corresponding to the 2s time interval, that is, the frame image that first determines the audit result is removed from the original 5 frames of images, and the newly added frame image and the remaining 4 frames of images form a new video stream object that needs to be mined for difficult samples. In another embodiment, it is also possible to move the video stream content corresponding to multiple time intervals at the same time, such as moving the video stream content corresponding to the 4s time interval. The length of the specific moved video stream content can be adjusted according to the actual situation.

[0062] From the above scheme, it can be seen that by adopting the method of moving the time window to mine difficult samples in sequence for the content of the to-be-detected stream data, and determining the difficult samples according to the results of the machine audit model for the to-be-detected stream data in the current time window, this method can efficiently realize the mining of difficult samples and iterate the difficult samples to the machine audit model, thereby optimizing the accuracy of the audit results of the machine audit model.

[0063] Figure 4The flowchart of another difficult sample data mining method provided by the embodiment of the present invention provides a specific method for comparing sub-stream data and then determining difficult samples. Figure 4 As shown, the technical solution is as follows:

[0064] Step S401: Acquire the flow data to be detected, and determine a plurality of continuous sub-flow data in the flow data to be detected based on a set time window and time interval.

[0065] Step S402: Determine the audit result of each sub-flow data in the plurality of continuous sub-flow data by using a machine audit model.

[0066] Step S403, determine whether the audit results of the middle sub-stream data and the adjacent sub-stream data in the continuous plurality of sub-stream data are consistent, if not, execute step S404, if yes, execute step S407.

[0067] In one embodiment, the to-be-detected stream data corresponding to the time window is divided into a plurality of consecutive sub-stream data of an odd number by a set time interval. In the process of mining difficult samples, it is determined whether the audit results of the intermediate sub-stream data and the adjacent sub-stream data are consistent, that is, Figure 3a As shown, if the audit result (negative) of the middle substream data is different from the audit result (positive) of the adjacent substream data, step S404 is executed to further determine whether the middle substream data is a difficult sample.

[0068] Correspondingly, after each determination of whether the intermediate substream data is a difficult sample, the time window is moved by the width of one substream data, and in the time window after the move, it is determined whether the audit results of the current intermediate substream data and the adjacent substream data are consistent, and so on.

[0069] Step S404: Determine the similarity between the middle sub-stream data and the adjacent sub-stream data.

[0070] Step S405: determine whether the similarity is greater than a preset threshold, if yes, execute step S406, otherwise execute step S407.

[0071] Step S406: determine the intermediate sub-stream data as a difficult sample, and store the difficult sample in a difficult sample database for use in optimization iteration of the machine audit model.

[0072] Step S407: Move the time window to obtain new sub-flow data in the flow data to be detected, and remove old sub-flow data for which audit results have been obtained.

[0073] From the above scheme, it can be seen that by judging whether the audit results of the middle sub-stream data and the adjacent sub-stream data in multiple consecutive sub-stream data are consistent, this difficult sample comparison method improves the mining efficiency of difficult samples, reduces unnecessary data calculations, and improves the mining efficiency of difficult samples.

[0074] Figure 5 The flowchart of another difficult sample data mining method provided by the embodiment of the present invention provides a specific method for sub-stream data auditing through a machine audit model. Figure 5 As shown, the technical solution is as follows:

[0075] Step S501: Acquire the flow data to be detected, and determine a plurality of continuous sub-flow data in the flow data to be detected based on a set time window and time interval.

[0076] Step S502: Score each sub-flow data using the classification model, and determine the review result of each sub-flow data according to the score.

[0077] In one embodiment, the machine audit model is a classification model. The specific process of auditing each sub-flow data to obtain the audit result is to score whether each sub-flow data is compliant. When the score is greater than the set score, it is judged as non-compliant, and when the score is equal to or lower than the set score, it is judged as compliant. Among them, the classification model can be a convolutional neural network, logistic regression, decision tree, random forest, gradient boosting tree, multi-layer perceptron, linear SVM or naive Bayes model, etc. In one embodiment, the classification model is regularly optimized and iterated through the mined difficult samples to achieve automatic update and improvement.

[0078] Step S503: If there is sub-stream data with inconsistent audit results, determine the similarity between the inconsistent sub-stream data and adjacent sub-stream data. If the similarity meets a preset condition, determine that the sub-stream data with inconsistent audit results is a difficult sample.

[0079] Step S504: store the difficult samples in a difficult sample database for use in optimizing and iterating the machine audit model.

[0080] From the above scheme, it can be seen that each sub-stream data is scored through the classification model, and the audit result of each sub-stream data is determined according to the scoring value. The possible difficult samples are further determined according to the audit result, and then the similarity comparison is performed to finally mine the difficult samples. The unsupervised method is used to continuously mine difficult samples from the massive online flow data, eliminating the costly and time-consuming manual labeling process. For the continuously increasing external flow data, online learning can be performed through model iteration to tune the machine audit model.

[0081] Figure 6The flowchart of another difficult sample data mining method provided by the embodiment of the present invention provides a specific method for sub-stream data auditing through a machine audit model. Figure 6 As shown, the technical solution is as follows:

[0082] Step S601: Acquire the flow data to be detected, and determine a plurality of continuous sub-flow data in the flow data to be detected based on a set time window and time interval.

[0083] Step S602: score each sub-stream data using the detection model, determine the review result of each sub-stream data according to the score, and generate a detection frame if the score is greater than a preset score.

[0084] In one embodiment, the machine audit model is a detection model. When the detection model scores the input sub-flow data and the score is greater than the set score, it is determined to be non-compliant. At the same time, a detection frame is generated for the specific non-compliant part determined in the sub-flow data, such as Figure 6a As shown, Figure 6a A schematic diagram of performing difficult sample mining through a machine audit model provided in an embodiment of the present invention. Figure 6a The position of the frame shown in the third frame is the predicted non-compliant part in the determined current sub-stream data.

[0085] Step S603: If there is sub-stream data with inconsistent audit results, determine the similarity between the data content in the detection box in the inconsistent sub-stream data and the data content in the detection box corresponding to the adjacent sub-stream data. If the similarity meets the preset conditions, determine that the sub-stream data with inconsistent audit results is a difficult sample.

[0086] In one embodiment, when determining the similarity between the inconsistent sub-stream data and the adjacent sub-stream data, taking the stream data as video stream data as an example, Figure 6a As shown, for example, the third frame image is determined to be non-compliant after review, and a frame is generated in the detected non-compliant area accordingly. The second and fourth frame images are determined to be compliant after review. When the third frame image is determined to be compliant with the second and fourth frames, a frame is generated at the same position of the second and fourth frames, and the data content in the frame is compared to obtain the similarity. In another embodiment, Figure 6b As shown, Figure 6bAnother schematic diagram of difficult sample mining through a machine audit model provided in an embodiment of the present invention, after determining the frame of the inconsistent sub-stream data (the frame corresponding to the third frame image), the adjacent sub-stream data (the second frame image and the fourth frame image) can be compared for similarity based on the determined frame and the data content selected by the sliding frame in a sliding frame manner to determine the similarity value.

[0087] Step S604: store the difficult samples in a difficult sample database for use in optimizing and iterating the machine audit model.

[0088] It can be seen from the above scheme that for the detection model, the similarity comparison of sub-stream data is performed by generating a detection frame, which reduces the amount of data calculation, improves the efficiency of similarity determination, and further optimizes the mining method of difficult samples.

[0089] On the basis of the above technical solution, if there are sub-stream data with inconsistent audit results, it also includes: sending the inconsistent sub-stream data to the manual audit program for determining difficult samples. That is, manual labeling can be used to determine difficult samples and improve the accuracy of determining difficult samples. As the number of iterations of the machine audit model increases, the accuracy of its audit results is also significantly improved, and the amount of data sent for manual audit will also be significantly reduced. At this time, manual audit is used to supplement it well, and the mining accuracy of difficult samples is optimized to the greatest extent possible under the premise that the amount of manual audit data is acceptable.

[0090] Figure 7 This is a structural block diagram of a difficult sample data mining device provided by an embodiment of the present invention. The device is used to execute the difficult sample data mining method provided by the above embodiment, and has the corresponding functional modules and beneficial effects of the execution method. Figure 7 As shown, the device specifically includes: a sub-stream data determination module 101, an audit result determination module 102 and a difficult sample determination module 103, wherein:

[0091] The sub-flow data determination module 101 is used to obtain the flow data to be detected, and determine a plurality of continuous sub-flow data in the flow data to be detected based on a set time window and time interval;

[0092] An audit result determination module 102, configured to determine an audit result of each sub-flow data in the plurality of continuous sub-flow data by using a machine audit model;

[0093] The difficult sample determination module 103 is used to determine the similarity between the inconsistent substream data and the adjacent substream data if there is substream data with inconsistent audit results, and determine that the substream data with inconsistent audit results is a difficult sample if the similarity meets a preset condition.

[0094] It can be seen from the above scheme that by obtaining the flow data to be detected, multiple continuous sub-flow data in the flow data to be detected are determined based on the set time window and time interval, and the audit result of each sub-flow data in the multiple continuous sub-flow data is determined through the machine audit model. If there are sub-flow data with inconsistent audit results, the similarity between the inconsistent sub-flow data and the adjacent sub-flow data is determined. If the similarity meets the preset conditions, the sub-flow data with inconsistent audit results is determined to be a difficult sample. This scheme realizes the rapid and efficient mining of difficult samples from massive unlabeled flow data. At the same time, the determined difficult samples can be iterated into the machine audit model, effectively improving the model performance, ensuring the recall rate and accuracy of the model pushed data, and at the same time enabling the corresponding audit model to discover more illegal data, reduce the overall data push volume, and further reduce the burden of manual review.

[0095] In a possible embodiment, the difficult sample iteration module 104 is used to:

[0096] After determining that the sub-flow data with inconsistent audit results are difficult samples, the difficult samples are stored in a difficult sample database for use in optimization iteration of the machine audit model.

[0097] In a possible embodiment, the sub-flow data determination module 101 is specifically used to: if the audit results of each sub-flow data in the multiple consecutive sub-flow data are consistent, move the time window to obtain new sub-flow data in the flow data to be detected, and remove old sub-flow data that have obtained audit results.

[0098] In a possible embodiment, the difficult sample determination module 103 is specifically used to:

[0099] If, among the multiple continuous sub-stream data, the audit results of the intermediate sub-stream data are inconsistent with those of the adjacent sub-stream data, the similarity between the intermediate sub-stream data and the adjacent sub-stream data is determined; if the similarity is greater than a preset threshold, the intermediate sub-stream data is determined to be a difficult sample, and the difficult sample includes a difficult positive sample and a difficult negative sample.

[0100] In a possible embodiment, the difficult sample determination module 103 is further configured to: if there is sub-stream data with inconsistent audit results, send the inconsistent sub-stream data to a manual audit program for determining difficult samples.

[0101] In a possible embodiment, the machine audit model includes a classification model, and the audit result determination module 102 is specifically used to:

[0102] Each sub-flow data is scored using the classification model, and the audit result of each sub-flow data is determined according to the scoring value.

[0103] In a possible embodiment, the machine audit model includes a detection model, and the audit result determination module 102 is specifically used to:

[0104] Scoring each sub-stream data by using the detection model, determining the audit result of each sub-stream data according to the scoring value, and generating a detection frame if the scoring value is greater than a preset score;

[0105] The difficult sample determination module 103 is specifically used for:

[0106] Determine the similarity between the data content in the detection box of the inconsistent sub-stream data and the data content in the detection box corresponding to the adjacent sub-stream data.

[0107] Figure 8 A structural diagram of a difficult sample data mining device provided by an embodiment of the present invention is shown in FIG. Figure 8 As shown, the device includes a processor 201, a memory 202, an input device 203 and an output device 204; the number of processors 201 in the device can be one or more. Figure 8 A processor 201 is taken as an example; the processor 201, memory 202, input device 203 and output device 204 in the device can be connected by a bus or other means. Figure 8 The example of connecting through a bus is taken. The memory 202, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the difficult sample data mining method in the embodiment of the present invention. The processor 201 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 202, that is, implements the above-mentioned difficult sample data mining method. The input device 203 can be used to receive input digital or character information, and generate key signal input related to user settings and function control of the device. The output device 204 may include a display device such as a display screen.

[0108] An embodiment of the present invention further provides a storage medium containing computer executable instructions, wherein the computer executable instructions are used to perform a difficult sample data mining method when executed by a computer processor, the method comprising:

[0109] Acquire the flow data to be detected, and determine a plurality of continuous sub-flow data in the flow data to be detected based on a set time window and a time interval;

[0110] Determine, by a machine audit model, an audit result of each sub-flow data in the plurality of continuous sub-flow data;

[0111] If there is sub-stream data with inconsistent audit results, the similarity between the inconsistent sub-stream data and adjacent sub-stream data is determined. If the similarity meets a preset condition, the sub-stream data with inconsistent audit results is determined to be a difficult sample.

[0112] It is worth noting that in the above-mentioned embodiment of the difficult sample data mining device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present invention.

[0113] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the embodiments of the present invention are not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the embodiments of the present invention. Therefore, although the embodiments of the present invention are described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the embodiments of the present invention, and the scope of the embodiments of the present invention is determined by the scope of the appended claims.

Claims

1. A difficult sample data mining method, characterized in that: include: Acquire the flow data to be detected, and determine a plurality of continuous sub-flow data in the flow data to be detected based on a set time window and a time interval; Determine, by a machine audit model, an audit result of each sub-flow data in the plurality of continuous sub-flow data; If there is sub-stream data with inconsistent audit results, the similarity between the inconsistent sub-stream data and the adjacent sub-stream data is determined. If the similarity meets the preset conditions, the sub-stream data with inconsistent audit results is determined to be a difficult sample, wherein the sub-stream data with inconsistent audit results include: among multiple consecutive sub-stream data, sub-stream data that are inconsistent with the audit results of the previous and next sub-stream data, and the adjacent sub-stream data include the previous sub-stream data and the next sub-stream data of the inconsistent sub-stream data.

2. The difficult sample data mining method according to claim 1, characterized in that: After determining that the sub-stream data with inconsistent audit results is a difficult sample, the method further includes: The difficult samples are stored in a difficult sample database for use in optimizing and iterating the machine audit model.

3. The difficult sample data mining method according to claim 1, characterized in that: If the audit results of each sub-flow data in the plurality of continuous sub-flow data are consistent, the time window is moved to obtain new sub-flow data in the to-be-detected flow data, and old sub-flow data for which audit results have been obtained are removed.

4. The difficult sample data mining method according to any one of claims 1 to 3, characterized in that: If there is substream data with inconsistent audit results, determining the similarity between the inconsistent substream data and adjacent substream data, and if the similarity meets a preset condition, determining the substream data with inconsistent audit results as a difficult sample, including: If, among the multiple continuous sub-stream data, there is an intermediate sub-stream data whose audit results are inconsistent with those of the adjacent sub-stream data, the similarity between the intermediate sub-stream data and the adjacent sub-stream data is determined. If the similarity is greater than a preset threshold, the intermediate sub-stream data is determined to be a difficult sample, and the difficult sample includes a difficult positive sample and a difficult negative sample.

5. The difficult sample data mining method according to claim 4, characterized in that: If there is sub-flow data with inconsistent audit results, it also includes: The inconsistent sub-stream data is sent to a manual review program for determining difficult samples.

6. The difficult sample data mining method according to claim 4, characterized in that: The machine audit model includes a classification model. Accordingly, determining the audit result of each sub-stream data in the plurality of continuous sub-stream data by using the machine audit model includes: Each sub-flow data is scored using the classification model, and the audit result of each sub-flow data is determined according to the scoring value.

7. The difficult sample data mining method according to claim 4, characterized in that: The machine audit model includes a detection model. Accordingly, determining the audit result of each sub-stream data in the plurality of continuous sub-stream data by using the machine audit model includes: Scoring each sub-stream data by using the detection model, determining the audit result of each sub-stream data according to the scoring score, and generating a detection frame if the scoring score is greater than a preset score; Accordingly, determining the similarity between the inconsistent substream data and adjacent substream data includes: Determine the similarity between the data content in the detection box of the inconsistent sub-stream data and the data content in the detection box corresponding to the adjacent sub-stream data.

8. A difficult sample data mining device, characterized in that: include: A sub-flow data determination module, used to obtain the flow data to be detected, and determine a plurality of continuous sub-flow data in the flow data to be detected based on a set time window and a time interval; An audit result determination module, used to determine the audit result of each sub-flow data in the plurality of continuous sub-flow data by using a machine audit model; A difficult sample determination module is used to determine the similarity between the inconsistent substream data and the adjacent substream data if there is substream data with inconsistent audit results, and if the similarity meets a preset condition, determine that the substream data with inconsistent audit results is a difficult sample, wherein the substream data with inconsistent audit results include: among multiple consecutive substream data, substream data that are inconsistent with the audit results of the previous and next substream data, and the adjacent substream data include the previous substream data and the next substream data of the inconsistent substream data.

9. A difficult sample data mining device, the device comprising: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, enables the one or more processors to implement the difficult sample data mining method as described in any one of claims 1-7.

10. A storage medium storing computer executable instructions, wherein the computer executable instructions are used to perform the difficult sample data mining method according to any one of claims 1 to 7 when executed by a computer processor.

Citation Information

Patent Citations

  • Semantic image segmentation model training method, readable storage medium and electronic equipment

    CN108596184A

  • Method and device for obtaining candidate fragments from video and processing device

    CN109977262A