Live broadcast status monitoring method and system based on big data
By establishing different categories of knowledge templates and combining them with initial live broadcast data, the live broadcast status monitoring model is trained, which solves the problems of unbalanced distribution of live broadcast scene data and insufficient annotation data, and improves the accuracy and universality of live broadcast status monitoring.
Patent Information
- Application Number
- CN202410768797.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-14
AI Technical Summary
Existing big data-based live broadcast status monitoring methods have insufficient model accuracy due to the imbalance of data distribution in different live broadcast scenarios during the algorithm training process. Moreover, due to the real-time nature and diversity of live broadcast data, it is difficult to obtain sufficient quantity and quality of live broadcast status monitoring methods. Labeling data limits the improvement of model performance.
By obtaining the original live broadcast monitoring data set, passing in the initially trained large-scale algorithm and the original live broadcast status prediction algorithm, the first, second and third type knowledge templates are established, and the original live broadcast status prediction is combined with the initial live broadcast data knowledge template. The estimation method is used for training to obtain the target live broadcast status prediction method, so that the model can learn different live broadcast statuses in a balanced manner, improve universality and accuracy, and reduce dependence on annotated data.
It achieves balanced learning of live broadcast status in different live broadcast scenarios, improves the universality and accuracy of the model, reduces training costs and time, and avoids performance limitations caused by insufficient annotation data.
Smart Images

Figure CN118338052B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a live broadcast status monitoring method and system based on big data. Background Art
[0002] With the rapid development of the Internet, the live broadcast industry has also ushered in explosive growth. As a key link to ensure the quality of live broadcast, live broadcast status monitoring is of great significance for improving user experience and optimizing the operation of live broadcast platforms. However, traditional live broadcast status monitoring methods often rely on manual inspections or simple threshold judgments. These methods are not only inefficient, but also difficult to cope with complex and changeable live broadcast scenarios. In recent years, machine learning technology based on big data has made significant progress in various fields, providing new ideas for live broadcast status monitoring. By collecting and analyzing a large amount of live broadcast data, machine learning models can learn the laws of live broadcast status changes, thereby achieving accurate monitoring of live broadcast status. However, existing live broadcast status monitoring methods based on big data still have some problems. First, the diversity and complexity of live broadcast data pose challenges to the training of machine learning models. Different live broadcast scenarios may have different data distributions and feature performances, so it is necessary to build a machine learning model that can adapt to multiple scenarios. However, in the training process of the algorithm, the existing methods use training samples, and the data distribution of different live broadcast scenarios is unbalanced, which makes the accuracy of the trained algorithm insufficient. Secondly, the accuracy of live broadcast status monitoring is seriously affected by the quality of data annotation. In the training process of machine learning models, a large amount of labeled data is usually required to guide the optimization direction of the model. However, in the live broadcast field, due to the real-time and diversity of live broadcast data, it is difficult to obtain labeled data of sufficient quantity and quality, which limits the further improvement of model performance. Summary of the invention
[0003] In view of this, the embodiment of the present application at least provides a live broadcast status monitoring method and system based on big data. The technical solution of the present application is implemented as follows:
[0004] In a first aspect, the present application provides a live broadcast status monitoring method based on big data, comprising: obtaining an original live broadcast monitoring data set; passing the original live broadcast monitoring data set into a preliminarily trained large-scale algorithm to obtain a first batch of live broadcast status annotation information, and passing the original live broadcast monitoring data set into a preliminarily trained original live broadcast status estimation algorithm to obtain a second batch of live broadcast status annotation information; wherein the original live broadcast status estimation algorithm is an algorithm preliminarily optimized by using an initial live broadcast data knowledge template, and the large-scale algorithm is an algorithm preliminarily optimized by using large-scale live broadcast data; a first type of knowledge template, a second type of knowledge template and a third type of knowledge template are established through the first batch of live broadcast status annotation information and the second batch of live broadcast status annotation information; wherein the first live broadcast status annotation information included in the first type of knowledge template is not only attached to the first batch of live broadcast status annotation information, but also to the second batch of live broadcast status annotation information, and the second live broadcast status annotation information included in the second type of knowledge template is attached to The first batch of live broadcast status annotation information is not attached to the second batch of live broadcast status annotation information, and the third live broadcast status annotation information included in the third category of knowledge templates is attached to the second batch of live broadcast status annotation information, but is not attached to the first batch of live broadcast status annotation information; the original live broadcast status prediction algorithm is trained in combination with the initial live broadcast data knowledge template, the first category of knowledge templates, the second category of knowledge templates and the third category of knowledge templates to obtain a target live broadcast status prediction algorithm; a target live broadcast monitoring data set is acquired; the target live broadcast monitoring data set is passed into the target live broadcast status prediction algorithm to obtain a batch of target live broadcast status annotation information and a batch of target confidence levels corresponding to the batch of target live broadcast status annotation information; target live broadcast status annotation information is established for the target live broadcast monitoring data set through the batch of target live broadcast status annotation information and the batch of target confidence levels; wherein, the target live broadcast status annotation information represents the live broadcast status included in the target live broadcast monitoring data set.
[0005] In a second aspect, the present application provides a computer system, comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor implements the steps in the above-described method when executing the program.
[0006] The present application at least includes the following beneficial effects: the live broadcast status monitoring method and system based on big data provided by the present application obtains the original live broadcast monitoring data set, transfers the original live broadcast monitoring data set to the large-scale algorithm of preliminary training, obtains the first batch of live broadcast status annotation information, and transfers the original live broadcast monitoring data set to the original live broadcast status estimation algorithm of preliminary training, obtains the second batch of live broadcast status annotation information; wherein, the original live broadcast status estimation algorithm is an algorithm initially optimized by using the initial live broadcast data knowledge template, and the large-scale algorithm is an algorithm initially optimized by using the large-scale live broadcast data. The first category of knowledge templates, the second category of knowledge templates and the third category of knowledge templates are established through the first batch of live broadcast status annotation information and the second batch of live broadcast status annotation information; wherein, the first live broadcast status annotation information included in the first category of knowledge templates is not only attached to the first batch of live broadcast status annotation information, but also to the second batch of live broadcast status annotation information, the second live broadcast status annotation information included in the second category of knowledge templates is attached to the first batch of live broadcast status annotation information, but not to the second batch of live broadcast status annotation information, and the third live broadcast status annotation information included in the third category of knowledge templates is attached to the second batch of live broadcast status annotation information, but not to the first batch of live broadcast status annotation information. The original live broadcast state prediction algorithm is trained by combining the initial live broadcast data knowledge template, the first category of knowledge templates, the second category of knowledge templates and the third category of knowledge templates to obtain the target live broadcast state prediction algorithm. The present application respectively transmits the original live broadcast monitoring data set to the large-scale algorithm for preliminary training and the original live broadcast state prediction algorithm to determine the first batch of live broadcast state annotation information and the second batch of live broadcast state annotation information, and then establishes the first category of knowledge templates, the second category of knowledge templates and the third category of knowledge templates based on the first batch of live broadcast state annotation information and the second batch of live broadcast state annotation information. The original live broadcast state prediction algorithm is trained by combining the first category of knowledge templates, the second category of knowledge templates and the third category of knowledge templates to obtain the target live broadcast state prediction algorithm, so that the number of knowledge templates of different categories in the live broadcast data knowledge template is balanced. Then, the original live broadcast state prediction algorithm can perform balanced learning on different live broadcast states during training, so that the universality and accuracy of the target live broadcast state prediction algorithm are improved, and at the same time, the problem of inaccurate prediction of the live broadcast state prediction algorithm caused by the large difference in the number of knowledge templates corresponding to different live broadcast state annotation information in the live broadcast data knowledge template is prevented. In addition, the first, second and third knowledge templates established based on the first and second batches of live broadcast status annotation information can all train the original live broadcast status prediction algorithm without consuming a large amount of manpower to mark the data in advance. The training cost and speed of the original live broadcast status prediction algorithm are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] Figure 1 A schematic diagram of the implementation flow of a live broadcast status monitoring method based on big data provided in an embodiment of the present application.
[0008] Figure 2 A hardware entity schematic diagram of a computer system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0009] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application are further elaborated in detail below in conjunction with the drawings and embodiments. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0010] The embodiment of the present application provides a method for monitoring the live broadcast status based on big data, which can be executed by a processor of a computer system. The computer system can refer to a device with data processing capabilities such as a server, a laptop, a tablet computer, and a desktop computer.
[0011] Figure 1 A schematic diagram of the implementation flow of a live broadcast status monitoring method based on big data provided in an embodiment of the present application. The method provided in the embodiment of the present application includes two stages for implementation, one is the training stage of the algorithm, and the other is the reasoning stage of the algorithm.
[0012] First, in the training phase of the algorithm, the embodiment of the present application includes the following steps S110~S140.
[0013] Step S110, obtaining an original live broadcast monitoring data set.
[0014] Specifically, the computer system obtains the original live broadcast monitoring data set from the live broadcast platform in a variety of ways. These data usually include information in multiple dimensions to fully reflect the status and quality of the live broadcast, such as the number of viewers, interactive data (such as bullet comments, likes, gifts), video quality parameters (such as frame rate, resolution, bit rate), network conditions (such as delay, packet loss rate), server load, etc.
[0015] Regarding the number of viewers: The computer system can obtain the number of viewers watching the live broadcast in real time through the API interface provided by the live broadcast platform. The number of viewers is an important indicator for evaluating the popularity of the live broadcast and is also a factor that cannot be ignored in the monitoring of the live broadcast status.
[0016] About interactive data: interactive data reflects the audience's participation and satisfaction with the live broadcast content. The computer system collects interactive data such as bullet comments, likes and gifts from the live broadcast platform. For example, the number of bullet comments can reflect the discussion popularity of the live broadcast content, the number of likes indicates the audience's recognition of the live broadcast content, and the sending of gifts represents the audience's support and love for the anchor.
[0017] About video quality parameters: Video quality is a key factor affecting the audience's viewing experience. The computer system captures video quality parameters such as frame rate, resolution, and bit rate from the live stream through SDK embedding. These parameters can directly reflect the smoothness, clarity, and transmission efficiency of the video. For example, a high frame rate means a smoother video picture, and a high resolution can bring a clearer viewing effect.
[0018] About network status: Network status is an important factor affecting the stability of live broadcast. The computer system obtains network data during the live broadcast, such as delay and packet loss rate, through API interfaces or network packet capture. These data can reflect the real-time status of live streaming transmission and help the system to detect and handle network problems in a timely manner.
[0019] About server load: Server load reflects the operating status of the live broadcast platform server. The computer system obtains server load data in real time through monitoring tools, such as CPU usage, memory occupancy, etc. These data can help the system evaluate the processing capacity of the live broadcast platform and ensure the stability and reliability of the live broadcast process.
[0020] Through step S110, the computer system can collect a rich and diverse set of original live broadcast monitoring data, providing strong support for the subsequent algorithm training and reasoning stages. These data will serve as input features for the machine learning model to help the model learn how to accurately identify the live broadcast status and predict potential problems.
[0021] The possible data forms of live broadcast monitoring data sets are various, and they are usually used to record various dynamic information during the live broadcast process, such as time series data, structured data, event log data, sensor data, etc. For example, time series data are data points arranged in chronological order, which usually record real-time indicators during the live broadcast process. They can include the number of viewers per minute, the number of bullet comments per second, the number of likes per minute, etc. These data points are arranged in chronological order according to the live broadcast time to form a time series.
[0022] Regarding structured data, it is data with clear fields and records, usually stored in a database or data table. For example, the following Table 1 is a structured live broadcast monitoring data set.
[0023]
[0024] Table 1 Structured live broadcast monitoring dataset
[0025] Regarding event log data, it records the events that occurred during the live broadcast and their related information. For example, the following Table 2 is a live broadcast monitoring data set of event log type.
[0026]
[0027] Table 2 Live monitoring dataset of event log types
[0028] Sensor data is data from live broadcast equipment or environmental sensors, such as network delay, device temperature, etc. For example, network delay data records the network delay time during live broadcast in real time, which is used to evaluate the smoothness of live broadcast. Device temperature data records the temperature changes of live broadcast equipment, which is used to predict equipment failure or overheating risks.
[0029] The above data forms can be used individually or in combination to comprehensively monitor the live broadcast process and provide valuable analysis results. The specific data forms and examples will vary depending on the needs and technical architecture of the live broadcast platform.
[0030] Step S120, the original live broadcast monitoring data set is passed into the preliminary trained large-scale algorithm to obtain the first batch of live broadcast status annotation information, and the original live broadcast monitoring data set is passed into the preliminary trained original live broadcast status estimation algorithm to obtain the second batch of live broadcast status annotation information; wherein, the original live broadcast status estimation algorithm is an algorithm initially optimized by using the initial live broadcast data knowledge template, and the large-scale algorithm is an algorithm initially optimized by using large-scale live broadcast data.
[0031] In the embodiment of the present application, step S120 uses two different types of algorithms to analyze the original live broadcast monitoring data set, thereby generating two sets of different live broadcast status annotation information. The purpose of this step is to provide rich annotation data for the subsequent algorithm training stage so that the model can learn the accurate judgment method of the live broadcast status.
[0032] First, the computer system passes the original live broadcast monitoring data set into a large-scale algorithm for preliminary training (also called pre-training). This large-scale algorithm is a large model suitable for live broadcast data processing, for example, a deep learning model such as a recurrent neural network (RNN) or a long short-term memory network (LSTM), which has excellent performance in processing time series data. The large-scale algorithm has been pre-trained with a large amount of live broadcast data, so it can capture the complex patterns and regularities in the live broadcast process. When the original live broadcast monitoring data set is input into the algorithm, it will output the first batch of live broadcast status annotation information, that is, live broadcast status labels, based on the characteristics of the data set. These labels may include "smooth", "stuttering", "high popularity", etc., which are used to describe the different states of live broadcasts.
[0033] At the same time, the computer system also passes the original live broadcast monitoring data set into the initially trained original live broadcast status prediction algorithm. This algorithm is initially optimized using the initial live broadcast data knowledge template, for example, a classifier based on traditional machine learning methods, such as a support vector machine (SVM) or a decision tree. The initial live broadcast data knowledge template contains a set of labeled live broadcast monitoring data samples, which have been classified and labeled according to the actual live broadcast status. The original live broadcast status prediction algorithm obtains the preliminary prediction capability of the live broadcast status by learning the relationship between the features and labels of these samples. When a new original live broadcast monitoring data set is input into the algorithm, it will output a second batch of live broadcast status annotation information based on the characteristics of the data set.
[0034] Through this step, the computer system obtained two different sets of live broadcast status annotation information. The first set of annotation information came from a large-scale algorithm that was pre-trained with large-scale data, which was based on the deep learning model's comprehensive understanding and grasp of the live broadcast status; the second set of annotation information came from the initial training of the original live broadcast status estimation algorithm, which was based on the traditional machine learning method and the initial knowledge template for the initial estimation of the live broadcast status. These two sets of annotation information will jointly provide important labeling data for the subsequent algorithm training stage, helping the algorithm to learn the judgment method of the live broadcast status more accurately.
[0035] In actual applications, these two sets of annotation information may be different, and even conflict in some cases. This is the basis for establishing different categories of knowledge templates in step S130. By comparing and analyzing these two sets of annotation information, the computer system can find the advantages and limitations of different algorithms, so as to more comprehensively understand the changing rules of the live broadcast status. Ultimately, combining these annotation information and knowledge templates, the computer system will be able to train a more accurate and reliable live broadcast status monitoring model.
[0036] Step S130, establishing a first type of knowledge template, a second type of knowledge template and a third type of knowledge template through the first batch of live broadcast status annotation information and the second batch of live broadcast status annotation information; wherein, the first type of knowledge template includes the first live broadcast status annotation information not only attached to the first batch of live broadcast status annotation information, but also attached to the second batch of live broadcast status annotation information, the second type of knowledge template includes the second live broadcast status annotation information attached to the first batch of live broadcast status annotation information, but not attached to the second batch of live broadcast status annotation information, and the third type of knowledge template includes the third live broadcast status annotation information attached to the second batch of live broadcast status annotation information, but not attached to the first batch of live broadcast status annotation information.
[0037] In an embodiment of the present application, step S130 is based on the two batches of live broadcast status annotation information (for example, live broadcast status tags) generated in the previous step S120, and further integrates and classifies these tags to form knowledge templates of different categories. These knowledge templates will provide important guidance and reference for subsequent algorithm training. Specifically, the computer system analyzes the first batch of live broadcast status annotation information and the second batch of live broadcast status annotation information. The first batch of annotation information is generated by a large-scale algorithm that has been preliminarily trained. It is based on a comprehensive understanding of the live broadcast data by a deep learning model and can capture the complex patterns and laws in the live broadcast process. The second batch of annotation information is generated by a preliminarily trained original live broadcast status estimation algorithm, which makes a preliminary estimate of the live broadcast status based on traditional machine learning methods and initial knowledge templates.
[0038] Next, the computer system creates three types of knowledge templates based on the similarities and differences between the two batches of annotation information:
[0039] The first category of knowledge templates: contains the live broadcast status annotation information that appears in both the first and second batches of annotation information. These annotation information are considered to be highly consistent and reliable because they are recognized by two different algorithms. For example, if the live broadcast of a certain time period is marked as "smooth" in both the large-scale algorithm and the original estimation algorithm, then the label "smooth" will be classified into the first category of knowledge templates.
[0040] The second category of knowledge templates: contains live broadcast status annotation information that only appears in the first batch of annotation information, but not in the second batch of annotation information. These annotation information may represent insights and judgments unique to the large-scale algorithm, or live broadcast status features that the original estimation algorithm has not yet learned. For example, if the large-scale algorithm identifies that there is a "slight delay" in a certain time period, but the original estimation algorithm fails to identify it, then the label "slight delay" will be classified into the second category of knowledge templates.
[0041] The third category of knowledge templates: includes live broadcast status annotation information that only appears in the second batch of annotation information, but not in the first batch of annotation information. These annotation information may reflect the unique perspective or predictive ability of the original estimation algorithm based on the initial knowledge template, or some details or special circumstances that the large-scale algorithm fails to capture. For example, if the original estimation algorithm identifies that the audience interaction is unusually active in a certain period of time (such as a large number of barrages), but the large-scale algorithm fails to recognize this feature, then the label "active interaction" will be classified as a third category of knowledge templates.
[0042] Through this step, the computer system can build a rich knowledge template system. These templates not only cover all aspects of the live broadcast status, but also reflect the advantages and limitations of different algorithms. In the subsequent algorithm training stage, these templates will be used as important guidance and reference to help the model learn the judgment method of the live broadcast status more comprehensively and improve the accuracy and reliability of monitoring.
[0043] Taking specific data as an example, suppose that in a certain time period, the large-scale algorithm marks the live broadcast status as "smooth" and "slightly delayed", while the original estimation algorithm only marks it as "smooth". Then, "smooth" will be classified into the first category of knowledge templates, and "slightly delayed" will be classified into the second category of knowledge templates. If in another time period, the original estimation algorithm marks it as "stuttering" and "active interaction", and the large-scale algorithm only marks it as "stuttering", then "stuttering" will be classified into the first category of knowledge templates, and "active interaction" will be classified into the third category of knowledge templates.
[0044] Step S140, training the original live broadcast state prediction algorithm by combining the initial live broadcast data knowledge template, the first type of knowledge template, the second type of knowledge template and the third type of knowledge template to obtain the target live broadcast state prediction algorithm.
[0045] In the embodiment of the present application, step S140 is a key model optimization step, which further trains and optimizes the original live broadcast state prediction algorithm based on the different categories of knowledge templates generated in the previous steps to obtain a more accurate and reliable target live broadcast state prediction algorithm.
[0046] In this step, the computer system first integrates the initial live data knowledge template, the first type of knowledge template, the second type of knowledge template and the third type of knowledge template. The initial live data knowledge template is the original sample data for training, which contains the labeled live state label and the corresponding feature data. The first, second and third types of knowledge templates are established in step S130 according to the annotation information of the large-scale algorithm and the original estimation algorithm, and they represent the live state features that are highly consistent, unique to the large-scale algorithm and unique to the original estimation algorithm. Next, the computer system uses these integrated knowledge templates to train the original live state estimation algorithm. This original algorithm may be built based on a traditional machine learning algorithm (such as logistic regression, random forest, etc.) or a deep learning model (such as a neural network), and it has been preliminarily trained on the initial live data knowledge template. However, due to the diversity and complexity of the live state, the original algorithm may not be able to fully and accurately identify all live states. Therefore, in this step, the computer system uses knowledge templates of different categories as new training data to further train and optimize the original algorithm. Specifically, the computer system takes the feature data in the knowledge template and the corresponding live broadcast status label as input, and continuously adjusts the parameters and weights of the model through the learning mechanism of the algorithm, so that the model can better fit these new data.
[0047] During the training process, the computer system evaluates the effect of the training based on the performance of the model on the validation set, and adjusts the training strategy accordingly, such as changing the learning rate, increasing the number of iterations, etc. In this way, the computer system can gradually optimize the performance of the model and improve its recognition accuracy of the live broadcast status.
[0048] For example, suppose that during the live broadcast, there is a sudden increase in the number of viewers and a surge in the number of bullet comments. In this case, the live broadcast status may change from "normal" to "high popularity". If the original live broadcast status prediction algorithm cannot accurately identify this change, it may continue to mark the live broadcast status as "normal", resulting in inaccurate monitoring results. However, similar live broadcast status change cases may be included in the first category of knowledge templates, which will be input into the model as new training data. Through training and optimization, the model will be able to learn this change pattern and more accurately identify the "high popularity" state in future live broadcasts. Finally, after training and optimization in step S140, the computer system will obtain a target live broadcast status prediction algorithm with superior performance. This algorithm will be able to more accurately identify various state changes during the live broadcast process, providing more reliable support for the monitoring and management of the live broadcast platform.
[0049] Then comes the inference phase of the algorithm, including the following steps S150~S170.
[0050] Step S150, obtaining a target live broadcast monitoring data set.
[0051] In the embodiment of the present application, the data structure of the target live broadcast monitoring data set is consistent with the original live broadcast monitoring data set, and the difference lies in the use stage and purpose. Specifically, the original live broadcast monitoring data set is used in the algorithm training stage, and it contains a large amount of historical live broadcast data for training and optimizing the live broadcast state estimation algorithm. The target live broadcast monitoring data set is used in the algorithm reasoning stage, and it contains real-time or recent live broadcast data for real-time monitoring and prediction of the live broadcast state.
[0052] In the process of obtaining the target live broadcast monitoring data set, the computer system refers to the data structure of the original live broadcast monitoring data set. This data structure usually includes feature information of multiple dimensions, such as the number of viewers, interactive data (barrage, likes, gifts, etc.), video quality parameters (frame rate, resolution, bit rate), network conditions (delay, packet loss rate) and server load, etc. These feature information can fully reflect the real-time status and quality of the live broadcast. Then, the computer system obtains these feature information from the live broadcast platform in real time to construct the target live broadcast monitoring data set. This process may involve docking with the data interface of the live broadcast platform, and capturing dynamic data in real time during the live broadcast process through API interface, SDK embedding or network packet capture. For example, the computer system can obtain real-time audience number and interactive data through API interface, obtain video quality parameters through SDK embedding, obtain network status information through network packet capture, etc.
[0053] Step S160: The target live broadcast monitoring data set is input into the target live broadcast state estimation algorithm to obtain a batch of target live broadcast state annotation information and a batch of target confidence levels corresponding to the batch of target live broadcast state annotation information.
[0054] In an embodiment of the present application, a computer system inputs a target live broadcast monitoring data set into a target live broadcast state prediction algorithm. This algorithm is a trained and optimized machine learning model that can predict the current state of the live broadcast based on the input feature data. The target live broadcast state prediction algorithm may be a deep learning model, such as a recurrent neural network (RNN) or a long short-term memory network (LSTM), which performs well in processing time series data and is suitable for live broadcast state monitoring scenarios. When the target live broadcast monitoring data set is input into the algorithm, the algorithm processes and analyzes the feature data at each time point and outputs the corresponding live broadcast state prediction results. These prediction results are presented in the form of target live broadcast state annotation information, such as labels such as "smooth", "stuttering", and "high popularity" to describe the current state of the live broadcast.
[0055] In addition to the target live status annotation information, the algorithm also outputs a target confidence level for each prediction result. The confidence level is a numerical value that indicates the confidence of the algorithm in the prediction result. It can be calculated based on the internal mechanism of the algorithm, usually based on the model's matching degree of input features and the distribution of training data. A higher confidence level means that the algorithm has a higher confidence in the prediction result, and vice versa.
[0056] Step S170, establishing target live broadcast state annotation information for the target live broadcast monitoring data set through a batch of target live broadcast state annotation information and a batch of target confidence levels; wherein the target live broadcast state annotation information indicates the live broadcast state included in the target live broadcast monitoring data set.
[0057] In step S170, the computer system uses a batch of target live broadcast state annotation information and corresponding target confidence levels generated by the target live broadcast state estimation algorithm to establish target live broadcast state annotation information for the target live broadcast monitoring data set. Specifically, after the target live broadcast monitoring data set is processed by the target live broadcast state estimation algorithm, a series of target live broadcast state annotation information will be obtained, such as "smooth", "stuttered", "high popularity", etc. These annotation information represent the algorithm's prediction results for the live broadcast state. At the same time, each prediction result is also accompanied by a target confidence level, which reflects the algorithm's confidence in the prediction result.
[0058] In step S170, the computer system integrates the target live broadcast state annotation information and the target confidence level to establish the target live broadcast state annotation information for the target live broadcast monitoring data set. The annotation information is a detailed description and explanation of the live broadcast state, which not only includes the category of the live broadcast state (such as "smooth" or "stuttering"), but also includes the confidence level of the algorithm in predicting the state (i.e., the target confidence level).
[0059] For example, suppose that in a certain period of time, the target live broadcast status prediction algorithm predicts the status of "high popularity" for the target live broadcast monitoring data set and gives a target confidence level of 0.9. This means that the algorithm is 90% confident that the current live broadcast is in a high popularity state. In this step, the computer system integrates this prediction result and confidence level into the target live broadcast status annotation information, forming a label similar to "The current live broadcast status is high popularity (confidence level: 0.9)".
[0060] By establishing target live broadcast status annotation information, the computer system can more intuitively display the current status of the live broadcast, providing useful reference for managers and viewers of the live broadcast platform. For example, if the annotation information shows that the current live broadcast is in a "stuttering" state, the platform manager can take timely measures to optimize the live broadcast quality; viewers can understand the live broadcast status based on the annotation information and choose whether to continue watching.
[0061] In an optional implementation, step S130, establishing a first type of knowledge template, a second type of knowledge template, and a third type of knowledge template through the first batch of live broadcast status annotation information and the second batch of live broadcast status annotation information, may include:
[0062] Step S131, determining first live broadcast status annotation information, second live broadcast status annotation information and third live broadcast status annotation information through the first batch of live broadcast status annotation information and the second batch of live broadcast status annotation information.
[0063] In the embodiment of the present application, step S131 is a key step in the algorithm training phase, and its goal is to determine three different types of live broadcast status annotation information based on the first batch and the second batch of live broadcast status annotation information. These annotation information will be used to construct different types of knowledge templates in subsequent steps.
[0064] The first batch of live broadcast status annotation information was generated by a preliminarily trained large-scale algorithm, which is based on a comprehensive analysis of live broadcast data by a deep learning model and can capture the complex patterns and regularities of the live broadcast process. The second batch of live broadcast status annotation information was generated by a preliminarily trained original live broadcast status estimation algorithm, which makes a preliminary estimation of the live broadcast status based on traditional machine learning methods and initial knowledge templates.
[0065] In step S131, the computer system compares and analyzes the two batches of annotation information. Specifically, for each pair of annotation information, that is, for the live broadcast data of the same time period, the state annotations given by the large-scale algorithm and the original estimation algorithm are checked to see if they are consistent.
[0066] Assume that in a certain period of time, the annotation information given by the large-scale algorithm is "smooth", indicating that the live broadcast screen is smooth and there is no lag in this period of time; and the original prediction algorithm also gives the same annotation information "smooth". In this case, the annotation information "smooth" is classified as the first live broadcast status annotation information because it is recognized by two different algorithms. However, not all annotation information will be so consistent. For example, in some cases, the large-scale algorithm may identify more subtle state changes, such as "slight delay", while the original prediction algorithm may fail to identify such subtle changes and still give the annotation "smooth". In this case, the annotation information "slight delay" is classified as the second live broadcast status annotation information because it only appears in the first batch of annotation information. On the contrary, it is also possible that the original prediction algorithm identifies a special state that the large-scale algorithm fails to identify. For example, the original prediction algorithm may judge that the live broadcast is in a "high interaction" state based on the surge in the number of bullet comments and likes, while the large-scale algorithm may only focus on video quality parameters and fail to identify this feature. In this case, the annotation information "high interaction" is classified as the third live broadcast status annotation information because it only appears in the second batch of annotation information. Through the comparison and analysis in step S131, the computer system can accurately determine the first, second and third live broadcast status annotation information, which provides a basis for the subsequent construction of different types of knowledge templates. These different types of knowledge templates will help the algorithm learn the changing rules of the live broadcast status more comprehensively and improve the accuracy and reliability of monitoring.
[0067] Step S132, configuring the confidence level of the first live broadcast status annotation information to a first value, and establishing a first type of knowledge template; wherein the first type of knowledge template is used to indicate that the confidence level of the original live broadcast monitoring data set including the first live broadcast status annotation information is the first value.
[0068] In the embodiment of the present application, step S132 configures the confidence level of the first live broadcast status annotation information and establishes the first type of knowledge template. First, the first live broadcast status annotation information refers to the annotations that appear in both the first batch and the second batch of live broadcast status annotation information, which represents the common recognition of the live broadcast status by the large-scale algorithm and the original live broadcast status estimation algorithm. These annotation information are usually highly accurate and reliable because they are consistently judged by two different algorithms.
[0069] In step S132, the computer system configures the confidence level of these first live broadcast status annotation information. Since these annotation information are jointly recognized by the two algorithms, their confidence level is configured as a higher first value. This first value is usually a value close to 1, indicating that the system has a high degree of trust in these annotation information. For example, the confidence level can be configured to 0.95 or 0.99, and the specific value can be adjusted according to the needs of the actual application scenario. Next, the computer system establishes a first type of knowledge template based on these first live broadcast status annotation information with configured confidence levels. The first type of knowledge template is a template that contains highly reliable annotation information and its corresponding confidence level, which is used to indicate that the confidence level of the annotation information contained in the original live broadcast monitoring data set is a first value. The establishment of this template helps to allocate weights to different annotation information in the subsequent algorithm training process, so that the model pays more attention to highly reliable annotation information.
[0070] Step S133, configure the confidence level of the second live broadcast status annotation information to a first estimated possibility value, and establish a second type of knowledge template; wherein the first estimated possibility value is used to indicate that the original live broadcast status estimation algorithm estimates the possibility that the original live broadcast monitoring data set contains the second live broadcast status annotation information, and the second type of knowledge template is used to indicate that the confidence level of the original live broadcast monitoring data set including the second live broadcast status annotation information is the first estimated possibility value.
[0071] In the embodiment of the present application, step S133 configures the confidence level of the second live broadcast status annotation information, and establishes a second type of knowledge template based on these configurations. The purpose of this step is to capture those live broadcast status features that are only recognized by large-scale algorithms but not recognized by the original live broadcast status estimation algorithm, and assign corresponding confidence levels to them. First, the second live broadcast status annotation information refers to the state label that exists in the first batch of live broadcast status annotation information but does not exist in the second batch of annotation information. This usually means that the large-scale algorithm recognizes certain live broadcast status features, while the original estimation algorithm fails to recognize these features for various reasons. For example, the large-scale algorithm may recognize the "slight delay" state during the live broadcast process based on its deep learning ability, while the original estimation algorithm may fail to recognize this state due to model complexity or training data limitations. In step S133, the computer system configures the confidence level of these second live broadcast status annotation information. Since these annotation information are only recognized by large-scale algorithms, their confidence levels cannot be directly configured as a fixed high value like the first live broadcast status annotation information. Instead, their confidence levels need to be determined based on the estimated possibility of these states by the original live broadcast status estimation algorithm. This estimated probability can be a probability value, such as an estimated probability obtained by analyzing similar live broadcast data through the original estimation algorithm. Assume that for the second live broadcast status annotation information "slight delay", the original estimation algorithm estimates that the probability of its existence in the current live broadcast monitoring data set is 0.7 (indicating a 70% probability) based on historical data and model training results. Then, this 0.7 is configured as the confidence level of the annotation information "slight delay", that is, the first estimated probability value.
[0072] Next, the computer system establishes a second type of knowledge template based on the second live broadcast status annotation information with configured confidence levels. The second type of knowledge template contains the live broadcast status features and their corresponding confidence levels that are only recognized by the large-scale algorithm. These confidence levels reflect the estimated possibility of the original prediction algorithm for the existence of these states. The establishment of this template helps to pay attention to and learn these unique state features during the subsequent algorithm training process, thereby improving the comprehensiveness and accuracy of the model's monitoring of the live broadcast status. For example, suppose that the large-scale algorithm recognizes that there is a "slight delay" state in a certain live broadcast process, while the original prediction algorithm fails to recognize this state. In step S133, the computer system configures the confidence level of the annotation information "slight delay" to 0.7 based on the estimated probability (for example, 0.7) of the original prediction algorithm for similar situations, and establishes a second type of knowledge template containing this annotation information and its confidence level. This template will play an important role in the subsequent algorithm training, helping the model to better learn and recognize such unique live broadcast status features.
[0073] Step S134, configure the confidence level of the third live broadcast status annotation information to a second estimated possibility value, and establish a third type of knowledge template; wherein the second estimated possibility value is smaller than the possibility estimated by the original live broadcast status estimation algorithm that the original live broadcast monitoring data set contains the third live broadcast status annotation information, and the third type of knowledge template indicates that the confidence level of the original live broadcast monitoring data set including the third live broadcast status annotation information is the second estimated possibility value.
[0074] In the embodiment of the present application, step S134 focuses on processing those live broadcast status annotation information that are only identified by the original live broadcast status prediction algorithm and cannot be identified by the large-scale algorithm. The purpose of this step is to configure an appropriate confidence level for these annotation information and establish a third type of knowledge template so that appropriate attention can be given to these unique information in subsequent algorithm training.
[0075] The third live broadcast status annotation information refers to the live broadcast status label that exists in the second batch of annotation information but does not exist in the first batch of annotation information. This means that the original live broadcast status prediction algorithm, based on its specific knowledge template and algorithm logic, identifies certain live broadcast status features, which are not reflected in the output of the large-scale algorithm. For example, the original prediction algorithm may judge that the live broadcast is in a "high interaction" state based on the surge in the number of barrages and likes, while the large-scale algorithm may focus mainly on video quality parameters and fail to recognize this feature. In step S134, the computer system configures the confidence level of these third live broadcast status annotation information. Since these annotation information are only given by the original prediction algorithm and have not been confirmed by the large-scale algorithm, their confidence levels need to be lower than the direct prediction possibility of the original prediction algorithm for the existence of these states. This is to reflect the uncertainty of these annotation information and avoid over-reliance on these unverified information in subsequent training.
[0076] To achieve this, the computer system adjusts the estimated probability values of the original prediction algorithm for the existence of these states to obtain a lower second estimated probability value. This adjustment process can be set according to the specific application scenario and algorithm logic, for example, by multiplying by a coefficient less than 1. Assuming that the original prediction algorithm estimates the probability of the existence of the "high interaction" state to be 0.8, in order to reduce its confidence level, the computer system can multiply it by 0.75 to obtain a second estimated probability value of 0.6 (i.e. 0.75 times 80%). Next, the computer system establishes a third type of knowledge template based on these third live broadcast state annotation information with configured confidence levels. The third type of knowledge template contains the unique live broadcast state features identified by the original prediction algorithm and its corresponding lower confidence level. The establishment of the third type of knowledge template helps to balance the focus on the recognition results of the large-scale algorithm and the original prediction algorithm in subsequent algorithm training, avoid over-reliance on either side, and thus improve the accuracy and robustness of the overall model.
[0077] For example, suppose the original prediction algorithm identifies a live broadcast as being in a "high interaction" state, while the large-scale algorithm fails to identify this feature. In step S134, the confidence level of the annotation information "high interaction" is configured as the second estimated probability value (such as 0.6), and a third type of knowledge template containing this annotation information and its confidence level is established. This template will play an important role in subsequent algorithm training, helping the model to better learn and identify such unique live broadcast status features.
[0078] In an optional implementation, step S134, configuring the confidence level of the third live broadcast status annotation information to a second estimated possibility value, and establishing a third type of knowledge template, may include:
[0079] Step S134a, obtaining the possibility value of the original live broadcast status prediction algorithm estimating the existence of the third live broadcast status annotation information in the original live broadcast monitoring data set.
[0080] In the algorithm training phase, step S134a obtains the probability value of the existence of the third live state annotation information from the original live state prediction algorithm. The purpose of this step is to quantify the confidence of the original prediction algorithm in the existence of certain unique live state features, providing a basis for adjusting the confidence level in subsequent steps.
[0081] First, the third live state annotation information is the live state labels that are identified by the original live state prediction algorithm but do not exist in the output of the large-scale algorithm. They usually represent the unique live state features identified by the original prediction algorithm based on its unique knowledge template and algorithm logic.
[0082] In step S134a, the computer system calls the original live broadcast state prediction algorithm and passes in the original live broadcast monitoring data set as input. The original live broadcast state prediction algorithm analyzes and judges each live broadcast period in the input data set based on the knowledge and rules it has learned, and predicts whether there is a state feature described by the third live broadcast state annotation information.
[0083] For example, suppose that when analyzing a certain live broadcast period, the original prediction algorithm determines that the period is in a "high interaction" state based on multiple features such as the number of bullet comments, the frequency of likes, and the audience's interactive behavior during the period (this is an example of the third live broadcast status annotation information). At this time, the original prediction algorithm will output a numerical value indicating its estimated probability value for the period being in a "high interaction" state. This value is usually a probability value ranging from 0 to 1, and the higher the value, the higher the confidence of the algorithm in the existence of this state. For example, the original prediction algorithm may output 0.8 as the estimated probability value for the period being in a "high interaction" state. This probability value of 0.8 reflects the original prediction algorithm's accurate identification and judgment of the live broadcast status characteristics of the period.
[0084] Step S134b, multiply the possibility value by the second numerical value, determine the product value as the second estimated possibility value, configure the confidence level of the third live broadcast status annotation information to the second estimated possibility value, and establish a third type of knowledge template; the second numerical value is equal to 1 / M, where M is a natural number that is not 0.
[0085] In the algorithm training phase, step S134b adjusts the probability values given by the original live broadcast status prediction algorithm to reflect the relative confidence level of these probability values, and establishes the third type of knowledge template based on the adjusted values. The purpose of this step is to introduce a certain degree of conservatism while maintaining the rationality of the original prediction algorithm to cope with the uncertainty that may be caused by these unique live broadcast status characteristics.
[0086] First, the output of step S134a is the probability value of the existence of the third live broadcast status annotation information. This value represents the algorithm's confidence in a certain state (such as a "high interaction" state) during a specific live broadcast period. However, since these state annotation information are only given by the original estimation algorithm and have not been confirmed by the large-scale algorithm, their confidence level needs to be appropriately reduced. In step S134b, the computer system determines a second numerical value, which is equal to 1 divided by a natural number M that is not 0. The value of M can be determined according to the actual application scenario, which controls the degree of reduction in the confidence level. A larger M value will cause the confidence level to be reduced more, and vice versa. Next, the computer system multiplies the probability value obtained in step S134a by the second numerical value, and the result is the second estimated probability value. This value represents the adjusted confidence level, which not only retains the rationality of the judgment of the original estimation algorithm, but also introduces a certain degree of conservatism.
[0087] For example, suppose the original estimation algorithm estimates the probability value of a certain live broadcast period as "high interaction" is 0.8, and the value of M is set to 5. Then, the second value is 1 / 5, that is, 0.2. Multiplying 0.8 and 0.2, the second estimated probability value is 0.16. This value will be configured as the confidence level of the third live broadcast status annotation information "high interaction" and used to establish the third type of knowledge template.
[0088] Finally, the computer system saves the third type of knowledge template containing all the third live broadcast status annotation information and its corresponding second estimated probability value for use in the subsequent algorithm training stage. This template will help the algorithm to more reasonably use these unique status feature information during the training process and improve the accuracy and reliability of live broadcast status monitoring. At the same time, due to the appropriate adjustment of the confidence level, the algorithm can also more robustly deal with possible misjudgments or uncertainties.
[0089] In an optional implementation, step S140, training the original live broadcast state prediction algorithm in combination with the initial live broadcast data knowledge template, the first type of knowledge template, the second type of knowledge template, and the third type of knowledge template to obtain the target live broadcast state prediction algorithm may include:
[0090] Step S1401, train the original live broadcast state prediction algorithm in combination with the initial live broadcast data knowledge template, the first type of knowledge template, the second type of knowledge template and the third type of knowledge template to obtain a temporary live broadcast state prediction algorithm, and the convergence efficiency parameter adopted by the temporary live broadcast state prediction algorithm obtained by training is the first convergence efficiency parameter.
[0091] In the algorithm training phase, step S1401 uses a variety of knowledge templates to perform preliminary training on the original live broadcast state prediction algorithm to obtain a temporary live broadcast state prediction algorithm.
[0092] The computer system inputs the initial live broadcast data knowledge template, the first type of knowledge template, the second type of knowledge template and the third type of knowledge template as training data into the original live broadcast state prediction algorithm.
[0093] Initial live broadcast data knowledge template: It is a knowledge template that contains a large amount of annotated live broadcast data, which represents the basic knowledge and common patterns of live broadcast status monitoring. For example, it may contain data samples in normal state, stuck state, high popularity state, etc. during the live broadcast process.
[0094] The first type of knowledge template: This type of template contains state annotation information recognized by both algorithms (large-scale algorithm and original estimation algorithm), which has high reliability and consistency. For example, when both the large-scale algorithm and the original estimation algorithm judge that a certain live broadcast period is in the "smooth" state, these annotation information are classified into the first type of knowledge template.
[0095] The second type of knowledge templates: These templates contain state annotation information that is only recognized by the large-scale algorithm but not recognized by the original estimation algorithm. This information may represent some unique or subtle state characteristics during the live broadcast. For example, the large-scale algorithm may recognize the "slight delay" state in the live broadcast, which the original estimation algorithm failed to detect.
[0096] The third type of knowledge template: This type of template contains status annotation information that is only identified by the original prediction algorithm but cannot be confirmed by the large-scale algorithm. This information may be derived based on the unique logic or rules of the original prediction algorithm. For example, the original prediction algorithm may judge the live broadcast as a "high interaction" state based on the surge in the number of bullet comments and likes.
[0097] During the training process, the first convergence efficiency parameter determines the step size (also called learning rate) of the algorithm parameter update in each iteration. In step S1401, in order to accelerate the model training process and obtain a temporary algorithm with better performance as soon as possible, a relatively high convergence efficiency parameter can be selected as the first convergence efficiency parameter. For example, the learning rate may be set to 0.01 or higher, and the specific value depends on the specific implementation of the algorithm and the characteristics of the training data.
[0098] As training progresses, the original live broadcast state estimation algorithm will gradually learn the features and information in these different knowledge templates and update the parameters according to the learning rate. Through multiple iterations and optimizations, the algorithm will be able to gradually adapt to and recognize various state features during the live broadcast process, thereby obtaining a temporary live broadcast state estimation algorithm. This temporary algorithm is the intermediate state algorithm, which already has a certain state recognition capability, but may still require further fine-tuning and optimization to achieve optimal performance.
[0099] Through the training of step S1401, the computer system can obtain a temporary live broadcast state prediction algorithm, which lays a foundation for subsequent retraining and optimization. This temporary algorithm will continue to be optimized and improved in subsequent steps to obtain the final target live broadcast state prediction algorithm.
[0100] Step S1402, retraining the temporary live broadcast state prediction algorithm in combination with the initial live broadcast data knowledge template and the first type of knowledge template to obtain a target live broadcast state prediction algorithm; wherein the convergence efficiency parameter adopted by the training to obtain the target live broadcast state prediction algorithm is the second convergence efficiency parameter, and the second convergence efficiency parameter is less than the first convergence efficiency parameter.
[0101] In the algorithm training stage, step S1402 is a fine-tuning step, which involves retraining the temporary live broadcast state prediction algorithm using a specific knowledge template to obtain a more accurate and stable target live broadcast state prediction algorithm. In step S1401, the computer system has preliminarily trained the original live broadcast state prediction algorithm by combining the initial live broadcast data knowledge template, the first category, the second category and the third category knowledge template to obtain a temporary live broadcast state prediction algorithm. However, although this temporary algorithm already has certain performance, it may not have reached the optimal state, especially when dealing with certain specific scenes or states. There may still be deficiencies. Therefore, in step S1402, the computer system retrains the temporary live broadcast state prediction algorithm, which is the so-called "Fine-tuning". The purpose of this step is to further adjust and optimize the parameters of the algorithm so that it can better adapt to the live broadcast state monitoring needs in specific scenarios.
[0102] During the retraining process, the computer system selectively uses the initial live data knowledge template and the first type of knowledge template as training data. The initial live data knowledge template contains a large number of well-labeled live data samples, which is the basis for algorithm learning; while the first type of knowledge template contains state annotation information recognized by both algorithms (large-scale algorithm and original estimation method), which has high reliability and consistency.
[0103] By using these two types of knowledge templates for retraining, the computer system can further improve its performance in specific scenarios while maintaining the algorithm's generalization ability. This is because the initial live data knowledge template provides a wide range of basic knowledge and patterns, while the first type of knowledge template performs reinforcement learning on those highly reliable and consistent state features. During the retraining process, the computer system uses a smaller learning rate as a convergence efficiency parameter, referred to here as the second convergence efficiency parameter. This learning rate is usually smaller than the first convergence efficiency parameter used in step S1401. A smaller learning rate means that the algorithm has a smaller step size for parameter updates in each iteration, which helps the algorithm to make fine adjustments based on having converged to a better state, thereby avoiding overfitting or oscillation. For example, assuming that the first convergence efficiency parameter used in the preliminary training stage is 0.01, then in the retraining stage, the second convergence efficiency parameter may be set to 0.001 or less. In this way, the algorithm can learn and adjust the state features in a specific scenario more finely while maintaining overall performance stability.
[0104] Through the retraining in step S1402, the computer system finally obtains a target live broadcast state prediction algorithm with better performance. This algorithm can not only accurately identify various state characteristics during the live broadcast process, but also has high stability and generalization ability, and can adapt to the live broadcast state monitoring needs in different scenarios.
[0105] In an optional implementation, step S1402, retraining the temporary live broadcast state prediction algorithm in combination with the initial live broadcast data knowledge template and the first type of knowledge template to obtain the target live broadcast state prediction algorithm may include:
[0106] Step S14021, under the premise that the temporary live broadcast state estimation algorithm includes an original data encoding operator and a state mapping operator, a second convergence efficiency parameter is allocated to the original data encoding operator, and a third convergence efficiency parameter is allocated to the state mapping operator; wherein the third convergence efficiency parameter is greater than the first convergence efficiency parameter.
[0107] In the algorithm training phase, step S14021 assigns different convergence efficiency parameters to different components in the temporary live state estimation algorithm (i.e., the original data encoding operator and the state mapping operator). The purpose of this step is to more finely control the algorithm training process to ensure that the algorithm can quickly adapt to and learn the key features of live state monitoring while maintaining stability.
[0108] The temporary live broadcast state estimation algorithm can include two main components: the raw data encoding operator and the state mapping operator. The raw data encoding operator is responsible for converting the original live broadcast monitoring data (such as the number of viewers, the number of barrages, video quality parameters, etc.) into feature vectors or representations that the algorithm can understand. The state mapping operator predicts or identifies the current state of the live broadcast (such as "smooth", "stuttering", "high popularity", etc.) based on these feature vectors through algorithms such as classification or regression.
[0109] In step S14021, the computer system will assign different convergence efficiency parameters to the two operators. The convergence efficiency parameter determines the step size of the parameter update at each iteration of the algorithm during the training process. For the original data encoding operator, the computer system will assign a relatively small second convergence efficiency parameter. This is because the main task of the encoding operator is to extract the feature representation of the data, and this process needs to be relatively stable to avoid inaccurate feature extraction caused by excessive parameter updates. A smaller learning rate helps the encoding operator to gradually optimize its parameters during the training process to ensure that the extracted feature vector can accurately reflect the inherent structure and characteristics of the live data. For the state mapping operator, the computer system will assign a relatively large third convergence efficiency parameter. This is because the mapping operator directly participates in the prediction or identification of the live state, which has a greater impact on the final performance of the algorithm. A larger learning rate helps the mapping operator to quickly adapt to changes in data during the training process and improve the accuracy of classification or prediction. It should be noted that although the third convergence efficiency parameter is greater than the first convergence efficiency parameter (i.e., the learning rate used in the initial training), it still needs to be controlled within a reasonable range to avoid excessive learning rates causing the algorithm to oscillate or become unstable in the later stages of training.
[0110] For example, assume that the original data encoding operator uses a convolutional neural network (CNN) model, and the state mapping operator uses a multi-layer perceptron (MLP) model. In step S14021, the computer system can assign a smaller second convergence efficiency parameter (such as 0.001) to the CNN model to ensure that it can stably extract the feature representation of the live broadcast data during the training process; at the same time, assign a larger third convergence efficiency parameter (such as 0.01) to the MLP model so that it can quickly adapt to data changes in the early stage of training and improve the accuracy of classification prediction. As the training progresses, when the algorithm gradually converges to a better state, the size of these two convergence efficiency parameters can be appropriately adjusted to achieve more refined tuning.
[0111] Step S14022: retrain the temporary live broadcast state prediction algorithm based on the second convergence efficiency parameter and the third convergence efficiency parameter to obtain the target live broadcast state prediction algorithm.
[0112] In the algorithm training phase, step S14022 retrains the temporary live state prediction algorithm based on the second convergence efficiency parameter and the third convergence efficiency parameter assigned in step S14021 to obtain a target live state prediction algorithm with better performance. This step further optimizes the algorithm performance by fine-tuning the convergence efficiency parameters of different components.
[0113] When executing step S14022, the computer system inputs the initial live data knowledge template and the first type of knowledge template as training data into the temporary live state prediction algorithm. These data templates contain the labeled live state features and corresponding annotation information, which are the basis of algorithm learning. Then, the computer system trains the original data encoding operator and the state mapping operator in the temporary live state prediction algorithm according to the second convergence efficiency parameter and the third convergence efficiency parameter assigned in step S14021. Specifically, the original data encoding operator will be trained with a smaller second convergence efficiency parameter to ensure that it can stably extract the feature representation of the live data. The state mapping operator is trained with a larger third convergence efficiency parameter so that it can quickly adapt to data changes in the early stages of training and improve the accuracy of classification or prediction.
[0114] For example, assume that the temporary live broadcast state estimation algorithm adopts a structure including a convolutional neural network (CNN) as a raw data encoding operator and a multi-layer perceptron (MLP) as a state mapping operator. In step S14022, the computer system will assign a smaller second convergence efficiency parameter (such as 0.001) to the CNN to ensure that it can stably extract the feature representation of the live broadcast data during the training process, such as changes in the number of viewers, barrage frequency and other key information. At the same time, the computer system will assign a larger third convergence efficiency parameter (such as 0.01) to the MLP so that it can quickly adapt to the changes in these features in the early stage of training and accurately map them to the corresponding live broadcast state labels, such as "smooth", "stuttering" or "high popularity".
[0115] As the training progresses, its internal parameters are continuously adjusted according to the error feedback in the training data to minimize the deviation between the predicted result and the actual state. Since the state mapping operator uses a larger convergence efficiency parameter, it can quickly capture the key features in the data at the beginning of training and effectively classify or predict it. The original data encoding operator stably optimizes its parameters through a smaller learning rate to ensure that the extracted feature vector can accurately reflect the inherent structure and characteristics of the live broadcast data. Finally, after retraining in step S14022, the computer system will obtain a target live broadcast state estimation algorithm with better performance. This algorithm can not only accurately identify various state features during the live broadcast process, but also has higher stability and generalization ability, and can adapt to the live broadcast state monitoring needs in different scenarios. Through this fine adjustment of the learning rate, the algorithm training process becomes more efficient and accurate, providing strong support for subsequent live broadcast state monitoring applications.
[0116] In another optional implementation, step S140, training the original live broadcast state prediction algorithm by combining the initial live broadcast data knowledge template, the first type of knowledge template, the second type of knowledge template, and the third type of knowledge template to obtain the target live broadcast state prediction algorithm may include:
[0117] Step S140A, establish a target live data knowledge template through an initial live data knowledge template, a first type of knowledge template, a second type of knowledge template and a third type of knowledge template; wherein a target live data knowledge template includes a live monitoring data set, a batch of live status annotation information and a batch of confidence levels corresponding to a batch of target live status annotation information.
[0118] In the algorithm training phase, step S140A integrates knowledge templates from different sources to construct a target live data knowledge template for further training. The purpose of this step is to integrate the diverse live status information and confidence levels into one template to provide more comprehensive and accurate data support for subsequent algorithm training. Specifically, each target live data knowledge template includes the following parts:
[0119] Live broadcast monitoring data set: This is a data set for a specific live broadcast period, which contains various live broadcast status characteristics within the period, such as the number of viewers, the number of barrages, video quality parameters, etc.
[0120] A batch of live broadcast status annotation information: a set of status labels are given for the live broadcast monitoring dataset, such as "smooth", "stuttering", "high popularity", etc. These annotation information comes from the four knowledge templates mentioned above and may contain multiple different labels.
[0121] A batch of confidence levels corresponding to a batch of live broadcast status annotation information: For each live broadcast status annotation information, there is a corresponding confidence level, which indicates the reliability or credibility of the annotation information. These confidence levels also come from the four knowledge templates and reflect the confidence of different algorithms in status recognition.
[0122] For example, suppose there is a live broadcast monitoring data set that contains data such as the number of viewers and the number of bullet comments during a certain live broadcast period. By integrating the four knowledge templates, the following target live broadcast data knowledge template can be constructed for the data set:
[0123] Live broadcast monitoring data set: contains live broadcast data for a specific period of time, such as the peak number of viewers is 10,000, the average number of barrages is 50 per minute, etc.
[0124] Live broadcast status annotation information: including labels such as "smooth" (confidence level 0.9), "high popularity" (confidence level 0.8), and "slight delay" (confidence level 0.6). Among them, "smooth" and "high popularity" may appear in both the first and second knowledge templates, while "slight delay" only appears in the second knowledge template.
[0125] Confidence level: reflects the reliability of different annotation information. For example, the "smooth" state has a high confidence level because it is recognized by both algorithms, while the "slightly delayed" state has a relatively low confidence level because it is only recognized by the large-scale algorithm.
[0126] Through such an integration process, step S140A provides richer and more accurate data support for the training of the target live broadcast state prediction algorithm, which helps the algorithm to more comprehensively learn the various state characteristics of the live broadcast process, thereby improving its monitoring accuracy and reliability.
[0127] Step S140B, transferring the target live broadcast data knowledge templates into the original live broadcast state prediction algorithm in batches, performing cyclic training on the original live broadcast state prediction algorithm, and obtaining the target live broadcast state prediction algorithm.
[0128] In the algorithm training phase, step S140B transfers the constructed target live data knowledge templates into the original live state estimation algorithm in batches, and performs cyclic training to optimize the algorithm performance, and finally obtains the target live state estimation algorithm. In step S140A, the computer system has established multiple target live data knowledge templates by integrating the initial live data knowledge template, the first type of knowledge template, the second type of knowledge template and the third type of knowledge template. Each template contains a live monitoring data set, a batch of live state annotation information and a batch of corresponding confidence levels.
[0129] In step S140B, the computer system will start a cyclic training process. The core of this process is to transfer the target live data knowledge template batch by batch into the original live state prediction algorithm, and compare the prediction results of the algorithm with the actual state annotation information in the template, calculate the prediction error, and adjust the algorithm parameters accordingly.
[0130] Specifically, the training process can be divided into the following steps:
[0131] Data batch selection: The computer system will first select a batch of data from the target live broadcast data knowledge template as the current training batch. This batch may contain one or more live broadcast monitoring data sets and their corresponding live broadcast status annotation information and confidence levels.
[0132] Data preprocessing: Before passing the data into the algorithm, the computer system may need to perform some preprocessing operations, such as data cleaning, feature extraction, etc., to ensure that the quality and format of the input data meet the requirements of the algorithm.
[0133] Algorithm prediction: The processed data will be fed into the original live state prediction algorithm for prediction. The algorithm will output a set of predicted state annotation information and its confidence level based on the characteristics of the input data.
[0134] Error calculation: The system will compare the prediction results of the algorithm with the actual status annotation information in the target live data knowledge template to calculate the prediction error. The error calculation method may include indicators such as accuracy, recall rate, F1 score, etc., depending on the application scenario and requirements of the algorithm.
[0135] Parameter adjustment: Based on the calculated prediction error, the computer system adjusts the parameters of the original live state prediction algorithm to reduce the error and improve the prediction accuracy of the algorithm. The parameter adjustment process may include optimization algorithms such as gradient descent and back propagation.
[0136] Iteration: The above steps will be repeated until the algorithm's performance on the validation set reaches the preset standard or the maximum number of iterations is reached. In each iteration, the computer system will select a new data batch for training to ensure that the algorithm can fully learn the features and information in the target live data knowledge template.
[0137] Through the cyclic training process, the original live broadcast state prediction algorithm will gradually learn the key features and information in the target live broadcast data knowledge template and optimize its parameters to adapt to different live broadcast state monitoring needs. Finally, after a sufficient number of iterative training, the algorithm will converge to a stable state and form the target live broadcast state prediction algorithm. This algorithm will have higher accuracy and generalization ability, and can better meet the application needs of live broadcast state monitoring.
[0138] Based on another optional implementation scheme, step S140B, transferring the target live broadcast data knowledge templates batch by batch into the original live broadcast state prediction algorithm, performing cyclic training on the original live broadcast state prediction algorithm, and obtaining the target live broadcast state prediction algorithm may include:
[0139] Step S140B1, adopt the following process to transfer the target live broadcast data knowledge templates into the original live broadcast state estimation algorithm in batches, perform cyclic training on the original live broadcast state estimation algorithm, and obtain the target live broadcast state estimation algorithm; wherein, the live broadcast monitoring data set taken in the current cycle is regarded as the current live broadcast monitoring data set, each cycle is trained through all the target live broadcast data knowledge templates, and each batch is trained based on the local part of the target live broadcast data knowledge template.
[0140] In the algorithm training phase, step S140B1 involves a specific training process, that is, the data set in the target live data knowledge template is passed into the original live state estimation algorithm in batches, and the performance of the algorithm is continuously optimized through loop iteration.
[0141] First of all, it is necessary to clarify that the target live broadcast data knowledge template is an integration of the initial live broadcast data knowledge template, the first type of knowledge template, the second type of knowledge template and the third type of knowledge template. Each template contains a series of live broadcast monitoring data sets, corresponding live broadcast status annotation information and confidence levels. These templates provide rich data support for the training of the algorithm.
[0142] In step S140B1, the computer system adopts a strategy of batch input and loop training. Specifically, in each loop, the computer system selects a live broadcast monitoring data set in a target live broadcast data knowledge template as the "current live broadcast monitoring data set" of the current loop. This data set will be used as the input data of the algorithm to update the parameters and weights of the algorithm. It is important to note that although all target live broadcast data knowledge templates will be traversed in each loop, the data set actually input into the algorithm for training each time is only a subset or part of these templates. This batch processing method has several advantages: first, it can reduce memory usage, allowing the algorithm to process more data with limited computing resources; second, it can increase the generalization ability of the algorithm, because the algorithm needs to be trained on different data sets to learn more features and patterns.
[0143] Taking a specific live broadcast status monitoring scenario as an example, it is assumed that there are four target live broadcast data knowledge templates, which respectively contain monitoring data in different time periods and live broadcast scenarios. In step S140B1, the computer system first selects a live broadcast monitoring data set in the first template as the current live broadcast monitoring data set, and imports it into the original live broadcast status estimation algorithm for training. After the training is completed, the computer system updates the parameters and weights of the algorithm and calculates the training error. Then, the computer system selects a data set in the second template for training, and so on. The cycle continues until all templates are traversed. In each cycle, the computer system adjusts the learning rate or other hyperparameters according to the training error to optimize the performance of the algorithm.
[0144] Through continuous iteration and parameter adjustment, the original live broadcast state prediction algorithm will gradually learn the key features and information in the target live broadcast data knowledge template, thus forming a target live broadcast state prediction algorithm with better performance. This algorithm will be able to more accurately identify various states in the live broadcast process and provide more reliable monitoring services for the live broadcast platform.
[0145] Step S140B2, passing the current live broadcast monitoring data set into the original data encoding operator to obtain the target description array; wherein, the number of array elements of the target description array is equal to the number of live broadcast states that can be estimated by the original live broadcast state prediction algorithm, and the value of each array element of the target description array represents the confidence level of the corresponding live broadcast state, and the original live broadcast state prediction algorithm includes the original data encoding operator.
[0146] In the algorithm training phase, step S140B2 processes the current live broadcast monitoring data set through the original data encoding operator to obtain a target description array. The purpose of this step is to convert the original live broadcast monitoring data into a feature representation that the algorithm can understand and process, providing a basis for subsequent state mapping and prediction. In each iteration of the loop training, the computer system selects a live broadcast monitoring data set from the target live broadcast data knowledge template as the input data of the current loop. This data set is the current live broadcast monitoring data set. It contains live broadcast monitoring data within a specific time period, such as the number of viewers, the number of barrages, video quality parameters, etc. Next, the current live broadcast monitoring data set will be passed into the original data encoding operator. This operator is usually a feature extractor, which is responsible for converting the original live broadcast monitoring data into a target description array. This conversion process may involve pre-processing steps such as data cleaning, standardization, and dimensionality reduction to ensure that the quality and format of the input data meet the requirements of the algorithm.
[0147] In the process of feature extraction, the raw data encoding operator selects and extracts features closely related to the live broadcast status according to the requirements of the algorithm and the characteristics of live broadcast status monitoring. These features may include the changing trend of the number of viewers, the density of the number of barrages, the stability of video quality, etc. By extracting these key features, the raw data encoding operator can convert the original live broadcast monitoring data into a high-dimensional feature vector, namely the target description array. The number of array elements of the target description array is equal to the number of live broadcast states that can be estimated by the original live broadcast status estimation algorithm. For example, if the algorithm can identify N live broadcast states such as "smooth", "stuttering", and "high popularity", then the target description array will have N elements. The value of each array element represents the confidence level of the algorithm for the corresponding live broadcast state, that is, the probability that the algorithm believes that the current live broadcast is in this state. These confidence level values are usually obtained through calculations within the algorithm, and they reflect the algorithm's comprehensive judgment on the current live broadcast state.
[0148] Step S140B3, passing the target description array into the state mapping operator to obtain the current live broadcast state annotation information and the current confidence level corresponding to the current live broadcast state annotation information; wherein, the original live broadcast state estimation algorithm includes the state mapping operator, and the current live broadcast state annotation information represents the live broadcast state annotation information included in the current live broadcast monitoring data set estimated by the original live broadcast state estimation algorithm.
[0149] In the algorithm training stage, step S140B3 passes the target description array processed by the original data encoding operator to the state mapping operator to obtain the prediction result of the current live broadcast status, that is, the current live broadcast status annotation information and its corresponding current confidence level.
[0150] In step S140B3, the computer system passes the target description array as input data to the state mapping operator. The state mapping operator is usually an important component of the original live broadcast state estimation algorithm, which is responsible for predicting or identifying the current live broadcast state based on the input target description array. This prediction process may involve complex calculation logic and model parameters, depending on the implementation method of the state mapping operator.
[0151] Taking neural networks in deep learning as an example, the state mapping operator may be the output layer of a multi-layer perceptron (MLP) or a convolutional neural network (CNN). When the target description array is passed into the neural network as input data, the network will go through a series of calculations and transformations and finally output a prediction result vector. The length of this prediction result vector is equal to the number of live broadcast states that the algorithm can estimate, and the value of each element represents the probability that the algorithm is in that state, that is, the confidence level.
[0152] Specifically, assuming that the algorithm can identify the three live broadcast states of "smooth", "stuttered", and "highly popular", the prediction result vector will have three elements. If the state mapping operator outputs a prediction result vector [0.8, 0.1, 0.6], this means that the algorithm believes that the current live broadcast has an 80% chance of being in a "smooth" state, a 10% chance of being in a "stuttered" state, and a 60% chance of being in a "highly popular" state. These prediction results and the corresponding confidence levels are the current live broadcast state annotation information and the current confidence level.
[0153] It should be noted that the current live broadcast status annotation information is not necessarily completely accurate, it only represents the algorithm's estimated result of the current live broadcast status. During the algorithm training process, the computer system continuously adjusts and optimizes the algorithm parameters based on the difference between the actual live broadcast status annotation information and the current live broadcast status annotation information to improve the algorithm's prediction accuracy.
[0154] Through the processing of step S140B3, the computer system can predict the current live broadcast status based on the target description array and output the prediction result and the corresponding confidence level, which provides an important basis for subsequent algorithm optimization and performance evaluation.
[0155] Step S140B4, obtaining the target training cost through a batch of live broadcast status annotation information and a batch of confidence levels corresponding to the current live broadcast monitoring data set, as well as the current live broadcast status annotation information and the current confidence level.
[0156] In the algorithm training phase, step S140B4 calculates the target training cost to quantitatively evaluate the performance of the original live broadcast state prediction algorithm in predicting the live broadcast state. This step is an important feedback mechanism in the algorithm training process. By calculating the target training cost, the computer system can understand the prediction accuracy of the algorithm in the current state and adjust the parameters and weights of the algorithm accordingly to optimize its performance.
[0157] Specifically, step S140B4 obtains the target training cost in the following manner:
[0158] First, the computer system obtains the actual live broadcast status annotation information and a batch of confidence levels corresponding to the current live broadcast monitoring data set. These actual status annotation information usually comes from the target live broadcast data knowledge template, is the real annotated live broadcast status, and has high reliability. The confidence level reflects the degree of confidence of the annotator in these status annotation information. Then, the computer system compares the current live broadcast status annotation information and the current confidence level with the actual status annotation information. The current live broadcast status annotation information is the prediction result of the original live broadcast status estimation algorithm for the live broadcast status contained in the current live broadcast monitoring data set, and the current confidence level represents the degree of confidence of the algorithm in the prediction result. By comparing the actual status annotation information and the prediction result, the computer system can evaluate the prediction accuracy of the algorithm. In order to quantitatively evaluate the prediction performance of the algorithm, the computer system uses the target training cost as an evaluation indicator. The target training cost is usually the calculation result of a loss function, which measures the degree of difference between the prediction result and the actual result. In the scenario of live broadcast status monitoring, commonly used loss functions include cross-entropy loss, mean squared error loss, etc.
[0159] Taking cross entropy loss as an example, its calculation formula is as follows:
[0160]
[0161] Among them, L represents the target training cost, N is the number of samples (i.e., the number of data points in the current live broadcast monitoring dataset), yi is the actual state annotation information of the i-th sample (usually represented as a one-hot encoding vector), and pi is the algorithm's prediction result for the i-th sample (i.e., the confidence level vector corresponding to the current live broadcast state annotation information). The target training cost can be obtained by calculating the cross entropy loss between the actual state and the predicted state of each sample and averaging the losses of all samples.
[0162] In the embodiment of the present application, the calculation of the target training cost provides important feedback information for algorithm training. By continuously iterating the training process and adjusting the algorithm parameters, the computer system can gradually reduce the target training cost, thereby improving the prediction accuracy and performance of the algorithm. When the target training cost reaches a preset threshold or the number of training iterations reaches an upper limit, the training process ends, and the algorithm obtained at this time is the target live broadcast state estimation algorithm, which can be used in actual live broadcast state monitoring tasks.
[0163] Step S140B5, correcting the algorithm weights and biases of the original live broadcast state prediction algorithm based on the target training cost, and ending the training when the target training cost reaches the target value to obtain the target live broadcast state prediction algorithm.
[0164] In the algorithm training phase, step S140B5 adjusts the algorithm weight and bias of the original live broadcast state prediction algorithm according to the target training cost, and stops training when the training reaches the preset target, and finally obtains the target live broadcast state prediction algorithm. This step is the core link in the machine learning model training process. By continuously optimizing the model parameters, the model can better fit the training data and improve the prediction performance.
[0165] The target training cost is calculated by comparing the difference between the algorithm prediction result and the actual result, which measures the performance of the algorithm under the current parameter settings. In the scenario of live broadcast status monitoring, the target training cost may use cross entropy loss, mean square error loss, etc. as the loss function. In step S140B5, the computer system evaluates the performance of the original live broadcast status prediction algorithm according to the target training cost. If the target training cost is high, it means that there is a large difference between the prediction result of the algorithm and the actual result. At this time, the weight and bias of the algorithm need to be adjusted to reduce the prediction error. The process of adjusting the algorithm weights and biases is usually completed by an optimization algorithm. The optimization algorithm (such as the gradient descent algorithm, Adam optimizer, etc.) will iteratively update the algorithm parameters according to the target training cost, so that the algorithm can better fit the training data under the new parameter settings. In each iteration, the optimization algorithm calculates the gradient of the target training cost with respect to the algorithm parameters, and updates the parameters in the opposite direction of the gradient, thereby gradually reducing the target training cost. As the training proceeds, the target training cost will gradually decrease, and the prediction performance of the algorithm will gradually improve. When the target training cost reaches the preset target value, it means that the algorithm has been able to fit the training data well and the prediction performance has reached the expected level. At this time, the training process will stop, and the algorithm in the current state is the target live state prediction algorithm.
[0166] For example, suppose a deep learning model (such as a convolutional neural network CNN) is used as the original live broadcast state prediction algorithm. During the training process, a target training cost threshold (such as 0.1) is set. When the target training cost is lower than this threshold, the algorithm is considered to have achieved a sufficient performance level. As the training progresses, the model parameters will be continuously adjusted and the target training cost will gradually decrease. When the target training cost reaches or falls below 0.1 for the first time, the training process stops, and the CNN model obtained at this time is the target live broadcast state prediction algorithm. This algorithm will be able to accurately predict various states during the live broadcast process and provide strong technical support for the live broadcast platform.
[0167] In an optional implementation, in step S130, after establishing the first type of knowledge template, the second type of knowledge template and the third type of knowledge template through the first batch of live broadcast status annotation information and the second batch of live broadcast status annotation information, the method further includes:
[0168] Step S130a, determining the number of knowledge templates corresponding to each initial live broadcast status annotation information in a batch of initial live broadcast status annotation information through the initial live broadcast data knowledge template.
[0169] In the algorithm training phase, step S130a analyzes the live broadcast status annotation information in the initial live broadcast data knowledge template to determine the number of times or quantities each initial live broadcast status annotation information appears in different categories of knowledge templates established subsequently. Specifically, the execution process of step S130a is as follows:
[0170] First, the computer system accesses the initial live broadcast data knowledge template. This template was constructed before the algorithm was trained and contains a large number of labeled live broadcast data samples. Each sample has one or more live broadcast status annotation information to describe the live broadcast status represented by the sample. For example, a sample may be labeled "smooth", indicating that the live broadcast picture quality during this period is good; another sample may be labeled "stuttered", indicating that there are obvious playback problems during this period. Then, the computer system analyzes each initial live broadcast status annotation information in the initial live broadcast data knowledge template. It will traverse all samples in the template and count the number of times each initial live broadcast status annotation information appears. This process is similar to word frequency statistics for text data, but the frequency of live broadcast status annotation information is counted here.
[0171] For example, suppose the initial live broadcast data knowledge template contains 10,000 samples, of which 3,000 samples are labeled as "smooth", 2,000 samples are labeled as "stuttered", and the remaining samples are labeled as other live broadcast states. In step S130a, the computer system counts that the "smooth" state appears 3,000 times, the "stuttered" state appears 2,000 times, and the other states have different numbers of occurrences.
[0172] Finally, the computer system saves the statistical results to form a data structure (such as a dictionary or array) that records the number of knowledge templates corresponding to each initial live broadcast status annotation information. This data structure will be used in subsequent steps S130b and S130c to classify the initial live broadcast status annotation information and optimize the knowledge template set according to the number of knowledge templates. Through the execution of step S130a, the computer system can clearly understand the distribution of each live broadcast status in the initial live broadcast data knowledge template, providing an important basis for the optimization of knowledge templates in the subsequent algorithm training process. This helps to ensure that the algorithm can fully cover various live broadcast statuses and improve the accuracy and reliability of monitoring.
[0173] Step S130b, determining the initial live broadcast status annotation information whose number of knowledge templates meets the reference number as the first initial live broadcast status annotation information, and determining the initial live broadcast status annotation information whose number of knowledge templates does not meet the reference number as the second initial live broadcast status annotation information.
[0174] In the algorithm training phase, step S130b classifies the initial live state annotation information based on the number of knowledge templates corresponding to the initial live state annotation information counted in step S130a. The purpose of this step is to identify the live state (first initial live state annotation information) that has received sufficient attention during the algorithm training process and the live state (second initial live state annotation information) that may not have received sufficient attention, so as to provide a basis for the subsequent optimization of the knowledge template set. First, the computer system obtains the number of occurrences or quantities of each initial live state annotation information in three types of knowledge templates (first type, second type and third type) according to the statistical results in step S130a. These numbers reflect the degree of attention paid to different live states during the algorithm training process. Then, the computer system sets a reference number as a threshold. This reference number can be determined according to the actual application scenario and the needs of algorithm training, and is used to determine whether a certain initial live state annotation information has received sufficient attention in the knowledge template. The setting of the reference number needs to comprehensively consider the accuracy requirements of the algorithm, the limitations of computing resources, and the specific needs of live state monitoring.
[0175] Then, the computer system compares the number of knowledge templates corresponding to each initial live broadcast status annotation information with the reference number. If the total number of a certain initial live broadcast status annotation information in the three types of knowledge templates exceeds or equals the reference number, it means that the state has received sufficient attention during the algorithm training process, and the computer system determines it as the first initial live broadcast status annotation information. On the contrary, if the total number of a certain initial live broadcast status annotation information in the knowledge template is lower than the reference number, it means that the state may not have received sufficient attention during the algorithm training, and the computer system determines it as the second initial live broadcast status annotation information.
[0176] By executing step S130b, the computer system can classify the initial live broadcast status annotation information and identify the live broadcast status that has received sufficient attention and that may not have received sufficient attention during the algorithm training process. This provides an important guiding basis for optimizing the knowledge template set in the subsequent step S130c, which helps to improve the accuracy and generalization ability of the algorithm in the live broadcast status monitoring task.
[0177] Step S130c, clearing out the second category knowledge template and the third category knowledge template including the first initial live broadcast status annotation information, and saving the second category knowledge template and the third category knowledge template including the second initial live broadcast status annotation information.
[0178] In the algorithm training phase, step S130c optimizes the previously established knowledge template set. The goal of this step is to classify the initial live broadcast status annotation information (completed in step S130b), clean up the records of the initial live broadcast status annotation information in the second and third knowledge templates that have been fully paid attention to in the first category of knowledge templates, and retain the records of the status annotation information in the second and third knowledge templates that have not been paid enough attention to in the first category of knowledge templates. The purpose of this is to ensure the balance and integrity of the knowledge template set, thereby improving the accuracy and generalization ability of subsequent algorithm training.
[0179] Specifically, in step S130c, the computer system first identifies those initial live state annotation information that appear in the first type of knowledge template more than the reference number (set in step S130b), that is, the first initial live state annotation information. Since these state annotation information have received sufficient attention in the first type of knowledge template, the duplicate records that may exist in the second and third types of knowledge templates appear redundant. Next, the computer system traverses the second and third types of knowledge templates, searches for records containing the first initial live state annotation information, and clears these records. The cleaning process can be to directly delete these records, or set their weights to a very small value so that the impact of these records in the subsequent algorithm training process can be ignored. At the same time, for those initial live state annotation information (i.e., the second initial live state annotation information) that appear in the first type of knowledge template less than the reference number, the computer system retains their records in the second and third types of knowledge templates. These state annotation information may not receive sufficient attention in the first type of knowledge template, so retaining their records in the second and third types of knowledge templates helps the algorithm learn the characteristics of these states more comprehensively in the subsequent training process.
[0180] For example, suppose there are three types of live broadcast status annotation information: "smooth", "stuttered" and "high popularity". In step S130b, if the "smooth" status is classified as the first initial live broadcast status annotation information because its number of occurrences in the first type of knowledge template exceeds the reference number, and the "stuttered" and "high popularity" status are classified as the second initial live broadcast status annotation information because their number of occurrences in the first type of knowledge template is lower than the reference number. Then in step S130c, the computer system clears all records containing the "smooth" status in the second and third types of knowledge templates, and retains the records containing the "stuttered" and "high popularity" status.
[0181] In an optional implementation, in step S120, before the original live broadcast monitoring data set is input into the initially trained original live broadcast state estimation algorithm and the second batch of live broadcast state annotation information is obtained, the method further includes:
[0182] Step S1201, the live broadcast monitoring data set template in the initial live broadcast data knowledge template is passed into the original live broadcast state prediction algorithm to obtain a target estimated possibility value; wherein the target estimated possibility value is used to indicate the possibility that the original live broadcast state prediction algorithm estimates that the live broadcast monitoring data set template has template live broadcast state annotation information, and the live broadcast monitoring data set template carries the template live broadcast state annotation information.
[0183] In the algorithm training phase, step S1201 takes the live broadcast monitoring data set template in the initial live broadcast data knowledge template as input data and passes it to the original live broadcast state estimation algorithm for processing.
[0184] The initial live broadcast data knowledge template is a collection of a large number of well-labeled live broadcast monitoring data, which are usually manually reviewed or labeled by experts and have high accuracy and reliability. The live broadcast monitoring data set template is a part of the data samples extracted from the knowledge template. They carry specific live broadcast status annotation information and are used to evaluate the algorithm's ability to predict the live broadcast status.
[0185] After the live broadcast monitoring data set template is passed into the original live broadcast state prediction algorithm, the data are processed and analyzed based on its internal learning mechanism and parameter settings. This algorithm may be a machine learning model that has been preliminarily trained, such as a neural network, a decision tree or a support vector machine, etc., which already has a certain ability to predict the live broadcast state. During the processing, the original live broadcast state prediction algorithm analyzes each live broadcast monitoring data set template and outputs a target estimated probability value. This value indicates the algorithm's estimate of the possibility of the existence of specific live broadcast state annotation information in the template data, usually expressed in the form of probability. For example, if the algorithm predicts that a certain template data has an 80% probability of being in a "smooth" state, then the target estimated probability value is 0.8. Through the processing of step S1201, the computer system can obtain a batch of target estimated probability values, which reflect the original live broadcast state prediction algorithm's ability to predict the live broadcast state in the initial live broadcast data knowledge template. These prediction results will provide important reference information for subsequent steps, helping the system to evaluate the performance of the algorithm and perform corresponding optimization.
[0186] Step S1202, obtaining a batch of indication reference values; wherein, one indication reference value in the batch of indication reference values is used together with the target estimation possibility value to obtain a target estimation result, and the target estimation result represents that the template live broadcast status annotation information exists in the live broadcast monitoring data set template.
[0187] In the algorithm training phase, step S1202 obtains a batch of indicating reference values, which will be used in combination with the target estimated probability value to jointly determine whether the live monitoring data set template has specific template live state annotation information. The purpose of this step is to assist the computer system to more accurately evaluate the performance of the original live state estimation algorithm and provide guidance for subsequent optimization.
[0188] First, we need to understand the role of indicative reference values. In the field of machine learning, especially in classification problems, the prediction result of the model is often a probability value or confidence level, which indicates the model's confidence that a sample belongs to a certain category. However, this probability value or confidence level is not directly equivalent to the final classification result. In order to convert the model's prediction results into specific classification labels (i.e., live broadcast status annotation information), one or more thresholds need to be set. When the model's prediction probability exceeds this threshold, the sample is considered to belong to this category. These thresholds are indicative reference values.
[0189] In step S1202, the computer system obtains a batch of indication reference values. These values are usually pre-set based on experience, experiments or domain knowledge, and are used to evaluate the performance of the original live broadcast status prediction algorithm under different prediction probabilities. Specifically, each indication reference value is compared with the target prediction probability value (i.e., the prediction probability of the algorithm for the live broadcast monitoring data set template). When the prediction probability exceeds a certain indication reference value, it is considered that the algorithm correctly predicts the live broadcast status of the template.
[0190] Take a specific live broadcast status monitoring scenario as an example, assuming that the live broadcast status of "stuttering" is of concern. In step S1201, the original live broadcast status prediction algorithm has predicted the live broadcast monitoring data set template in the initial live broadcast data knowledge template and output a target estimated probability value. Now, it is necessary to determine a suitable indication reference value to determine whether the algorithm accurately predicts the "stuttering" state.
[0191] Assume that two indicator reference values are set: 0.6 and 0.8. When the target estimated probability value exceeds 0.6, it is believed that the algorithm may have correctly predicted the "stuck" state, but it is not very certain; when the target estimated probability value exceeds 0.8, it is very confident that the algorithm has correctly predicted the "stuck" state. By comparing the target estimated probability value with these two indicator reference values, different target estimation results can be obtained, thereby evaluating the performance of the algorithm under different thresholds.
[0192] It should be noted that the setting of the indicator reference value is not arbitrary, but needs to be determined according to the specific application scenario and algorithm performance requirements. In actual operation, it is usually necessary to use methods such as cross-validation and grid search to find the optimal indicator reference value combination to improve the accuracy and generalization ability of the algorithm.
[0193] Step S1203, obtaining the target indication reference value of the template live broadcast status annotation information through the target estimated possibility value and a batch of indication reference values; wherein the target indication reference value is the reference value with the largest adjustment value among a batch of indication reference values, and the adjustment value is obtained together with the target estimation result and the template live broadcast status annotation information previously marked in the live broadcast monitoring data set template.
[0194] Step S1203 determines the target indication reference value of the template live state annotation information by using the target estimated probability value and a batch of indication reference values. The purpose of this step is to find an optimal indication reference value so that the original live state estimation algorithm can achieve the best performance when predicting the live state.
[0195] The target estimated probability value is the probability value output by the original live broadcast state estimation algorithm when predicting the live broadcast monitoring data set template. It indicates the possibility that the algorithm believes that the template has a specific live broadcast state. The indicative reference value is a set of preset thresholds used to convert the target estimated probability value into a specific prediction result.
[0196] In step S1203, the computer system first obtains an indication reference value set and a target estimated confidence level. This set includes multiple possible indication reference values, and the target estimated confidence level may be a preset threshold value for determining which prediction results are considered reliable.
[0197] Next, the computer system constructs an adjustment value corresponding to each indicative reference value in the indicative reference value set. This adjustment value is obtained by calculating the recall rate, precision rate, and the harmonic mean based on them (i.e., the F1 score). The recall rate measures the ability of the algorithm to correctly identify positive samples (i.e., the proportion of samples that are actually positive that are predicted to be positive), and the precision rate measures how many of the samples predicted by the algorithm to be positive are truly positive. The harmonic mean is a comprehensive measure of the recall rate and precision rate, which is used to balance these two indicators.
[0198] Specifically, for each indicator reference value, the computer system compares it with the target estimated probability value to obtain a set of prediction results. The computer system then calculates the recall rate, precision rate, and harmonic mean based on these prediction results and the real live broadcast status annotation information pre-annotated in the live broadcast monitoring data set template. These values reflect the performance of the algorithm under different indicator reference values.
[0199] Finally, the computer system selects the indicator reference value with the highest adjustment value (i.e., F1 score) as the target indicator reference value. This value represents the best performance that the algorithm can achieve when predicting the live broadcast status. By selecting this value as a parameter configured for the original live broadcast status prediction algorithm, the computer system can ensure that the algorithm can maintain a high accuracy in subsequent training and prediction processes.
[0200] Taking a specific live broadcast status monitoring scenario as an example, suppose that the live broadcast status of "stuck" is of concern. In steps S1201 and S1202, the target estimated probability value and a batch of indication reference values have been obtained. Now, it is necessary to determine an optimal target indication reference value. By calculating the recall rate, precision rate and F1 score under different indication reference values, it is found that when the indication reference value is 0.7, the F1 score reaches the highest. Therefore, 0.7 is selected as the target indication reference value and is configured to the original live broadcast status estimation algorithm. In this way, in the subsequent training and prediction process, when the prediction probability of the algorithm exceeds 0.7, it is considered that it correctly predicts the "stuck" state.
[0201] Step S1204, configuring the target indication reference value as the target algorithm weight and bias of the original live broadcast state estimation algorithm; wherein, in the original live broadcast state estimation algorithm, the target indication reference value is used to determine the second batch of live broadcast state annotation information.
[0202] In the algorithm training stage, in step S1204, the computer system configures the target indication reference value determined in step S1203 as the target algorithm weight and bias of the original live broadcast status prediction algorithm. These parameters will play an important role when the algorithm processes the second batch of live broadcast status annotation information.
[0203] First, it is necessary to understand the meaning of the target indication reference value. In step S1203, the computer system selects the indication reference value with the highest adjustment value (i.e., F1 score) as the target indication reference value by evaluating the performance of the algorithm under different indication reference values. This value represents the best performance that the algorithm can achieve when predicting the live broadcast status, so it is an important basis for configuring the algorithm parameters. Next, the computer system configures the target indication reference value as the target algorithm weight and bias of the original live broadcast status prediction algorithm. In the field of machine learning, algorithm weights and biases are important components of model parameters, which determine how the algorithm responds to input data and the output form of the prediction results. By configuring the target indication reference value as the algorithm weight and bias, the computer system is actually telling the algorithm: "When predicting the live broadcast status, you should pay more attention to those features that make the prediction probability close to the target indication reference value."
[0204] Taking a specific live broadcast status monitoring scenario as an example, assume that the concern is the live broadcast status of "stuck". In step S1203, the target indication reference value is determined to be 0.7, which means that when the algorithm's prediction probability exceeds 0.7, there is a high confidence that the live broadcast period is in a "stuck" state. In step S1204, this value is configured as the target algorithm weight and bias of the original live broadcast status prediction algorithm. In this way, in the subsequent training process, the algorithm will pay more attention to those features that are closely related to the "stuck" state (such as video frame rate, delay time, etc.), and adjust its internal parameters to make the response to these features more sensitive.
[0205] In this way, step S1204 ensures that the original live broadcast status prediction algorithm can more accurately predict the live broadcast status when the second batch of live broadcast status annotation information is subsequently processed. This not only improves the prediction accuracy of the algorithm, but also enhances its adaptability to different live broadcast scenarios.
[0206] Figure 2 A hardware entity diagram of a computer system provided in an embodiment of the present application is shown in FIG. Figure 2As shown, the hardware entity of the computer system 1000 includes: a processor 1001 and a memory 1002, wherein the memory 1002 stores a computer program that can be run on the processor 1001, and the processor 1001 implements the steps in the method of any of the above embodiments when executing the program.
Claims
1. A live broadcast status monitoring method based on big data, characterized in that: include: Get the original live broadcast monitoring data set; The original live broadcast monitoring data set is passed into the preliminarily trained large-scale algorithm to obtain a first batch of live broadcast status annotation information, and the original live broadcast monitoring data set is passed into the preliminarily trained original live broadcast status estimation algorithm to obtain a second batch of live broadcast status annotation information; wherein the original live broadcast status estimation algorithm is an algorithm preliminarily optimized by using the initial live broadcast data knowledge template, and the large-scale algorithm is an algorithm preliminarily optimized by using large-scale live broadcast data; A first type of knowledge template, a second type of knowledge template and a third type of knowledge template are established through the first batch of live broadcast status annotation information and the second batch of live broadcast status annotation information; wherein the first live broadcast status annotation information included in the first type of knowledge template is not only attached to the first batch of live broadcast status annotation information, but also attached to the second batch of live broadcast status annotation information, the second live broadcast status annotation information included in the second type of knowledge template is attached to the first batch of live broadcast status annotation information, but not attached to the second batch of live broadcast status annotation information, and the third live broadcast status annotation information included in the third type of knowledge template is attached to the second batch of live broadcast status annotation information, but not attached to the first batch of live broadcast status annotation information; The original live broadcast state prediction algorithm is trained by combining the initial live broadcast data knowledge template, the first type of knowledge template, the second type of knowledge template and the third type of knowledge template to obtain a target live broadcast state prediction algorithm; Obtain the target live broadcast monitoring data set; The target live broadcast monitoring data set is input into the target live broadcast state estimation algorithm to obtain a batch of target live broadcast state annotation information and a batch of target confidence levels corresponding to the batch of target live broadcast state annotation information; Establishing target live broadcast state annotation information for the target live broadcast monitoring data set through the batch of target live broadcast state annotation information and the batch of target confidence levels; wherein the target live broadcast state annotation information indicates the live broadcast state included in the target live broadcast monitoring data set; The step of establishing the first type of knowledge template, the second type of knowledge template and the third type of knowledge template by using the first batch of live broadcast status annotation information and the second batch of live broadcast status annotation information includes: Determine the first live broadcast status annotation information, the second live broadcast status annotation information, and the third live broadcast status annotation information through the first batch of live broadcast status annotation information and the second batch of live broadcast status annotation information; The confidence level of the first live broadcast status annotation information is configured as a first value, and the first type of knowledge template is established; wherein the first type of knowledge template is used to indicate that the confidence level of the original live broadcast monitoring data set including the first live broadcast status annotation information is the first value; The confidence level of the second live broadcast status annotation information is configured as a first estimated possibility value, and the second type of knowledge template is established; wherein the first estimated possibility value is used to indicate the possibility that the original live broadcast status estimation algorithm estimates that the original live broadcast monitoring data set contains the second live broadcast status annotation information, and the second type of knowledge template is used to indicate that the confidence level of the original live broadcast monitoring data set including the second live broadcast status annotation information is the first estimated possibility value; The confidence level of the third live broadcast status annotation information is configured as a second estimated possibility value, and the third type of knowledge template is established; wherein the second estimated possibility value is less than the possibility that the original live broadcast status estimation algorithm estimates that the original live broadcast monitoring data set contains the third live broadcast status annotation information, and the third type of knowledge template indicates that the confidence level of the original live broadcast monitoring data set including the third live broadcast status annotation information is the second estimated possibility value; The step of configuring the confidence level of the third live broadcast status annotation information to a second estimated possibility value and establishing the third type of knowledge template comprises: Obtaining the possibility value of the original live broadcast status prediction algorithm estimating the existence of the third live broadcast status annotation information in the original live broadcast monitoring data set; The possibility value is multiplied by the second value, and the product value is determined as the second estimated possibility value, and the confidence level of the third live broadcast status annotation information is configured as the second estimated possibility value, and the third type of knowledge template is established; wherein the second value is equal to 1 / M, and M is a natural number that is not 0; The training of the original live broadcast state prediction algorithm by combining the initial live broadcast data knowledge template, the first type of knowledge template, the second type of knowledge template, and the third type of knowledge template to obtain a target live broadcast state prediction algorithm includes: A target live data knowledge template is established through the initial live data knowledge template, the first type of knowledge template, the second type of knowledge template and the third type of knowledge template; wherein one of the target live data knowledge templates includes a live monitoring data set, a batch of live status annotation information and a batch of confidence levels corresponding to the batch of target live status annotation information; The target live broadcast data knowledge template is transferred into the original live broadcast state estimation algorithm in batches, and the original live broadcast state estimation algorithm is cyclically trained to obtain the target live broadcast state estimation algorithm; The step of transferring the target live broadcast data knowledge templates into the original live broadcast state estimation algorithm in batches, performing cyclic training on the original live broadcast state estimation algorithm, and obtaining the target live broadcast state estimation algorithm includes: The target live broadcast data knowledge template is transferred into the original live broadcast state estimation algorithm in batches by adopting the following process, and the original live broadcast state estimation algorithm is cyclically trained to obtain the target live broadcast state estimation algorithm; wherein the live broadcast monitoring data set taken in the current cycle is regarded as the current live broadcast monitoring data set, and each cycle is trained through all the target live broadcast data knowledge templates, and each batch is trained based on a part of the target live broadcast data knowledge template; The current live broadcast monitoring data set is passed into the original data encoding operator to obtain a target description array; wherein the number of array elements of the target description array is equal to the number of live broadcast states that can be estimated by the original live broadcast state estimation algorithm, and the value of each array element of the target description array represents the confidence level of the corresponding live broadcast state, and the original live broadcast state estimation algorithm includes the original data encoding operator; The target description array is passed into the state mapping operator to obtain the current live broadcast state annotation information and the current confidence level corresponding to the current live broadcast state annotation information; wherein the original live broadcast state estimation algorithm includes the state mapping operator, and the current live broadcast state annotation information represents the live broadcast state annotation information included in the current live broadcast monitoring data set estimated by the original live broadcast state estimation algorithm; Obtaining a target training cost through the batch of live broadcast status annotation information corresponding to the current live broadcast monitoring data set, the batch of confidence levels, the current live broadcast status annotation information and the current confidence level; The algorithm weights and biases of the original live broadcast state prediction algorithm are modified based on the target training cost, and the training is terminated when the target training cost reaches a target value to obtain the target live broadcast state prediction algorithm.
2. The method according to claim 1, characterized in that: The training of the original live broadcast state prediction algorithm by combining the initial live broadcast data knowledge template, the first type of knowledge template, the second type of knowledge template, and the third type of knowledge template to obtain a target live broadcast state prediction algorithm includes: The original live broadcast state prediction algorithm is trained by combining the initial live broadcast data knowledge template, the first type of knowledge template, the second type of knowledge template and the third type of knowledge template to obtain a temporary live broadcast state prediction algorithm, and the convergence efficiency parameter adopted by the temporary live broadcast state prediction algorithm obtained by training is a first convergence efficiency parameter; The temporary live broadcast state prediction algorithm is retrained in combination with the initial live broadcast data knowledge template and the first type of knowledge template to obtain the target live broadcast state prediction algorithm; wherein, the convergence efficiency parameter adopted by the training to obtain the target live broadcast state prediction algorithm is the second convergence efficiency parameter, and the second convergence efficiency parameter is less than the first convergence efficiency parameter.
3. The method according to claim 2, characterized in that The retraining of the temporary live broadcast state prediction algorithm by combining the initial live broadcast data knowledge template and the first type of knowledge template to obtain the target live broadcast state prediction algorithm includes: On the premise that the temporary live broadcast state estimation algorithm includes an original data encoding operator and a state mapping operator, a second convergence efficiency parameter is allocated to the original data encoding operator, and a third convergence efficiency parameter is allocated to the state mapping operator; wherein the third convergence efficiency parameter is greater than the first convergence efficiency parameter; The temporary live broadcast state prediction algorithm is retrained based on the second convergence efficiency parameter and the third convergence efficiency parameter to obtain the target live broadcast state prediction algorithm.
4. The method according to claim 1, characterized in that: After establishing the first type of knowledge template, the second type of knowledge template and the third type of knowledge template through the first batch of live broadcast status annotation information and the second batch of live broadcast status annotation information, the method further includes: Determine the number of knowledge templates corresponding to each initial live broadcast status annotation information in a batch of initial live broadcast status annotation information by using the initial live broadcast data knowledge template; Determine the initial live broadcast status annotation information where the number of the knowledge templates meets the reference number as first initial live broadcast status annotation information, and determine the initial live broadcast status annotation information where the number of the knowledge templates does not meet the reference number as second initial live broadcast status annotation information; The second category knowledge template and the third category knowledge template including the first initial live broadcast state annotation information are cleared, and the second category knowledge template and the third category knowledge template including the second initial live broadcast state annotation information are saved.
5. The method according to claim 1, characterized in that Before the original live broadcast monitoring data set is input into the initially trained original live broadcast state estimation algorithm to obtain the second batch of live broadcast state annotation information, the method further includes: The live broadcast monitoring data set template in the initial live broadcast data knowledge template is passed into the original live broadcast state estimation algorithm to obtain a target estimation possibility value; wherein the target estimation possibility value is used to indicate the possibility that the original live broadcast state estimation algorithm estimates that the live broadcast monitoring data set template has template live broadcast state annotation information, and the live broadcast monitoring data set template carries the template live broadcast state annotation information; Acquire a batch of indication reference values; wherein one indication reference value in the batch of indication reference values is used to acquire a target estimation result together with the target estimation possibility value, and the target estimation result represents that the template live broadcast status annotation information exists in the live broadcast monitoring data set template; Obtain a target indication reference value of the template live broadcast status annotation information through the target estimated probability value and the batch of indication reference values; wherein the target indication reference value is a reference value with the largest adjustment value among the batch of indication reference values, and the adjustment value is obtained together with the target estimation result and the template live broadcast status annotation information previously marked in the live broadcast monitoring data set template; The target indication reference value is configured as the target algorithm weight and bias of the original live broadcast state prediction algorithm; wherein, in the original live broadcast state prediction algorithm, the target indication reference value is used to determine the second batch of live broadcast state annotation information.
6. A computer system comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, wherein: When the processor executes the program, the steps in the method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Accuracy monitoring device and method for online data in live broadcast scene
CN113407411A
Live broadcast quality evaluation method and device, electronic equipment and medium
CN116170606A
Big data analysis-based live broadcast goods carrying quality evaluation method
CN116502944A
Video Playing Control Method, Terminal Device, Server, and Storage Medium
US20230039918A1
Live streaming video processing method and apparatus, electronic device, computer-readable storage medium, and computer program product
WO2023193524A1
