Live content detection method, device, readable medium and electronic device

By obtaining and combining the characteristics of the live content, and using the pre-trained detection model to determine whether there are violations in the online live content, it solves the problems of high manual detection cost and low efficiency in the existing technology, and improves the accuracy and accuracy of live content detection. efficiency.

CN112507884BActive Publication Date: 2024-09-13BEIJING YOUZHUJU NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011455156.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-10
Publication Date
2024-09-13
Estimated Expiration
2040-12-10

AI Technical Summary

Technical Problem

The existing technology has the problems of high manual detection cost, low efficiency and difficulty in ensuring accuracy in the detection of online live broadcast content. In particular, it is difficult to detect violations in a timely manner in massive live broadcast programs.

Method used

By obtaining the live content and program attributes within the specified duration before the current moment, extracting the target live broadcast features and historical live broadcast features, combined with the input of the pre-trained detection model to determine whether there is a specified behavior, improve the accuracy and efficiency of detection.

Benefits of technology

Real-time detection of online live broadcast content is realized. By combining the characteristic changes of the current moment and historical moments, the accuracy and efficiency of content detection are improved, and the need for manual review is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112507884B
    Figure CN112507884B
Patent Text Reader

Abstract

The present disclosure relates to a method, device, readable medium and electronic device for detecting live content, and relates to the field of electronic information processing technology. The method comprises: obtaining the live content and program attributes of a live program within a specified time period before the current moment, wherein the live content comprises: at least one of live images, live sounds and live texts generated by the live program; extracting the target live features of the live program at the current moment according to the live content and program attributes; determining additional live features according to the target live features and historical live features, wherein the historical live features are the live features of the live program at historical moments before the current moment; inputting the target live features and the additional live features into a pre-trained detection model to obtain a detection result output by the detection model, wherein the detection result is used to indicate whether the live program has a specified behavior within the specified time period before the current moment. The present disclosure can detect the live content in real time, and improve the accuracy and efficiency of the detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of electronic information processing, and in particular, to a method, device, readable medium and electronic device for detecting live content. Background Art

[0002] With the continuous development of electronic information technology, live streaming has been widely used in various industrial fields. Considering the wide range of live streaming and the large audience base, it is necessary to supervise the content of live streaming to avoid the adverse effects of violations included in the content. Usually, it is the operators who detect the content of live streaming, which has high labor costs and low efficiency. In addition, since live streaming often includes a large number of live programs (which can be understood as live broadcast rooms), operators can only regularly spot check some live programs, and violations often do not appear all the time, so it is difficult to ensure the accuracy of content detection. Summary of the invention

[0003] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0004] In a first aspect, the present disclosure provides a method for detecting live content, the method comprising:

[0005] Acquire the live content and program attributes of a live program within a specified time period before the current time, wherein the live content includes at least one of live images, live sounds, and live texts generated by the live program;

[0006] Extracting target live broadcast features of the live broadcast program at the current moment according to the live broadcast content and the program attributes;

[0007] Determining an additional live broadcast feature according to the target live broadcast feature and the historical live broadcast feature, wherein the historical live broadcast feature is a live broadcast feature of the live broadcast program at a historical moment before the current moment;

[0008] The target live broadcast feature and the additional live broadcast feature are input into a pre-trained detection model to obtain a detection result output by the detection model, wherein the detection result is used to indicate whether the live broadcast program has a specified behavior within a specified time period before the current moment.

[0009] In a second aspect, the present disclosure provides a live content detection device, the device comprising:

[0010] An acquisition module, used to acquire the live content and program attributes of a live program within a specified time period before the current moment, wherein the live content includes at least one of live images, live sounds, and live texts generated by the live program;

[0011] An extraction module, configured to extract a target live feature of the live program at the current moment according to the live content and the program attributes;

[0012] A determination module, configured to determine an additional live broadcast feature according to the target live broadcast feature and the historical live broadcast feature, wherein the historical live broadcast feature is a live broadcast feature of the live broadcast program at a historical moment before the current moment;

[0013] A detection module is used to input the target live broadcast feature and the additional live broadcast feature into a pre-trained detection model to obtain a detection result output by the detection model, wherein the detection result is used to indicate whether the live broadcast program has a specified behavior within a specified time period before the current moment.

[0014] In a third aspect, the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processing device, implements the steps of the method described in the first aspect of the present disclosure.

[0015] In a fourth aspect, the present disclosure provides an electronic device, including:

[0016] a storage device having a computer program stored thereon;

[0017] A processing device is used to execute the computer program in the storage device to implement the steps of the method described in the first aspect of the present disclosure.

[0018] Through the above technical solution, the present disclosure first obtains the live content and program attributes of the live program within the specified time before the current moment, then extracts the target live features of the live program at the current moment based on the live content and program attributes, and then determines the additional live features based on the target live features and the historical live features of the historical moments before the current moment, and finally uses the target live features and the additional live features as inputs to the detection model to obtain the detection results output by the detection model to indicate whether the live program has a specified behavior. When the present disclosure performs real-time detection of live content, by combining the live features of the current moment with the live features of the historical moments, the detection model can perceive the changes in the live features in the time dimension, thereby improving the accuracy and efficiency of content detection.

[0019] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale. In the drawings:

[0021] Figure 1 is a flow chart of a method for detecting live content according to an exemplary embodiment;

[0022] Figure 2 is a flow chart of another method for detecting live content according to an exemplary embodiment;

[0023] Figure 3 is a flow chart of another method for detecting live content according to an exemplary embodiment;

[0024] Figure 4 is a flow chart of another method for detecting live content according to an exemplary embodiment;

[0025] Figure 5 is a flow chart of another method for detecting live content according to an exemplary embodiment;

[0026] Figure 6 is a flow chart showing a method of training a detection model according to an exemplary embodiment;

[0027] Figure 7 is a block diagram of a detection device for live content according to an exemplary embodiment;

[0028] Figure 8 is a block diagram of another live content detection device according to an exemplary embodiment;

[0029] Fig. 9 is a block diagram of another live content detection device according to an exemplary embodiment;

[0030] Fig.10 is a block diagram of another live content detection device according to an exemplary embodiment;

[0031] Fig.11 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0032] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0033] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0034] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0035] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0036] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0037] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0038] Figure 1 is a flow chart of a method for detecting live content according to an exemplary embodiment. Figure 1 As shown, the method includes:

[0039] Step 101, obtaining the live content and program attributes of the live program within a specified time period before the current moment, wherein the live content includes at least one of live images, live sounds, and live texts generated by the live program.

[0040] For example, in order to detect live content in real time, the live content and program attributes of the live program within a specified time period (e.g., 20 seconds) before the current moment can be collected. The live content may include at least one of the live images, live sounds, and live texts generated by the live program. The live images may include, for example, each frame of the video stream generated by the live program, and may also include gifts, picture comments, etc. sent by viewers of the live program. The live sound may include each frame of audio in the audio stream generated by the live program, and may also include voice comments sent by viewers of the live program. The live text may include text generated by the live program, and may also include text comments sent by viewers of the live program. The program attributes may include the number of viewers at the current moment of the live program, the broadcast duration, etc.

[0041] It should be noted that in a live broadcast platform, multiple live broadcast programs can be played, and a live broadcast program can be understood as a live broadcast room. Each live broadcast program corresponds to a program ID that can uniquely identify the live broadcast program (which can also be understood as the room ID of the live broadcast room). The live broadcast program in the embodiment of the present disclosure can be any live broadcast program in the live broadcast platform. For example, the live broadcast content and program attributes corresponding to each live broadcast program in the live broadcast platform can be collected according to the program ID of each live broadcast program in the live broadcast platform.

[0042] Step 102: extract the target live broadcast features of the live broadcast program at the current moment according to the live broadcast content and program attributes.

[0043] Step 103, determining additional live broadcast features according to the target live broadcast features and the historical live broadcast features, where the historical live broadcast features are live broadcast features of the live broadcast program at historical moments before the current moment.

[0044] For example, a target live broadcast feature that can characterize the status of the live broadcast program at the current moment can be extracted from the live broadcast content and program attributes. The target live broadcast feature can be a feature vector, which includes multiple dimensions to characterize the live broadcast program from multiple dimensions. For example, the feature vector may include a dimension for characterizing the live broadcast image, a dimension for characterizing the live broadcast sound, a dimension for characterizing the live broadcast text, and may also include a dimension for characterizing the number of viewers, a dimension for characterizing the broadcast duration, etc.

[0045] Afterwards, additional live broadcast features can be determined based on the target live broadcast features and the historical live broadcast features. Among them, the historical live broadcast features can be understood as the features that can characterize the state of the live broadcast program at the historical moment, extracted based on the live broadcast content and program attributes of the live broadcast program within the specified time before the historical moment collected when executing steps 101 to 102 at the historical moment. The historical moment is one or more moments before the current moment. For example, the historical moment can be 1 minute before the current moment, or it can be 5 minutes, 10 minutes, or 15 minutes before the current moment. Specifically, the target live broadcast feature and the historical live broadcast feature can be subtracted to use the obtained difference as the additional live broadcast feature. Alternatively, the target live broadcast feature and the historical live broadcast feature can also be weighted summed to use the obtained result as the additional live broadcast feature. The mean of the target live broadcast feature and the historical live broadcast feature can also be used as the additional live broadcast feature, and the present disclosure does not make specific restrictions on this. In this way, the additional live broadcast feature can reflect the changes of the live broadcast program in the time dimension (i.e., from the historical moment to the current moment).

[0046] Step 104, input the target live broadcast feature and the additional live broadcast feature into a pre-trained detection model to obtain a detection result output by the detection model, where the detection result is used to indicate whether the live broadcast program has a specified behavior within a specified time period before the current moment.

[0047] For example, after obtaining the target live broadcast feature and the additional live broadcast feature, the target live broadcast feature and the additional live broadcast feature can be input into the pre-trained detection model together to obtain the detection result output by the detection model, which can indicate whether the live broadcast program has a specified behavior within the specified time before the current moment. Among them, the specified behavior can be a behavior that needs to be punished or rewarded accordingly according to specific needs. For example, the specified behavior can be an uncivilized behavior, including: violent behavior, pornographic behavior, smoking behavior, swearing behavior, etc. The specified behavior can also be a behavior that violates certain rules, including: cheating behavior, theft behavior, etc. The specified behavior can also be a behavior that complies with certain rules, including: promotion behavior, etc. The detection result output by the detection model can be, for example, the probability value of the live broadcast program having a specified behavior within the specified time before the current moment. If the probability value is greater than or equal to a preset first threshold (for example, it can be 65%), it indicates that the specified behavior exists. If the probability value is less than the first threshold, it indicates that the specified behavior does not exist. Since the input of the detection model includes the target live broadcast feature and the additional live broadcast feature, the detection model can perceive the changes in the live broadcast feature in the time dimension, so as to better understand the live broadcast program and improve the accuracy and efficiency of content detection.

[0048] If it is determined that the live program has specified behavior within the specified time period before the current moment indicated by the detection result, the live program can be punished accordingly (for example, the live program is stopped or muted) or rewarded (for example, the live program is promoted). In order to further improve the accuracy of content detection, the live program that is determined to have specified behavior can also be sent to the operator so that the operator can manually review the live program. In this way, the operator does not need to detect all live programs, which can effectively improve the efficiency and accuracy of content detection.

[0049] In summary, the present disclosure first obtains the live content and program attributes of the live program within a specified time period before the current moment, then extracts the target live features of the live program at the current moment based on the live content and program attributes, and then determines the additional live features based on the target live features and the historical live features of the historical moments before the current moment, and finally uses the target live features and the additional live features as inputs to the detection model to obtain the detection results output by the detection model to indicate whether the live program has a specified behavior. When performing real-time detection of live content, the present disclosure combines the live features of the current moment with the live features of the historical moments, so that the detection model can perceive the changes in the live features in the time dimension, thereby improving the accuracy and efficiency of content detection.

[0050] Figure 2 is a flow chart of another method for detecting live content according to an exemplary embodiment. Figure 2 As shown, the implementation of step 102 may be:

[0051] Step 1021, extracting a content vector for representing the live broadcast content, where the content vector includes: at least one of an image vector for representing the live broadcast image, an audio vector for representing the live broadcast sound, and a semantic vector for representing the live broadcast text.

[0052] Step 1022: Determine a behavior score of the live content according to the content vector. The behavior score is used to indicate the probability of a specified behavior existing in the live content.

[0053] Step 1023, taking the behavior score and program attributes as target live broadcast features, where the program attributes include: at least one of the number of viewers of the live broadcast program, broadcast duration, and anchor parameters.

[0054] For example, the target live broadcast feature extraction method can first extract the content vector that can characterize the live broadcast content, which may include: an image vector for characterizing the live broadcast image, an audio vector for characterizing the live broadcast sound, and a semantic vector for characterizing the live broadcast text. After that, the behavior score that can indicate the probability of the existence of a specified behavior in the live broadcast content is determined based on the content vector. Specifically, the behavior score may include three dimensions: image behavior score, sound behavior score, and text behavior score. The behavior score may also include multiple dimensions, each dimension corresponding to a score corresponding to a specified behavior among multiple specified behaviors. Finally, the behavior score and program attributes can be combined to obtain the target live broadcast feature. Among them, the program attributes may include: the number of viewers at the current moment of the live broadcast program, the broadcast duration, and the anchor parameters. The anchor parameters are used to indicate the attributes of the anchor of the live broadcast program, for example, they may include: the number of fans, violation records, number of violations, etc.

[0055] In an application scenario, the specified behavior is multiple. Accordingly, step 1022 can be implemented by the following steps:

[0056] Step 1) For each designated behavior, the content vector is input into a pre-trained behavior recognition model corresponding to the designated behavior to obtain the probability of the designated behavior existing in the live content output by the behavior recognition model.

[0057] Step 2) Determine a behavior score based on the probability of each specified behavior existing in the live content.

[0058] For example, since there are often multiple designated behaviors, a corresponding recognition model can be pre-trained for each of the multiple designated behaviors, and the recognition model is used to detect the probability of the existence of the designated behavior in the live content. In this way, the content vector can be input into multiple recognition models respectively to obtain the probability of the existence of the corresponding designated behavior in the live content output by each recognition model. Afterwards, the behavior score is determined based on the probability of each designated behavior existing in the live content. For example, the probability of each designated behavior existing in the live content can be used as the sub-score corresponding to the designated behavior, and then the sub-scores corresponding to multiple designated behaviors can be combined to obtain a behavior score. The sub-scores corresponding to multiple designated behaviors can also be weighted and summed to obtain a behavior score.

[0059] It should be noted that in step 1), the complete content vector can be input into the recognition model, or a part of the vector in the content vector can be input into the recognition model. Since the specified behavior is often reflected in different dimensions in the live content, that is, for different specified behaviors, there may be valid vectors and invalid vectors in the content vector, so the valid vector can be input into the corresponding recognition model to avoid the interference of invalid vectors on the recognition model. For example, the specified behavior is swearing behavior, and the corresponding recognition model is the swearing behavior recognition model. Since swearing behavior is usually reflected in the live sound, the audio vector (i.e., valid vector) used to characterize the live sound in the content vector can be input into the swearing behavior recognition model to obtain the probability of swearing behavior in the live sound. For another example, the specified behavior is smoking behavior, and the corresponding recognition model is the smoking behavior recognition model. Since smoking behavior is usually reflected in the live image, the image vector (i.e., valid vector) used to characterize the live image in the content vector can be input into the smoking behavior recognition model to obtain the probability of smoking behavior in the live image.

[0060] Figure 3 is a flow chart of another method for detecting live content according to an exemplary embodiment. Figure 3 As shown, the implementation of step 103 can be divided into two ways:

[0061] Step 103a, determining additional live broadcast features according to the difference between the target live broadcast features and the historical live broadcast features. Or,

[0062] Step 103b, determining additional live broadcast features according to the statistical values ​​of the target live broadcast features and the historical live broadcast features, where the statistical value is any one of a mean, an extreme value, and a variance.

[0063] There are two ways to determine the additional live broadcast feature. One is to find the difference between the target live broadcast feature and the historical live broadcast feature, so as to use the difference between the target live broadcast feature and the historical live broadcast feature as the additional live broadcast feature. The other is to perform statistical calculations on the target live broadcast feature and the historical live broadcast feature, so as to use the statistical values ​​of the target live broadcast feature and the historical live broadcast feature as the additional live broadcast feature, wherein the statistical value can be any one of the mean, extreme value (including the maximum value or the minimum value), and variance, and can also be the median, standard deviation, etc., which is not specifically limited in this disclosure.

[0064] Figure 4 is a flow chart of another method for detecting live content according to an exemplary embodiment. Figure 4 As shown, the target live broadcast feature includes a first number of target sub-features, and the historical live broadcast feature includes historical sub-features corresponding to the target sub-features one by one. Accordingly, step 103 can be implemented by the following steps:

[0065] Step 1031 : determining a second number of designated sub-features from the first number of target sub-features, where the second number is less than or equal to the first number.

[0066] Step 1032: Determine additional live broadcast features based on the second number of designated sub-features and the historical sub-features corresponding to each designated sub-feature.

[0067] In another implementation, the target live broadcast feature includes a first number of target sub-features, and correspondingly, the historical live broadcast feature also includes a first number of historical sub-features that correspond one to one with the target sub-features. When determining the additional live broadcast feature, a second number of designated sub-features can be selected from the first number of target sub-features, so that the additional live broadcast feature is determined according to the second number of designated sub-features and the historical sub-features corresponding to each designated sub-feature. For example, the difference between the second number of designated sub-features and the historical sub-features corresponding to each designated sub-feature can be used as the additional live broadcast feature. It can be understood that if there is a designated behavior in the live broadcast content, some of the first number of target sub-features do not change much in the time dimension, and contribute less to the characterization of the live broadcast program, while another part of the target sub-features changes greatly in the time dimension, and contributes more to the characterization of the live broadcast program. Therefore, the target sub-feature that changes greatly in the time dimension when the designated behavior exists can be selected as the designated sub-feature, for example, the number of viewers, the number of fans of the anchor, etc.

[0068] Figure 5 is a flow chart of another method for detecting live content according to an exemplary embodiment. Figure 5 As shown, step 104 may include:

[0069] Step 1041, combining the target live broadcast feature with the additional live broadcast feature through the detection model to obtain a combined feature, and preprocessing the combined feature.

[0070] Step 1042, determining the detection result through the detection model according to the preprocessed combined features.

[0071] In one implementation, after inputting the target live broadcast feature and the additional live broadcast feature into a pre-trained detection model, the detection model can first combine the target live broadcast feature and the additional live broadcast feature to obtain a combined feature, and then preprocess the combined feature. The preprocessing can be, for example, normalization. The detection model can then detect the preprocessed combined feature to obtain a detection result.

[0072] Figure 6 is a flow chart showing a method of training a detection model according to an exemplary embodiment. Figure 6As shown, the detection model can be trained in the following way:

[0073] Step A, extracting the training live broadcast features corresponding to the first moment according to the training live broadcast content and training program attributes within a specified time period before the first moment.

[0074] Step B, determining the training additional features according to the training live broadcast features and the training historical live broadcast features, wherein the training historical live broadcast features are the live broadcast features corresponding to the training live broadcast program at the second moment, and the second moment is before the first moment.

[0075] Step C: Use the training live broadcast feature and the training additional feature as the input of the detection model, and use the behavior label corresponding to the first moment as the output of the detection model to train the detection model. The behavior label corresponding to the first moment is used to indicate whether the training live broadcast program has a specified behavior within a specified time period before the first moment.

[0076] For example, the live broadcast content and program attributes of the training live broadcast program within a previous period of time can be obtained in advance, and then the live broadcast content and program attributes of the training live broadcast program can be divided into training live broadcast content and training program attributes within a specified time before different moments in chronological order, and the training live broadcast features corresponding to each moment can be extracted respectively. Among them, the training live broadcast program and the live broadcast program can be the same live broadcast program or different live broadcast programs. Taking the time range as 24h and the specified time length as 1min as an example, 24*60=1440 moments can be divided according to the chronological order, so that the live broadcast content and program attributes can be divided into training live broadcast content and training program attributes corresponding to 1440 moments, and the training live broadcast features corresponding to 1440 moments can be extracted accordingly.

[0077] Afterwards, the additional training features can be determined based on the training live broadcast features corresponding to the first moment and the training live broadcast features corresponding to the second moment (i.e., the training historical live broadcast features), so that the training live broadcast features and the additional training features are used as the input of the detection model, and the behavior label corresponding to the first moment is used as the output of the detection model to train the detection model, thereby adjusting the parameters of the neurons in the detection model. The parameters of the neurons can be, for example, the weights (English: Weight) and biases (English: Bias) of the neurons. Among them, the behavior label corresponding to the first moment is used to indicate whether there is a specified behavior in the training live broadcast program within the specified time before the first moment. For example, if the behavior label is 1, it means that the specified behavior exists, and if the behavior label is 0, it means that the specified behavior does not exist.

[0078] In summary, the present disclosure first obtains the live content and program attributes of the live program within a specified time period before the current moment, then extracts the target live features of the live program at the current moment based on the live content and program attributes, and then determines the additional live features based on the target live features and the historical live features of the historical moments before the current moment, and finally uses the target live features and the additional live features as inputs to the detection model to obtain the detection results output by the detection model to indicate whether the live program has a specified behavior. When performing real-time detection of live content, the present disclosure combines the live features of the current moment with the live features of the historical moments, so that the detection model can perceive the changes in the live features in the time dimension, thereby improving the accuracy and efficiency of content detection.

[0079] Figure 7 is a block diagram of a detection device for live content according to an exemplary embodiment. Figure 7 As shown, the device 200 includes:

[0080] The acquisition module 201 is used to acquire the live content and program attributes of the live program within a specified time period before the current moment, and the live content includes at least one of live images, live sounds, and live texts generated by the live program.

[0081] The extraction module 202 is used to extract the target live broadcast features of the live broadcast program at the current moment according to the live broadcast content and program attributes.

[0082] The determination module 203 is used to determine the additional live broadcast feature according to the target live broadcast feature and the historical live broadcast feature, where the historical live broadcast feature is the live broadcast feature of the live broadcast program at a historical moment before the current moment.

[0083] The detection module 204 is used to input the target live broadcast feature and the additional live broadcast feature into a pre-trained detection model to obtain a detection result output by the detection model, and the detection result is used to indicate whether the live broadcast program has a specified behavior within a specified time period before the current moment.

[0084] Figure 8 is a block diagram of another live content detection device according to an exemplary embodiment. Figure 8 As shown, the extraction module 202 may include:

[0085] The extraction submodule 2021 is used to extract content vectors for representing live broadcast content, where the content vectors include at least one of: image vectors for representing live broadcast images, audio vectors for representing live broadcast sounds, and semantic vectors for representing live broadcast texts.

[0086] The first determination submodule 2022 determines a behavior score of the live content according to the content vector, where the behavior score is used to indicate the probability of a specified behavior existing in the live content.

[0087] The processing submodule 2023 is used to use the behavior score and program attributes as target live broadcast features, where the program attributes include: at least one of the number of viewers of the live broadcast program, the broadcast duration, and the anchor parameters.

[0088] In an application scenario, the specified behavior is multiple, and the determination submodule 2022 can be used to:

[0089] For each designated behavior, the content vector is input into a pre-trained behavior recognition model corresponding to the designated behavior to obtain the probability of the designated behavior existing in the live content output by the behavior recognition model.

[0090] The behavior score is determined based on the probability of each specified behavior existing in the live content.

[0091] In another application scenario, the implementation of the determination module 203 can be divided into two ways:

[0092] Method 1: Determine the additional live broadcast feature based on the difference between the target live broadcast feature and the historical live broadcast feature. Or,

[0093] Method 2: Determine additional live broadcast features based on the statistical values ​​of the target live broadcast features and the historical live broadcast features, where the statistical value is any one of the mean, extreme value, and variance.

[0094] Fig. 9 is a block diagram of another live content detection device according to an exemplary embodiment. Fig. 9 As shown, the target live broadcast feature includes a first number of target sub-features, and the historical live broadcast feature includes historical sub-features that correspond one-to-one to the target sub-features. The determination module 203 may include:

[0095] The screening submodule 2031 is used to determine a second number of designated sub-features from the first number of target sub-features, where the second number is less than or equal to the first number.

[0096] The second determination submodule 2032 is used to determine the additional live broadcast feature according to the second number of designated sub-features and the historical sub-features corresponding to each designated sub-feature.

[0097] Fig.10 is a block diagram of another live content detection device according to an exemplary embodiment. Fig.10 As shown, the detection module 204 may include:

[0098] The combination submodule 2041 is used to combine the target live broadcast feature with the additional live broadcast feature through the detection model to obtain the combined feature, and pre-process the combined feature.

[0099] The detection submodule 2042 is used to determine the detection result according to the pre-processed combined features through the detection model.

[0100] It should be noted that the detection model in the above embodiment can be trained in the following way:

[0101] Step A, extracting the training live broadcast features corresponding to the first moment according to the training live broadcast content and training program attributes within a specified time period before the first moment.

[0102] Step B, determining the training additional features according to the training live broadcast features and the training historical live broadcast features, wherein the training historical live broadcast features are the live broadcast features corresponding to the training live broadcast program at the second moment, and the second moment is before the first moment.

[0103] Step C: Use the training live broadcast feature and the training additional feature as the input of the detection model, and use the behavior label corresponding to the first moment as the output of the detection model to train the detection model. The behavior label corresponding to the first moment is used to indicate whether the training live broadcast program has a specified behavior within a specified time period before the first moment.

[0104] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0105] In summary, the present disclosure first obtains the live content and program attributes of the live program within a specified time period before the current moment, then extracts the target live features of the live program at the current moment based on the live content and program attributes, and then determines the additional live features based on the target live features and the historical live features of the historical moments before the current moment, and finally uses the target live features and the additional live features as inputs to the detection model to obtain the detection results output by the detection model to indicate whether the live program has a specified behavior. When performing real-time detection of live content, the present disclosure combines the live features of the current moment with the live features of the historical moments, so that the detection model can perceive the changes in the live features in the time dimension, thereby improving the accuracy and efficiency of content detection.

[0106] Reference below Fig.11 , which shows a schematic diagram of the structure of an electronic device (for example, an execution subject of the embodiment of the present disclosure) 300 suitable for implementing the embodiment of the present disclosure. The electronic device in the embodiment of the present disclosure may be a terminal device or a server. The terminal device may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (for example, vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.11 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0107] like Fig.11 As shown, the electronic device 300 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0108] Typically, the following devices may be connected to the I / O interface 305: input devices 306 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 308 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 309. The communication devices 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.11 The electronic device 300 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0109] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. When the computer program is executed by the processing device 301, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0110] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0111] In some embodiments, the terminal devices and servers may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0112] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0113] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: obtains the live broadcast content and program attributes of the live broadcast program within a specified time period before the current moment, and the live broadcast content includes: at least one of the live broadcast images, live broadcast sounds, and live broadcast texts generated by the live broadcast program; extracts the target live broadcast features of the live broadcast program at the current moment based on the live broadcast content and the program attributes; determines additional live broadcast features based on the target live broadcast features and historical live broadcast features, and the historical live broadcast features are the live broadcast features of the live broadcast program at historical moments before the current moment; inputs the target live broadcast features and the additional live broadcast features into a pre-trained detection model to obtain the detection results output by the detection model, and the detection results are used to indicate whether the live broadcast program has a specified behavior within the specified time period before the current moment.

[0114] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0115] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0116] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a module does not limit the module itself in some cases. For example, an acquisition module may also be described as a "module for acquiring live content and program attributes".

[0117] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0118] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0119] According to one or more embodiments of the present disclosure, Example 1 provides a method for detecting live content, including: obtaining live content and program attributes of a live program within a specified duration before a current moment, the live content including: at least one of live images, live sounds, and live texts generated by the live program; extracting target live features of the live program at the current moment based on the live content and the program attributes; determining additional live features based on the target live features and historical live features, the historical live features being live features of the live program at historical moments before the current moment; inputting the target live features and the additional live features into a pre-trained detection model to obtain a detection result output by the detection model, the detection result being used to indicate whether the live program has a specified behavior within the specified duration before the current moment.

[0120] According to one or more embodiments of the present disclosure, Example 2 provides the method of Example 1, which extracts the target live broadcast features of the live broadcast program at the current moment based on the live broadcast content and the program attributes; extracts a content vector for characterizing the live broadcast content, the content vector including: an image vector for characterizing the live broadcast image, an audio vector for characterizing the live broadcast sound, and at least one of a semantic vector for characterizing the live broadcast text; determines a behavior score of the live broadcast content based on the content vector, the behavior score is used to indicate the probability of the existence of the specified behavior in the live broadcast content; uses the behavior score and the program attributes as the target live broadcast features, the program attributes including: at least one of the number of viewers of the live broadcast program, the broadcast duration, and anchor parameters.

[0121] According to one or more embodiments of the present disclosure, Example 3 provides the method of Example 2, wherein there are multiple specified behaviors; determining the behavior score of the live content based on the content vector includes: for each of the specified behaviors, inputting the content vector into a pre-trained behavior recognition model corresponding to the specified behavior to obtain the probability of the specified behavior existing in the live content output by the behavior recognition model; determining the behavior score based on the probability of each of the specified behaviors existing in the live content.

[0122] According to one or more embodiments of the present disclosure, Example 4 provides the method of Example 1, wherein determining the additional live broadcast features based on the target live broadcast features and the historical live broadcast features includes: determining the additional live broadcast features based on the difference between the target live broadcast features and the historical live broadcast features; or determining the additional live broadcast features based on the statistical value of the target live broadcast features and the historical live broadcast features, wherein the statistical value is any one of a mean, an extreme value, and a variance.

[0123] According to one or more embodiments of the present disclosure, Example 5 provides the method of Example 1, wherein the target live broadcast feature includes a first number of target sub-features, and the historical live broadcast feature includes historical sub-features corresponding one-to-one to the target sub-features; determining the additional live broadcast feature based on the target live broadcast feature and the historical live broadcast feature includes: determining a second number of specified sub-features among the first number of target sub-features, the second number being less than or equal to the first number; determining the additional live broadcast feature based on the second number of specified sub-features and the historical sub-features corresponding to each of the specified sub-features.

[0124] According to one or more embodiments of the present disclosure, Example 6 provides the method of Example 1, which inputs the target live broadcast feature and the additional live broadcast feature into a pre-trained detection model to obtain the detection result output by the detection model, including: combining the target live broadcast feature with the additional live broadcast feature through the detection model to obtain a combined feature, and preprocessing the combined feature; determining the detection result according to the preprocessed combined feature through the detection model.

[0125] According to one or more embodiments of the present disclosure, Example 7 provides the methods of Examples 1 to 6, and the detection model is trained in the following manner: based on the training live content and training program attributes within a specified duration before a first moment of a training live program, extracting the training live features corresponding to the first moment; based on the training live features and the training historical live features, determining the training additional features, the training historical live features being the live features corresponding to the training live program at a second moment, and the second moment is before the first moment; using the training live features and the training additional features as inputs to the detection model, and using the behavior label corresponding to the first moment as output of the detection model, so as to train the detection model; the behavior label corresponding to the first moment is used to indicate whether the training live program has the specified behavior within the specified duration before the first moment.

[0126] According to one or more embodiments of the present disclosure, Example 8 provides a device for detecting live content, including: an acquisition module, used to acquire the live content and program attributes of a live program within a specified time period before a current moment, the live content including: at least one of live images, live sounds, and live texts generated by the live program; an extraction module, used to extract the target live features of the live program at the current moment based on the live content and the program attributes; a determination module, used to determine additional live features based on the target live features and historical live features, the historical live features being the live features of the live program at historical moments before the current moment; a detection module, used to input the target live features and the additional live features into a pre-trained detection model to obtain a detection result output by the detection model, the detection result being used to indicate whether the live program has a specified behavior within the specified time period before the current moment.

[0127] According to one or more embodiments of the present disclosure, Example 9 provides a computer-readable medium having a computer program stored thereon, which implements the steps of the methods described in Examples 1 to 7 when executed by a processing device.

[0128] According to one or more embodiments of the present disclosure, Example 10 provides an electronic device, comprising: a storage device on which a computer program is stored; and a processing device for executing the computer program in the storage device to implement the steps of the method described in Examples 1 to 7.

[0129] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0130] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0131] Although the subject matter has been described in language specific to structural features and / or method logic actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims. Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Claims

1. A method for detecting live content, characterized in that: The method comprises: Acquire the live content and program attributes of a live program within a specified time period before the current time, wherein the live content includes at least one of live images, live sounds, and live texts generated by the live program; Extracting target live broadcast features of the live broadcast program at the current moment according to the live broadcast content and the program attributes; Determine an additional live broadcast feature according to the target live broadcast feature and the historical live broadcast feature, wherein the historical live broadcast feature is a live broadcast feature extracted according to the live broadcast content and program attributes of a live broadcast program within a specified time period before a historical moment, and the historical moment is one moment or multiple moments before the current moment; The target live broadcast feature and the additional live broadcast feature are input into a pre-trained detection model to obtain a detection result output by the detection model, wherein the detection result is used to indicate whether the live broadcast program has a specified behavior within a specified time period before the current moment.

2. The method according to claim 1, characterized in that extracting the target live broadcast feature of the live broadcast program at the current moment according to the live broadcast content and the program attributes; Extracting a content vector for representing the live broadcast content, wherein the content vector includes: at least one of an image vector for representing the live broadcast image, an audio vector for representing the live broadcast sound, and a semantic vector for representing the live broadcast text; Determining a behavior score of the live content according to the content vector, wherein the behavior score is used to indicate a probability that the specified behavior exists in the live content; The behavior score and the program attributes are used as the target live broadcast feature, and the program attributes include: at least one of the number of viewers of the live broadcast program, the broadcasting duration, and the anchor parameters.

3. The method according to claim 2, characterized in that The specified behavior may be multiple; and determining the behavior score of the live content according to the content vector includes: For each of the specified behaviors, the content vector is input into a pre-trained behavior recognition model corresponding to the specified behavior to obtain a probability of the specified behavior existing in the live content output by the behavior recognition model; The behavior score is determined according to the probability of each of the specified behaviors existing in the live content.

4. The method according to claim 1, characterized in that: The determining of the additional live broadcast feature according to the target live broadcast feature and the historical live broadcast feature includes: determining the additional live broadcast feature according to the difference between the target live broadcast feature and the historical live broadcast feature; or, The additional live broadcast feature is determined according to the statistical value of the target live broadcast feature and the historical live broadcast feature, and the statistical value is any one of a mean, an extreme value, and a variance.

5. The method according to claim 1, characterized in that The target live broadcast feature includes a first number of target sub-features, and the historical live broadcast feature includes historical sub-features corresponding to the target sub-features one by one; and determining the additional live broadcast feature according to the target live broadcast feature and the historical live broadcast feature includes: Determine a second number of designated sub-features among the first number of target sub-features, wherein the second number is less than or equal to the first number; The additional live broadcast feature is determined according to the second number of the designated sub-features and the historical sub-features corresponding to each of the designated sub-features.

6. The method according to claim 1, characterized in that The step of inputting the target live broadcast feature and the additional live broadcast feature into a pre-trained detection model to obtain a detection result output by the detection model includes: Combining the target live broadcast feature with the additional live broadcast feature through the detection model to obtain a combined feature, and preprocessing the combined feature; The detection result is determined by the detection model according to the preprocessed combined features.

7. The method according to any one of claims 1 to 6, characterized in that The detection model is trained in the following way: Extracting training live broadcast features corresponding to the first moment according to training live broadcast content and training program attributes within a specified time period before the first moment; Determine the training additional feature according to the training live broadcast feature and the training history live broadcast feature, wherein the training history live broadcast feature is a live broadcast feature corresponding to the training live broadcast program at a second moment, and the second moment is before the first moment; The training live broadcast feature and the training additional feature are used as the input of the detection model, and the behavior label corresponding to the first moment is used as the output of the detection model to train the detection model; the behavior label corresponding to the first moment is used to indicate whether the training live broadcast program has the specified behavior within a specified time period before the first moment.

8. A live content detection device, characterized in that: The device comprises: An acquisition module, used to acquire the live content and program attributes of a live program within a specified time period before the current moment, wherein the live content includes at least one of live images, live sounds, and live texts generated by the live program; An extraction module, configured to extract a target live feature of the live program at the current moment according to the live content and the program attributes; A determination module, configured to determine an additional live broadcast feature according to the target live broadcast feature and the historical live broadcast feature, wherein the historical live broadcast feature is a live broadcast feature extracted according to the live broadcast content and program attributes of a live broadcast program within a specified time period before a historical moment, wherein the historical moment is one moment or multiple moments before the current moment; A detection module is used to input the target live broadcast feature and the additional live broadcast feature into a pre-trained detection model to obtain a detection result output by the detection model, wherein the detection result is used to indicate whether the live broadcast program has a specified behavior within a specified time period before the current moment.

9. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processing device, the steps of the method described in any one of claims 1 to 7 are implemented.

10. An electronic device, characterized in that: include: a storage device having a computer program stored thereon; A processing device, configured to execute the computer program in the storage device to implement the steps of the method according to any one of claims 1 to 7.