Live streaming content processing method and device, storage medium and electronic device

By determining the interception confidence and content safety factor of multimedia frames in the live stream data, and identifying key time points of live stream segments, efficient recognition of live stream data is achieved, and the problem of low recognition efficiency in the existing technology is solved.

CN114765693BActive Publication Date: 2024-09-10TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110051003.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-14
Publication Date
2024-09-10
Estimated Expiration
2041-01-14

AI Technical Summary

Technical Problem

In the existing technology, the identification efficiency of live stream data is low and this problem cannot be effectively solved.

Method used

By obtaining the multimedia frame sequence in the live stream segment to be processed, the interception confidence of each multimedia frame is determined, and the first time point and the second time point are determined based on the interception confidence, and the first time point to the second time point are obtained The content security factor of multiple multimedia frames between them can intercept live stream segments and improve identification efficiency.

Benefits of technology

It improves the efficiency of live stream data recognition and solves the problem of low efficiency of live stream data recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114765693B
    Figure CN114765693B
Patent Text Reader

Abstract

The present invention discloses a method and device for processing live streaming content, a storage medium and an electronic device. The method comprises: obtaining a multimedia frame sequence in a live streaming segment to be processed; determining the interception confidence of each multimedia frame in the multimedia frame sequence, wherein the interception confidence is used to indicate whether the multimedia frame is recognized; determining a first time point and a second time point from the multimedia frame sequence according to the interception confidence; obtaining a content safety factor corresponding to a plurality of multimedia frames between the first time point and the second time point; and intercepting the live streaming segment when the content safety factor indicates that a plurality of multimedia frames are determined to be intercepted. The present invention solves the technical problem of low efficiency in identifying live streaming data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and in particular to a method and device for processing live streaming content, a storage medium and an electronic device. Background Art

[0002] In the prior art, in the process of performing content recognition on live streaming data, when the content to be recognized is usually obtained, it is usually necessary to recognize all the content to be recognized to determine whether the content of the live streaming is healthy and normal.

[0003] However, if the above method is adopted, since all live streams are identified when identifying the live stream, the recognition efficiency of the live stream data is low.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present invention provide a method and device for processing live streaming content, a storage medium and an electronic device, so as to at least solve the technical problem of low efficiency in identifying live streaming data.

[0006] According to one aspect of an embodiment of the present invention, a live streaming content processing method is provided, comprising: obtaining a multimedia frame sequence in a live streaming segment to be processed; determining an interception confidence that matches each multimedia frame in the multimedia frame sequence, wherein the interception confidence is used to indicate whether the multimedia frame is recognized; determining a first time point and a second time point from the multimedia frame sequence according to the interception confidence, wherein the first time point is used to indicate a time point when the interception confidence changes from a first target value to a second target value, and the second time point is used to indicate a time point when the interception confidence changes from the second target value to the first target value; obtaining content safety factors corresponding to multiple multimedia frames between the first time point and the second time point; and intercepting the live streaming segment when the content safety factor indicates that the multiple multimedia frames are intercepted.

[0007] According to another aspect of an embodiment of the present invention, a live stream content processing device is also provided, including: a first acquisition unit, used to acquire a multimedia frame sequence in a live stream segment to be processed; a first determination unit, used to determine the interception confidence of each multimedia frame in the above multimedia frame sequence, wherein the above interception confidence is used to indicate whether the above multimedia frame is recognized; a second determination unit, used to determine a first time point and a second time point from the above multimedia frame sequence according to the above interception confidence, wherein the above first time point is used to indicate the time point when the above interception confidence changes from the first target value to the second target value, and the above second time point is used to indicate the time point when the above interception confidence changes from the above second target value to the above first target value; a second acquisition unit, used to acquire content safety factors corresponding to multiple multimedia frames between the above first time point and the above second time point; an interception unit, used to intercept the above live stream segment when the above content safety factor indicates that the above multiple multimedia frames are determined to be intercepted.

[0008] As an optional example, the second acquisition unit includes: a third input module, used to input each of the multiple multimedia frames into a target recognition model, wherein the target recognition model is used to identify the content safety coefficient of each multimedia frame; and a second acquisition module, used to obtain the content safety coefficient of each multimedia frame output by the target recognition model.

[0009] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned live streaming content processing method when running.

[0010] According to another aspect of an embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the live streaming content processing method through the computer program.

[0011] In an embodiment of the present invention, a method is adopted to obtain a multimedia frame sequence in a live stream segment to be processed; determine the interception confidence of each multimedia frame in the multimedia frame sequence, wherein the interception confidence is used to indicate whether the multimedia frame is recognized; determine a first time point and a second time point from the multimedia frame sequence according to the interception confidence, wherein the first time point is used to indicate the time point when the interception confidence changes from the first target value to the second target value, and the second time point is used to indicate the time point when the interception confidence changes from the second target value to the first target value, the multimedia frame corresponding to the first target value is not recognized, and the first time point is used to indicate the time point when the interception confidence changes from the second target value to the first target value. The multimedia frames corresponding to the second target values ​​will be identified; the content safety coefficients corresponding to the multiple multimedia frames between the first time point and the second time point are obtained; when the content safety coefficient indicates that the multiple multimedia frames are to be intercepted, a method for intercepting the live stream segment is implemented. In the above method, after the live stream segment to be processed is obtained, not all the contents of the live stream segment are identified, but the multimedia frames in the live stream segment with a confidence level of the second target value are identified to determine whether the live stream segment has passed the review, thereby achieving the effect of improving the efficiency of identifying the live stream data, thereby solving the technical problem of low efficiency in identifying the live stream data. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0013] Figure 1 is a schematic diagram of an application environment of an optional live streaming content processing method according to an embodiment of the present invention;

[0014] Figure 2 is a schematic diagram of an application environment of another optional live streaming content processing method according to an embodiment of the present invention;

[0015] Figure 3 is a schematic diagram of a process of an optional live streaming content processing method according to an embodiment of the present invention;

[0016] Figure 4 is a schematic diagram of live stream splitting of an optional live stream content processing method according to an embodiment of the present invention;

[0017] Figure 5 is a schematic diagram of live stream interception of an optional live stream content processing method according to an embodiment of the present invention;

[0018] Figure 6is a schematic diagram of a first time point and a second time point of an optional live streaming content processing method according to an embodiment of the present invention;

[0019] Figure 7 is a schematic diagram of a target interception model training process of an optional live streaming content processing method according to an embodiment of the present invention;

[0020] Figure 8 It is a schematic diagram of the use process of a target interception model and a target recognition model of an optional live streaming content processing method according to an embodiment of the present invention;

[0021] Fig. 9 is a schematic structural diagram of an optional live streaming content processing device according to an embodiment of the present invention;

[0022] Fig.10 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

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

[0025] According to one aspect of an embodiment of the present invention, a live streaming content processing method is provided. Optionally, as an optional implementation, the live streaming content processing method can be but is not limited to being applied to: Figure 1 in the environment shown.

[0026] like Figure 1As shown, the terminal device 102 includes a memory 104 for storing various data generated during the operation of the terminal device 102, a processor 106 for processing and calculating the above data, and a display 108 for displaying live content. The terminal device 102 can exchange data with a server 112 through a network 110. The server 112 includes a database 114 for storing various data and a processing engine 116 for processing the above data. In steps S102 to S106, the terminal device 102 can obtain a live stream segment, and then send the live stream segment to the server 112. The server 112 can identify the live stream data and then return the identification result.

[0027] As an optional implementation, the live streaming content processing method can be applied to, but is not limited to, Figure 2 in the environment shown.

[0028] like Figure 2 As shown, the terminal device 202 includes a memory 204 for storing various data generated during the operation of the terminal device 202, a processor 206 for processing and calculating the above data, and a display 208 for displaying live data. The terminal device can obtain a live stream segment, then identify the live stream segment, and then send the identified live stream data to the server 112. The server 112 includes a database 114 for storing various data and a processing engine 116 for processing the above data.

[0029] Optionally, in this embodiment, the terminal device may be a terminal device configured with a target client, which may include but is not limited to at least one of the following: a mobile phone (such as an Android phone, an iOS phone, etc.), a laptop, a tablet computer, a PDA, a MID (Mobile Internet Devices), a PAD, a desktop computer, a smart TV, etc. The target client may be a video client, an instant messaging client, a browser client, an education client, etc. The network may include but is not limited to: a wired network, a wireless network, wherein the wired network includes: a local area network, a metropolitan area network and a wide area network, and the wireless network includes: Bluetooth, WIFI and other networks that realize wireless communication. The server may be a single server, or a server cluster consisting of multiple servers, or a cloud server. The above is only an example, and this embodiment does not impose any limitation on this.

[0030] The live broadcast may be a video live broadcast or an audio live broadcast. When it is a video live broadcast, the video frames in the video live broadcast are analyzed and identified; when it is an audio live broadcast, the audio frames in the audio live broadcast are analyzed and identified.

[0031] In this embodiment, video live broadcast is used as an example for illustration. Figure 3 As shown, the live streaming content processing method includes:

[0032] S302, obtaining a video frame sequence in a live stream segment to be processed;

[0033] S304 determines an interception confidence level of each video frame in the video frame sequence, wherein the interception confidence level is used to indicate whether the video frame is recognized;

[0034] S306, determining a first time point and a second time point from the video frame sequence according to the interception confidence, wherein the first time point is used to indicate the time point when the interception confidence changes from the first target value to the second target value, and the second time point is used to indicate the time point when the interception confidence changes from the second target value to the first target value, the video frame corresponding to the first target value is not recognized, and the video frame corresponding to the second target value is recognized;

[0035] S308, obtaining content safety coefficients corresponding to a plurality of video frames between the first time point and the second time point;

[0036] S310: When the content security factor indicates that a plurality of video frames need to be intercepted, intercept a live stream segment.

[0037] Optionally, the embodiments of the present application may be applied, but not limited to, in the process of identifying live broadcast data. It may be applied after the live broadcast data is generated by the anchor client, and the live broadcast data is immediately identified. Or it may be applied when the live broadcast data is sent to the viewer's client, and the live broadcast data is about to be played by the viewer's client or is being played by the viewer's client. The purpose of identification is to determine whether the live broadcast data includes content that is not allowed to be broadcast.

[0038] Optionally, the live stream segment may be a segment of live data. For the anchor client, as time passes, live data is continuously generated, and the live stream segment may be a continuous or discontinuous data segment in the live data. For example, the content of the 3rd to 6th minute in the live data. The live stream segment includes a video frame sequence, and the video frame sequence includes multiple continuous video frames. For example, the 3-6 minute live content may include 30 frames of data per second.

[0039] Optionally, the method of obtaining the live stream segment in the embodiment of the present application is not limited. For example, the live stream can be identified during the process of being transmitted from the live client to the viewer client, and during the identification process, the viewer client plays synchronously. Figure 4As shown, when the live streaming data flows from the anchor client 402 to the viewer client 404, the live streaming data can be diverted, and the diverted live streaming data flows to the identification module 406, which is identified by the identification module. The identification module can be located on the viewer client side, the anchor client side, or the server side, and is not limited. In addition, the live streaming can be intercepted and identified during the process of transmitting the live streaming from the live streaming client to the viewer client, and sent to the viewer client for playback after the identification is passed. If the identification fails, playback is not allowed. Figure 5 As shown, when the live streaming data flows from the anchor client 502 to the viewer client 504, the identification module 506 can be used to intercept and identify the live streaming data. If content that is not allowed to be played is identified, it is intercepted and the content that is allowed to be played is sent to the viewer client 504.

[0040] As another example, in an embodiment of the present application, identification may be temporarily omitted, and the live stream is transmitted from the host client to the viewer client for playback. If a report is made during the viewing process of the viewer client, the live stream will be automatically identified to review whether the live data contains content that is not allowed to be broadcast live.

[0041] For example, taking live broadcast as an example, a live stream segment can be a video frame sequence of 10 frames, and each frame of the 10-frame video frame sequence corresponds to an interception confidence. Video frames with an interception confidence of the second target value will be determined as video frames to be identified, and video frames with an interception confidence of the first target value will not be identified. For example, among 10 frames, 5 frames are discarded and 5 frames are identified. Identify 5 video frames and determine the content safety factor of the 5 video frames. If the content safety factor indicates to intercept 5 video frames, intercept the above 10-frame live stream segment. In other words, in the process of reviewing the live stream data, it is not necessary to identify all the contents of the live stream segment of the live stream data, but to select a part of it for identification according to the interception confidence, so that the number of video frames that need to be identified is reduced and the recognition efficiency is improved.

[0042] Through this embodiment, in the process of identifying the live stream segment, the video frames between the first time point and the second time point in the live stream segment are determined according to the interception confidence, and the video frames between the first time point and the second time point are identified, rather than identifying the entire live stream segment, thereby improving the efficiency of reviewing the live stream segment.

[0043] Optionally, in an embodiment of the present application, after obtaining a live stream segment, it is necessary to determine the video frames from the first time point to the second time point therein, and identify the determined video frames. Determining the first time point and the second time point includes:

[0044] S1, determining the time point at which the first video frame whose interception confidence is a second target value in the video frame sequence is located as the first time point;

[0045] S2, determining the time point at which the first video frame whose interception confidence is the first target value in the video frame sequence is located after the first time point as the second time point.

[0046] That is, since each video frame in the video frame sequence includes an interception confidence, the first time point and the second time point can be determined according to the value of the interception confidence. There can be one or more first time points and second time points. For example, Figure 6 As shown, Figure 6 The first time point 602 and the second time point 604 are included, corresponding to multiple video frames in the video frame sequence 606, each of which includes multiple video frames. The multiple video frames of each segment are identified, and the live content corresponding to the live stream segment is determined according to the content safety coefficient of the multiple video frames of each segment. If the content safety coefficient of the multiple video frames of any segment of the video frame is identified as a live stream segment that should be intercepted, the live stream segment is intercepted.

[0047] Optionally, in the embodiment of the present application, before using the interception confidence to determine the video frame to be identified, it is also necessary to determine the interception confidence of each video frame in the live streaming data. The interception confidence can be obtained by identifying the video frame using the target interception model. The steps may be:

[0048] S1, input each video frame in the video frame sequence into the target interception model;

[0049] S2, obtain the target vector of each video frame output by the target interception model;

[0050] S3, classify the target vector into two categories and obtain the interception confidence of each video frame.

[0051] That is to say, after obtaining the video frame sequence, each video frame in the video frame sequence is input into the target interception model, and the target interception model can obtain the target vector of each video frame, and finally use binary classification to classify the target vector. For example, the classification result can be 0 or 1, and the classification result of 1 means that it will be recognized, and the classification result of 0 means that it will not be recognized. 0 can be the first target value, and 1 can be the second target value, so as to obtain the interception confidence of each video frame of the live stream segment.

[0052] Optionally, in the embodiment of the present application, the training of the target interception model may be:

[0053] S1, obtain sample live stream;

[0054] S2, inputting the sample live stream into the original interception model to obtain a first vector output by the original interception model, wherein the original interception model is used to identify the sample live stream to obtain the first vector;

[0055] S3, inputting the sample live stream into the target recognition model to obtain a second vector of the sample live stream, wherein the target recognition model is used to identify the sample live stream to obtain the second vector;

[0056] S4, determining a first loss according to the first vector and the second vector and determining a second loss according to the first vector;

[0057] S5. Adjust model parameters of the original interception model according to the first loss and the second loss until a target interception model is obtained, wherein the target interception model is a model for determining an interception confidence of each video frame in a video frame sequence.

[0058] The target recognition model is a model for identifying video frames with an interception confidence of the second target value in this application. The target recognition model is a trained model. The content safety factor of each video frame can be identified.

[0059] When training the original interception model, the acquired sample live stream can be input into the original interception model to obtain a first vector, the sample live stream can be input into the target recognition model to obtain a second vector, the first loss between the first vector and the second vector can be determined, the second loss of the first vector can be determined, and finally, according to the first loss and the second loss, it can be determined whether to adjust the model parameters of the original interception model until the target interception model is obtained.

[0060] In this process, the second loss can be obtained by determining the minimized feature distance between the first vector and the second vector as the first loss, and inputting the first vector into the binary classification loss function. If the first loss is greater than or equal to the first threshold or the second loss is greater than or equal to the second threshold, then the model parameters of the original interception model are adjusted, and the adjusted original interception model is used to identify the sample live stream to obtain a new first vector, and the first loss and the second loss are determined using the new first vector. The first loss and the second loss are judged to determine whether to adjust the model parameters of the original interception model until the target interception model is obtained. In the process of training the original interception model to obtain the target interception model, the target recognition model remains unchanged because the target recognition model is a pre-trained model.

[0061] If there are multiple target recognition models, each used to identify different types of videos that are not allowed to be played, then when determining the first loss, it is necessary to take the weighted sum of the minimized feature distance between each vector and the first vector among the multiple vectors output by the multiple target recognition models as the first loss.

[0062] When using the first loss and the second loss to determine whether to change the model parameters of the original interception model, it is also possible to use the first loss and whether the distance between the vectors of two adjacent images is greater than a threshold to judge. The specific calculation method of the threshold is: take multiple live stream segments without and with interception images, calculate the mean of the vector of the interception image and the mean of the vector of the normal image, and use the difference between the two means as the threshold. If the first loss is less than or equal to the first threshold, or the distance between the vectors of the above two adjacent images is greater than the above difference, the model parameters of the original interception model are adjusted.

[0063] During use, the target interception model can output vector features of the live stream segment after inputting the live stream segment, and the vector features can be converted into interception confidence through a binary classification layer.

[0064] After determining a plurality of video frames between a first time point and a second time point from the live stream segment, the method includes:

[0065] S1, inputting each video frame of the plurality of video frames into a target recognition model, wherein the target recognition model is used to identify a content safety factor of each video frame;

[0066] S2, obtains the content safety factor of each video frame output by the target recognition model.

[0067] The target recognition model may include a feature extraction layer and a fully connected layer. The feature extraction layer is responsible for identifying the vector features of each video frame, and then the fully connected layer is used to determine the content safety factor. If the value of the content safety factor is greater than the third threshold, it means that the multiple video frames input into the target recognition model for identification are video frames that are not allowed to be played. It can be determined that the live stream segment includes content that is not allowed to be played, and the live stream segment needs to be intercepted.

[0068] The following takes the live broadcast process as an example, and takes the target recognition models as the first recognition model and the third recognition model as an example, to explain the content processing method of the above live broadcast stream from the training to the use of the target interception model.

[0069] Figure 7 is a schematic diagram of an optional training process. Figure 7As shown. The sample live stream segment is a training set for training the first recognition model and the third recognition model. The first recognition model and the third recognition model are models trained using sample live stream segments for identifying different types of illegal live content. The sample live stream segment is input into the first recognition model and the third recognition model. The feature extraction layer of the first recognition model will extract the abstract feature vector f1, and the feature extraction layer of the third recognition model will extract the abstract feature vector f2. The original interception model will identify the sample live stream segment to obtain the feature vector f. Map f to f3 and f4. The mapping process is to multiply f and the fully connected layer. The difference between f3 and f4 is that the multiplied fully connected layers have the same structure but different weights. Compare the minimized feature distance of f3 and f1, and the minimized difference of f4 and f2, that is, minimize the feature distance, and take the weighted sum of the two distances as a constraint condition, which is the first loss. The feature vector f identified by the original interception model will be subjected to the binary classification loss function to obtain the second loss. The steps can be as follows:

[0070] The images in the sample video stream segment training set are input into the original interception model and the corresponding target recognition model respectively. The target recognition model includes the third recognition model and the first recognition model. The intermediate features f and f1, f2 are obtained, and f is further mapped to two vectors f3, f4. Loss function one is constructed: minimize the distance between (f1, f3) and the distance between (f2, f4), and loss function two is constructed: a binary classifier is constructed based on f, and a classification loss function is constructed, whose label is whether it is an image that needs to be intercepted. The original interception model is trained using the above two loss functions to obtain the target interception model. The target interception model can determine the interception confidence of each video frame in the video stream segment after the video stream segment is input. The interception confidence can be 0 or 1.

[0071] The formula for the first loss can be:

[0072] loss1=||f1-f3||+||f2-f4||(1)

[0073] The formula for the second loss can be:

[0074] loss2=∑ i N =1 (y i logp i +(1-y i )log(1-p i ))(2)

[0075] Among them, N is a positive integer, y is the weight, and p is the label data.

[0076] After the model is trained, extract the live stream segment from the live stream, input the live stream segment into the target interception model, and the target interception model outputs the interception confidence of each video frame in the live stream segment. If the target interception model outputs 0, the video frame can be discarded; if the target interception model outputs 1, the video frame is saved in the cache, and in the process of sequentially identifying the interception confidence of the video frame, the time point t0 when the interception confidence jumps from 0 to 1 is recorded, and the next video frame is continuously identified until the interception confidence output by the target interception model jumps from 1 to 0, and the time point t1 is recorded. Figure 8 shown. Figure 8 T is time, and the video frames with T of 2, 3, and 4 output by the target interception model are input into the first recognition model and the second recognition model. The first recognition model and the second recognition model are used to identify different types of illegal live broadcast content.

[0077] The video frames between time points t0 and t1 are input into the downstream target recognition model for further judgment, and the time period is output to the auditor, informing the auditor that if the target recognition model has intercepted outputs, these outputs belong to the same similar scene. In other words, if the content safety factor of the video frame output by the target recognition model is greater than the third threshold, it means that the corresponding video frame is a video frame that should be intercepted and is not allowed to be played. This means that the video frame sequence includes video frames that are not allowed to be played. Intercept the video frame sequence.

[0078] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0079] According to another aspect of the embodiments of the present invention, a live stream content processing device for implementing the live stream content processing method is also provided, and the live stream may be a video live stream or an audio live stream. Fig. 9 As shown, the device comprises:

[0080] A first acquisition unit 902 is used to acquire a multimedia frame sequence in a live stream segment to be processed;

[0081] A first determination unit 904 is used to determine an interception confidence level of each multimedia frame in the multimedia frame sequence, wherein the interception confidence level is used to indicate whether the multimedia frame is recognized;

[0082] A second determining unit 906 is used to determine a first time point and a second time point from the multimedia frame sequence according to the interception confidence, wherein the first time point is used to indicate a time point when the interception confidence changes from the first target value to the second target value, and the second time point is used to indicate a time point when the interception confidence changes from the second target value to the first target value, and the multimedia frame corresponding to the first target value is not recognized, and the multimedia frame corresponding to the second target value is recognized;

[0083] A second acquisition unit 908, configured to acquire content safety coefficients corresponding to a plurality of multimedia frames between a first time point and a second time point;

[0084] The interception unit 910 is used to intercept the live streaming segment when the content security factor indicates that a plurality of multimedia frames are to be intercepted.

[0085] Optionally, the embodiments of the present application may be applied, but not limited to, in the process of identifying live broadcast data. It may be applied after the live broadcast data is generated by the anchor client, and the live broadcast data is immediately identified. Or it may be applied when the live broadcast data is sent to the viewer's client, and the live broadcast data is about to be played by the viewer's client or is being played by the viewer's client. The purpose of identification is to determine whether the live broadcast data includes content that is not allowed to be broadcast.

[0086] As an example, the second determining unit includes:

[0087] A first determination module, configured to determine a time point at which a first multimedia frame whose interception confidence is a second target value in a multimedia frame sequence is located as a first time point;

[0088] The second determination module is used to determine the time point at which the first multimedia frame whose interception confidence is the first target value in the multimedia frame sequence is located after the first time point as the second time point.

[0089] As an example, the first determining unit includes:

[0090] A first input module, configured to input each multimedia frame in the multimedia frame sequence into a target interception model;

[0091] A first acquisition module is used to acquire a target vector of each multimedia frame output by a target interception model;

[0092] The processing module is used to perform binary classification on the target vector and obtain the interception confidence of each multimedia frame.

[0093] As an example, the above device also includes:

[0094] A third acquisition unit is used to acquire a sample live stream before determining the interception confidence of each multimedia frame in the multimedia frame sequence;

[0095] A first input unit is used to input the sample live stream into the original interception model to obtain a first vector output by the original interception model, wherein the original interception model is used to identify the sample live stream to obtain the first vector;

[0096] A second input unit is used to input the sample live stream into the target recognition model to obtain a second vector of the sample live stream, wherein the target recognition model is used to identify the sample live stream to obtain the second vector;

[0097] A third determining unit, configured to determine a first loss according to the first vector and the second vector and determine a second loss according to the first vector;

[0098] An adjustment unit is used to adjust the model parameters of the original interception model according to the first loss and the second loss until a target interception model is obtained, wherein the target interception model is a model for determining the interception confidence of each multimedia frame in the multimedia frame sequence.

[0099] As an example, the third determining unit includes:

[0100] A third determination module is used to determine a minimized characteristic distance between the first vector and the second vector as a first loss;

[0101] The second input module is used to input the first vector into the binary classification loss function to obtain a second loss.

[0102] As an example, the adjustment unit includes:

[0103] The loop module is used to repeatedly perform the following operations until the target interception model is obtained:

[0104] When the first loss is greater than or equal to the first threshold or the second loss is greater than or equal to the second threshold, adjust the model parameters of the original interception model, use the original interception model after adjusting the model parameters to identify the sample live stream, obtain a new first vector, and determine a new first loss and a new second loss based on the second vector and the new first vector.

[0105] As an example, the second obtaining unit includes:

[0106] A third input module, used for inputting each multimedia frame of the plurality of multimedia frames into the target recognition model, wherein the target recognition model is used for identifying the content safety factor of each multimedia frame;

[0107] The second acquisition module is used to obtain the content safety factor of each multimedia frame output by the target recognition model.

[0108] For other examples of this embodiment, please refer to the above examples and will not be described in detail here.

[0109] According to another aspect of the embodiments of the present invention, an electronic device for implementing the above-mentioned live streaming content processing method is also provided. The electronic device may be Fig.10 The terminal device or server shown in the figure. This embodiment is described by taking the electronic device as a terminal as an example. Fig.10 As shown, the electronic device includes a memory 1002 and a processor 1004. The memory 1002 stores a computer program, and the processor 1004 is configured to execute the steps in any of the above method embodiments through the computer program.

[0110] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.

[0111] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0112] Obtaining a multimedia frame sequence in a live stream segment to be processed;

[0113] Determining an interception confidence of each multimedia frame in the multimedia frame sequence, wherein the interception confidence is used to indicate whether the multimedia frame is recognized;

[0114] Determine a first time point and a second time point from the multimedia frame sequence according to the interception confidence, wherein the first time point is used to indicate the time point when the interception confidence changes from the first target value to the second target value, and the second time point is used to indicate the time point when the interception confidence changes from the second target value to the first target value, the multimedia frame corresponding to the first target value is not recognized, and the multimedia frame corresponding to the second target value is recognized;

[0115] Obtaining content safety coefficients corresponding to a plurality of multimedia frames between a first time point and a second time point;

[0116] When the content security factor indicates that a plurality of multimedia frames are to be intercepted, the live stream segment is intercepted.

[0117] Alternatively, a person skilled in the art may understand that: Fig.10 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (MID), a PAD, and other terminal devices. Fig.10 The electronic device and the electronic equipment described above are not limited in structure. Fig.10 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.10 Different configurations are shown.

[0118] Among them, the memory 1002 can be used to store software programs and modules, such as the program instructions / modules corresponding to the live streaming content processing method and device in the embodiment of the present invention. The processor 1004 executes various functional applications and data processing by running the software programs and modules stored in the memory 1002, that is, realizing the above-mentioned live streaming content processing method. The memory 1002 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1002 may further include a memory remotely arranged relative to the processor 1004, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 1002 can be specifically, but not limited to, used to store information such as live streaming segments. As an example, such as Fig.10 As shown, the memory 1002 may include, but is not limited to, the first acquisition unit 902, the first determination unit 904, the second determination unit 906, the second acquisition unit 908, and the interception unit 910 in the live stream content processing device. In addition, other module units in the live stream content processing device may also be included but are not limited to, which will not be repeated in this example.

[0119] Optionally, the transmission device 1006 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 1006 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1006 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0120] In addition, the electronic device further includes: a display 1008 for displaying live streaming segments; and a connection bus 1010 for connecting various module components in the electronic device.

[0121] In other embodiments, the terminal device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. Among them, the nodes may form a peer-to-peer (P2P, Peer To Peer) network, and any form of computing device, such as a server, terminal and other electronic devices, may become a node in the blockchain system by joining the peer-to-peer network.

[0122] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0123] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0124] Obtaining a multimedia frame sequence in a live stream segment to be processed;

[0125] Determining an interception confidence of each multimedia frame in the multimedia frame sequence, wherein the interception confidence is used to indicate whether the multimedia frame is recognized;

[0126] Determine a first time point and a second time point from the multimedia frame sequence according to the interception confidence, wherein the first time point is used to indicate the time point when the interception confidence changes from the first target value to the second target value, and the second time point is used to indicate the time point when the interception confidence changes from the second target value to the first target value, the multimedia frame corresponding to the first target value is not recognized, and the multimedia frame corresponding to the second target value is recognized;

[0127] Obtaining content safety coefficients corresponding to a plurality of multimedia frames between a first time point and a second time point;

[0128] When the content security factor indicates that a plurality of multimedia frames are to be intercepted, the live stream segment is intercepted.

[0129] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0130] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0131] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which can be personal computers, servers or network devices, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention.

[0132] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

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

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

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

[0136] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A content processing method for a live stream, It is characterized in that include: Obtaining a multimedia frame sequence in a live stream segment to be processed; Determining the interception confidence of each multimedia frame in the multimedia frame sequence by using the target interception model, wherein the interception confidence is used to indicate whether the multimedia frame is recognized, and the target interception model is obtained by inputting the sample live stream into the original interception model and the target recognition model, and training the original interception model by using the difference between the output result of the original interception model and the output result of the target recognition model; Determine a first time point and a second time point from the multimedia frame sequence according to the interception confidence, wherein the first time point is used to indicate a time point when the interception confidence changes from a first target value to a second target value, and the second time point is used to indicate a time point when the interception confidence changes from the second target value to the first target value; Obtaining content safety coefficients corresponding to a plurality of multimedia frames between the first time point and the second time point using the target recognition model; In a case where the content security factor indicates that the plurality of multimedia frames should be intercepted, the live stream segment is intercepted.

2. The method according to claim 1, It is characterized in that Determining the first time point and the second time point from the multimedia frame sequence according to the interception confidence comprises: Determine the time point at which the first multimedia frame whose interception confidence is the second target value in the multimedia frame sequence is located as the first time point; The time point at which the first multimedia frame whose interception confidence is the first target value in the multimedia frame sequence is located after the first time point is determined as the second time point.

3. The method according to claim 1, It is characterized in that Determining the interception confidence of each multimedia frame in the multimedia frame sequence by using the target interception model includes: inputting each multimedia frame in the multimedia frame sequence into the target interception model; Obtaining a target vector of each multimedia frame output by the target interception model; The target vector is classified into two categories to obtain the interception confidence of each of the multimedia frames.

4. The method according to claim 1, It is characterized in that Before determining the interception confidence of each multimedia frame in the multimedia frame sequence by using the target interception model, the method further includes: Get the sample live stream; Inputting the sample live stream into an original interception model to obtain a first vector output by the original interception model, wherein the original interception model is used to identify the sample live stream to obtain the first vector; Inputting the sample live stream into a target recognition model to obtain a second vector of the sample live stream, wherein the target recognition model is used to identify the sample live stream to obtain the second vector; determining a first loss based on the first vector and the second vector and determining a second loss based on the first vector; The model parameters of the original interception model are adjusted according to the first loss and the second loss until a target interception model is obtained, wherein the target interception model is a model for determining the interception confidence of each multimedia frame in the multimedia frame sequence.

5. The method according to claim 4, It is characterized in that The first loss is determined according to the first vector and the second vector, and the second loss is determined according to the first vector: determining a minimized characteristic distance between the first vector and the second vector as the first loss; The first vector is input into a binary classification loss function to obtain the second loss.

6. The method according to claim 4, It is characterized in that The adjusting the model parameters of the original interception model according to the first loss and the second loss until the target interception model is obtained comprises: Repeat the following steps until the target interception model is obtained: When the first loss is greater than or equal to a first threshold or the second loss is greater than or equal to a second threshold, the model parameters of the original interception model are adjusted, and the original interception model after the adjustment of the model parameters is used to identify the sample live stream to obtain a new first vector, and a new first loss and a new second loss are determined based on the second vector and the new first vector.

7. The method according to any one of claims 1 to 6, It is characterized in that The step of using the target recognition model to obtain content safety coefficients corresponding to a plurality of multimedia frames between the first time point and the second time point includes: Inputting each multimedia frame of the plurality of multimedia frames into the object recognition model, wherein the object recognition model is used to identify the content security factor of each multimedia frame; Obtain the content security factor of each multimedia frame output by the target recognition model.

8. A content processing device for a live stream, It is characterized in that include: A first acquisition unit, used to acquire a multimedia frame sequence in a live stream segment to be processed; A first determination unit is used to determine the interception confidence of each multimedia frame in the multimedia frame sequence by using a target interception model, wherein the interception confidence is used to indicate whether the multimedia frame is recognized, and the target interception model is obtained by inputting a sample live stream into an original interception model and a target recognition model, and training the original interception model by using the difference between an output result of the original interception model and an output result of the target recognition model; a second determining unit, configured to determine a first time point and a second time point from the multimedia frame sequence according to the interception confidence, wherein the first time point is used to indicate a time point at which the interception confidence changes from a first target value to a second target value, and the second time point is used to indicate a time point at which the interception confidence changes from the second target value to the first target value; A second acquisition unit, configured to acquire content safety coefficients corresponding to a plurality of multimedia frames between the first time point and the second time point using the target recognition model; An interception unit is used to intercept the live stream segment when the content security factor indicates that the multiple multimedia frames are determined to be intercepted.

9. The device according to claim 8, It is characterized in that The second determining unit includes: A first determining module, configured to determine a time point at which the first multimedia frame whose interception confidence is the second target value in the multimedia frame sequence is located as the first time point; The second determination module is used to determine the time point at which the first multimedia frame whose interception confidence is the first target value in the multimedia frame sequence is located after the first time point as the second time point.

10. The device according to claim 8, It is characterized in that The first determining unit includes: A first input module, configured to input each multimedia frame in the multimedia frame sequence into a target interception model; A first acquisition module, configured to acquire a target vector of each multimedia frame output by the target interception model; The processing module is used to perform binary classification on the target vector to obtain the interception confidence of each of the multimedia frames.

11. The device according to claim 8, It is characterized in that The device also includes: A third acquisition unit is used to acquire a sample live stream before determining the interception confidence of each multimedia frame in the multimedia frame sequence; A first input unit is used to input the sample live stream into an original interception model to obtain a first vector output by the original interception model, wherein the original interception model is used to identify the sample live stream to obtain the first vector; A second input unit is used to input the sample live stream into a target recognition model to obtain a second vector of the sample live stream, wherein the target recognition model is used to identify the sample live stream to obtain the second vector; a third determining unit, configured to determine a first loss according to the first vector and the second vector and to determine a second loss according to the first vector; An adjustment unit is used to adjust the model parameters of the original interception model according to the first loss and the second loss until a target interception model is obtained, wherein the target interception model is a model for determining the interception confidence of each multimedia frame in the multimedia frame sequence.

12. The device according to claim 11, It is characterized in that The third determining unit includes: A third determining module, configured to determine a minimized characteristic distance between the first vector and the second vector as the first loss; The second input module is used to input the first vector into a binary classification loss function to obtain the second loss.

13. The device according to claim 11, It is characterized in that The adjustment unit comprises: The loop module is used to repeatedly perform the following operations until the target interception model is obtained: When the first loss is greater than or equal to a first threshold or the second loss is greater than or equal to a second threshold, the model parameters of the original interception model are adjusted, and the original interception model after the adjustment of the model parameters is used to identify the sample live stream to obtain a new first vector, and a new first loss and a new second loss are determined based on the second vector and the new first vector.

14. A computer-readable storage medium storing a computer program. It is characterized in that The computer program executes the method described in any one of claims 1 to 7 when it is executed.

15. An electronic device comprising a memory and a processor, It is characterized in that A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.